Commit Graph

4063 Commits

Author SHA1 Message Date
Michael Kerrisk 6a6dd34494 sched_setscheduler.2: ERRORS: mark errors that apply just to sched_setscheduler()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:29 +02:00
Michael Kerrisk b61826c0e7 sched_setscheduler.2: ERRORS: separate out EINVAL cases
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:29 +02:00
Michael Kerrisk 94417494b3 sched_setscheduler.2: ERRORS: add EINVAL case for pid < 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:29 +02:00
Michael Kerrisk 7181635a60 sched_setparam.2: ERRORS: Add EINVAL for invalid arguments
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:29 +02:00
Michael Kerrisk 5529e47bf2 sched_setparam.2: ERRORS: mark errors that apply just for sched_setparam()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:29 +02:00
Michael Kerrisk 72a8053949 sched_get_priority_max.2: Minor rewording
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:29 +02:00
Michael Kerrisk ce97aba39e sched_get_priority_max.2: 'policy' can also be SCHED_DEADLINE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:28 +02:00
Michael Kerrisk 75becc94d3 fork.2: ERRORS: SCHED_DEADLINE tasks can fail with EAGAIN
SCHED_DEADLINE tasks can fail with EAGAIN unless the
reset-on-fork flag is set.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:28 +02:00
Michael Kerrisk 225d97f29e sched_setattr.2: New page describing sched_setattr(2) and sched_getattr(2)
Cowritten-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:28 +02:00
Michael Kerrisk ab3d02453d sched_setscheduler.2: wfix + tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:28 +02:00
Michael Kerrisk 48ae5295f3 sched_setparam.2: SEE ALSO: add sched_setattr(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:28 +02:00
Michael Kerrisk 7697f8394e sched_getattr.2: New link to new sched_setattr.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 20:45:28 +02:00
Michael Kerrisk 27b38e1c2b futex.2: srcfix: Update FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-14 10:36:23 +02:00
Michael Kerrisk dfc0036345 recvmmsg.2: Describe timeout bug
See FIXME https://bugzilla.kernel.org/show_bug.cgi?id=75371
and http://thread.gmane.org/gmane.linux.man/5677

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-12 21:13:31 +02:00
Michael Kerrisk 3d1ee4971b delete_module.2, perf_event_open.2, sched_setscheduler.2, shmctl.2, gai.conf.5, resolv.conf.5, fanotify.7, man-pages.7: wsfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-12 08:44:56 +02:00
Michael Kerrisk ea38fc5c46 remap_file_pages.2: wfix
Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-10 19:43:52 +02:00
Michael Kerrisk af8ad761d9 epoll_wait.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-10 07:39:00 +02:00
Michael Kerrisk 0b13a3d631 create_module.2, delete_module.2, init_module.2, query_module.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-10 07:38:04 +02:00
Michael Kerrisk fa5d243fac open.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-10 07:33:48 +02:00
Michael Kerrisk 76f2666031 remap_file_pages.2: Tweak notes on 2.6.23 changes
Cowritten-by: Christoph Hellwig <hch@infradead.org>
Cowritten-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-09 07:30:32 +02:00
Michael Kerrisk 6fffae19ac link.2: AT_EMPTY_PATH *does* require CAP_DAC_READ_SEARCH
Andy Lutomirski pointed out that man-pages commit 7dee406bc4
described behavior that was implemented in kernel commit
bb2314b4799 (1 Aug 2013), but that commit was soon afterward
reverted (f0cc6ffb8ce896). So rework the pieces of man-pages
commit 7dee406bc4 that relate to the privilges change.

Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-09 07:04:41 +02:00
Michael Kerrisk 726663fd9d bind.2, connect.2, create_module.2, delete_module.2, execve.2, get_robust_list.2, getpriority.2, getrusage.2, init_module.2, link.2, listen.2, mbind.2, open.2, poll.2, query_module.2, readlink.2, recv.2, remap_file_pages.2, sched_setaffinity.2, semop.2, send.2, stat.2, stime.2, syscall.2, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, remquo.3, rtime.3, sched_getcpu.3, stpcpy.3, stpncpy.3, strcasecmp.3, system.3, fd.4, proc.5, ip.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:31:12 +02:00
Michael Kerrisk 77500b7e54 bind.2, connect.2, listen.2, send.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk 16f7b04c23 send.2: ERRORS: Add EAGAIN for ephemeral port range exhaustion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk cbe3d857bd listen.2: ERRORS: Add EADDRINUSE for ephemeral port range exhaustion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk 9b533686d8 bind.2: ERRORS: Add EADDRINUSE for ephemeral port range exhaustion
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:56 +02:00
Michael Kerrisk ac7477eb7a connect.2: ERRORS: Add EADDRNOTAVAIL for ephemeral port range exhaustion
Verified from testing and the kernel source.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745775

Reported-by: William Morriss <wjmelements@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 2f3c91a48f connect.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 3a4b02b2f2 execve.2: Note SIGKILL case when execve() fails beyond the point of no return
Reported-by: Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes da30ae718f poll.2: Add <signal.h> to synopsis for ppoll()
One needs to #include <signal.h> to get the definition of the
type (sigset_t) of the mask argument to ppoll().

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes b93d8ccadc mbind.2: Fix prototype for mbind(2)
The nmask argument is const. The return type in numaif.h is long.
(Well, at least <numaif.h> says nmask is const. The current kernel
does not define it as a const argument, but sys_mbind() only
passes it to get_nodes(), which does treat it as const.)

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 24313b880d syscall.2: Fix prototype for syscall(2)
The first argument and the return value of syscall() has type long,
not int.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 531b5b69b4 get_robust_list.2: Add <sys/types.h> to synopsis of get_robust_list()
If one were to implement wrappers for [gs]et_robust_list() using the
given prototypes, one would also have to include sys/types.h to get
a definition of size_t.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 475b1ecfcd sched_setaffinity.2: Fix prototype for sched_setaffinity()
The mask argument is const.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 9f9bbc5aa3 getpriority.2: Fix prototypes for getpriority() and setpriority()
The who argument has type id_t (which happens to be u32 on linux).

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 4a60035c89 semop.2: Fix prototypes for semop() and semtimedop()
The nsops arguments have type size_t, not unsigned, and the
timeout argument of semtimedop() is const.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes cecb112e8e stime.2: Fix prototype for stime()
The argument is const, both according to the actual header
files and according to <http://www.sco.com/developers/devspecs/vol1a.pdf>.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Rasmus Villemoes 479fd9add4 readlink.2: Fix return type of readlinkat()
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 3779bbef74 stat.2: Describe feature test macro requirements for file type test macros
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728240

Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk ff3976ceef stat.2: Move text on S_I*() macros to follow text on S_I* macros
That ordering is more logical

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk 5c3122b1b3 stat.2: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk c2033cfe6c stat.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk afb9bd5d77 stat.2: Update FTM requirements for lstat()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk ff0afc3fca stat.2: Split discussion of 'st_mode' fields into type and permissions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 51c6aa6e63 stat.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 7784c37d7c send.2: Add details on various 'msghdr' fields
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 85b1cf3cdc send.2: Add some subheadings under DESCRIPTION
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk f790e827a2 recv.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk ddb4a7c01c recv.2: Clarify details of msg_name and msg_namelen fields
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00
Michael Kerrisk 6154a29a77 recv.2: ffix: add a paragraph break
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:54 +02:00