]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
12 years agoReady for 3.40 man-pages-3.40
Michael Kerrisk [Thu, 26 Apr 2012 22:58:31 +0000 (10:58 +1200)] 
Ready for 3.40

12 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Thu, 26 Apr 2012 22:58:21 +0000 (10:58 +1200)] 
Removed trailing white space at end of lines

12 years agoprocess_vm_writev.2: Correct target of link
Michael Kerrisk [Thu, 26 Apr 2012 22:57:58 +0000 (10:57 +1200)] 
process_vm_writev.2: Correct target of link

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoChanges: Update for 3.40
Michael Kerrisk [Thu, 26 Apr 2012 22:56:42 +0000 (10:56 +1200)] 
Changes: Update for 3.40

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_readv.2: Further improvements after Mike Frysinger's comments
Michael Kerrisk [Sat, 14 Apr 2012 21:23:18 +0000 (09:23 +1200)] 
process_vm_readv.2: Further improvements after Mike Frysinger's comments

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_readv.2: Cleanups after comments from Mike Frysinger and Christopher Yeoh
Michael Kerrisk [Sat, 14 Apr 2012 01:08:41 +0000 (13:08 +1200)] 
process_vm_readv.2: Cleanups after comments from Mike Frysinger and Christopher Yeoh

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_readv.2: Many additions, rewrites, and clarifications
Michael Kerrisk [Mon, 19 Mar 2012 21:03:55 +0000 (10:03 +1300)] 
process_vm_readv.2: Many additions, rewrites, and clarifications

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_readv.2: Minor tweaks to example code
Michael Kerrisk [Mon, 19 Mar 2012 20:36:56 +0000 (09:36 +1300)] 
process_vm_readv.2: Minor tweaks to example code

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_readv.2: Formatting fixes
Michael Kerrisk [Mon, 19 Mar 2012 20:33:53 +0000 (09:33 +1300)] 
process_vm_readv.2: Formatting fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_writev.2: Link to new process_vm_readv(2) page
Mike Frysinger [Mon, 19 Mar 2012 19:26:16 +0000 (08:26 +1300)] 
process_vm_writev.2: Link to new process_vm_readv(2) page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprocess_vm_readv.2: New page for process_vm_readv(2) and process_vm_writev(2)
Mike Frysinger [Mon, 19 Mar 2012 19:07:13 +0000 (08:07 +1300)] 
process_vm_readv.2: New page for process_vm_readv(2) and process_vm_writev(2)

Cowritten-by: Christopher Yeoh <cyeoh@au1.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agogettimeofday.2, ptrace.2, sigaction.2, aio_init.3, mpool.3, scandir.3, inotify.7...
Michael Kerrisk [Wed, 25 Apr 2012 20:41:05 +0000 (08:41 +1200)] 
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>
12 years agotcp.7: Amend 84b183e
Michael Kerrisk [Wed, 25 Apr 2012 20:23:12 +0000 (08:23 +1200)] 
tcp.7: Amend 84b183e

A change in 2.6.28 restored the 2.2 behavior:
https://lkml.org/lkml/2009/6/30/499

Reported-by: lepton <ytht.net@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoscandir.3: Improve EXAMPLE source code: s/0/NULL/ in scandir() call
Michael Kerrisk [Wed, 25 Apr 2012 05:00:22 +0000 (17:00 +1200)] 
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>
12 years agoclock_getres.2: Clarify difference between CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW
Michael Kerrisk [Wed, 25 Apr 2012 01:02:36 +0000 (13:02 +1200)] 
clock_getres.2: Clarify difference between CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW

