Commit Graph

2301 Commits

Author SHA1 Message Date
Nicolas François ec28c6b988 stat.2: Minor fixes
Fix to formatting issues:
 * remove ending tabulation
 * add missing parenthesis

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:25 +02:00
Nicolas François b6a046323e set_thread_area.2: Minor fixes
set_thread_area is a system call, not a library function.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:24 +02:00
Nicolas François dc99a2a724 select_tut.2: Minor fixes
Wording and spelling fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:24 +02:00
Nicolas François c9065be1c4 sched_setaffinity.2: Minor fixes
Consistency for references to manpages

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:24 +02:00
Nicolas François 22e7039097 recv.2: Minor fixes
Fix some formatting typos
 * the period should be in Roman font
 * .RP does not exist, it should be .RB

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:24 +02:00
Nicolas François 073161a3f0 mount.2: Minor fixes
There was too many verbs in the last part of the sentence.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:24 +02:00
Nicolas François ced55c9139 mbind.2: Minor fixes
there should be no commas here.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:23 +02:00
Nicolas François 2c1c0a319a get_thread_area.2: Minor fixes
get_thread_area.2 is a system call.
Other manpages seems to differentiate functions (i.e. (g)lib(c) functions)
and system calls. This make it more consistent.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:23 +02:00
Nicolas François 5c03d6b181 get_mempolicy.2: Minor fixes
There should be no comma here.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:23 +02:00
Nicolas François f7bf69adcc getdents.2: Minor fixes
2 typos:
 * Wrong end of comments
 * etx3 should be ext3

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:23 +02:00
Nicolas François 5541fa5210 fcntl.2: Minor fixes
Just a formatting typo.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:23 +02:00
Nicolas François 8ce39f8681 clone.2: Minor fixes
"PID namespace" is what is new.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:23 +02:00
Nicolas François 5113b11a03 epoll_ctl.2: tfix: This patch fixes a formatting typo.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:21 +02:00
Michael Kerrisk 76a34baa39 mmap.2: Add brief documentation of MAP_HUGETLB
This flag is new in 2.6.32, and serves a similar
purpose to the shmget() SHM_HUGETLB flag.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:21 +02:00
Christoph Hellwig 015221eff8 open.2: add some comments on O_SYNC and friends
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:21 +02:00
Michael Kerrisk a38dc43a2d setpgid.2: Add an explanation of orphaned process groups
Reported-by: Georg Sauthoff <gsauthof@techfak.uni-bielefeld.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:20 +02:00
Michael Kerrisk 6b34fb3f5a execve.2, pipe.2, tee.2, fmemopen.3, mq_notify.3, qsort.3: Replace use of assert() by code that checks argc
See http://bugzilla.kernel.org/show_bug.cgi?id=13569

As noted by Andrey:
The purpose of the assert macro, defined in <assert.h>,
is to provide a tool to check for programming mistakes
or program logic errors. However, the assert macro must
never be used to perform checks for run time errors,
since, with the NDEBUG macro defined, expressions within
the assert macro invocations are not evaluated/checked
for, resulting in behavior that was not originally intended.
...
The pages affected in the core package are

execve(2)
pipe(2)
tee(2)
fmemopen(3)
mq_notify(3)
qsort(3)

Reported-by: Andrey Vihrov <vihrov@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:19 +02:00
Michael Kerrisk 3392d76d6f kill.2: wfix: add missing word to NOTES
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543686.

