Commit Graph

7188 Commits

Author SHA1 Message Date
Michael Kerrisk 5fb27aeb05 Changes: Updates for 3.33 release
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:02:20 +02:00
Michael Kerrisk f81c6cc693 fcntl.2, recv.2, crypt.3, err.3, strtoul.3, proc.5: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:02:06 +02:00
Michael Kerrisk 677e98a1b4 conj.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 753983126f clog.3: SEE ALSO: Add reference to clog(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk bd2c87dbd1 cexp.3: SEE ALSO: add cexp(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 5be56312b0 cacosh.3, casinh.3, catan.3, catanh.3: SEE ALSO: Add reference to inverse function
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 587977c40b casin.3: SEE ALSO: s/csin/ccos/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk f54fb0fa66 ccos.3, ccosh.3, csin.3, csinh.3, ctan.3, ctanh.3: SEE ALSO Add reference to "arc" inverse function
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk a1699a78e6 complex.7: Updated SEE ALSO list to include all complex math functions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 09a15e3d9e carg.3: Add "complex" to NAME line
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 8fa05874cc cacos.3: Add example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 849ef4a8ed catanh.3: Add example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk c05ed63add catan.3: Add example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 8b57a223ab cacosh.3: Add example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Michael Kerrisk 4c3fa19d23 cacos.3, cacosh.3, catan.3, catanh.3: Fix formula describing function
The man pages for cacos(), cacosh(), catan(), catanh()
contain incorrect formulae describing the functions.

As reported by Richard B. Kreckel:

cacos, cacosf, cacosl:
    The formula given in the man page
      cacos(z) = -i clog(z + csqrt(z * z - 1))
    gives wrong results in second and fourth quadrant of
    complex plain.
    The formula
      cacos(z) = -i clog(z + I*csqrt(1 - z * z))
    gives correct results.

catan, catanf, catanl:
    The formula given in the man page
      catan(z) = 1 / 2i clog((1 + iz) / (1 - iz))
    gives wrong results on the negative imaginary axis beginning
    at -I (along one of the two branch cuts). Besides, the formula
    is written in an ambiguous way.
    The formula
      catan(z) = (clog(1 + iz) - clog(1 - iz)) / 2i
    gives correct results.

cacosh, cacoshf, cacoshl:
    The formula given in the man page
      cacosh(z) = (0.5) * clog((1 + z) / (1 - z))
    gives wrong results everywhere in the complex plain.
    (The formula seems to be copied from the one for catanh,
    where it is sometimes correct.)
    The formula
      cacosh(z) = 2 * clog(csqrt((z + 1)/2) + csqrt((z - 1)/2))
    gives correct results.

catanh, catanhf, catanhl:
    The formula given in the man page
      catanh(z) = 0.5 * clog((1 + z) / (1 - z))
    gives wrong results on the positive real axis beginning at 1
    (along one of the two branch cuts).
    The formula
      catanh(z) = 0.5 * (clog(1 + z) - clog(1 - z))
    gives correct results.

I've also checked casin, casinf, casinl, casinh, casinhf, and
casinhl and the formulae given there
      casin(z) = -i clog(iz + csqrt(1 - z * z))
      casinh(z) = clog(z + csqrt(z * z + 1))
are actually correct.

Reported-by: Richard B. Kreckel <kreckel@ginac.de>
Reviewed-by: Andries Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:49 +02:00
Hendrik Jan Thomassen 3d5be2aa85 unlink.2: Improve EBUSY description
The current version of the page says (under ERRORS):

> EBUSY (not on Linux)
>  The  file pathname cannot be unlinked because it is being
>  used by the system or another process and the
>  implementation considers this an error.

But if you look in the kernel source file fs/namei.c
at routine may_delete() you'll see two occasions where
an EBUSY is generated. So the above "not on Linux" is wrong.

I suggest that this '(not on Linux)' be removed. It may
also improve the page if the commentary is reworded to give a
better description of the two situations. Something along
the lines of:
> The file pathname cannot be unlinked because it is being used
> by the system, e.g. if some (relative) rootdir is mounted upon it,
> or because the NFS client software created it to represent an
> active but otherwise nameless inode ("NFS silly renamed").

Just FYI: the NFS silly rename (you'll find this term mentioned
in the kernel source code) is described at:
       http://nfs.sourceforge.net/#section_d
under section D2. The reason I found this manpage bug is because
I stumbled upon one of these silly renamed files, and an strace
of the rm-command revealed the EBUSY return errno.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Petr Pisar 31483837fc console_codes.4: Add ESC [ 3 J
Linux 3.0 (commit f8df13e0a901fe55631fed66562369b4dba40f8b)
implements \E[3J to allow scrambling content of console
including scroll-back buffer
(http://thread.gmane.org/gmane.linux.kernel/1125792).

This is useful at terminal lock to disallow attacker to scroll
visible window back and to see sensitive data. Other \E[J sequences
do not blank history.

\E[3J is superset of \E[2J. In other words, it clears visible screen too.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk c751683c17 unix.7: Add pointer to cmsg(3) for an example of use of SCM_RIGHTS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 3c5faf1171 crypt.3: Fix header file and feature test macro requirements for crypt_r()
Reported-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 12e263f178 open.2: wfix
Reported-by: Graham Gower <graham.gower@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Regid Ichira 20479b6639 fflush.3: Fix wording error
See http://bugs.debian.org/cgi-bin/bugreport.cgi?614021

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 4c4d76cd30 memcmp.3: Clarify that comparison interprets bytes as "unsigned char"
Reported-by: Sebastian Unger <sebunger@gmx.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Tomislav Jonjic 612144c541 timerfd_create.2: Fix small error in description of timerfd_settime()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 963da6c54d mlock.2: Clarify EINVAL error
See http://bugs.debian.org/cgi-bin/bugreport.cgi?625747

Reported-by: Brian M. Carlson <sandals@crustytoothpaste.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Simon Paillard 3cbd3fee32 get_mempolicy.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 1e8a0addef execve.2: Note that the first argv[] value should contain name of executable
Reported-by: Sebastian Geiger <sbastig@gmx.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Tolga Dalman 866ed7369f sendfile.2: Add an explicit reference to splice(2)
Unlike sendfile(), splice() can transfer data
between a pair of sockets.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 009cdc2239 timerfd_create.2: Note behavior when timerdfd_settime() old_value is NULL
See http://bugs.debian.org/cgi-bin/bugreport.cgi?641513
timerfd_settime(2) states that "The old_value argument returns a
structure containing the setting of the timer that was current at
the time of the call"; however, it does not mention that the
caller can pass NULL to ignore that value.  Only the example
shows that the caller can pass NULL.

Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk bb0fed2e8a sendfile.2: Shift text on falling back to read()/write() to NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk c8a58c6aa0 sendfile.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Akira Fujita fe0ed23f6f sendfile.2: Since 2.6.33, 'out_fd' can refer to any file type
Linux kernel commit cc56f7de7f00d188c7c4da1e9861581853b9e92f
meant sendfile(2) can work with any output file.
Therefore the 'out_fd' of sendfile(2) can refer to any file
(since Linux 2.6.33).

Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk c39f51b0f2 syscalls.2: Update to mention 3.x kernel series
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 622d2c7229 syscalls.2: Update kernel version at head of syscall list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk c28d4af607 lockf.3: ERRORS: EBADF can also occur for nonwritable file descriptor
As noted in the DESCRIPTION, the file descriptor must be writable
in order to place a lock.

Reported-by: Mikel Ward <mikel@mikelward.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk a2f4e5a8ba time.2: NOTES: Fix description of "Seconds since the Epoch"
Reported-by: Alexander Schuch <Alex.Schuch@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Michael Kerrisk 23b903297e siginterrupt.3: Remove misleading sentence about signal(2) and system call interruption
Reported-by: Luis Javier Merino <ninjalj@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Simon Paillard c3074d7061 fallocate.2, kexec_load.2, poll.2, spu_run.2, atan2.3, cbrt.3, clock_getcpuclockid.3, end.3, frexp.3, getgrouplist.3, getifaddrs.3, matherr.3, modf.3, pow.3, pthread_getattr_np.3, pthread_getcpuclockid.3, sched_getcpu.3, tgamma.3, mouse.4, proc.5, feature_test_macros.7, spufs.7: Global fix: properly escape minus sign
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:48 +02:00
Simon Paillard 5b64c2d109 sigevent.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Simon Paillard 87f05833fb operator.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Seonghun Lim c658470df6 hsearch.3: Update ERRORS section
EINVAL can occur for hdestroy_r().
EINVAL can't occur for hcreate().
Other minor fixes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk 536bc96676 realpath.3: Fix EINVAL error
Since glibc 2.3, resolved_path can be non-NULL (with the
semantics already documented in the page).

Reported-by: Seonghun Lim <wariua@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk ec3cf7a42e mlock.2: Simplify and correct text for EPERM error
Reported-by: Seonghun Lim <wariua@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Seonghun Lim 7ac6478bdf err.3: Clean up description of error message source
In the second paragraph of DESCRIPTION section, one of the
sources of error messages is incorrect: the four functions obtain
error message only from errno, and "a code" is just relevant
with errc() and warnc(), which are not present on Linux.
see http://www.unix.com/man-page/freebsd/3/ERR/ .

Then, the third paragraph becomes a duplicate.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk 74da838c0d getrlimit.2: Fix example program and add _FILE_OFFSET_BITS requirement
Reported-by: Seonghun Lim <wariua@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk 33b7fff565 termios.3: Added description of SWTCH character
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk 489e425dfa termios.3: Add names of terminal special characters
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk 91e2779f87 termios.3: List terminal special characters in alphabetical order
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk a6639d0979 termios.3: Add a description of STATUS character
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk d8b24e6ee6 termios.3: Use "terminal special characters" consistently throughout page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00
Michael Kerrisk 49438ab7ca wcstombs.3: SEE ALSO: add mbstowcs(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2011-09-16 07:00:47 +02:00