Commit Graph

2174 Commits

Author SHA1 Message Date
Michael Kerrisk 2d1806c94d sethostid.2: Change link to point to new page location in Section 3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 07:02:55 +13:00
Michael Kerrisk 1f4f66a924 gethostid.2: Move to Section 3
The interfaces documented in this page are purely glibc.

Reported-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 07:00:44 +13:00
Michael Kerrisk 53e819d017 syscalls.2: Kerenl 2.6.28 adds accept4()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-06 12:32:56 -05:00
Michael Kerrisk 8ccde1f0a5 Removed trailing white space at end of lines 2008-12-05 22:53:52 -05:00
Michael Kerrisk d308da3058 pread.2: tfix 2008-12-05 22:47:26 -05:00
Michael Kerrisk 6eb334b2cf bind.2, rcmd.3, capabilities.7, ip.7: Global fix: s/reserved port/privileged port/
Some pages used one term, some pages the other term;
make some consistency.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:26 -05:00
Michael Kerrisk dcaec854fe syslog.2: Minor rewording
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:25 -05:00
Michael Kerrisk 03d5ef0d71 signal.2: grfix 2008-12-05 22:47:24 -05:00
Michael Kerrisk a3680fde95 setfsgid.2, setfsuid.2: Simplify version information and move to a VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:24 -05:00
Michael Kerrisk 8b98e6fc31 select.2: Rewrote text describing feature test macro requirements for pselect()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:24 -05:00
Michael Kerrisk 21c39e5919 select_tut.2: Fix SHUT_FD* macros in example program
Add "do {} while (0)"

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:24 -05:00
Michael Kerrisk 54781a2395 select_tut.2: wsfix in example program 2008-12-05 22:47:24 -05:00
Michael Kerrisk 5af0d2f5d3 pread.2: Minor rewording
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:23 -05:00
Michael Kerrisk d95f2e31bd mq_getsetattr.2: Minor wording fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:23 -05:00
Michael Kerrisk 12bbec1b16 getsid.2: Simplified version information and moved to a new VERSIONS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:23 -05:00
Michael Kerrisk 5e4dc2691b open.2, stat.2: tfix s/_FILE_OFF_SET_BITS/_FILE_OFFSET_BITS/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Chris Heath <chris@heathens.co.nz>
2008-12-05 22:47:18 -05:00
Michael Kerrisk 9dcc46058a stat.2: Document EOVERFLOW error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Andre Majorel <aym-xunil@teaser.fr>
2008-12-05 22:47:18 -05:00
Michael Kerrisk 7c7fb55221 open.2: EFBIG error is now EOVERFLOW (since Linux 2.6.24)
When a 32-bit app opens a file whose size is too big to be
represented in 31-bits, POSIX.1 specifies the error EOVERFLOW.
Linux used to give EFBIG for this case, but 2.6.24 fixed this.

Also, add some text to describe the error scenario in
more detail.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:18 -05:00
Michael Kerrisk fecaa19a28 accept.2: Reorder ERRORS list
Some errors were listed under a separate "may" heading.
There's probably no real need to do this; integrate
those errors into the main list.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:47:17 -05:00
Michael Kerrisk 9baab2ae47 accept4.2: New link to accept.2
accept.2 now documents the new accept4() system call.
2008-12-05 22:47:17 -05:00
Michael Kerrisk 6f74cfbb4b accept.2: Document accept4() system call, new in Linux 2.6.28 2008-12-05 22:47:17 -05:00
Michael Kerrisk cc883662a3 uname.2: DESCRIPTION: Point reader at NOTES for further info on field lengths
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Rob Landley <rob@landley.net>
2008-12-05 22:29:01 -05:00
Michael Kerrisk 3e4088f4a4 getpeername.2, getsockname.2, getsockopt.2, recv.2, send.2, shutdown.2: minor s/s/sockfd/ for cases not caught in previous changes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:59 -05:00
Michael Kerrisk 75c5960113 shutdown.2: wfix 2008-12-05 22:28:59 -05:00
Michael Kerrisk 710631e8bf setup.2: Relocate some CONFORMING TO text to VERSIONS and NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:59 -05:00
Michael Kerrisk 97fce6cd66 setsid.2: Rework RETURN VALUE section; add an ERRORS section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:59 -05:00
Michael Kerrisk b56905c62b send.2: wfix (s/s/sockfd/ for a case missed earlier) 2008-12-05 22:28:59 -05:00
Michael Kerrisk 167441ee0b send.2: Minor layout fix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:59 -05:00
Michael Kerrisk 6926dbf541 recv.2, send.2: Make names of "address" and "address length" args more consistent
Make the names of these arguments more consistent with other
sockets man pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:58 -05:00
Michael Kerrisk a2b8b6d657 connect.2, getpeername.2, getsockname.2: Use consistent argument names
Most other sockets pages are using the names 'addr'
and 'addrlen'; make these pages do the same.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:58 -05:00
Michael Kerrisk f7c494fb23 getsockname.2: Note that returned address is truncated if buffer is too small
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:58 -05:00
Michael Kerrisk cb15903860 getpeername.2: Note that returned address may be truncated if buffer is too small
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:57 -05:00
Michael Kerrisk 59682186ca recv.2: Clarify details when returned address is truncated
If the recvfrom() returned address is truncated, the 'fromlen'
argument indicates the actual size of the address, rather than
a count of the number of bytes in the truncated buffer.