Reported-by: Marc Lehmann <debian-reportbug@plan9.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:19 +02:00
Michael Kerrisk d8dfbff93f poll.2: Clarify wording describing of 'nfds' argument.
reported by: rui rlex <rui.rlex@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:19 +02:00
Mark Hills 52520fb570 splice.2, tee.2, vmsplice.2: Fix return type
Since glibc 2.7, the return type for these functions
is ssize_t (formerly it was long).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:18 +02:00
Michael Kerrisk 8749bd1a31 umount.2: glibc only exposes MNT_DETACH and MNT_EXPIRE since version 2.11
See http://sourceware.org/bugzilla/show_bug.cgi?id=10092

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-03 06:07:57 +02:00
Michael Kerrisk 835c57e9cc umount.2: glibc only exposes MNT_DETACH and MNT_EXPIRE since version 2.11
See http://sourceware.org/bugzilla/show_bug.cgi?id=10092

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-03 06:06:54 +02:00
Michael Kerrisk 6f6a9bc76e getrusage.2: ru_inblock and ru_oublock are now implemented
These fields of the rusage structure are filled in since
Linux 2.6.22.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-08-25 11:00:44 +02:00
Michael Kerrisk 0f7654e417 sigaction.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-07-25 08:45:44 +02:00
Michael Kerrisk 6da336d7fe fcntl.2: The kernel source file mandatory.txt is now mandatory-locking.txt
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-07-25 08:30:59 +02:00
Michael Kerrisk de544d7faf fcntl.2, flock.2: The Documentation/* files are now in Documentation/filesystems
Reported-by: Tolga Dalman <tdalman@project-psi.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-07-25 08:30:51 +02:00
Michael Kerrisk f62a64aa05 flock.2: Remove unneeded reference to Documentation/mandatory.txt
Mandatory locks are only implemented by fcntl() locking

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-07-25 07:22:37 +02:00
Michael Kerrisk 8722311bc5 clone.2: Fix version number for CLONE_NEWIPC
It's 2.6.19, not 2.4.19.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-07-18 06:16:12 +02:00
Michael Kerrisk 6909213aa5 getdents.2: The d_type field is fully supported on Btrfs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-07-04 15:04:43 +02:00
Michael Kerrisk 21d995a882 mount.2: srcfix: Added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-06-26 14:48:14 +02:00
Michael Kerrisk 02a4e226a6 mount.2: Document MS_STRICTATIME, update description of MS_RELATIME
Starting with Linux 2.6.30, the MS_RELATIME behavior became
the default, and MS_STRICTATIME is required to obtain the
traditional semantics.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-06-26 14:36:28 +02:00
Michael Kerrisk 577f9b624b clone.2: Rewrite crufty text about number of args in older version of clone()
Some bit rot had crept in regarding the discussion of the
    number of arguments in older versions of this syscall.
    Simplify the text to just say that Linux 2.4 and earlier
    didn't have ptid, tls, and ctid arguments.

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

    Reported-by: Shachar Shemesh <shachar@debian.org>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-06-21 15:30:21 +02:00
Michael Kerrisk d3dbc9b11a clone.2: Fix errors in argument names in text (ptid, ctd)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-06-21 15:14:28 +02:00
sobtwmxt bd16963cbe vfork.2: tfix: s/exit(2)/_exit(2)/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-06-21 14:38:05 +02:00
Michael Kerrisk 45f2d4eb13 sigaction.2: EWxpand description of si_utime and si_stime fields of siginfo_t
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-06-09 06:01:59 +02:00
Michael Kerrisk f1a291ecd0 poll.2: Remove EBADF error from ERRORS
As reported by Motohiro:

"man poll" describe this error code.

>ERRORS
>   EBADF  An invalid file descriptor was given in one of the sets.

but current kernel implementation ignore invalid file descriptor,
not return EBADF.
...

In the other hand, SUSv3 talk about

> POLLNVAL
>    The specified fd value is invalid. This flag is only valid in the
>    revents member; it shall ignored in the events member.

and

> If the value of fd is less than 0, events shall be ignored, and
> ireevents shall be set to 0 in that entry on return from poll().

but, no desribe EBADF.
(see http://www.opengroup.org/onlinepubs/009695399/functions/poll.html)

So, I think the implementation is correct.

Why don't we remove EBADF description?

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
2008-06-11 02:09:08 +02:00
Michael Kerrisk 0877a26bbe syscalls.2: Ad preadv() and pwritev(), new in kernel 2.6.30
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-05-06 16:43:44 +12:00
Jeff Moyer cb6a78e664 fork.2: Document fork() behaviour for the Linux native AIO io_context
It was noted on lkml that the fork behaviour is documented
for the POSIX AIO calls, but not for the Linux native calls.
Here is a patch which adds a small blurb that folks will
hopefully find useful.

Upon fork(), the child process does not inherit the
io_context_t data structures returned by io_setup,
and thus cannot submit further asynchronous I/O or
reap event completions for said contexts.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-28 16:53:42 +12:00
Michael Kerrisk 6ebde978ef epoll_ctl.2: ffix 2009-04-27 15:26:19 +12:00
Gokdeniz Karadag 73ac11ee65 wait.2: Document CLD_DUMPED and CLD_TRAPPED si_code values
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 16:43:46 +12:00
Michael Kerrisk 94ea1e9d16 stat.2: Improve wording of ENOTDIR error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 14:57:42 +12:00
Michael Kerrisk 5cf0b3b40e stat.2: wfix
Reported-by: Tolga Dalman <tdalman@project-psi.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 14:53:07 +12:00
Mike Frysinger 472e8c79c3 sigpending.2: tfix + wfix
Reported-by: Christopher Head <chead@telus.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 14:40:41 +12:00
Mike Frysinger c62e7abad4 execve.2: Remove erroneous statement that pending signal set is cleared on execve(2)
Reported-by: Christopher Head <chead@telus.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-04-21 14:35:39 +12:00
Michael Kerrisk 3d81b96737 rename.2: Make ENOENT description consistent with POSIX.1-2008
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-30 15:19:48 +13:00
Michael Kerrisk 94cffcd707 ptrace.2: Note use of 'data' for PTRACE_SYS{CALL,EMU} and PTRCAE_*_SINGLESTEP
These operations use the 'data' argument as a signal number,
like PTRACE_CONT.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Reported-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-30 13:32:37 +13:00
Mike Frysinger c71df6fba0 ptrace.2: only reference <sys/user.h>
The kernel no longer installs linux/user.h, so update
references to sys/user.h.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-30 09:30:23 +13:00
Michael Kerrisk bd314baf09 getcontext.2: Note that POSIX.1-2008 removes the specification of getcontext()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-15 08:07:54 +13:00
Michael Kerrisk b822e47c52 getitimer.2: Note that POSIX.1-2008 recommends POSIX timers API instead of this API
Reported-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-15 08:04:57 +13:00
Michael Kerrisk 3f372391ea gettimeofday.2: Note that POSIX.1-2008 recommends clock_gettime() instead of this API
Reported-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-15 08:04:46 +13:00
Michael Kerrisk ff6db39993 fallocate.2: VERSIONS: glibc support is provided since version 2.10
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-13 07:20:09 +13:00
Michael Kerrisk 7c1f78d417 fallocate.2: srcfix: Update FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-12 15:03:32 +13:00
Michael Kerrisk 86d95cf2dc timerfd_create.2: ERRORS: add EINVAL for invalid 'flags' for timer_settime()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-10 16:36:34 +13:00
Michael Kerrisk c71b054dbc timerfd_create.2: Minor logical restructuring of ERRORS text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-10 16:31:09 +13:00
Michael Kerrisk f9fb3ffcb5 recv.2: Add 'iovec' defn to defn of 'msghdr' structure
The 'msghdr' structure includes a field of type 'iovec',
so show the definition of that structure in this page.

Reported-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-10 11:02:58 +13:00
Michael Kerrisk 7a5097a15c truncate.2: srcfix: spfix 2009-03-08 13:35:19 +13:00
Michael Kerrisk 3ca7341fc9 truncate.2: SYNOPSIS: Fix description of feature test macro requirements
After a report by Arvid Norlander.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-03-08 13:35:18 +13:00
Michael Kerrisk 702cbe158e timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2, numa.7: Make source layout of 'Link with' text consistent with other pages
No actual change to formatted output, but this makes the
page sources more consistent for the purpose of grepping, etc.

Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-24 07:50:06 +13:00
Michael Kerrisk 4ed3353db2 get_mempolicy.2, mbind.2, set_mempolicy.2: grfix
Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-24 07:49:59 +13:00
Michael Kerrisk 86426e0be4 accept.2, read.2, recv.2, send.2, write.2: Fix discussion of EAGAIN/EWOULDBLOCK errors
For a non-blocking socket, POSIX.1-2001/2008 allow either
EAGAIN or EWOULDBLOCK to be returned in cases where a call
would have blocked.  Although these constants are defined
with the same value on most Linux architectures (PA-RISC
is the exception), POSIX.1 does not require them to have
the same value.  Therefore, a portable application using
the sockets API should test for both errors when checking
this case.

(NB POSIX.1 only mentions EWOULDBLOCK in the context of
the sockets interfaces.)

Change made after a note cross-posted on linux-arch@vger,
http://thread.gmane.org/gmane.linux.debian.ports.hppa/5615
and a suggestion for write(2) from Carlos O'Donell

Reported-by: Carlos O'Donell <carlos@systemhalted.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-23 20:31:52 +13:00
Michael Kerrisk 962939dd7e fcntl.2: Remove mention of EWOULDBLOCK from discussion of mandatory locking
In the kernel, the error on encountering a mandatory lock is
EAGAIN.  Although EAGAIN and EWOULDBLOCK are the same on
most Linux architectures, on some they are not, so don't
mention EWOULDBLOCK as it is misleading.  (Mea culpa.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-23 17:21:00 +13:00
Michael Kerrisk 8e415e6187 shmop.2: srcfix: fix kernel version number in FIXME 2009-02-21 14:07:56 +13:00
Mark Hills 28081592c7 splice.2: ERRORS: Add EINVAL case for file opened O_APPEND
Target file cannot be opened in append (O_APPEND) mode

In kernels prior to v2.6.27 splice() to a file in append mode is broken,
and since that version it is disallowed. It is possible this behaviour
may change in the future; see the kernel commit message
(efc968d450e013049a662d22727cf132618dcb2f) for more information.

Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-20 19:52:31 +13:00
Parag Warudkar 6dd57cb443 vm86.2: CONFORMING TO: Add 32-bit specific
Note that this call is only on *32-bit* Intel

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-20 19:52:30 +13:00
Michael Kerrisk d08919a375 timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2: Reviewed by Peter Zijlstra
Reviewed-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-20 19:52:29 +13:00
Kir Kolyshkin baf17bc4f2 Trivial punctuation fixes in SEE ALSO
In SEE ALSO, when a few man pages are referenced, those are divided by commas.
Every reference is on a separate line, and all lines but the last one should
end with comma. I spotted one place where there is no comma in between
references, and mocked up an awk script to find similar places:

for f in man*/*; do awk '/^.SH ["]SEE ALSO["]/ {sa=1; print "== " FILENAME " =="; print; next } /^\.(PP|SH)/ {sa=0; no=0; next} /^\.BR/ { if (sa==1) { print; if (no == 1) print "Missing comma in " FILENAME " +" FNR-1; no=0 } } /^\.BR .*)$/ { if (sa==1) no=1; next } /\.\\"/ {next} /.*/ { if (sa==1) { print; next }}' $f; done | fgrep 'Missing comma'

