Commit Graph

2788 Commits

Author SHA1 Message Date
David Prévot a0d6d887c9 memchr.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:14 +12:00
Michael Kerrisk 6cfe62252d fopencookie.3: Correct description of return for user-supplied 'write' function
See http://sourceware.org/bugzilla/show_bug.cgi?id=2074

Reported-by: Petr Baudis <pasky@ucw.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:14 +12:00
Michael Kerrisk d865ce2de1 syslog.3: Update CONFORMING TO for POSIX.1-2008
POSIX.1-2008 doesn't change any details, but make
that more explicit.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:14 +12:00
Michael Kerrisk e0fba797ae syslog.3: Document behavior when 'ident' argument to openlog() is NULL
See https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/382096

Reported-by: Ralph Corderoy <ralph@inputplus.co.uk >
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:14 +12:00
Michael Kerrisk 2540aee7c2 makedev.3: SYNOPSIS: Correct return types of major() and minor()
See https://bugzilla.redhat.com/show_bug.cgi?id=754188

Reported-by; Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 927ad1fb59 mallopt.3: Fix example program
The example code was a version that was not consistent with
the shell output shown on the page.

Reported-bY: Simon Paillard <spaillard@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 9f0977ffbc mallopt.3: Restore accidentally omitted line in shell session
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Jean-Michel Vourgère 712b0341f5 getaddrinfo.3: Note that AI_ADDRCONFIG is not affected by loopback addresses
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660479

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Yuri Kozlov a74fcea680 wcsncmp.3: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk e70cfff8b5 fmemopen.3: BUGS: Note inconsistent treatment of 'b' in 'mode'
fopen() permits, for example, both "w+b" and "wb+",
but only the latter is meaningful to fmemopen().

See http://sourceware.org/bugzilla/show_bug.cgi?id=12836

Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 005e6bb888 fmemopen.3: BUGS: fmemopen() doesn't correctly set file position in some cases
If 'mode' is append, but 'size' does not cover a null byte
in 'buf', then fmemopen() incorrectly sets the initial file
position to -1, rather than the next byte after the end of
the buffer.

See http://sourceware.org/bugzilla/show_bug.cgi?id=13151

Reported-by: Rich Felker <bugdal@aerifal.cx>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 8f60b371e7 fmemopen.3: BUGS: Append mode does not force writes to append
Append mode correctly sets the initial offset but does
not force subsequent writes to append at end of stream.

See http://sourceware.org/bugzilla/show_bug.cgi?id=13152

Reported-by: Rich Felker <bugdal@aerifal.cx>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 8154f292d8 fmemopen.3: BUGS: fmemopen() incorrectly handles size==0 case
If size is zero, fmemopen() fails, This is surprising behavior,
and not specified in POSIX.1-2008.

See http://sourceware.org/bugzilla/show_bug.cgi?id=11216