Also clarify that the 'from' argument can be NULL, in which
case 'fromlen' should is unused, and should also be NULL.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:57 -05:00
Michael Kerrisk b98353f035 accept.2: Clarify details when returned address is truncated
If the returned address is truncated, the 'addrlen' argument
indicates the actual size of the address, rather than a count
of the number of bytes in the truncated buffer.

Also clarify that if 'addr' argument is NULL, then 'addrlen'
should is unused, and should also be NULL.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:57 -05:00
Michael Kerrisk 3fdfdab83c getsockopt.2: Minor rewordings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:57 -05:00
Michael Kerrisk f145728e61 pread.2: Note that glibc emulation for these calls uses lseek(2)
(This makes it clearer that the emulated calls are not atomic.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:57 -05:00
Michael Kerrisk 3c19f5edd6 getsockname.2: Minor rewordings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:57 -05:00
Michael Kerrisk c4e7b71426 getpeername.2, getsockname.2, getsockopt.2, recv.2, send.2, shutdown.2, sockatmark.3, socket.7, udplite.7: SYNOPSIS: Rename socket file descriptor argument to 'sockfd'
Many sockets man pages use the name 'sockfd' already.
For consistency, changes the others to do so as well.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:56 -05:00
Michael Kerrisk 0b11419eb4 getpeername.2: Minor rewordings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:56 -05:00
Michael Kerrisk 293283613f mmap.2: srcfix: spfix 2008-12-05 22:28:55 -05:00
Michael Kerrisk 6aa7db0a8f mmap.2: Loosen language around how 'addr' hint is interpreted
Mel Gorman reported that in Linux 2.6.27, 'addr' is rounded
down to a page boundary.

Before kernel 2.6.26, if 'addr' was taken as a hint, it was
rounded up to the next page boundary.  Since Linux 2.6.24,
it is rounded down.  Therefore, loosen the description of
this point to say that the address is rounded to "a nearby
page boundary".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Mel Gorman <mel@csn.ul.ie>
2008-12-05 22:28:55 -05:00
Michael Kerrisk e9ef777f73 stat.2: Refer reader to major() and minor() to decompose a device ID
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:54 -05:00
Michael Kerrisk 6437f56b55 mknod.2: Refer reader to makedev(3) to build a device ID
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:54 -05:00
Michael Kerrisk 857842b0cb recv.2: Internet datagram and netlink sockets support MSG_TRUNC for recv(2)
Internet datagram (since Linux 2.4.27/2.6.8),
and netlink (since Linux 2.6.22) sockets support
the MSG_TRUNC flag for recv(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:28:53 -05:00
Michael Kerrisk 5dfedcae40 accept.2, listen.2, recv.2, getpeername.2, getsockname.2, shutdown.2, socketpair.2: Global fix: SEE ALSO: add socket(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:18:09 -05:00
Michael Kerrisk 2d08404c52 getdomainname.2: Substantial rewrite
Expand description of setdomainname() and getdomainname().
Note that getdomainname() is implemented as a library function
in glibc.
Note limits on size of domain name.
Reorganize ERRORS list.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:18:07 -05:00
Michael Kerrisk 47c983310b uname.2: srcfix: Added some source comments 2008-12-05 22:18:07 -05:00
Michael Kerrisk 01334a2e21 uname.2: wsfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:18:07 -05:00
Michael Kerrisk e8d2d05f40 gethostname.2: Note that HOST_NAME_MAX is 64 on Linux
Also note that in pre-1.0 days, the limit on hostnames
was 8 bytes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-12-05 22:18:03 -05:00
Michael Kerrisk 1f9fdf425b gethostname.2: Various parts rewritten
Write a paragraph describing sethostname().

Clarify differences between glibc's gethostbyname() and
the kernel gethostbyname() system calls.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-28 15:48:46 -05:00
Michael Kerrisk 6a69a198b6 exit_group.2: Note that since glibc 2.3, exit(2) invokes exit_group() 2008-11-28 12:13:02 -05:00
Michael Kerrisk 9abeddb24c _exit.2: Since glibc 2.3, the exit() wrapper function invokes exit_group(2)
This information is useful to users of strace(1).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-28 12:04:51 -05:00
Michael Kerrisk 3ab40aecac set_thread_area.2: Note that glibc provides no wrapper for this system call
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-28 11:40:28 -05:00
Michael Kerrisk 6977c3c1b4 get_thread_area.2: Note that glibc provides no wrapper for this system call
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-28 11:39:55 -05:00
Michael Kerrisk fcdad7d6ff futex.2: Mention that glibc provides no wrapper function for futex()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-28 11:31:35 -05:00
Michael Kerrisk 30fa088c1b syscalls.2: Fix version numbers for a few system calls
Some 2.6 system calls were wrongly mentioned as also being
backported into a 2.4.x kernel.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-28 11:25:14 -05:00
Michael Kerrisk 56b466899c execve.2: ffix 2008-11-28 09:39:38 -05:00
Michael Kerrisk a113945faa Removed trailing white space at end of lines 2008-11-25 21:44:53 -05:00
Michael Kerrisk 489f427867 clone.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Pavel Emelyanov <xemul@openvz.org>
2008-11-25 20:54:27 -05:00
Michael Kerrisk 868d9bf528 clone.2: spfix 2008-11-25 20:54:27 -05:00
Michael Kerrisk 5584229c0e clone.2: Integrate review comments from Pavel Emelyanov
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reviewed-by: Pavel Emelyanov <xemul@openvz.org>
2008-11-25 20:54:27 -05:00
Michael Kerrisk 9cb9dcc918 clone.2: Integrate review comments from Serge Hallyn
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reviewed-by: Serge E. Hallyn <serge@hallyn.com>
2008-11-25 20:54:27 -05:00
Serge E. Hallyn bf032425f1 clone.2: When n/w namespace is freed, physical devices return to initial namespace
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:27 -05:00
Michael Kerrisk e1b11906a0 clone.2: Changes after review by Serge Hallyn
If CLONE_NEWUTS is specified, the IDs are initialized
by duplicating from calling process.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reviewed-by: Serge E. Hallyn <serge@hallyn.com>
2008-11-25 20:54:26 -05:00
Michael Kerrisk 5a2ff571fb connect.2, listen.2, send.2, uname.2, cmsg.3, proc.5, arp.7, ddp.7, icmp.7, ip.7, raw.7, socket.7, tcp.7, udp.7: Global fix: eliminate mention of the obsolete sysctl(2) interface
Many pages still mention use of the obsolete sysctl(2) system
call, or used the term "sysctls"; rewrite these mentions to
instead be in terms of /proc interfaces.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:11 -05:00
Michael Kerrisk 5f06e2ff26 sysctl.2: Add prominent warning against using this system call
This was already stated under NOTES, but make it even more
prominent by adding a sentence at the start of the DESCRIPTION.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:11 -05:00
Michael Kerrisk cae2ec15f9 clone.2: minor: Add missing word, CAP_SYS_ADMIN, for CLONE_NEWNET description
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:10 -05:00
Michael Kerrisk c8e18bd181 clone.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:10 -05:00
Michael Kerrisk 163bf178a9 clone.2: Document CLONE_NEWNET
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:10 -05:00
Michael Kerrisk 83c1f4b55f clone.2: IPC objects are automatically destroyed when IPC namespace is destroyed
When the last process in an IPC namespace is destroyed, the
IPC objects in that namespace are automatically destroyed.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Cedric Le Goater <clg@fr.ibm.com>
2008-11-25 20:54:10 -05:00
Michael Kerrisk 732e54dd96 clone.2, mount.2, unshare.2, proc.5, path_resolution.7: Global fix: s/mount-point namespace/mount namespace/
This is more consistent with the term "mounts namespace"
used in the 2008 ACM SIGOPS paper, "Virtual servers
and and checkpoint/restart in mainstream Linux".
(I avoided the "s", because using the plural strikes me
as klunky English, and anyway we don't talk about
the "PIDs namespace" or the "networks namespace", etc..)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:09 -05:00
Michael Kerrisk 6e6231c1dc inotify_rm_watch.2, inotify.7: srcfix: updated FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:09 -05:00
Michael Kerrisk a4cc375e5a clone.2: tfix: Fix kernel version associated with CLONE_IO
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Jen Axboe <jens.axboe@oracle.com>
2008-11-25 20:54:09 -05:00
Michael Kerrisk 0236bea95b clone.2: Fix terminology: s/control group/container/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Eric Biederman <ebiederm@xmission.com>
2008-11-25 20:54:09 -05:00
Michael Kerrisk cf1c6c8056 clone.2: srcfix: Added FIXME 2008-11-25 20:54:08 -05:00
Michael Kerrisk 6807c79ac1 clone.2: srcfix: Updated FIXME 2008-11-25 20:54:08 -05:00
Michael Kerrisk cfdc761b8f clone.2: minor: Update changelog 2008-11-25 20:54:08 -05:00
Jens Axboe 11f27a1c68 clone.2: Document CLONE_IO (new in Linux 2.6.25)
Some text also by mtk.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:08 -05:00
Michael Kerrisk 63a6efda14 fcntl.2: spfix 2008-11-25 20:54:08 -05:00
Michael Kerrisk 71fea60784 fcntl.2, signal.2, mbsnrtowcs.3, mbsrtowcs.3, mbtowc.3, wcrtomb.3, wcsnrtombs.3, wcsrtombs.3, wctomb.3: Global fix: s/multi-thread/multithread/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:08 -05:00
Michael Kerrisk 4df2eb09d1 clone.2, mount.2, unshare.2, proc.5, path_resolution.7: Global fix: s/namespace/mount-point namespace/, as appropriate
In recent times, a number of other namespace flags have been
added to clone(2).  As such, it is no longer clear to use
the generic term "namespace" to refer to the particular
namespace controlled by CLONE_NEWNS; instead, use the
term "mount-point namespace".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:07 -05:00
Michael Kerrisk 667417b33c clone.2: Document CLONE_NEWIPC flag (new in Linux 2.6.19)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:07 -05:00
Michael Kerrisk 56c1dc6dc5 uname.2: tfix 2008-11-25 20:54:07 -05:00
Michael Kerrisk abaf08d4dc uname.2: Add C comments describing fields in utsname structure
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:06 -05:00
Michael Kerrisk 43ce9ddaff clone.2: Document CLONE_NEWUTS (new in Linux 2.6.19)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:06 -05:00
Michael Kerrisk af3c728ea1 clone.2: ffix 2008-11-25 20:54:06 -05:00
Michael Kerrisk 5c95e5e8ff clone.2: spfix: s/CLONE_PID/CLONE_NEWPID/ 2008-11-25 20:54:06 -05:00
Chris Heath 53e6712553 sigprocmask.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:05 -05:00
Michael Kerrisk 28cad2c108 clone.2: Document EINVAL error for CLONE_NEWPID if CONFIG_PID_NS not enabled
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:05 -05:00
Michael Kerrisk 82ee147ab6 clone.2: Document CLONE_NEWPID flag (new in Linux 2.6.24)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:05 -05:00
Michael Kerrisk 88619baf22 clone.2: spfix 2008-11-25 20:54:05 -05:00
Michael Kerrisk f5dbc7c8e9 clone.2: Place list of CLONE_* flags in alphabetical order
(No content changes.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:05 -05:00
Michael Kerrisk 24bbe02c17 inotify_rm_watch.2, inotify.7: srcfix: Add FIXMEs for argument/field types
I submitted a patch to fix this.  See the LKML thread
"[patch] Fix type errors in inotify interfaces", 18 Nov 2008
If/when these patches are accepted, the pages need to be updated.
2008-11-25 20:54:04 -05:00
Michael Kerrisk e6205b0c24 mmap.2: Document MAP_STACK flag (new in Linux 2.6.27)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:54:04 -05:00
Michael Kerrisk 85c2bdba64 open.2: wfix 2008-11-25 20:54:02 -05:00
Michael Kerrisk 9c7cf1820f sched_setaffinity.2: Add note on system-imposed restrictions on CPUs actually used
After Loic Domaigne's suggestion for pthread_setaffinity_np(3), add
similar text to this page noting that the system silently
limits the set of CPUs on which the process actually runs to
the set of CPUs physically present and the limits imposed by
cpuset(7).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Loic Domaigne <tech@domaigne.com>
Acked-by: Bert Wesarg <bert.wesarg@googlemail.com>
2008-11-25 20:54:00 -05:00
Michael Kerrisk d69305f691 sched_setaffinity.2: ffix 2008-11-25 20:53:58 -05:00
Michael Kerrisk d7ddac242d sched_setaffinity.2: Refer reader to pthread_setaffinity_np(3)
pthread_setaffinity_np() is preferable for setting
thread CPU affinity if using the POSIX threads API.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:53:58 -05:00
Michael Kerrisk ecbb9b58ce sched_setaffinity.2: wfix: s/current thread/calling thread/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-25 20:53:57 -05:00
Michael Kerrisk ad3f4748db sched_setaffinity.2: Removed discussion of CPU_* macros()
These macros are now moving to a separate page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-13 08:56:56 -05:00
Michael Kerrisk 2ce777b42c sched_setaffinity.2: wfix 2008-11-13 08:56:55 -05:00
Michael Kerrisk 718af393c7 sched_setaffinity.2: Minor updates in VERSIONS
Document the version of glibc that added the CPU_*() macros.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-13 08:56:55 -05:00
Michael Kerrisk 940c8ce244 getdents.2, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, pthread_setaffinity_np.3, pthread_setschedparam.3, pthread_tryjoin_np.3: Use consistent error-handling function names
Many older pages use a handle_error() macro to do simple
error handling from system and library function calls.
Switch these pages to do similar.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-11 14:51:13 -05:00
Michael Kerrisk da8dbaa525 fsync.2: Update feature test macro requirements for fsync()
Since glibc 2.8, the fsync() declaration is also exposed if
_POSIX_C_SOURCE >= 200112L

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-07 21:42:33 -05:00
Michael Kerrisk a5a061ee0c clone.2: srcfix: added comment about CLONE_STOPPED going away in glibc 2.8 2008-11-07 21:32:57 -05:00
Michael Kerrisk 9b6ba4d8a4 sched_setscheduler.2: tfix
s/2.6.20/2.6.30/ to fix an earlier typo in the description
of the likely kernel version that will have fully fledged
real-time features.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-06 16:49:27 -05:00
Michael Kerrisk 3ba07ec788 sched_setaffinity.2: SEE ALSO: add sched_getcpu(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-06 16:49:06 -05:00
Michael Kerrisk d84d0300a5 eventfd.2, getdents.2, mprotect.2, signalfd.2, timerfd_create.2, wait.2, backtrace.3, clock_getcpuclockid.3, end.3, fmemopen.3, fopencookie.3, frexp.3, getaddrinfo.3, getdate.3, getgrouplist.3, getprotoent_r.3, getservent_r.3, gnu_get_libc_version.3, inet.3, inet_pton.3, makecontext.3, matherr.3, offsetof.3, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, sem_wait.3, strftime.3, strtok.3, strtol.3, core.5: srcfix
s/\.R " "/\\\&/ as a way of getting a blank line after a .SS heading.
(Suggested by Sam Varshavchik <mrsam@courier-mta.com>)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 20:42:45 -05:00
Michael Kerrisk 3213bb2813 sched_setaffinity.3: minor: rework EPERM text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 17:06:01 -05:00
Michael Kerrisk a212694364 sched_setaffinity.2: Clarify EINVAL error for cpusetsize < kernel mask size
For sched_setaffinity(), the EINVAL error that occurs
if 'cpusetsize' is smaller than the kernel CPU set size only
occurs with kernels before 2.6.9.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 17:00:02 -05:00
Michael Kerrisk 4187c37c68 sched_setaffinity.2: SEE ALSO: Add pthread_setaffinity_np(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 16:36:45 -05:00
Michael Kerrisk 40bea7025b sched_setaffinity.2: wfix 2008-11-04 13:56:30 -05:00
Michael Kerrisk 89cb804a31 readlink.2: srcfix: Note that bufsiz has a signed type at kernel level
So on a direct syscall, the EINVAL could also occur for bufsiz < 0.
But at the moment, the error text is sufficiently vague
("bufsiz is not positive") that a change to the man page text
is probably not needed.
2008-11-04 11:21:18 -05:00
Sam Varshavchik 344689bd06 pipe.2: wfix: SYNPOSIS: add missing word "int"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 09:16:00 -05:00
Sam Varshavchik 1c32ee471c eventfd.2, mprotect.2, signalfd.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 09:03:49 -05:00
Ulrich Mueller 7c5f05139c open.2: tfix: in CONFORMING TO: s/POSIX.1-2001/POSIX.1-2008/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-11-04 08:51:26 -05:00
Michael Kerrisk 1c8de4731b dup.2: wfix 2008-10-30 20:43:16 -05:00
Michael Kerrisk 51d5e556bc umount.2: srcfix: remove out-of-date FIXME 2008-10-30 12:26:25 -05:00
Michael Kerrisk d57b917015 syscalls.2: srcfix: add FIXME 2008-10-30 09:39:46 -05:00
Michael Kerrisk a18e24a14a vfork.2: Child holds parent's memory until execve() or *termination*
The page was phrased in a few places to describe the child as
holding the parent's memory until the child does an execve(2)
or an _exit(2).  The latter case should really be the more
general process termimation (i.e., either _exit(2) or abnormal
termination).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Valdis.Kletnieks@vt.edu
2008-10-30 08:12:12 -05:00
Michael Kerrisk c5571b613b Removed trailing white space at end of lines 2008-10-29 15:43:44 -05:00
Michael Kerrisk 08c9b488f4 timerfd_create.2, ctime.3, frexp.3, strftime.3, strtok.3, tty_ioctl.4, iso_8859-7.7: tstamp 2008-10-29 15:36:12 -05:00
Michael Kerrisk a439142940 open.2: srcfix: add comments re NFS and O_APPEND 2008-10-29 14:54:27 -05:00
Christoph Hellwig 17edb54cdc getdents.2: Fix text relating to DT_UNKNOWN and 'd_type' support
Some file systems provide partial support for 'dt_type',
returning DT_UNKNOWN for cases they don't support.
Update the discussion of 'd_type' and DT_UNKNOWN to
support this.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:26 -05:00
Michael Kerrisk ea45ad970d vfork.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:26 -05:00
Michael Kerrisk f9f812378c vfork.2: minor: Clarify that standards text is current (not a draft).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:26 -05:00
Michael Kerrisk 600c9aa993 vfork.2: grfix 2008-10-29 14:54:26 -05:00
Michael Kerrisk b4dcb33109 vfork.2: Clarify meaning of "child releases the parent's memory"
The man page was not explicit about how the memory used by
the child is released back to the parent.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Halesh S <halesh.s@india.com>
2008-10-29 14:54:26 -05:00
Michael Kerrisk 71b2fb380d getsockopt.2: EINVAL can also occur if 'optval' is invalid
In some cases, EINVAL can occur if 'optval' is invalid.
Note this, and point reader to an example in ip(7).
In response to:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=216092

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Christian Grigis <glove@earthling.net>
2008-10-29 14:54:25 -05:00
Michael Kerrisk 9c33050447 eventfd.2, getdents.2, mprotect.2, signalfd.2, timerfd_create.2, wait.2, backtrace.3, clock_getcpuclockid.3, end.3, fmemopen.3, fopencookie.3, getdate.3, getgrouplist.3, getprotoent_r.3, getservent_r.3, gnu_get_libc_version.3, inet.3, inet_pton.3, makecontext.3, matherr.3, offsetof.3, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, sem_wait.3, strtol.3, core.5: global fix: Add ".SS Program source" to EXAMPLE
Add ".SS Program source" to clearly distinguish shell session and
descriptive text from actual program code.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:23 -05:00
Michael Kerrisk b43a3b301e eventfd.2, execve.2, getdents.2, ioprio_set.2, mprotect.2, signalfd.2, timerfd_create.2, wait.2, backtrace.3, clock_getcpuclockid.3, end.3, fmemopen.3, fopencookie.3, frexp.3, getdate.3, getgrouplist.3, getprotoent_r.3, getservent_r.3, gnu_get_libc_version.3, inet.3, inet_pton.3, makecontext.3, malloc.3, matherr.3, offsetof.3, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, sem_wait.3, strftime.3, strtok.3, strtol.3, core.5, proc.5, cpuset.7, mq_overview.7: Global fix: Format user input in shell sessions in boldface
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:23 -05:00
Michael Kerrisk 9d0cc7117c wait.2: ffix 2008-10-29 14:54:22 -05:00
Michael Kerrisk ecae8a080a getpeername.2, getsockname.2: SEE ALSO: add ip(7) and unix(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:13 -05:00
Michael Kerrisk 44c95a090f stat.2, tsearch.3, tzset.3: wfix: s/SysV/System V/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:12 -05:00
Michael Kerrisk e70c986bd8 sched_yield.2: Add NOTES text on appropriate use of sched_yield()
Strategic calls to sched_yield() can be used to improve
performance, but unnecessary use should be avoided.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:12 -05:00
Michael Kerrisk 7559496c14 sched_yield.2: minor: relocate some text to NOTES
Relocate some text from DESCRIPTION to NOTES.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:12 -05:00
Michael Kerrisk 15eeae41d2 sched_yield.2: Rewrite description in terms of threads
The text formerly described the operation of sched_yield() in
terms of processes.  It should be in terms of threads.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:12 -05:00
Michael Kerrisk 7acf5ebe43 sigaction.2: Clarify that sa_mask affects the *per-thread* signal mask
The page didn't previously clearly explain the scope of the
signal mask that is affected by sa_mask.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:12 -05:00
Michael Kerrisk 03d8058444 sigprocmask.2: tstamp 2008-10-29 14:54:11 -05:00
Michael Kerrisk 92ae39656e sigprocmask.2: Clarify that sigprocmask() operates on a per-thread mask
The first sentence of the page was vague on the scope of the
attribute changed by sigprocmask().  Reword to make this
clearer and add a sentence in NOTES to explicitly state that
the signal mask is a per-thread attribute.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-29 14:54:11 -05:00
Michael Kerrisk 1ee674a478 socket.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 08:18:36 +02:00
Michael Kerrisk 0cc9687dad socketpair.2: Refer to socket(2) for SOCK_CLOEXEC and SOCK_NONBLOCK
Refer the reader to socket(2) for a description of the SOCK_CLOEXEC
and SOCK_NONBLOCK flags, which are supported by socketpair() since
Linux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:43 +02:00
Michael Kerrisk af14d9f842 socket.2: Document SOCK_NONBLOCK and SOCK_CLOEXEC flags
These flags, specified in the 'type' argument, are supported
since Linux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:43 +02:00
Michael Kerrisk 51d61866ba inotify_init.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:42 +02:00
Michael Kerrisk 9c9cccf799 epoll_create.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:42 +02:00
Michael Kerrisk 1fadf79b1f signalfd.2: Add signalfd4() details to CONFORMING TO
signalfd4() is also Linux-specific.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:42 +02:00
Michael Kerrisk 8c6e516d64 pipe.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:42 +02:00
Michael Kerrisk e03c5b2c17 dup.2: wfix: remove some crufty text from recent changes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:42 +02:00
Michael Kerrisk ef7db4f5b3 inotify_init.2, pipe.2, timerfd_create.2: tfix
s/fcntl ()/fcntl (2)/ in xref

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:42 +02:00
Michael Kerrisk 26a260f4f2 signalfd4.2: New link to signalfd.2
signalfd.2 now includes text describing signalfd4() system call,
new in Linux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk acf44fc334 eventfd.2: Remove crufty text relating to flags argument
Remove sentence saying that glibc adds a flags argument to the syscall;
that was only relevant for the older eventfd() system call.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk c39a07cee9 signalfd.2: Remove crufty text relating to flags argument
Remove sentence saying that glibc adds a flags argument to the syscall;
that was only relevant for the older signalfd() system call.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk 89d9a56ff1 signalfd.2: Describe signalfd4() and SFD_NONBLOCK and SFD_CLOEXEC
Linux 2.6.27 added signalfd4(), which supports a flags argument
that signalfd() did not provide.  The flags so far implemented
are SFD_NONBLOCK and SFD_CLOEXEC.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk 2aa3fb2d42 eventfd.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk c22cb2042c eventfd.2: srcfix: Add "changelog" comments describing recent changes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk 1e21a40290 eventfd2.2: New link to eventfd.2
The eventfd.2 page has some details on the eventfd2() system call,
which was new in Linux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:41 +02:00
Michael Kerrisk e64b5482ad eventfd.2: Describe eventfd2() and EFD_NONBLOCK and EFD_CLOEXEC
Linux 2.6.27 added eventfd(), which supports a flags argument
that eventfd() did not provide.  The flags so far implemented
are EFD_NONBLOCK and EFD_CLOEXEC,

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:40 +02:00
Michael Kerrisk b25c5b2388 inotify_init.2, pipe.2, timerfd_create.2: Clarify *_NONBLOCK description
Make it clear that the NONBLOCK flag sets an attribute in the new
open file description.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:40 +02:00
Michael Kerrisk eb15342064 syscalls.2: Add new 2.6.27 system calls
Add pipe2(), dup3(), epoll_create1(), inotify_init1(),
eventfd2(), signalfd4().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:40 +02:00
Michael Kerrisk 9502479bab open.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:40 +02:00
Michael Kerrisk 93ee8f96d4 open.2: FIXME: Add a FIXME regarding open flags
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:40 +02:00
Michael Kerrisk 19c110a619 timerfd_create.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk 3df1b973f9 timerfd_create.2: Document timerfd_create() TFD_CLOEXEC and TFD_NONBLOCK
TFD_CLOEXEC and TFD_NONBLOCK are supported since LInux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk f1d97f6e4d open.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk 46d8eb9cd0 epoll_create1.2: New link to epoll_create.2
epoll_create.2 now includes a description of the new epoll_create1()
system call.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk 24ec631f42 open.2: minor: Fix O_CLOEXEC wording re fcntl() calls
The current wording suggests that only a single fcntl()
operation is needed to set the FD_CLOEXEC flag, when "proper"
usage would be fcntl(F_GETFD) + fcntl(F_SETFD) to get the
flags and then update them.  So change the wording to indicate
that more than one fcntl() operation is required.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk 550f480fd4 epoll_create.2: Say more about unused epoll_create() 'size' arg
Supply a little more explanation about why the 'size' argument
of epoll_create() is nowadays ignored.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk 272fa3cbcf epoll_create.2: Add description of new epoll_create1()
The new epoll_create1() system call appeared in Linux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:39 +02:00
Michael Kerrisk 0a8461f6d3 inotify_init1.2: New link to inotify_init.2
inotify_init.2 now includes a description of the new
inotify_init1() system call.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:38 +02:00
Michael Kerrisk c7d4277973 pipe.2: minor: Explicitly mention FD_CLOEXEC flag
Explicitly name FD_CLOEXEC constant when referring to
"close-on-exec flag".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 07:49:18 +02:00
Michael Kerrisk 9009f8fc15 inotify_init.2: tfix: s/O_CLOEXEC/FD_CLOEXEC/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:24:42 +02:00
Michael Kerrisk ef4d5ffd86 inotify_init.2: Add description of inotify_init1()
The inotify_init1() system call was added in Linux 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:24:32 +02:00
Michael Kerrisk 4cb3ac5f7a pipe2.2: New link to pipe.2
pipe(2) now contains a description of the new pipe2() syscall.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:24:01 +02:00
Michael Kerrisk 14393ac023 pipe.2: Add description of new pipe2() syscall
pipe2() was added in 2.6.27.  Describe the O_NONBLOCK and
O_CLOEXEC flags.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:23:53 +02:00
Michael Kerrisk a3bb543ceb dup.2: Refer to open(2) for why O_CLOEXEC is useful
Refer reader to open(2) for an explanation of why O_CLOEXEC can be useful.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:23:45 +02:00
Michael Kerrisk 4d98e97bbb dup3.2: New link to dup.2
dup.2 now contains the description of the new dup3() syscall.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:23:41 +02:00
Michael Kerrisk 798d8fd850 dup.2: Add description of dup3()
dup3() was added in kernel 2.6.27.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-11 06:23:37 +02:00
Michael Kerrisk 6f52c9d40b getpriority: srcfix: added FIXME 2008-10-09 10:19:08 +02:00
Michael Kerrisk acddbaea0c Removed trailing white space at end of lines 2008-10-07 10:58:44 +02:00
Michael Kerrisk 5e1edcf261 umount2.2: Change link to point to new umount.2
The umount2() material migrated from mount.2 to umount.2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 16:57:53 +02:00
Michael Kerrisk 9f6293c4ea tstamp 2008-10-06 16:39:20 +02:00
Michael Kerrisk 7f546896f5 tstamp 2008-10-06 16:26:23 +02:00
Michael Kerrisk 1ca091c669 pause.2: Small rewordings of DESCRIPTION.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 16:25:46 +02:00
Michael Kerrisk 85a2d4588e fallocate.2: Note lack of glibc wrapper; caller must use syscall(2)
Glibc doesn't (and quite probably won't) include a wrapper for this
system call.  Therefore, point out that potential callers will need
to use syscall(2), and rewrite the RETURN VALUE text to show things
as they would be if syscall() is used.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 15:29:45 +02:00
Michael Kerrisk 01b7704fb6 fallocate: Refer reader to posix_fallocate(3) for portable interface
Add a para to start of page that points out that this is the
low-level, Linux-specific API, and point the reader to posix_fallocate(3)
for the portable API.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 15:08:21 +02:00
Michael Kerrisk cea61382b1 proc.5: Add description of /proc/PID/mounts
Largely cribbed from existing /proc/mounts discussion, which is
about to be rewritten.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 14:16:16 +02:00
Michael Kerrisk 0a4d78bbe1 mount.2: Add description of namespace
Describe per-process namespaces, including discussion
of clone() and unshare CLONE_NEWNS, and /proc/PID/mounts.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 14:07:03 +02:00
Michael Kerrisk 852ae8c875 mount.2: List a few other file systems that we may see in /proc/filesystems
Add some modern file systems to that list (xfs, jfs, ext3, reiserfs).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 13:19:51 +02:00
Michael Kerrisk a3b00c37dc mount.2: wfix: remove redundant "Linux Notes" subheading 2008-10-06 13:18:33 +02:00
Michael Kerrisk 5614f73308 mount.2, umount.2: split umoun*() out into a separate page
The length of this page means that it's becoming difficult to parse
which info is specific to mount() versus umount()/umount2(), so split
the umount material out into its own page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-06 13:09:26 +02:00
Michael Kerrisk 9b9b4a8137 spfix 2008-10-06 11:49:27 +02:00
Michael Kerrisk cd7b18e735 pause.2: remove mention of words "library function"
This really is a system call.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-05 07:20:58 +02:00
Michael Kerrisk 374af67a42 getrlimit.2: refer to execve(2) for RLIMIT_STACK's effect on ARG_MAX
Refer the reader to new text in execve(2) that describes how
(since Linux 2.6.23) RLIMIT_STACK determines the value of ARG_MAX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-05 06:24:36 +02:00
Michael Kerrisk 3a9dc9ff79 execve.2: _SC_ARG_MAX is no longer necessarily constant
POSIX.1-2001 says that the values returned by sysconf()
are constant for the life of the process.
But the fact that, since Linux 2.6.23, ARG_MAX is settable
via RLIMIT_STACK means _SC_ARG_MAX is no longer constant,
since it can change at each execve().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-05 05:59:32 +02:00
Michael Kerrisk f202015b45 execve.2: Linux now imposes a floor on the ARG_MAX limit
Starting with Linux 2.6.23, the ARG_MAX limit became settable via
(1/4 of) RLIMIT_STACK.  This broke ABI compatibility if RLIMIT_STACK
was set such that ARG_MAX was < 32 pages.  Document the fact that
since 2.6.25 Linux imposes a floor on ARG_MAX, so that the old limit
of 32 pages is guaranteed.

For some background on the changes to ARG_MAX in kernels 2.6.23 and
2.6.25, see:
    http://sourceware.org/bugzilla/show_bug.cgi?id=5786
    http://bugzilla.kernel.org/show_bug.cgi?id=10095
    http://thread.gmane.org/gmane.linux.kernel/646709/focus=648101,
    checked into 2.6.25 as commit a64e715fc74b1a7dcc5944f848acc38b2c4d4ee2.

Also some reordering/rewording of the discussion of ARG_MAX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-05 05:57:52 +02:00
Michael Kerrisk 00e8730f78 getrlimit.2: Reword/relocate discussion of BSD's historical RLIMIT_OFILE
The old sentence sat on its own in an odd place, and anyway the
modern BSDs use the name RLIMIT_NOFILE.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-05 05:42:32 +02:00
Michael Kerrisk f3504b0292 srcfix 2008-10-05 03:29:35 +02:00
Michael Kerrisk 3fb46b2b3b sigaction.2: wfix 2008-10-04 08:27:56 +02:00
Michael Kerrisk f7d174ea1b sigaction.2: refer reader to signal(7) for an overview of signals
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Gergely Soos <sogerc1@gmail.com>
2008-10-04 08:01:49 +02:00
Michael Kerrisk 0ac0def44d sigaction.2: explain semantics of signal disposition during fork() and execve()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 07:49:53 +02:00