This patch fixes all the places found by the above script.

Also, there is an extra dot at the end of uri.7 "SEE ALSO" section.
Removed as per man-pages(7) recommendation.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-20 19:52:29 +13:00
Michael Kerrisk d34ba634d1 timer_getoverrun.2, timer_settime.2: Add EXAMPLES section referring to example in timer_create(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-20 19:52:29 +13:00
Michael Kerrisk 02539b88ba timer_create.2: Minor change to example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 21:41:59 +13:00
Michael Kerrisk a31a4d2918 timer_create.2: Fix small bug in example
Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 21:41:04 +13:00
Michael Kerrisk 826ed36b7e select_tut.2: minor: fix small bug in example code
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 19:26:37 +13:00
Michael Kerrisk 75362965dd syscalls.2: Note that getpmsg(2) and putmsg(2) are unimplemented
See See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514771

Reported-by: Sami Liedes <sliedes@cc.hut.fi>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 17:37:36 +13:00
Michael Kerrisk 8699ebd957 getitimer.2, clock_getcpuclockid.3, time.7: SEE ALSO: add timer_create(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 14:42:17 +13:00
Michael Kerrisk 527d64f841 timer_delete.2: New page documenting timer_delete(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 13:37:22 +13:00
Michael Kerrisk c6f51a127e timer_getoverrun.2: New page documenting timer_getoverrun(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 13:37:07 +13:00
Michael Kerrisk 167f7e62e1 timer_gettime.2: New link to new tiemr_settime.2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 13:36:47 +13:00
Michael Kerrisk d268951f33 timer_settime.2: New page documenting timer_settime(2) and timer_gettime(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 13:35:46 +13:00
Michael Kerrisk 944f8a69c0 timer_create.2: New page documenting timer_create(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 13:35:25 +13:00
Michael Kerrisk b8fb88249b getitimer.2: Rename arguments for consistency with other timer pages
Also some other minor wording improvements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 12:37:42 +13:00
Michael Kerrisk d6a54d42ba timerfd_create.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 12:36:54 +13:00
Michael Kerrisk 2bbb390720 timerfd_create.2: ERRORS: add EFAULT
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 12:36:28 +13:00
Michael Kerrisk 5c9025973e timerfd_create.2: Rename timerfd_settime() 'curr_value' arg to 'old_value'
For consistency with related pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-10 12:35:13 +13:00
Michael Kerrisk f09cbcf3f0 Removed trailing white space at end of lines 2009-02-09 15:12:23 +13:00
Michael Kerrisk 874f7568f3 timerfd_create.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 15:03:53 +13:00
Michael Kerrisk eb9bcd8678 eventfd.2: srcfix: Remove out-of-date FIXME 2009-02-09 12:32:01 +13:00
Michael Kerrisk 0eb443910b clock_nanosleep.2, getrusage.2, timerfd_create.2, clock.3, clock_getcpuclockid.3, ftime.3, pthread_create.3, pthread_getcpuclockid.3, pthread_tryjoin_np.3, sem_wait.3, time.7: Global fix: Fix xrefs to clock_*.? pages to reflect move to section 2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:32:00 +13:00
Michael Kerrisk 58ebb7ec73 clock_gettime.2, clock_settime.2, clock_gettime.3, clock_settime.3: Update links to reflect the fact that clock_* pages are now in Section 2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:32:00 +13:00
Michael Kerrisk 8c7e5701a0 clock_getres.2: Update .TH line to reflect move to Section 2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:32:00 +13:00
Michael Kerrisk 9bdcdd5e27 clock_getres.2: Move page from Section 3 to Section 2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:32:00 +13:00
Michael Kerrisk cc22d4c064 clock_getres.2: Remove, in preparation for moving clock_*.3 pages to Section 2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:31:53 +13:00
Michael Kerrisk 804f03e657 clock_nanosleep.2, execve.2, fork.2, nanosleep.2, sigaction.2, timerfd_create.2, pthread_getcpuclockid.3, ualarm.3, usleep.3, pthreads.7, time.7: Global fix: s/(3)/(2)/ in section number xrefs for timer_*() API
The POSIX timers API is implemented (mostly) within the kernel,
so thse interfaces are system calls.  Although there are as yet
no man pages, when they are added they should be in Section 2,
not 3.  Therefore fix those pages that currently refer to these
interfaces as being in Section 3.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:29:10 +13:00
Michael Kerrisk 6f8303a95a timerfd_create.2: Add BUGS noting that timerfd supports fewer clock types than timer_create()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:29:04 +13:00
Mike Frysinger e1fbfba539 epoll_create.2: wfix: s/flags/size/
Reported-by: Christopher Head <chead@telus.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-09 12:29:03 +13:00
Michael Kerrisk d0e95dbcd1 shmop.2: srcfix: added FIXME 2009-02-03 23:08:05 +13:00
Michael Kerrisk 9fa3ad83b3 fork.2: SEE ALSO: add daemon(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-03 10:05:09 +13:00
Michael Kerrisk 66bbce0015 eventfd.2: glibc eventfd() supports the use of eventfd2() since version 2.9
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 06:05:56 +01:00
Andi Kleen 065c543677 capget.2: Add some details and relocate a paragraph
While writing a little program using capset
I found the capset manpage quite light on crucial
details and I had to resort to RTFS.

This patch improves the points I found unclear
and also moves one misplaced paragraph around.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 01:42:01 +01:00
Michael Kerrisk 7ce9ffda47 select_tut.2: Many parts tidied and rewritten
Remove some redundant text, clarify various pieces,
tidy example code, etc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 01:20:55 +01:00
Michael Kerrisk b0cac4c7aa select_tut.2: Bug fixes + rewrites in example program
Sebastien pointed out that the first example program
wrongly thinks it can count signals.
Also, some further rewrites by mtk.

Reported-by: Sebastian Kienzl <seb@riot.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-27 01:20:37 +01:00
Michael Kerrisk 0e888d6adb select_tut.2: Clean up error checking in example program (no semantic changes)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-24 23:34:23 +01:00
Michael Kerrisk 6197b465ef getdents.2: Remove unneeded HAVE_D_TYPE from example program
Since d_type will always just return DT_UNKNOWN before
kernel 2.6.4, we don't need to use a conditional for
determining whether we use this flag.

Reported-by: Bastien ROUCARIES <roucaries.bastien@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-22 20:56:50 +01:00
Michael Kerrisk 14adeb6d28 stat.2: Note that open(O_NOATIME) also cause st_atime not to be updated
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-22 20:53:44 +01:00
Michael Kerrisk 56d2079da7 ioprio_set.2: srcfix 2009-01-20 15:14:57 +13:00
Michael Kerrisk 523c1b2c03 socket.2: BUGS: Remove discussion SOCK_UUCP
As time goes on, this sentence becomes less a piece of humor,
and more a puzzle.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-19 22:25:34 +13:00
Michael Kerrisk 762c2446e8 nanosleep.2: Relocated misplaced BUGS heading
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-19 22:15:09 +13:00
Michael Kerrisk f7d1749738 syscalls.2: Minor: update kernel version number in DESCRIPTION
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-19 17:49:38 +13:00
Michael Kerrisk 74ee79b977 Removed trailing white space at end of lines 2009-01-19 17:12:10 +13:00
Michael Kerrisk 52c385c592 getdents.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-18 14:48:06 +13:00
Michael Kerrisk 67b59ff59d mmap.2: srcfix: Removed FIXME 2009-01-18 14:20:36 +13:00
Michael Kerrisk 1c7a3214e9 epoll_create.2: Document EMFILE error
This error is encountered when the limit imposed by
/proc/sys/fs/epoll/max_user_instances is encountered.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-18 14:20:36 +13:00
Michael Kerrisk 00144560c3 epoll_ctl.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-18 14:20:35 +13:00
Michael Kerrisk ccadaba2f3 epoll_ctl.2: Document ENOSPC error (new in Linux 2.6.28)
This error results when the limit imposed by
/proc/sys/fs/epoll/max_user_watches is encountered.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-18 14:20:27 +13:00
Michael Kerrisk 7829230a3a epoll_ctl.2: Reordered parts of the text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-16 07:58:54 +13:00
Michael Kerrisk a58b33605d epoll_ctl.2: Introduce notion of epoll instance
Introduce notion of epoll instance as distinct from epoll file descriptor.
Plus other wording clean-ups.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-16 07:53:24 +13:00
Michael Kerrisk ae3faf4b62 epoll_wait.2: Minor restructuring of text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-16 07:43:02 +13:00
Michael Kerrisk 8483a88c94 epoll_wait.2: Introduce the notion of an epoll instance into text
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-16 07:40:16 +13:00
Michael Kerrisk 700e0efd68 epoll_create.2: Clarify distinction between epoll instance and epoll file descriptor
Reword so that the notion of an epoll instance is made clear,
and made distinct from the notion of an epoll file descriptor.
Some other minor rewordings also.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-16 07:31:16 +13:00
Michael Kerrisk 689cdcf175 accept.2: srcfix: Remove outdated FIXME 2009-01-16 07:14:57 +13:00
Michael Kerrisk f159e8b531 gethostid.2: Rename file (was misnamed gethostd.2 in previous release)
Reported-by: Martin (Joey) Schulze <joey@infodrom.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-15 06:00:50 +13:00
Michael Kerrisk e174ff0a66 getsockname.2: SEE ALSO: Add getifaddrs(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 16:38:14 +13:00
Michael Kerrisk bbc0dbf06f bind.2: SEE ALSO: Add getifaddrs(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 16:38:02 +13:00
Michael Kerrisk 47f442b232 wait.2: Added FIXME 2009-01-14 10:41:54 +13:00
Michael Kerrisk 98895092a0 signalfd.2: Fix description of fork() semantics
The page text described the semantics of the initial
implementation of signalfd().  These were changed early on,
but the man page wasn't updated.

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
Reviewed-by: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:53 +13:00
Michael Kerrisk 59190704db signalfd.2: ffix 2009-01-14 10:41:53 +13:00
Michael Kerrisk 8f998fb470 getdents.2: Before kernel < 2.6.4, 'd_type' was effectively always DT_UNKNOWN
Reported-by: Bastien ROUCARIES <roucaries.bastien@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:52 +13:00
Michael Kerrisk ade8a1f9f6 getdents.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-14 10:41:44 +13:00
Michael Kerrisk de9ed3a3ab syscalls.2, feature_test_macros.7, standards.7: SEE ALSO: add libc(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 08:37:49 +13:00
Michael Kerrisk 8a2d6d4bd3 gethostid.2: New link to new page location in Section 3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-01-13 07:03:45 +13:00
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