Commit Graph

7816 Commits

Author SHA1 Message Date
Eugen Dedu 1463d77202 iso_8859-1.7: Add "-" for SOFT HYPHEN
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156154

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 19:12:38 +12:00
Michael Kerrisk afd6f6c5ea fopen.3: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:29 +12:00
Michael Kerrisk 4d9edb6e7e fopen.3: BUGS: Note limitation on number of flag characters parsed in 'mode' 2012-04-22 14:48:29 +12:00
Michael Kerrisk d33e84666f fopen.3: Document ",ccs=string" feature of 'mode' for fopen()/freopen()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:28 +12:00
Michael Kerrisk 78a9ad2522 fopen.3: Note that 'c' and 'e' flags are ignored for fdopen()
Determined from reading libio/iofdopen.c.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:28 +12:00
Michael Kerrisk 20e41f3f02 fopen.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:28 +12:00
Michael Kerrisk 96285a93ed fopen.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:28 +12:00
Michael Kerrisk 24a690f714 locale.7: srcfix: Add FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:28 +12:00
Michael Kerrisk f26825206d strerror.3: Note how to use 'errno' to detect errors when calling strerror()
Reviewd-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 14:48:08 +12:00
Eric Blake 8ca6ceb0cf strerror.3: Improve strerror_r() description
POSIX requires that perror() not modify the static storage
returned by strerror().  POSIX 2008 and C99 both require that
strerror() never return NULL (a strerror() that always
returns "" for all inputs is valid for C99, but not for POSIX).

http://sourceware.org/bugzilla/show_bug.cgi?id=12204
documents glibc's change to come into compliance with POSIX
regarding strerror_r() return value.  The GNU strerror_r() use
of 'buf' was confusing - I ended up writing a test program that
proves that 'buf' is unused for valid 'errnum', but contains
truncated "unknown message" for out-of-range 'errnum'.

See also http://austingroupbugs.net/view.php?id=382

Reviewed-by: Stefan Puiu <stefan.puiu@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 12:13:31 +12:00
Bernhard Walle a5fa6dfd19 strerror.3: Correct description of error return for XSI strerror_r()
The XSI-compliant version of strerror_r() doesn't return -1 on
error and set errno. Instead, a positive error number is returned.
That's what POSIX says:

    Upon successful completion, strerror_r() shall return 0.
    Otherwise, an error number shall be returned to indicate
    the error.

I tested with an invalid error number. While some implementations
seem to write "Unknown error xxx" into the supplied buffer, some
others don't and only return EINVAL. The latest glibc 2.14.1 from
Arch Linux belongs to the first category while eglibc 2.13 from
current Debian testing belongs to the second category.

However, both implementation are correct according to POSIX. So I
think the manpage was wrong and POSIX and the implementations are
correct.

Signed-off-by: Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 11:09:37 +12:00
Michael Kerrisk a146d9cccd fchmodat.2: Improve discussion of difference between wrapper and underlying syscall
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 07:09:18 +12:00
Michael Kerrisk 0364dd73e4 fchmodat.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-22 06:55:30 +12:00
Michael Kerrisk 3c8d6131e8 mkstemp.3: Add "mkstemps" and "mkostemps" to NAME line
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-21 11:54:11 +12:00
Michael Kerrisk 66dd9100d8 posix_openpt.3: Add some details on use of the slave pathname
An explicit pointer to ptsname(3) is useful, as is a note
of the fact that the slave device pathname exists only as
long as the master device is held open.

