Commit Graph

2105 Commits

Author SHA1 Message Date
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