Note interactions of these two clocks with discontinuous
adjustments to the system time and NTP/adjtime(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agogettimeofday.2: gettimeofday() is affected by discontinuous jumps in the system time
Michael Kerrisk [Wed, 25 Apr 2012 00:57:59 +0000 (12:57 +1200)] 
gettimeofday.2: gettimeofday() is affected by discontinuous jumps in the system time

Advise reader to use clock_gettime(2), if they need a
monotonically increasing time source.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agogettimeofday.2: SEE ALSO: Add clock_gettime(2)
Michael Kerrisk [Wed, 25 Apr 2012 00:46:32 +0000 (12:46 +1200)] 
gettimeofday.2: SEE ALSO: Add clock_gettime(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprctl.2: srcfix
Michael Kerrisk [Tue, 24 Apr 2012 20:04:11 +0000 (08:04 +1200)] 
prctl.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoprctl.2: Add PR_TASK_PERF_EVENTS_DISABLE and PR_TASK_PERF_EVENTS_ENABLE
Michael Kerrisk [Tue, 24 Apr 2012 16:38:04 +0000 (04:38 +1200)] 
prctl.2: Add PR_TASK_PERF_EVENTS_DISABLE and PR_TASK_PERF_EVENTS_ENABLE

Add some basic documentation of these operations, with a pointer to
tools/perf/design.txt for more information.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoptrace.2: Note SPARC deviation with respect to get/set regs
Michael Kerrisk [Tue, 24 Apr 2012 06:03:38 +0000 (18:03 +1200)] 
ptrace.2: Note SPARC deviation with respect to get/set regs

SPARC reverses the use of 'addr' and 'data' for
PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_SETREGS,
and PTRACE_SETFPREGS.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoinotify.7: Note buffer size that guarantees being able to read at least one event
Michael Kerrisk [Mon, 23 Apr 2012 21:35:45 +0000 (09:35 +1200)] 
inotify.7: Note buffer size that guarantees being able to read at least one event

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoinotify.7: Correct description of size of inotify_event structure
James Hunt [Mon, 23 Apr 2012 21:33:57 +0000 (09:33 +1200)] 
inotify.7: Correct description of size of inotify_event structure

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agostrchr.3: srcfix: use . mark-up rather than \fI.\fP
Michael Kerrisk [Mon, 23 Apr 2012 21:09:26 +0000 (09:09 +1200)] 
strchr.3: srcfix: use . mark-up rather than \fI.\fP

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agomemchr.3: Clarify description, omitting mention of "strings" and "characters"
Michael Kerrisk [Mon, 23 Apr 2012 20:56:35 +0000 (08:56 +1200)] 
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>
12 years agostrchr.3: Explain behavior when seraching for '\0'
James Hunt [Mon, 23 Apr 2012 20:39:33 +0000 (08:39 +1200)] 
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>
12 years agoresolv.conf.5: Document "single-request" option
Petr Baudis [Mon, 23 Apr 2012 12:11:11 +0000 (00:11 +1200)] 
resolv.conf.5: Document "single-request" option

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoresolver.3: Note that many options are documented in resolv.conf(5)
Petr Baudis [Mon, 23 Apr 2012 12:09:25 +0000 (00:09 +1200)] 
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>
12 years agotermios.3: tfix: 'IECHO' should be 'ECHO'.
James Hunt [Mon, 23 Apr 2012 11:40:07 +0000 (23:40 +1200)] 
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>
12 years agoprctl.2: Amend details of PR_SET_PDEATHSIG
Michael Kerrisk [Mon, 23 Apr 2012 09:30:59 +0000 (21:30 +1200)] 
prctl.2: Amend details of PR_SET_PDEATHSIG

The corresponding kernel change from Marchel Holtmann was

    The attached patch fixes a flaw in the "parent process
    death signal" when executing SUID binaries. An
    unprivileged user may send arbitrary signal to a child
    process even if it is running with higher privileges.

    The idea to fix this issue is to reset pdeath_signal not
    only on fork, but also on the execution of a SUID binary.

Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agotcp.7: Correct description for TCP_MAXSEG on modern kernel
lepton [Mon, 23 Apr 2012 09:17:09 +0000 (21:17 +1200)] 
tcp.7: Correct description for TCP_MAXSEG on modern kernel

In tcp.7, about TCP_MAXSEG, it reads

    If this option is set before connection establishment,
    it also changes the MSS value announced to the other
    end in the initial packet.

It is correct for kernel version 2.2, but it is not
correct for modern kernel such as 2.4 and 2.6.
On a linux box with a modern kernel, the setting for
TCP_MAXSEG won't change the MSS value announced to the
other end.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agosocket.7: Correct description of SO_BROADCAST
Michael Kerrisk [Mon, 23 Apr 2012 09:02:31 +0000 (21:02 +1200)] 
socket.7: Correct description of SO_BROADCAST

As reported by Alexey:

socket(7) says:

SO_BROADCAST
  Set  or  get  the broadcast flag. When enabled, datagram sockets
  receive packets sent to a broadcast address and they are allowed
  to  send  packets  to  a  broadcast address.  This option has no
  effect on stream-oriented sockets.

I believe the second sentence is half wrong: when I try it, it
only affects the ability to send broadcast datagrams. You can only
receive broadcast datagrams if you bind to INADDR_ANY and don't
connect. The POSIX standard agrees with my tests and disagrees
with the manpage:

http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_10.html

Reported-by: Alexey Toptygin <alexeyt@freeshell.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agogetpwnam.3: Fix discussion of _SC_GETPW_R_SIZE_MAX
Michael Kerrisk [Mon, 23 Apr 2012 08:21:23 +0000 (20:21 +1200)] 
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>
12 years agogetgrnam.3: Fix discussion of _SC_GETGR_R_SIZE_MAX
Michael Kerrisk [Mon, 23 Apr 2012 08:13:16 +0000 (20:13 +1200)] 
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>
12 years agogsignal.3: ffix
Michael Kerrisk [Mon, 23 Apr 2012 06:59:15 +0000 (18:59 +1200)] 
gsignal.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agorexec.3: grfix
Michael Kerrisk [Mon, 23 Apr 2012 00:18:53 +0000 (12:18 +1200)] 
rexec.3: grfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agorexec_af.3: New link to rexec.3
Michael Kerrisk [Mon, 23 Apr 2012 00:18:22 +0000 (12:18 +1200)] 
rexec_af.3: New link to rexec.3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agorexec.3: Document rexec_af()
Michael Kerrisk [Mon, 23 Apr 2012 00:17:44 +0000 (12:17 +1200)] 
rexec.3: Document rexec_af()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoiruserok_af.3, rcmd_af.3, rresvport_af.3, ruserok_af.3: New links to rcmd.3
Michael Kerrisk [Mon, 23 Apr 2012 00:03:33 +0000 (12:03 +1200)] 
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>
12 years agorcmd.3: Document "_af" variants of these functions
Michael Kerrisk [Mon, 23 Apr 2012 00:01:47 +0000 (12:01 +1200)] 
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>
12 years agorcmd.3: Add some details of the rresvport() 'port' argument
Michael Kerrisk [Sun, 22 Apr 2012 23:15:45 +0000 (11:15 +1200)] 
rcmd.3: Add some details of the rresvport() 'port' argument

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agofallocate.2: Fix description of ENOSYS and EOPNOTSUP errors
Michael Kerrisk [Sun, 22 Apr 2012 22:07:47 +0000 (10:07 +1200)] 
fallocate.2: Fix description of ENOSYS and EOPNOTSUP errors

As reported in https://bugzilla.redhat.com/show_bug.cgi?id=680214
the descriptions of ENOSYS and EOPNOTSUP are not corrected

Reported-by: John Sullivan <jsrhbz@kanargh.force9.co.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agostrerror.3: srcfix
Michael Kerrisk [Sun, 22 Apr 2012 21:25:56 +0000 (09:25 +1200)] 
strerror.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agostrerror.3: Add an example of the kind of string returned by setrerror()
Michael Kerrisk [Sun, 22 Apr 2012 21:24:28 +0000 (09:24 +1200)] 
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>
12 years agonetdevice.7: Document some SIOC configuration ioctls
Brian F. G. Bidulock [Sun, 22 Apr 2012 20:29:44 +0000 (08:29 +1200)] 
netdevice.7: Document some SIOC configuration ioctls

This patch adds common but missing SIOC configuration ioctls to
the netdevice.7 manual pages that are not documented anywhere
else. SIOCSIFPFLAGS and SIOCGIFPFLAGS are linux-specific. Flag
values come from Linux 2.6.25 kernel headers for sockios. The
others are standard BSD ioctls that have alwasy been implemented
by Linux and were verified from inspecting netdevice.c kernel
code.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agosend.2: Document EACCES error case for UDP
Stefan Puiu [Sun, 22 Apr 2012 20:15:01 +0000 (08:15 +1200)] 
send.2: Document EACCES error case for UDP

It seems sendto() can return EACCES for UDP as well; the current
man page in git only says it can return EACCES for Unix sockets.

I was able to make sendto() return EACCES if I try to send from
192.168.1.1/24 to 192.168.1.0. I think the relevant code (in
kernel 2.6.38, but also present in 2.6.7 and 2.6.32, the 2 kernels
we use) is this (net/ipv4/udp.c, udp_sendmsg()):

 910                err = -EACCES;
 911                if ((rt->rt_flags & RTCF_BROADCAST) &&
 912                    !sock_flag(sk, SOCK_BROADCAST))
 913                        goto out;

So I guess if the kernel finds a route to the destination and
it's a broadcast route (and the socket doesn't have the broadcast
flag), then it returns EACCES.

I can verify the behavior with a very simple program (attached).
I've run it on my Ubuntu 10.10 (2.6.35 kernel) and got this:

stefan@spuiu-vml2:~/src/test/broadcast$ ./broadcast_test 10.205.20.94
10.205.20.1
sendto() returned 4
stefan@spuiu-vml2:~/src/test/broadcast$ ./broadcast_test 10.205.20.94
10.205.20.0
sendto() returned negative, errno: 13/Permission denied

(10.205.20.94 is my local IP, of course).

=====
    #include <stdio.h>

    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <errno.h>
    #include <stdlib.h>

    int main(int argc, char **argv)
    {
        int sock;

        if (argc < 2) {
            printf("Usage: %s local_address destination_address\n", argv[0]);
            exit(1);
        }

        sock = socket(AF_INET, SOCK_DGRAM, 0);
        if (sock < 0) {
            perror("socket");
            return -1;
        }

        struct sockaddr_in local_addr;
        local_addr.sin_family = AF_INET;
        local_addr.sin_port = htons(1234);
        local_addr.sin_addr.s_addr = inet_addr(argv[1]);
        int ret = bind(sock, (struct sockaddr *) &local_addr, sizeof(local_addr));
        if (ret < 0) {
            perror("bind");
            return -1;
        }

        struct sockaddr_in remote_addr;
        remote_addr.sin_family = AF_INET;
        remote_addr.sin_port = htons(1234);
        remote_addr.sin_addr.s_addr = inet_addr(argv[2]);
        ret = sendto(sock, "blah", 4, 0, (struct sockaddr *)&remote_addr, sizeof(remote_addr));
        if (ret < 0) {
            printf("sendto() returned negative, errno: %d/%m\n", errno);
        }
        else {
            printf("sendto() returned %d\n", ret);
        }

        return 0;
    }
=====

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agobtree.3, dbopen.3, hash.3, mpool.3, recno.3: Note that glibc no longer provides these...
Michael Kerrisk [Sun, 22 Apr 2012 19:47:35 +0000 (07:47 +1200)] 
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>
12 years agoiso_8859-1.7: Add "-" for SOFT HYPHEN
Eugen Dedu [Sun, 22 Apr 2012 07:12:38 +0000 (19:12 +1200)] 
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>
12 years agofopen.3: spfix
Michael Kerrisk [Sun, 22 Apr 2012 02:44:27 +0000 (14:44 +1200)] 
fopen.3: spfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agofopen.3: BUGS: Note limitation on number of flag characters parsed in 'mode'
Michael Kerrisk [Sun, 22 Apr 2012 02:40:59 +0000 (14:40 +1200)] 
fopen.3: BUGS: Note limitation on number of flag characters parsed in 'mode'

12 years agofopen.3: Document ",ccs=string" feature of 'mode' for fopen()/freopen()
Michael Kerrisk [Sun, 22 Apr 2012 02:40:25 +0000 (14:40 +1200)] 
fopen.3: Document ",ccs=string" feature of 'mode' for fopen()/freopen()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agofopen.3: Note that 'c' and 'e' flags are ignored for fdopen()
Michael Kerrisk [Sun, 22 Apr 2012 01:47:59 +0000 (13:47 +1200)] 
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>
12 years agofopen.3: wfix
Michael Kerrisk [Sun, 22 Apr 2012 01:38:00 +0000 (13:38 +1200)] 
fopen.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agofopen.3: wfix
Michael Kerrisk [Sun, 22 Apr 2012 01:33:29 +0000 (13:33 +1200)] 
fopen.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agolocale.7: srcfix: Add FIXME
Michael Kerrisk [Sun, 22 Apr 2012 01:29:37 +0000 (13:29 +1200)] 
locale.7: srcfix: Add FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agostrerror.3: Note how to use 'errno' to detect errors when calling strerror()
Michael Kerrisk [Sun, 22 Apr 2012 00:18:29 +0000 (12:18 +1200)] 
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>
12 years agostrerror.3: Improve strerror_r() description
Eric Blake [Sun, 22 Apr 2012 00:13:31 +0000 (12:13 +1200)] 
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>
12 years agostrerror.3: Correct description of error return for XSI strerror_r()
Bernhard Walle [Sat, 21 Apr 2012 23:09:37 +0000 (11:09 +1200)] 
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>
12 years agofchmodat.2: Improve discussion of difference between wrapper and underlying syscall
Michael Kerrisk [Sat, 21 Apr 2012 19:09:18 +0000 (07:09 +1200)] 
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>
12 years agofchmodat.2: wfix
Michael Kerrisk [Sat, 21 Apr 2012 18:55:30 +0000 (06:55 +1200)] 
fchmodat.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agomkstemp.3: Add "mkstemps" and "mkostemps" to NAME line
Michael Kerrisk [Fri, 20 Apr 2012 23:54:11 +0000 (11:54 +1200)] 
mkstemp.3: Add "mkstemps" and "mkostemps" to NAME line

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoposix_openpt.3: Add some details on use of the slave pathname
Michael Kerrisk [Fri, 20 Apr 2012 03:53:32 +0000 (15:53 +1200)] 
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>
12 years agosigaction.2: Remove mention of raise(3) for SI_USER
Michael Kerrisk [Fri, 20 Apr 2012 01:14:31 +0000 (13:14 +1200)] 
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>
12 years agoraise.3: Add some notes on underlying system call that is used
Michael Kerrisk [Fri, 20 Apr 2012 01:12:40 +0000 (13:12 +1200)] 
raise.3: Add some notes on underlying system call that is used

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agomallopt.3: ffix
Simon Paillard [Wed, 18 Apr 2012 23:09:10 +0000 (11:09 +1200)] 
mallopt.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoposix_memalign.3: ffix
Simon Paillard [Wed, 18 Apr 2012 23:08:35 +0000 (11:08 +1200)] 
posix_memalign.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agobind.2: wfix
Michael Kerrisk [Tue, 17 Apr 2012 21:47:59 +0000 (09:47 +1200)] 
bind.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agomalloc.3, mallopt.3, mtrace.3: Links to new mcheck.3 page
Michael Kerrisk [Tue, 17 Apr 2012 20:33:39 +0000 (08:33 +1200)] 
malloc.3, mallopt.3, mtrace.3: Links to new mcheck.3 page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agomcheck.3: New man page for mcheck(3) and related functions
Michael Kerrisk [Tue, 17 Apr 2012 20:32:35 +0000 (08:32 +1200)] 
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>
12 years agoaio_cancel.3: Rewrite RETURN VALUE section to be clearer
Michael Kerrisk [Tue, 17 Apr 2012 20:15:11 +0000 (08:15 +1200)] 
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>
12 years agoaio_init.3: Remove extraneous "POSIX" from NAME section
Michael Kerrisk [Tue, 17 Apr 2012 19:49:26 +0000 (07:49 +1200)] 
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>
12 years agoStart of man-pages-3.40: updating Changes and Changes.old
Michael Kerrisk [Tue, 17 Apr 2012 11:42:12 +0000 (23:42 +1200)] 
Start of man-pages-3.40: updating Changes and Changes.old

12 years agoStart of man-pages-3.40: updating .Announce and .lsm files
Michael Kerrisk [Tue, 17 Apr 2012 11:42:12 +0000 (23:42 +1200)] 
Start of man-pages-3.40: updating .Announce and .lsm files

12 years agoStart of man-pages-3.40: renaming .Announce and .lsm files
Michael Kerrisk [Tue, 17 Apr 2012 11:42:12 +0000 (23:42 +1200)] 
Start of man-pages-3.40: renaming .Announce and .lsm files

12 years agoReady for 3.39 man-pages-3.39
Michael Kerrisk [Tue, 17 Apr 2012 11:25:43 +0000 (23:25 +1200)] 
Ready for 3.39

12 years agofchmodat.2: tstamp
Michael Kerrisk [Tue, 17 Apr 2012 11:25:14 +0000 (23:25 +1200)] 
fchmodat.2: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agodiv.3, mallopt.3, perror.3, epoll.7, ld.so.8: tstamp
Michael Kerrisk [Tue, 17 Apr 2012 11:23:57 +0000 (23:23 +1200)] 
div.3, mallopt.3, perror.3, epoll.7, ld.so.8: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoChanges: Ready for 3.39
Michael Kerrisk [Tue, 17 Apr 2012 11:21:14 +0000 (23:21 +1200)] 
Changes: Ready for 3.39

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agold.so.8: Document effect of hwcaps on search path
Jonathan Nieder [Mon, 16 Apr 2012 20:38:16 +0000 (08:38 +1200)] 
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>
12 years agoMakefile: use "mkdir -p" instead of "-make"
Michael Kerrisk [Mon, 16 Apr 2012 16:34:49 +0000 (04:34 +1200)] 
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>
12 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Mon, 16 Apr 2012 07:36:48 +0000 (19:36 +1200)] 
Removed trailing white space at end of lines

