Commit Graph

2153 Commits

Author SHA1 Message Date
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
Michael Kerrisk 0178675542 sigwaitinfo.2: distinguish per-thread and process-wide signals
A sentence clarifying that pending signal set is union of
per-thread and process-wide pending signal sets.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 07:39:50 +02:00
Michael Kerrisk 1218ca8771 sigwaitinfo.2: these interfaces have per-thread semantics
The page was previously fuzzy about whether the these interfaces
have process-wide or per-thread semantics.  (E.g., now the
page states that the calling *thread* (not process) is suspended
until the signal is delivered.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 07:36:18 +02:00
Michael Kerrisk 55aa29202c semop.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 07:14:34 +02:00
Michael Kerrisk dfcc37a6ab getrusage.2: rusage measures are preserved across execve(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 07:10:35 +02:00
Michael Kerrisk 6d01795229 sigaltstack.2: explain inheritance of alternate signal stack across fork(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 06:58:36 +02:00
Michael Kerrisk a6b7b51147 sigpending.2: explain effect of fork() and execve() for pending signal set
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 06:38:30 +02:00
Michael Kerrisk 7acce9fb90 sigpending.2: explain how thread's pending signal set is defined
The pending set is the union of per-thread pending signals and process-wide
pending signals.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 06:34:38 +02:00
Michael Kerrisk eebf482da2 sigprocmask.2: explain effects of fork() and execve() for signal mask
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 06:30:10 +02:00
Michael Kerrisk 4c5bcd47bf sigaction.2: refer to signal(7) for more details on signal mask.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-04 05:49:12 +02:00
Michael Kerrisk bf50110267 execve.2: updated FIXME (for argv==NULL) in source comments 2008-10-03 06:04:03 +02:00
Michael Kerrisk 1dfd87eee5 readdir.2: The programmer must declare the old_linux_dirent structure
Glibc does not provide a definition of this structure.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:30:23 +02:00
Michael Kerrisk 8c1e7c9c47 wspacefix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:28:02 +02:00
Michael Kerrisk b82f860abd readdir.2: s/dirent/old_linux_dirent/
Nowadays, this is the name of the structure in the kernel sources.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:26:33 +02:00
Michael Kerrisk f8c4a80874 readdir.2: remove words "which may change"
These words are slightly bogus: although the interface is obsolete,
for ABI-compatibility reasons, the kernel folk should never be changing
this interface.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:23:25 +02:00
Michael Kerrisk 30508251e3 readdir.2: remove header files from SYNOPSIS
glibc doesn't provide any support for readdir(2),
so remove these header files (which otherwirse suggest
that glibc does provide the required pieces).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:20:39 +02:00
Michael Kerrisk d03fa0d508 getdents.2: Add an example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:15:42 +02:00
Michael Kerrisk 5ff3825e41 getdents.2: comment out linux_dirent fields with varying location
The location of the fields fater d_name varies according to
the size of d_name.  We can't properly declare them in C;
therefore, put those fields inside a comment.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 13:07:58 +02:00
Michael Kerrisk 5df2ee037d getdents.2: The DT_* constants are defined in <dirent.h>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 11:35:50 +02:00
Michael Kerrisk 298c502435 getdents.2: emove header files from SYNOPSIS
None of the header files provides what is needed.
Calls are made via syscall(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 11:33:34 +02:00
Michael Kerrisk 64150629a7 getdents.2: The programmer must define the linux_dirent structure
Point out that this structure is not defined in glibc headers.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 11:27:17 +02:00
Michael Kerrisk affa1ac7b6 getdents.2: s/dirent/linux_dirent/
The structure isn't currently defined in glibc headers, and the kernel
name of the structure is 'linux_dirent' (as was already used in some,
but not all, places in this page).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-02 11:15:28 +02:00
Michael Kerrisk 6d32be0960 tkill.2: EINVAL error can also occur for invalid TGID
The EINVAL error on an invalid TGID for tgkill() was
not documented; this change documents it.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-10-01 16:46:11 +02:00
Michael Kerrisk f1b0cf261c Document MS_SILENT (and MS_VERBOSE)
Maxin suggested a patch, which I've rewritten and expanded.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Maxin B. John <maxin.john@ap.sony.com>
2008-10-01 15:17:47 +02:00
Michael Kerrisk efb92ba155 getdents.2, readdir.3: d_type is currently only supported on ext[234]
As at kernel 2.6.27, only ext[234] support d_type.
On other file systems, d_type is always set to DT_UNKNOWN (0).

Reported-by: Ricardo Catalinas Jimnez <jimenezrick@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 15:06:36 +02:00
Michael Kerrisk bc0a3def1d utimensat.2: POSIX.1-2008 revision will likely affect FTMs for futimens()
Make it clear that the POSIX.1 revision that is likely
to affect the feature test macro requirements for futimens() is
POSIX.1-2008.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: Nicolas Franois <nicolas.francois@centraliens.net>
2008-09-29 12:52:30 +02:00
Nicolas Franois 26b42bb4bf utimensat.2: Make various wordings a little more precise.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>

The times argument point to *an array of* structures, and the
man-page should say that consistently.
2008-09-29 12:42:09 +02:00
Michael Kerrisk 2dd5352dae send.2: make kernel version for MSG_CONFIRM more precise
s/2.3+ only/Since Linux 2.3.15/

Reported-by: Nicolas Franois <nicolas.francois@centraliens.net>
2008-09-29 12:35:13 +02:00
Nicolas Franois aab31be272 move_pages.2: Make a detail og EPERM error more precise
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 12:20:39 +02:00
Nicolas Franois 5f3fb725ab recv.2: Move kernel version number to first mention to MSG_ERRQUEUE.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:46:01 +02:00
Nicolas Franois 494b842ba0 Remove a line of junk text.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:30:57 +02:00
Nicolas Franois 178d104e83 Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:09:52 +02:00
Nicolas Franois 44e5793157 Typo and wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 11:00:36 +02:00
Kirill A. Shutemov afc4edc132 semop.2: fix typo in example
(The '&' before sop in the semop() call is unneeded.)
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-09-29 09:49:35 +02:00
Michael Kerrisk e0d16ae5e7 wait4.2: wait3() is a library function layered on wait4().
On Linux wait3() is a library function implemented on top of wait4().
(Knowing this is useful when using strace(2), for example.)
2008-09-29 03:51:49 +02:00
Michael Kerrisk 986992f30d splice.2: note that SPLICE_F_MOVE is a no-op since kernel 2.6.21 2008-09-26 07:31:14 +02:00
Michael Kerrisk 901d59b5ce mlock.2: tweaks to Maxin John's patch 2008-09-25 11:18:08 +02:00
Michael Kerrisk 1ad3882cf8 tstamp 2008-09-25 11:11:53 +02:00
Maxin John 9fdc5b1260 mlock.2: add EAGAIN error.
Summary from mtk: recent work on mlock caused Maxin to notice that
the EAGAIN error was not documented.  KOSAKI Motohiro noted
that this behavior is longstanding.
=====
Dear Michael,

    As per the mlock(2) implementation bugfix which is present in
Linux 2.6.27-rc2 git commit,
(http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a477097d9c37c1cf289c7f0257dffcfa42d50197),
the mlock(2) man page should be modified to reflect the latest changes
in the kernel.

See the LKML thread regarding this commit :
http://www.nabble.com/mlock()-return-value-issue-in-kernel-2.6.23.17-td18751601.html

This patch modifies the mlock(2) behaviour as per the SUSv3 specification.

[ENOMEM]
    Some or all of the address range specified by the addr and
    len arguments does not correspond to valid mapped pages
    in the address space of the process.

[EAGAIN]
    Some or all of the memory identified by the operation could not
    be locked when the call was made.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Maxin B. John <maxin.john@ap.sony.com>

=====
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: "Maxin John" <maxin.john@gmail.com>
Subject: Re: mlock(2) man page modifications
Cc: kosaki.motohiro@jp.fujitsu.com,
        "Michael Kerrisk" <mtk.manpages@googlemail.com>, man@vger.kernel.org
Date: Thu, 25 Sep 2008 15:04:49 +0900 (JST)

Hi Maxin,

Thank you for your attention.
I think your point and your patch are right.

However, my patch is trivial regression fix, not behavior change.
An older kernel can return EAGAIN at memory stavation.
my patch has following hunk.

> +++ b/mm/mlock.c
> @@ -78,8 +78,6 @@ success:
>  
>         mm->locked_vm -= pages;
>  out:
> -       if (ret == -ENOMEM)
> -               ret = -EAGAIN;

In addition, 2.6.11 (oldest code of git repository) has following code.


static int mlock_fixup(struct vm_area_struct * vma, 
        unsigned long start, unsigned long end, unsigned int newflags)
{
(snip)
        vma->vm_mm->locked_vm -= pages;
out:
        if (ret == -ENOMEM)
                ret = -EAGAIN;
        return ret;
}


that behavior is linux mlock's behavior for long long time.

Thanks!
2008-09-25 11:09:31 +02:00
Sam Varshavchik 9291ce36fe ffix 2008-09-25 09:50:14 +02:00
Michael Kerrisk ee2c437cd5 update .TH timestamp 2008-09-24 22:50:11 +02:00
Michael Kerrisk c8bd05f909 Add more detail about wrapper functions
Add a few more details about work generally done by wrapper
functions.  Note that syscall(2) performs the same steps.
2008-09-24 16:10:00 +02:00
Michael Kerrisk 314c8ff41d Wording fix 2008-09-23 07:22:43 +02:00
Sam Varshavchik 33fb70ba7c s/it_interval/it_value/ when talking about TIMERFD_ABSTIME (bis). 2008-09-23 07:17:40 +02:00
Sam Varshavchik c3afed740a s/it_interval/it_value/ when talking about TIMERFD_ABSTIME. 2008-09-23 07:07:55 +02:00
Michael Kerrisk e7d807b715 Wording fix. 2008-09-23 06:58:51 +02:00
John Reiser a1d48abb60 Fine tune discussion of getpid() caching bug.
The error by getpid() in the presence of clone() occurs
only for a fork-like clone (one that omits CLONE_VM from the flags.)
This is a low-level detail, but there is no problem [known-to-me]
for thread-like clone().
2008-09-23 06:55:29 +02:00
Michael Kerrisk c60237c9b5 Clarify text describing getpid() caching bug for clone() wrapper.
See also: http://sourceware.org/bugzilla/show_bug.cgi?id=6910
and https://bugzilla.redhat.com/show_bug.cgi?id=417521
2008-09-23 05:04:49 +02:00
Michael Kerrisk 67f0f50d07 Describe getpid()'s PID caching and its consequences.
getpid() caches the PID after the first call.  This relies
on support in the glibc wrappers for fork()/vfork()/clone().
However, if syscall() is used to directly invoke fork()/vfork()/clone(),
the cache is not updated, and getpid() in the child procudes the wrong
result.
2008-09-23 04:12:27 +02:00
Michael Kerrisk 82d2be3d9d > > Additionally, you may want to make a note in the stat/lstat man page that on
> > Linux, lstat(2) will generally not trigger automounter action, whereas
> > stat(2) will.
> 
> I don't understand this last piece.  Can you say some more.  (I'm not
> familiar with automounter details.)
 
An automounter (either an explicit one, like autofs, or an implicit
one, such as are used by AFS or NFSv4) is something that triggers
a mount when something is touched.
 
However, it's undesirable to automount, say, everyone's home
directory just because someone opened up /home in their GUI
browser or typed "ls -l /home".  The early automounters simply
didn't list the contents until you accessed it by name;
this is still the case when you can't enumerate a mapping
(say, all DNS names under /net).  However, this is extremely
inconvenient, too.
 
The solution we ended up settling on is to create something
that looks like a directory (i.e. reports S_IFDIR in stat()),
but behaves somewhat like a symlink.  In particular, when it is
accessed in a way where a symlink would be dereferenced,
the automount triggers and the directory is mounted.  However,
system calls which do *not* cause a symlink to be dereferenced,
like lstat(), also do not cause the automounter to trigger.
This means that "ls -l", or a GUI file browser, can see a list
of directories without causing each one of them to be automounted.
 
        -hpa
2008-09-10 10:40:01 +00:00
Michael Kerrisk 67da52673e Start new sentence on new source line. 2008-09-10 03:45:09 +00:00
Michael Kerrisk eeeffe2d3b grfix 2008-09-10 03:41:35 +00:00
Michael Kerrisk 86d89e4c89 Add more detail in mount options that prevent updates to atime. 2008-09-09 05:25:25 +00:00
Michael Kerrisk e21a7c25fe s/filesystem/file system/ 2008-09-09 05:13:34 +00:00
Michael Kerrisk 614aae4105 Add "512B" to comment for st_blocks 2008-09-09 05:12:17 +00:00
Michael Kerrisk 5b0dc1baed s/time zone/timezone/ for consistency across pages and with POSIX.1. 2008-09-07 04:17:25 +00:00
Michael Kerrisk 057dce78b1 Move description of negative l_len from NOTES, integrating
it into the discussion of file locking.
Minor rewrites of the text on file locking.
2008-09-05 12:23:14 +00:00
Michael Kerrisk 68e0696a74 More clearly and consistently describe the whether or not the third
argument to fnctl() is required, and what its type should be.
2008-09-05 11:46:06 +00:00
Michael Kerrisk 435ecb8e42 Update kernel version numbers relating to real-time support. 2008-09-05 06:11:29 +00:00
Michael Kerrisk fca860f5c5 Remove old sentence about where to send updates for this page. 2008-09-02 09:06:49 +00:00
Michael Kerrisk ec113208a5 tfix 2008-09-02 09:05:17 +00:00
Michael Kerrisk 0f200f076c Add/fix feature test macro requirements. 2008-08-29 15:50:13 +00:00
Michael Kerrisk 0302f1019a SEE ALSO: Add clock(3), clock_gettime(3). 2008-08-28 11:16:36 +00:00
Michael Kerrisk 835363b211 NOTES: Add text mention the shell 'ulimit' (or 'limit')
built-in command for setting resource limits.
2008-08-26 04:19:07 +00:00
Michael Kerrisk 2c0cfe3ccc grfix 2008-08-26 04:11:43 +00:00
Michael Kerrisk effee74c4b Remove FIXME 2008-08-21 08:45:05 +00:00
Michael Kerrisk 491cd2f039 spfix 2008-08-21 07:00:26 +00:00
Michael Kerrisk 5144e45f51 These interfaces are specified in POSIX.1-2008. 2008-08-21 06:16:15 +00:00
Michael Kerrisk 5db9708db3 CONFORMING TO: POSIX.1-2008 specifies utimensat() and futimens(). 2008-08-21 06:05:08 +00:00
Michael Kerrisk f428c08ac0 CONFORMING TO: POSIX.1-2008 marks gettimeofday() as obsolete. 2008-08-21 06:01:46 +00:00
Michael Kerrisk e1146d332c F_DUPFD_CLOEXEC is specified in POSIX.1-2008. 2008-08-21 05:15:16 +00:00
Michael Kerrisk aaec1423d7 Add FIXME 2008-08-21 05:11:22 +00:00
Michael Kerrisk 115e8dca06 Add a reference to linkat(2) for an interface that allows
precise control of the treatment of symbolic links.
2008-08-21 04:54:14 +00:00
Michael Kerrisk 08a3addfa4 O_CLOEXEC is specified in POSIX.1-2008. 2008-08-21 04:51:54 +00:00
Michael Kerrisk 1f8f8acb44 grfix 2008-08-21 04:44:02 +00:00
Michael Kerrisk e2067e32d7 Note kernel version where Linux stopped following symbolic
links in 'oldpath'; see also http://lwn.net/Articles/294667.
POSIX.1-2008 makes it implementation-dependent whether or not
'oldpath' is dereferenced if it is a symbolic link.
2008-08-21 04:38:03 +00:00
Michael Kerrisk c368e7ca76 Add kernel version numbers for MAP_32BIT.
Add some details on MAP_32BIT (see http://lwn.net/Articles/294642).
2008-08-21 04:14:14 +00:00
Michael Kerrisk 1d0ab60002 grfix 2008-08-20 19:45:18 +00:00
Michael Kerrisk cc40d64d21 ffix 2008-08-19 18:07:03 +00:00
Michael Kerrisk 2269e87064 s/d/domain/ for name of argument.
Add reference to socket(2) for further information on
domain, type, and protocol arguments.
2008-08-19 14:34:48 +00:00
Michael Kerrisk 20e5fb78ea When an eventfd overflows, select() indicates the file as both
readable and writable (not as having an exceptional condition).
2008-08-18 11:09:15 +00:00
Michael Kerrisk 43be23955e SEE ALSO: remove duplicate entry. 2008-08-18 06:19:19 +00:00
Michael Kerrisk adfbcbebf0 Add reference to numa(7) for information on library support.
Added  a VERSIONS section.
SEE ALSO: Add numa(7).
2008-08-13 08:20:30 +00:00
Michael Kerrisk 69f06e4f98 Add reference to numa(7) for information on library support.
Added  a VERSIONS section.
SEE ALSO: Add numa(7).
2008-08-13 08:19:47 +00:00
Michael Kerrisk b000a5203b SEE ALSO: Add numa(7).
Added  a VERSIONS section.
2008-08-13 08:16:43 +00:00
Michael Kerrisk c6b29f0e9e SEE ALSO: Add numa(7).
Added  a VERSIONS section.
Remove material on library support and numactl; that material
is now in numactl.7.
2008-08-13 08:15:51 +00:00
Michael Kerrisk 8b9c69b6f7 Added VERSIONS (from kernel 2.6.18) and CONFORMING TO sections. 2008-08-13 05:51:20 +00:00
Michael Kerrisk 5a35e62092 Removed trailing white space at end of lines 2008-08-12 10:27:05 +00:00
Michael Kerrisk abe7c8711b Documentation of the move_pages() system call.
This page was formerly part of the numactl package, but really
belongs in man-pages (since it describes a kernel interface).
2008-08-12 09:22:42 +00:00
Michael Kerrisk ad6eeaf0f3 grfix 2008-08-11 09:01:40 +00:00
Michael Kerrisk a0c1c6f017 s/task/process/g 2008-08-11 09:00:23 +00:00
Michael Kerrisk bdd7bc29e2 Attempt to clarify discussion of MPOL_DEFAULT. 2008-08-11 05:31:24 +00:00
Michael Kerrisk 58a69c3c86 tstamp 2008-08-11 05:28:31 +00:00
Michael Kerrisk 4a459ba1ab Add brief discussion of mode flags. 2008-08-11 05:27:30 +00:00
Michael Kerrisk 1313d29781 tweaks 2008-08-11 05:21:24 +00:00
Michael Kerrisk f98b728e0a Lee Schermerhorn
Another attempt to rationalize description of MPOL_DEFAULT.

Since ~2.6.25, the system default memory policy is "local allocation".
MPOL_DEFAULT itself is a request to remove any non-default policy and
"fall back" to the surrounding context.  Try to say that without delving
into implementation details.
2008-08-11 05:11:50 +00:00
Michael Kerrisk fb67fb2902 Fix URI reference for libnuma. 2008-08-11 04:25:50 +00:00
Michael Kerrisk 20ca75a0d7 Lee Schermerhorn
Update the get_mempolicy(2) man page to add in the description of
the MPOL_F_MEMS_ALLOWED flag, added in 2.6.23.
mtk
Document additional EINVAL error that occurs is MPOL_F_MEMS_ALLOWED
is specified with either MPOL_F_ADDR or MPOL_F_NODE.
2008-08-08 20:02:56 +00:00
Michael Kerrisk 63e28ad443 Lee Schermerhorn
Misc cleanup of get_mempolicy(2):
+ mention that any mode flags will be saved with mode.
I don't bother to document mode flags here because we
already have a pointer to set_mempolicy(2) for more info
on memory policy.  mode flags are discussed there.
+ remove some old, obsolete [IMO] NOTES and 'roff comments.
2008-08-08 19:47:20 +00:00
Michael Kerrisk d4c8c97c31 s/PF_/AF_/ for socket family constants. Reasons: the AF_ and
PF_ constants have always had the same values; there never has
been a protocol family that had more than one address family,
and POSIX.1-2001 only specifies the AF_* constants.
2008-08-08 16:47:53 +00:00
Michael Kerrisk 77117f4fc5 Reverting blunder in commit 4699 2008-08-08 16:41:48 +00:00
Michael Kerrisk 10874173db s/PF_/AF_/ for socket family conistants. Reasons: the AF_ and
PF_ constants have always had the same values; there never has
been a protocol family that had more than one address family,
and POSIX.1-2001 only specifies the AF_* constants.
2008-08-08 16:28:06 +00:00
Michael Kerrisk bfcecf8a76 Fix error conditions, now that the kernel silently ignores
nodes outside the task's cpuset, as long as one valid node remains.

Now that cpuset man page exists, we can refer to it.  Remove
stale comment regarding lack thereof.
2008-08-08 15:22:56 +00:00
Michael Kerrisk cdba92536d Lee Schermerhorn
Fix up the error return for nodemask containing nodes disallowed by
the process' current cpuset.  Disallowed nodes are now silently ignored,
as long as the nodemask contains at least one node that is on-line,
allowed by the process' cpuset and has memory.

Now that we have a cpuset man page, we can refer to cpusets directly
in the man page text.
2008-08-07 12:19:08 +00:00
Michael Kerrisk 6c48afffcf wfix 2008-08-07 11:08:15 +00:00
Michael Kerrisk 2fb19a1619 The floating-point environment is reset to the default
during an execve().
2008-08-07 10:54:18 +00:00
Michael Kerrisk b05757449e ffix 2008-08-06 20:46:09 +00:00
Michael Kerrisk 9fcbe835d8 ffix 2008-08-06 20:45:26 +00:00
Michael Kerrisk f36903108a ffix 2008-08-06 20:41:47 +00:00
Michael Kerrisk 89b3c6b808 ffix 2008-08-06 20:33:17 +00:00
Michael Kerrisk b546318a5f In the ipc_perm structure definition, some fields were
incorrectly named: s/key/__key/ and s/seq/__seq/.
2008-08-06 20:22:46 +00:00
Michael Kerrisk 58413227bf ffix 2008-08-06 20:20:52 +00:00
Michael Kerrisk 765eec1080 Last change was really:
In the ipc_perm structure definition, some fields were
incorrectly named: s/key/__key/ and s/seq/__seq/.
2008-08-06 20:19:17 +00:00
Michael Kerrisk 2d2892fc42 ffix 2008-08-06 20:18:38 +00:00
Michael Kerrisk 6edbac015c ffix 2008-08-06 20:17:27 +00:00
Michael Kerrisk 116e7cd9df tfix 2008-08-06 20:09:41 +00:00
Michael Kerrisk b101827706 In ipc_perm structure definition, some fields were incorrectly
named: s/key/__key/ and s/seq/__seq/.
2008-08-06 20:09:12 +00:00
Michael Kerrisk a2a11a45ec ffix 2008-08-06 20:08:09 +00:00
Michael Kerrisk c153f4a6fb ffix 2008-08-06 19:58:00 +00:00
Michael Kerrisk 22b2283175 Remove EFAULT from errors. Under ENOMEM error, note that EFAULT
was the error produced in some cases for kernels before 2.4.19.
2008-08-06 19:41:51 +00:00
Michael Kerrisk 05c1f95677 Remove FIXME 2008-08-06 10:46:47 +00:00
Michael Kerrisk 5a54a60bf9 POSIX.1-2008 removes the specification of vfork(). 2008-08-06 10:46:26 +00:00