Reported-by: Vadim Mikhailov <vadim.mikhailov@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-20 15:56:02 +12:00
Michael Kerrisk cbf94ac122 sigaction.2: Remove mention of raise(3) for SI_USER
For a long time now, glibc's raise(3) didn't yield SI_USER
for the signal receiver, so remove mention of raise(3)
here. The user can deduce the details, if needed, by looking
at the recently updated raise(3) page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-20 13:14:31 +12:00
Michael Kerrisk f24766e312 raise.3: Add some notes on underlying system call that is used
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-20 13:12:40 +12:00
Simon Paillard 6315c1b68f mallopt.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-19 11:09:10 +12:00
Simon Paillard ebca85d8a1 posix_memalign.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-19 11:08:35 +12:00
Michael Kerrisk b546a5284b bind.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-18 09:47:59 +12:00
Michael Kerrisk 361c3c7f7a malloc.3, mallopt.3, mtrace.3: Links to new mcheck.3 page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-18 08:33:39 +12:00
Michael Kerrisk fd2981935b mcheck.3: New man page for mcheck(3) and related functions
Also describes mcheck_check_all(3) mcheck_pedantic(3),
and mprobe(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-18 08:32:35 +12:00
Michael Kerrisk fb07934b18 aio_cancel.3: Rewrite RETURN VALUE section to be clearer
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-18 08:15:11 +12:00
Michael Kerrisk 53fdc589c6 aio_init.3: Remove extraneous "POSIX" from NAME section
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-18 07:49:26 +12:00
Michael Kerrisk ad9345ddd8 Start of man-pages-3.40: updating Changes and Changes.old 2012-04-17 23:42:12 +12:00
Michael Kerrisk 92372a7563 Start of man-pages-3.40: updating .Announce and .lsm files 2012-04-17 23:42:12 +12:00
Michael Kerrisk 5f6398186b Start of man-pages-3.40: renaming .Announce and .lsm files 2012-04-17 23:42:12 +12:00
Michael Kerrisk d2f920ab46 Ready for 3.39 2012-04-17 23:25:43 +12:00
Michael Kerrisk 437e08fc95 fchmodat.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:25:14 +12:00
Michael Kerrisk ffbe890768 div.3, mallopt.3, perror.3, epoll.7, ld.so.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:23:57 +12:00
Michael Kerrisk cd8ce77d78 Changes: Ready for 3.39
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:21:14 +12:00
Jonathan Nieder de1f0d4764 ld.so.8: Document effect of hwcaps on search path
Wording by Aurelien Jarno from Debian glibc's r4701 (2011-06-04).

Addresses http://bugs.debian.org/622385

Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:15 +12:00
Michael Kerrisk 6f92d1d707 Makefile: use "mkdir -p" instead of "-make"
For some casual readers of the Makefile, "mkdir -p" is
probably a little easier to read than the equivalent "-make".

Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:08 +12:00
Michael Kerrisk 50b5741877 Removed trailing white space at end of lines 2012-04-17 23:09:04 +12:00
Michael Kerrisk 69287cb678 prctl.2: Fixes to PR_SET_MM after comments from Cyrill
Remove some FIXMEs and comment out pieces of text that describe
features not yet merged mainline kernel.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 3612be0418 prctl.2: Various edits and improvements to Cyrill's patch
* Wording improvements

* Addition of some FIXMEs for suspicious points

* Addition of various EINVAL cases

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Cyrill Gorcunov 3a620d0b7b prctl.2: Document PR_SET_MM (new in Linux 3.3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Reuben Thomas 5ee63e782f Makefile: Add "uninstall" as a synonym for "remove" target
"uninstall" is the GNU standard name for the target,
so it'll be the one most users are used to.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 37ec86d510 div.3: CONFORMING TO: Add C99
Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 47561b003a memchr.3: Remove mention of terminating null in description of rawmemchr()
Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 3062824dae mmap.2: Clarify NOTES discussion of mmap() versus mmap2()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 02ddee60aa mmap2.2: Clarify that this system call should not be invoked directly
See https://bugzilla.kernel.org/show_bug.cgi?id=42892

Reported-by: Kevin O'Gorman <kevinogorman4@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 1e4e3badf3 unix.7: Add a detail on autobind feature
Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 486fccf2e7 nologin.5: nologin must not only exist, but *be readable* to be effective
Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:09:04 +12:00
Michael Kerrisk 962232bffc times.2: ERRORS: Add EFAULT
As Simone notes, RETURN VALUE says:

On error, (clock_t) -1 is returned, and errno is set appropriately

but no value for errno is specified.  The only error case is
EFAULT, so let's add that.

Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-17 23:08:58 +12:00
Michael Kerrisk 20d58e69bd times.2: tfix: BUGS: clockid_t ==> clock_t
Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-16 08:27:09 +12:00
Michael Kerrisk b857fda584 poll.2: Document semantics of passing zero in 'events' field
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-16 08:27:09 +12:00
Michael Kerrisk 096ca08af4 poll.2: Document negative value in 'fd' field
Reported-by: Michael Welsh Duggan <mwd@cert.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-16 08:27:09 +12:00
Mike Frysinger ef30129360 sigprocmask.2: ERRORS: add EFAULT
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-16 08:27:09 +12:00
Michael Kerrisk 2d350ede02 fchmodat.2: Note difference between glibc wrapper and underlying system call
The wrapper function has a 'flags' argument (which currently
serves no purpose), while the underlying system call does not.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-16 08:26:36 +12:00