12 years agoprctl.2: Fixes to PR_SET_MM after comments from Cyrill
Michael Kerrisk [Sun, 15 Apr 2012 22:31:09 +0000 (10:31 +1200)] 
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>
12 years agoprctl.2: Various edits and improvements to Cyrill's patch
Michael Kerrisk [Sun, 15 Apr 2012 03:53:45 +0000 (15:53 +1200)] 
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>
12 years agoprctl.2: Document PR_SET_MM (new in Linux 3.3)
Cyrill Gorcunov [Sun, 15 Apr 2012 01:03:10 +0000 (13:03 +1200)] 
prctl.2: Document PR_SET_MM (new in Linux 3.3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoMakefile: Add "uninstall" as a synonym for "remove" target
Reuben Thomas [Mon, 16 Apr 2012 05:39:10 +0000 (17:39 +1200)] 
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>
12 years agodiv.3: CONFORMING TO: Add C99
Michael Kerrisk [Mon, 16 Apr 2012 05:36:00 +0000 (17:36 +1200)] 
div.3: CONFORMING TO: Add C99

Reported-by: Reuben Thomas <rrt@sc3d.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agomemchr.3: Remove mention of terminating null in description of rawmemchr()
Michael Kerrisk [Mon, 16 Apr 2012 05:27:57 +0000 (17:27 +1200)] 
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>
12 years agommap.2: Clarify NOTES discussion of mmap() versus mmap2()
Michael Kerrisk [Mon, 16 Apr 2012 03:56:09 +0000 (15:56 +1200)] 
mmap.2: Clarify NOTES discussion of mmap() versus mmap2()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agommap2.2: Clarify that this system call should not be invoked directly
Michael Kerrisk [Mon, 16 Apr 2012 03:43:05 +0000 (15:43 +1200)] 
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>
12 years agounix.7: Add a detail on autobind feature
Michael Kerrisk [Sun, 15 Apr 2012 21:05:00 +0000 (09:05 +1200)] 
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>
12 years agonologin.5: nologin must not only exist, but *be readable* to be effective
Michael Kerrisk [Sun, 15 Apr 2012 20:54:59 +0000 (08:54 +1200)] 
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>
12 years agotimes.2: ERRORS: Add EFAULT
Michael Kerrisk [Sun, 15 Apr 2012 20:51:50 +0000 (08:51 +1200)] 
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>
12 years agotimes.2: tfix: BUGS: clockid_t ==> clock_t
Michael Kerrisk [Sun, 15 Apr 2012 20:07:05 +0000 (08:07 +1200)] 
times.2: tfix: BUGS: clockid_t ==> clock_t

Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agopoll.2: Document semantics of passing zero in 'events' field
Michael Kerrisk [Sun, 15 Apr 2012 12:03:04 +0000 (00:03 +1200)] 
poll.2: Document semantics of passing zero in 'events' field

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agopoll.2: Document negative value in 'fd' field
Michael Kerrisk [Sun, 15 Apr 2012 11:45:42 +0000 (23:45 +1200)] 
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>
12 years agosigprocmask.2: ERRORS: add EFAULT
Mike Frysinger [Sun, 15 Apr 2012 11:24:51 +0000 (23:24 +1200)] 
sigprocmask.2: ERRORS: add EFAULT

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agofchmodat.2: Note difference between glibc wrapper and underlying system call
Michael Kerrisk [Sun, 15 Apr 2012 11:15:33 +0000 (23:15 +1200)] 
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>
12 years agofchmodat.2: ffix
Michael Kerrisk [Sun, 15 Apr 2012 10:57:22 +0000 (22:57 +1200)] 
fchmodat.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoperror.3: Note that use of 'sys_errlist' is deprecated
Michael Kerrisk [Sun, 15 Apr 2012 10:34:40 +0000 (22:34 +1200)] 
perror.3: Note that use of 'sys_errlist' is deprecated

Reported-by: Jesus Otero <jesus.otero@rysg.es>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agoperror.3: ffix
Michael Kerrisk [Sun, 15 Apr 2012 10:27:54 +0000 (22:27 +1200)] 
perror.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
12 years agosysconf.3: Add mention of _SC_SYMLOOP_MAX
Michael Kerrisk [Sun, 15 Apr 2012 10:15:52 +0000 (22:15 +1200)] 
sysconf.3: Add mention of _SC_SYMLOOP_MAX

Reported-by: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>