Commit Graph

4042 Commits

Author SHA1 Message Date
Michael Kerrisk 726663fd9d bind.2, connect.2, create_module.2, delete_module.2, execve.2, get_robust_list.2, getpriority.2, getrusage.2, init_module.2, link.2, listen.2, mbind.2, open.2, poll.2, query_module.2, readlink.2, recv.2, remap_file_pages.2, sched_setaffinity.2, semop.2, send.2, stat.2, stime.2, syscall.2, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, remquo.3, rtime.3, sched_getcpu.3, stpcpy.3, stpncpy.3, strcasecmp.3, system.3, fd.4, proc.5, ip.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:31:12 +02:00
Michael Kerrisk 77500b7e54 bind.2, connect.2, listen.2, send.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk 16f7b04c23 send.2: ERRORS: Add EAGAIN for ephemeral port range exhaustion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk cbe3d857bd listen.2: ERRORS: Add EADDRINUSE for ephemeral port range exhaustion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk 9b533686d8 bind.2: ERRORS: Add EADDRINUSE for ephemeral port range exhaustion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk ac7477eb7a connect.2: ERRORS: Add EADDRNOTAVAIL for ephemeral port range exhaustion
Verified from testing and the kernel source.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745775

Reported-by: William Morriss <wjmelements@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 2f3c91a48f connect.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 3a4b02b2f2 execve.2: Note SIGKILL case when execve() fails beyond the point of no return
Reported-by: Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes da30ae718f poll.2: Add <signal.h> to synopsis for ppoll()
One needs to #include <signal.h> to get the definition of the
type (sigset_t) of the mask argument to ppoll().

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes b93d8ccadc mbind.2: Fix prototype for mbind(2)
The nmask argument is const. The return type in numaif.h is long.
(Well, at least <numaif.h> says nmask is const. The current kernel
does not define it as a const argument, but sys_mbind() only
passes it to get_nodes(), which does treat it as const.)

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 24313b880d syscall.2: Fix prototype for syscall(2)
The first argument and the return value of syscall() has type long,
not int.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 531b5b69b4 get_robust_list.2: Add <sys/types.h> to synopsis of get_robust_list()
If one were to implement wrappers for [gs]et_robust_list() using the
given prototypes, one would also have to include sys/types.h to get
a definition of size_t.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 475b1ecfcd sched_setaffinity.2: Fix prototype for sched_setaffinity()
The mask argument is const.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 9f9bbc5aa3 getpriority.2: Fix prototypes for getpriority() and setpriority()
The who argument has type id_t (which happens to be u32 on linux).

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 4a60035c89 semop.2: Fix prototypes for semop() and semtimedop()
The nsops arguments have type size_t, not unsigned, and the
timeout argument of semtimedop() is const.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes cecb112e8e stime.2: Fix prototype for stime()
The argument is const, both according to the actual header
files and according to <http://www.sco.com/developers/devspecs/vol1a.pdf>.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 479fd9add4 readlink.2: Fix return type of readlinkat()
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 3779bbef74 stat.2: Describe feature test macro requirements for file type test macros
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728240

Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk ff3976ceef stat.2: Move text on S_I*() macros to follow text on S_I* macros
That ordering is more logical

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 5c3122b1b3 stat.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk c2033cfe6c stat.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk afb9bd5d77 stat.2: Update FTM requirements for lstat()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk ff0afc3fca stat.2: Split discussion of 'st_mode' fields into type and permissions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 51c6aa6e63 stat.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 7784c37d7c send.2: Add details on various 'msghdr' fields
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 85b1cf3cdc send.2: Add some subheadings under DESCRIPTION
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk f790e827a2 recv.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk ddb4a7c01c recv.2: Clarify details of msg_name and msg_namelen fields
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 6154a29a77 recv.2: ffix: add a paragraph break
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk dcf729f94c recv.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 23d3582041 umount.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:53 +02:00
Michael Kerrisk 4ec5bffac9 link.2: Tweaks to Andy Lutomirski's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:53 +02:00
Andy Lutomirski 7dee406bc4 link.2, open.2: Update AT_EMPTY_PATH and O_PATH documentation
The current text reflects the general worry in the kernel about
recipients of O_PATH fds being able to hardlink the referenced
files.  It turns out that it was possible to link these files
regardless of any possible security concerns.

Linux 3.11 removes the capability check in AT_EMPTY_PATH.
I expect that this functionality will be generally useful,
so let's document it better.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:53 +02:00
Michael Kerrisk dff25141a5 open.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:53 +02:00
Michael Kerrisk 7a085379e4 remap_file_pages.2: Tweaks to Andy Lutomirski's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:44 +02:00
Andy Lutomirski 8fd1fd303a remap_file_pages.2: remap_file_pages() has no benefit for real files
Linux commit 3ee6dafc677a68e461a7ddafc94a580ebab80735 caused
remap_file_pages to be emulated when used on real file.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:15:37 +02:00
Michael Kerrisk 4a9c7a5ecb create_module.2, delete_module.2, init_module.2, query_module.2: Clarify glibc header file declaration/ABI wrapper details
create_module(), delete_module(), init_module(), and
query_module() are not declared in header files, but
through an accident of history glibc provides an ABI
for them that it continues to maintain, for
compatibility reasons.

Reported-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:15:37 +02:00
Michael Kerrisk 1205c84585 getrusage.2: _GNU_SOURCE must be defined to obtain RUSAGE_THREAD definition
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746569

Reported-by: Bill Allombert <ballombe@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:15:37 +02:00
Michael Kerrisk ffb30e75da Removed trailing white space at end of lines 2014-05-08 11:04:30 +02:00
Michael Kerrisk d6fa0283d3 fallocate.2, open_by_handle_at.2, rename.2, syscalls.2, termios.3, inotify.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:03:36 +02:00
Michael Kerrisk 30821db82e open.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 10:09:17 +02:00
Michael Kerrisk b913672618 sched_setscheduler.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 10:08:11 +02:00
Michael Kerrisk d4a12c12eb fanotify_mark.2: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-07 10:10:28 +02:00
Michael Kerrisk 8d605e5515 fanotify_init.2: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-07 10:10:28 +02:00
Simon Paillard b4112efb58 execve.2, getuid.2, stat.2, termios.3, ttyslot.3, glob.7: ffix: UNIX V6 or V7: use nonbreaking space
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-07 10:10:28 +02:00
John Marshall 3ad65ff004 open.2: wfix
Signed-off-by: John Marshall <jm18@sanger.ac.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-06 14:41:52 +02:00
Michael Kerrisk b9ddebe2c8 fallocate.2: wfix
Reported-by: Lukáš Czerner <lczerner@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-06 12:43:27 +02:00
Michael Kerrisk 4cb2774210 fallocate.2: Minor tweaks to FALLOC_FL_ZERO_RANGE text
Reported-by: Lukáš Czerner <lczerner@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-05 21:42:51 +02:00
Michael Kerrisk a511151119 process_vm_readv.2: Add feature test macro requirements
The _GNU_SOURCE FTM must be defined.

Reported-by: Stijn Hinterding <contact@stijnhinterding.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-05 20:05:12 +02:00
Lukas Czerner 5737bfa0dc fallocate.2: FALLOC_FL_ZERO_RANGE on ext4 works only for extent-based files
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-05 14:44:58 +02:00