Reported-by; Alex Shinn <alexshinn@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 84133057b7 fmemopen.3: BUGS: Note silent ABI change for fmemopen() in glibc 2.9
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 360e0be298 fmemopen.3: Note details of POSIX.1-2008 specification of 'b' in 'mode'
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk d8eca5853d fmemopen.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 9f6ec7b1e8 mallopt.3: SEE ALSO: Add malloc_stats(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 5ff479a45e malloc.3, mallopt.3: SEE ALSO: Add malloc_info(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 1da7358ef9 malloc_stats.3: Remove text referring to mmap(2)
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:13 +12:00
Michael Kerrisk 067568db96 malloc_stats.3: New man page for malloc_stats(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:07 +12:00
Michael Kerrisk a5cbea5f2b malloc_info.3: Point out use of open_memstream()
Note the use of open_memstream() to store XML output
directly into a buffer.

Reported-by: Jakub Jelinek <jakub@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-06 10:25:33 +12:00
Michael Kerrisk 47c3118377 malloc_info.3: New page for malloc_info(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-06 10:25:33 +12:00
Michael Kerrisk 35af1345a1 mallinfo.3: Add xref from 'hblks' explanation to M_MMAP_THRESHOLD in mallopt(3)
Reported-by: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-06 10:25:24 +12:00
Michael Kerrisk e478c637ba mallinfo.3: srcfix: Add FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-27 11:17:10 +12:00
Michael Kerrisk 669aadbba1 mallinfo.3: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-27 11:17:10 +12:00
Michael Kerrisk 3c81c5a456 mallinfo.3: Minor improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-27 11:17:09 +12:00
Michael Kerrisk f704bc68d2 mallinfo.3: Note mallinfo() bug for multiple arenas
Reported-by: Paul Pluzhnikov <ppluzhnikov@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-27 11:17:09 +12:00
Michael Kerrisk 62d874a0f7 mallinfo.3: New page for mallinfo(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-27 11:17:09 +12:00
Michael Kerrisk 3960d7a208 Removed trailing white space at end of lines 2012-04-27 10:58:21 +12:00
Michael Kerrisk 82232e78e9 gettimeofday.2, ptrace.2, sigaction.2, aio_init.3, mpool.3, scandir.3, inotify.7, netdevice.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-26 09:12:59 +12:00
Michael Kerrisk 3326bd1971 scandir.3: Improve EXAMPLE source code: s/0/NULL/ in scandir() call
Reported-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-26 09:12:59 +12:00
Michael Kerrisk dc6a909bc0 strchr.3: srcfix: use . mark-up rather than \fI.\fP
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-24 09:09:26 +12:00
Michael Kerrisk 9640b1b311 memchr.3: Clarify description, omitting mention of "strings" and "characters"
The existing text slipped into talking about characters and
strings, which could mislead readers into thing that, for
example, searches for the byte '\0' are treated specially.
Therefore, rewrite in terms of "bytes" and "memory areas".

At the same time, make a few source file clean-ups.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-24 09:05:08 +12:00
James Hunt 2c4d293c33 strchr.3: Explain behavior when seraching for '\0'
The strchr(3) page does `not explain the behavior if the
character to search for is specified as a null character ('\0').
According to my copy of Harbison and Steele, since the terminator
is considered part of the string, a call such as:

  strchr("hello", '\0')

will return the address of the terminating null in the specified
string.

strchr(3) is inconsistent with index(3) which states:

    "The terminating null byte is considered to be
    a part of the strings."

Adding such a note to strchr(3) is also important since it is not
unreasonable to assume that strchr() will return NULL in this
scenario. This leads to code like the following which is
guaranteed to fail should get_a_char() return '\0':

    char string[] = "hello, world";
    int c = get_a_char();

    if (! strchr(string, c))
        fprintf(stderr, "failed to find character in string\n");

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-24 09:04:40 +12:00
Petr Baudis adc9675dac resolver.3: Note that many options are documented in resolv.conf(5)
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-24 00:09:25 +12:00
James Hunt 96da8065c2 termios.3: tfix: 'IECHO' should be 'ECHO'.
Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 23:40:07 +12:00
Michael Kerrisk f6dc36110c getpwnam.3: Fix discussion of _SC_GETPW_R_SIZE_MAX
The value is not meant to be a maximum (as was specified in
SUSv3) but an initial guess at the required size
(as specified in SUSv4).

Reported-by: Ulrich Drepper <drepper@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 20:21:23 +12:00
Michael Kerrisk f7bae7f86b getgrnam.3: Fix discussion of _SC_GETGR_R_SIZE_MAX
The value is not meant to be a maximum (as was specified in
SUSv3) but an initial guess at the required size
(as specified in SUSv4).

Reported-by: Ulrich Drepper <drepper@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 20:13:16 +12:00
Michael Kerrisk 61474e1b58 gsignal.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 18:59:15 +12:00
Michael Kerrisk ed987e2ee4 rexec.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 12:18:53 +12:00
Michael Kerrisk 6760cb0176 rexec_af.3: New link to rexec.3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 12:18:22 +12:00
Michael Kerrisk 4cd4a6f890 rexec.3: Document rexec_af()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 12:17:44 +12:00
Michael Kerrisk 5b80f0073c iruserok_af.3, rcmd_af.3, rresvport_af.3, ruserok_af.3: New links to rcmd.3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 12:03:33 +12:00
Michael Kerrisk 023a57dc59 rcmd.3: Document "_af" variants of these functions
Document rcmd_af(), rresvport_af(), iruserok_af(), ruserok_af().
Also some restructuring and other clarifications.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 12:01:47 +12:00
Michael Kerrisk aa104c88b7 rcmd.3: Add some details of the rresvport() 'port' argument
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 11:15:45 +12:00
Michael Kerrisk 61d71e01e2 strerror.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 09:25:56 +12:00
Michael Kerrisk 6fb29ca02e strerror.3: Add an example of the kind of string returned by setrerror()
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 09:24:28 +12:00
Michael Kerrisk df21098dee btree.3, dbopen.3, hash.3, mpool.3, recno.3: Note that glibc no longer provides these interfaces
glibc stopped providing these interfaces with v2.2.
Nowadays, the user that finds these pages probably wants
the libdb API, so note this in the page.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=337581

Reported-by: Brian M. Carlson <sandals@crustytoothpaste.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-04-23 07:47:35 +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