Commit Graph

2153 Commits

Author SHA1 Message Date
Nicolas François 3f1a745d44 timer_settime.2: Minor fixes
Fix typos:
 * duplicate the
 * curr_value is a pointer
 * misplaced 'a'.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:25 +02:00
Nicolas François 37f0c8322e timer_create.2: Minor fixes
Add missing parenthesis
Explicitly indicate that conditions are ORed.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:25 +02:00
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