Commit Graph

3136 Commits

Author SHA1 Message Date
Michael Kerrisk 1285ff3d2d lseek.2, read.2, setsid.2, vhangup.2, getttyent.3, login.3, openpty.3, console_codes.4, console_ioctl.4, securetty.5, signal.7: Global fix: s/tty/terminal/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-31 21:54:44 +01:00
Michael Kerrisk 3fd39c7a12 outb.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-31 21:14:15 +01:00
Michael Kerrisk dc43bf71f7 outb.2: Add SYNOPSIS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-31 21:14:03 +01:00
Michael Kerrisk 1330fa2959 idle.2: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-31 21:00:03 +01:00
David Prévot 431dcaebd1 sysctl.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-23 20:03:04 +01:00
Elie De Brauwer bbb9456ec4 recvmmsg.2: Add/correct kernel version info for recvmmsg() and MSG_WAITFORNONE
This patch isolates the since/version related fixes as requested.
This change introduces the following delta:
 * The page states it was added in 2.6.32 but it is only added
    2.6.33 (ref: http://kernelnewbies.org/Linux_2_6_33)
 * The MSG_WAITFORONE flag was in turn only added in 2.6.34
   (ref: http://kernelnewbies.org/Linux_2_6_34)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-23 18:47:05 +01:00
Michael Kerrisk 97927abec0 sendmmsg.2: Minor fix to example program: s/main()/main(void)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 22:39:23 +01:00
Michael Kerrisk 6d2f6aff6d recvmmsg.2: srcfix: Note kernel commit that added syscall
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 22:39:20 +01:00
Michael Kerrisk 2c208a7a60 recvmmsg.2: Minor fixes to Elie de Brauwer's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 22:39:20 +01:00
Elie De Brauwer f2246260a9 recvmmsg.2: Add an example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 19:54:30 +01:00
Michael Kerrisk e3b419fae8 symlink.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 18:59:11 +01:00
Mark Hills a1f016851a link.2, mkdir.2, mknod.2, open.2, rename.2, symlink.2, write.2, mkfifo.3: Document EDQUOT error
The return error EDQUOT is not documented in open(2), write(2),
symlink(2) etc..

Whether inodes or disk blocks are required for each function
is something I based on received wisdom and BSD documentation,
rather than tracing the code to the kernel. For symlink(2)
this certainly depends on the file system type.

This patch was previously sent to the linux-man mailing list
as an RFC in September 2010.

Signed-off-by: Mark Hills <mark@pogo.org.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 18:56:59 +01:00
Michael Kerrisk 19a98048b7 unshare.2: SEE ALSO: add kcmp(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 08:05:16 +01:00
Michael Kerrisk 6f8746e45c clone.2: SEE ALSO: add kcmp(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 08:05:15 +01:00
Michael Kerrisk 98ef180325 kcmp.2: Add copyright and license
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 08:05:15 +01:00
Michael Kerrisk b73f9ed61d kcmp.2: Substantial reworking/extension of Cyrill Gorcunov's page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 08:05:15 +01:00
Cyrill Gorcunov aab0b384fd kcmp.2: New page for kcmp(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 08:05:15 +01:00
Michael Kerrisk f33d383dd0 sysctl.2: ERRORS: EACCES as a synonym for EPRM
See https://bugzilla.kernel.org/show_bug.cgi?id=46731
and http://thread.gmane.org/gmane.linux.ltp/11413/focus=957635
	From: Garrett Cooper <yanegomi <at> gmail.com>
	Subject: Re: [LTP] [PATCH] sysctl03: sysctl returns EACCES after 2.6.33-rc1
	Newsgroups: gmane.linux.kernel, gmane.linux.ltp
	Date: 2010-03-04 18:35:33 GMT

Reported-by: Garrett Cooper <yanegomi@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 02:40:06 +01:00
Michael Kerrisk ecbb4bb73c syscalls.2: Add finit_module(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-20 18:29:34 +01:00
Michael Kerrisk e6d86b417f Removed trailing white space at end of lines 2012-12-20 18:17:09 +01:00
Michael Kerrisk cd56c2fce6 wait.2, ttyname.3, undocumented.3: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-20 18:12:45 +01:00
Michael Kerrisk 28474c20d9 sysctl.2: Mention CONFIG_SYSCTL_SYSCALL
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-20 17:37:50 +01:00
Michael Kerrisk bef43fac15 sysctl.2: Calls to sysctl() log warnings to the kernel log since 2.6.24
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-20 17:33:05 +01:00
Michael Kerrisk a25601b48b recv.2: UNIX domain sockets support MSG_TRUNC since 3.4
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-20 17:04:43 +01:00
Michael Kerrisk 929f1ff7f7 syscalls.2: Update various references to "i386" to "x86"
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-18 22:05:57 +01:00
Michael Kerrisk ccc0a19554 fallocate.2: srcfix: Affed FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-18 20:33:26 +01:00
Michael Kerrisk 2908f2b4aa s390_runtime_instr.2: Minor fixes fo Jan's page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-17 22:01:43 +01:00
Jan Glauber 820630e109 s390_runtime_instr.2: New page for s390-specific s390_runtime_instr(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-17 22:01:34 +01:00
Michael Kerrisk 993d1ce33e syscalls.2: Add s390_runtime_instr(2)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-17 20:15:06 +01:00
Michael Kerrisk 821e74fad4 sendmmsg.2: Minor fix-ups for Elie De Brauwer's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-17 20:15:01 +01:00
Elie De Brauwer daf3eb0c70 sendmmsg.2: Add example program for sendmmsg()
The example uses sendmmsg() to send out a string "onetwo"
on a first datagram, where both halves originate from
distinct buffers and a second datagram contains "three",
coming from a single buffer.

Tested with netcat listening:
root@ubuntu:~# nc -l -u -p 1234
onetwothree

And tcpdump peeking:
root@ubuntu:~# tcpdump -c 2 -s 0 -X -ni lo tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
18:45:16.632134 IP 127.0.0.1.34715 > 127.0.0.1.1234: UDP, length 6
     0x0000:  4500 0022 c21c 4000 4011 7aac 7f00 0001  E.."..@.@.z.....
     0x0010:  7f00 0001 879b 04d2 000e fe21 6f6e 6574  ...........!onet
     0x0020:  776f                                     wo
18:45:16.633267 IP 127.0.0.1.34715 > 127.0.0.1.1234: UDP, length 5
     0x0000:  4500 0021 c21d 4000 4011 7aac 7f00 0001  E..!..@.@.z.....
     0x0010:  7f00 0001 879b 04d2 000d fe20 7468 7265  ............thre
     0x0020:  65                                       e
2 packets captured
4 packets received by filter
0 packets dropped by kernel

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-15 19:18:26 +01:00
Michael Kerrisk f26fe082b4 unshare.2: srcfix: Added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-05 17:21:14 +01:00
Michael Kerrisk f70f94e84d gettimeofday.2: srcfix: Added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-04 12:41:30 +01:00
Michael Kerrisk 89f54905a0 clone.2: Since 2.6.30, CLONE_NEWIPC also supports POSIX message queues
See kernel commit 7eafd7c74c3f2e67c27621b987b28397110d643f

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-30 11:02:49 +01:00
Michael Kerrisk f766e43c28 syslog.2: Add mention of CONFIG_LOG_BUF_SHIFT
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-29 15:51:22 +01:00
Michael Kerrisk 0adbf43a03 syslog.2: Clarify SYSLOG_ACTION_SIZE_UNREAD semantics
SYSLOG_ACTION_SIZE_UNREAD returns the number of bytes
available for reading via SYSLOG_ACTION_READ.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-29 15:51:22 +01:00
Michael Kerrisk 7fc3d0580b syslog.2: Clarify semantics of SYSLOG_ACTION_CLEAR
The SYSLOG_ACTION_CLEAR command (5) does not really clear
the ring buffer; rather it affects the semantics of what
is returned by commands 3 (SYSLOG_ACTION_READ_ALL) and
4 (SYSLOG_ACTION_READ_CLEAR).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-29 15:51:22 +01:00
Michael Kerrisk 70a259dcd5 syslog.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-28 14:42:27 +01:00
Michael Kerrisk 55ed5fceec syslog.2: Clarify where SYSLOG_ACTION_READ_ALL places data it reads
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-28 14:42:27 +01:00
Michael Kerrisk 1850e19a35 syslog.2: Substantially reorganize discussion of commands
Make the layout if the discussion of the commands
more readable.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-28 14:42:27 +01:00
Michael Kerrisk 9f924d1702 syslog.2: Clarify discussion of privileges for commands 3 and 10
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-28 12:04:14 +01:00
Michael Kerrisk e4a952a1a9 syslog.2: Add kernel symbolic 'type' names
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-28 11:53:10 +01:00
Michael Kerrisk 00a1fbcfc4 wait.2: BUGS: Document odd waitid() behavior when 'infop' is NULL
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-27 07:49:59 +01:00
Michael Kerrisk 27bada1fa1 getrlimit.2: Document Linux's nonstandard treatment or RLIMIT_CPU soft limit
Upon encountering the RLIMIT_CPU soft limit when a SIGXCPU handler
has been installed, Linux invokes the signal handler *and* raises
the soft limit by one second. This behavior repeats until the
limit is encountered.  No other implementation that I tested
(Solaris 10, FreeBSD 9.0, OpenBSD 5.0) does this, and it seems
unlikely to be POSIX-conformant. The (Linux-specific)
RLIMIT_RTTIME soft limit exhibits similar behavior.

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-27 07:49:59 +01:00
Michael Kerrisk 6d0620d865 getrlimit.2: Point reader at discussion of /proc/[pid]/limits in proc(5)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-24 09:08:04 +01:00
Thierry Vignaud b8d5a242bf ipc.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-22 05:38:06 +01:00
Simon Paillard fec75159e1 stat.2: Clarify description of EOVERFLOW error
The EOVERFLOW error is not only for st_size, but also
inode and block size fields. See glibc source file
sysdeps/unix/sysv/linux/xstatconv.c and kernel source
file fs/stat.c. Also, fix bit/byte confusion
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=604928

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-11 11:40:23 +01:00
Michael Kerrisk 46fccf2d8e io_getevents.2: io_getevents() may cause segfault when called with invalid ctx_id
For reference see: http://marc.info/?l=linux-aio&m=130089887002435&w=2

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-11 09:08:32 +01:00
David Prévot 16a21eeaa6 prctl.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-11 08:56:50 +01:00
David Prévot d2ea1bd4bd ptrace.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-09 06:53:19 +01:00
Michael Kerrisk 35f6968001 delete_module.2: Small rewording of description of effect of O_TRUNC
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-08 13:44:13 +01:00
Michael Kerrisk e64bdfcf3c delete_module.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-08 13:37:10 +01:00
Michael Kerrisk fa1d274987 Removed trailing white space at end of lines 2012-11-07 14:24:27 +01:00
Michael Kerrisk 0d3bd76037 clock_getres.2, clock_nanosleep.2, ipv6.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-07 14:23:14 +01:00
David Prévot 8321eae507 init_module.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-07 13:58:21 +01:00
David Prévot f7fbc7a95e ipc.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-07 13:47:30 +01:00
David Prévot b2fc8e9f28 delete_module.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-07 13:46:38 +01:00
Michael Kerrisk 029599913b clock_getres.2, clock_nanosleep.2: Linking with -lrt is no longer needed from glibc 2.17 onward
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-29 09:27:58 +01:00
Michael Kerrisk e089cba10e fork.2: Note treatment of default timer slack value on fork()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:23:28 +01:00
Michael Kerrisk 934487a086 prctl.2: Document PR_SET_TIMERSLACK and PR_GET_TIMERSLACK
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:23:28 +01:00
Michael Kerrisk 8e9412e7a5 execve.2: Document treatment of SECBIT_KEEP_CAPS securebits flag on execve()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:23:28 +01:00
Michael Kerrisk 30cc7676ef execve.2: Document treatment of PR_SET_PDEATHSIG on execve()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:23:28 +01:00
Michael Kerrisk 46b7f60e65 prctl.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:23:28 +01:00
Michael Kerrisk 990e388795 prctl.2: Minor rewording for seccomp description
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:23:03 +01:00
Michael Kerrisk f49202ae2b prctl.2: Reword PR_SET_NAME and PR_GET_NAME in terms of threads
Plus tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:18:11 +01:00
Michael Kerrisk 34709982a5 ptrace.2: Clarify that some operations are not present on all architectures
PTRACE_GETREGS, PTRACE_SETGREFS, PTRACE_GETFPREGS,
and PTRACE_GETSPREGS are not present on all architectures.
PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP are present only
on x86.

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

Simon Paillard <spaillard@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-25 14:04:23 +02:00
Simon Paillard 47cfbecf0a getdomainname.2: Point out that these calls relate to NIS, not DNS
See http://bugs.debian.org/295635

Reported-by: Lars Wirzenius <liw@iki.fi>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-25 12:27:15 +02:00
Michael Kerrisk 1733db3538 prctl.2: Note 'seccomp' semantics with respect to fork(), execve(), and prctl()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:30 +02:00
Thomas Habets ff393a5f0d times.2: Recommend clock_gettime(2) as alternative to times(2)
Recommend clock_gettime(2), not gettimeofday(2) as alternative to times(2).

From times(2):
  "To measure changes in elapsed time, use gettimeofday(2)
  instead."

From gettimeofday(2):
  "POSIX.1-2008 marks gettimeofday() as obsolete, recommending the
  use of clock_gettime(2) instead."

Some context, showing how use of gettimeofday() causes actual bugs
(also read comments):
http://blog.habets.pp.se/2010/09/gettimeofday-should-never-be-used-to-measure-time

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:20 +02:00
Michael Kerrisk 1959393715 prctl.2: Mention Documentation/prctl/no_new_privs.txt for PR_SET_NO_NEW_PRIVS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Michael Kerrisk b1df307176 prctl.2: Some edits to Kees's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Michael Kerrisk 0fcc276ff1 prctl.2: Minor edits to Kee's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Kees Cook f83fe154a8 prctl.2: document PR_SET_NO_NEW_PRIVS, PR_GET_NO_NEW_PRIVS
This adds a short description of the no_new_privs bit,
as described in Documentation/prctl/no_new_privs.txt.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Michael Kerrisk 6239dfb213 prctl.2: Small improvements to PR_SET_SECCOMP discussion
Note type of 'arg3' for SECCOMP_MODE_FILTER.
Add pointer to Documentation/prctl/seccomp_filter.txt.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Michael Kerrisk d6ef3d5748 prctl.2: Minor edits to Kees's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Kees Cook 34447828c4 prctl.2: update seccomp sections for mode 2 (BPF)
This adds a short summary of the arguments used
for "mode 2" (BPF) seccomp.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:54:19 +02:00
Michael Kerrisk 3cad956f53 set_thread_area.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk b84a1732b4 get_thread_area.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk f68512e9fe intro.1, add_key.2, get_mempolicy.2, get_thread_area.2, intro.2, keyctl.2, mbind.2, request_key.2, set_thread_area.2, clock.3, cmsg.3, getcwd.3, getpw.3, intro.3, malloc.3, posix_memalign.3, shm_open.3, sleep.3, sysconf.3, intro.4, sd.4, intro.5, locale.5, slabinfo.5, intro.6, boot.7, bootparam.7, futex.7, glob.7, hier.7, intro.7, libc.7, locale.7, mq_overview.7, netlink.7, sem_overview.7, shm_overview.7, unix.7, intro.8: Global fix: Use consistent capitalization in NAME section
The line(s) in the NAME section should only use capitals
where English usage dictates that. Otherwise, use
lowercase throughout.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk ce154705ec futex.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk 7fac88a949 eventfd.2, futex.2, mmap2.2, open.2, pciconfig_read.2, ptrace.2, reboot.2, request_key.2, sched_rr_get_interval.2, splice.2, stat.2, sync_file_range.2, syscalls.2, timer_create.2, vm86.2, pthread_attr_setscope.3, core.5, proc.5, aio.7, futex.7, netlink.7, time.7: Global fix: "userspace" ==> "user space" or "user-space"
Existing pages variously use "userspace or "user space".
But, "userspace" is not quite an English word.
So change "userspace" to "user space" or, when used
attributively, "user-space".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:33 +02:00
Michael Kerrisk eceb82f70d delete_module.2: SEE ALSO: Add modprobe(8)
Reported-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:26 +02:00
Michael Kerrisk c470e180cf query_module.2: Move some information in NOTES to VERSIONS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:26 +02:00
Michael Kerrisk 9100326959 create_module.2, delete_module.2, get_kernel_syms.2, init_module.2, query_module.2: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:25 +02:00
Michael Kerrisk 3371ab17aa init_module.2: Change copyright and license
Little of the original page now remains. Change
copyright and license

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:25 +02:00
Michael Kerrisk 0cb430a1e5 init_module.2: Changes after review comments from Rusty Russell
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:25 +02:00
Michael Kerrisk 27ad8f18a5 create_module.2: Note that ENOSYS probably indicates kernel 2.6+
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:25 +02:00
Michael Kerrisk 6fe81824ca query_module.2: Note that ENOSYS probably indicates kernel 2.6+
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:25 +02:00
Michael Kerrisk f400805045 delete_module.2: Change license and copyright
There is now nothing left of the original FSF-copyrighted
page. So, change the copyright and license.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:49:25 +02:00
Michael Kerrisk b4f495025a delete_module.2: Substantial reorganization after comments from Rusty Russell
Rusty notes that O_NONBLOCK is almost always used in
practice. Therefore, it would be better to reorganize
the page to consider that "the default".

Reviewed-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:45:43 +02:00
Kees Cook ce123e8e64 init_module.2: Add various pieces describing Linux 2.6+ behavior
Pieces take from, or inspired by, a patch sent by Kees.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk 6b9024ca05 get_kernel_syms.2: Note that this system call is present only in kernels before 2.6
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk 77a0889553 create_module.2: Note that this system call is present only in kernels before 2.6
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk fdeca96e95 query_module.2: Note that this system call is present only in kernels before 2.6
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk 8f4d1a1c3c init_module.2: Rewrite to Linux 2.6+ reality
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk 460240cab4 delete_module.2: Rewrite to Linux 2.6+ reality
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk 98038e9855 delete_module.2: SEE ALSO: add rmmod(8)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk a439440e16 query_module.2: SEE ALSO: Add modinfo(8) and lsinfo(8)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk 59bdef6a21 query_module.2: Add a few words clarifying reference to /sys/module
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-18 15:05:25 +02:00
Michael Kerrisk dc51f1ff84 link.2: Add EPERM error triggered by /proc/sys/fs/protected_hardlink
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-16 10:30:15 +02:00
Michael Kerrisk f3996ef7f2 ipc.2: Update note on architectures that don't have ipc()
Replace mention of ia64 with x86-64 and ARM.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-16 10:23:02 +02:00
Michael Kerrisk cd1df3b89b socketcall.2: Update note on architectures that don't have socketcall()
Replace mention of ia64 with x86-64 and ARM.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-16 10:21:59 +02:00
Michael Kerrisk b473be57b9 timer_settime.2, man-pages.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-15 11:13:02 +02:00
Michael Kerrisk 791657939e phys.2: New link to unimplemented.2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-09 14:13:48 +02:00
Michael Kerrisk e7b742f33f timer_settime.2: Small rewording around discussion of pointer arguments
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-02 07:28:14 +02:00
Michael Kerrisk 20de4d9f77 getitimer.2: Note Linux's odd handling of the new_value==NULL case
Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-01 10:20:08 +02:00
Michael Kerrisk f2d587e6a1 getitimer.2: Fix types used to declare fields in timeval struct
Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-30 07:40:52 +02:00
David Prévot 8f172c56b2 quotactl.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-28 08:04:03 +02:00
Michael Kerrisk ca8a0bd25b sched_get_priority_max.2, sched_setparam.2, sched_setaffinity.2, sched_setscheduler.2, timer_create.2, malloc.3, pthread_attr_init.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_getattr_np.3, pthread_cancel.3, pthread_create.3, pthread_setschedparam.3, pthread_setschedprio.3, aio.7, time.7: Global ffix: disable justification and hyphenation in SEE ALSO
For a better visual result, disable justification and hyphenation
in SEE ALSO where page names are long.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-25 06:39:39 +02:00
Michael Kerrisk e264f02416 keyctl.2: ffix: prevent hyphenation and justification under SEE ALSO
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-25 06:05:33 +02:00
David Prévot cf4d436127 keyctl.2: Reorder SEE ALSO, without .br
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-25 06:00:07 +02:00
Michael Kerrisk 6c1544c132 syscalls.2, uname.2, boot.7: Global fix: s/OS/operating system/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 10:05:20 +02:00
Michael Kerrisk 66a9882e46 bdflush.2, get_robust_list.2, kexec_load.2, madvise.2, mmap.2, mount.2, prctl.2, query_module.2, rt_sigqueueinfo.2, shmget.2, sigaction.2, syscalls.2, umount.2, malloc.3, hpsa.4, initrd.4, proc.5, bootparam.7, icmp.7, netlink.7, signal.7: Global fix: use "Linux kernel source" consistently
Rather than "kernel source".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 10:02:34 +02:00
David Prévot 173fe7e792 arch_prctl.2, fcntl.2, flock.2, get_robust_list.2, getpriority.2, ioprio_set.2, migrate_pages.2, mmap.2, mremap.2, msync.2, sched_get_priority_max.2, sched_rr_get_interval.2, sched_setparam.2, sched_setscheduler.2, sched_yield.2, select.2, socket.2, subpage_prot.2, unshare.2, btree.3, dbopen.3, dl_iterate_phdr.3, dlopen.3, getnameinfo.3, hash.3, lockf.3, netlink.3, recno.3, rpc.3, xdr.3, cciss.4, console_ioctl.4, hpsa.4, initrd.4, msr.4, rtc.4, st.4, hosts.5, services.5, tzfile.5, aio.7, arp.7, capabilities.7, cpuset.7, feature_test_macros.7, futex.7, inotify.7, ip.7, ipv6.7, iso_8859-16.7, iso_8859-2.7, koi8-r.7, math_error.7, netlink.7, packet.7, pthreads.7, raw.7, spufs.7, udplite.7, uri.7, x25.7: Global fix: Various consistency fixes for SEE ALSO
Coauthored-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 09:53:22 +02:00
Guillem Jover 318c814291 stat.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 07:15:36 +02:00
David Prévot f06f501401 syscalls.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 07:15:03 +02:00
Adrian Bunk 85d301e129 wait4.2: Note that these functions are nonstandard and recommend alternatives
Some edits to Adrian's path by mtk.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 07:15:03 +02:00
Michael Kerrisk 0ac42204d0 wait4.2: CONFORMING TO: Note SUS details for wait3()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-23 15:50:58 +02:00
Michael Kerrisk a38a23a17f sigaction.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-23 06:49:47 +02:00
Michael Kerrisk ca15be9183 sigaction.2: Tweak SA_RESETHAND description
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-23 06:49:47 +02:00
Michael Kerrisk 556bb77a36 shutdown.2: Document EINVAL error (and associated bug)
Eric Dumazet noted that EINVAL was not documented. Some further
digging shows that it's also not diagnosed consistently.
See https://bugzilla.kernel.org/show_bug.cgi?id=47111.

Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-06 11:42:51 +02:00
Michael Kerrisk 72da9ef157 ldd.1, execve.2, getdents.2, quotactl.2, select_tut.2, clock_getcpuclockid.3, fopencookie.3, getservent_r.3, matherr.3, mq_notify.3, pthread_create.3, pthread_getattr_np.3, wordexp.3: Global fix: s/-/\\-/ when real hyphen is required (e.g., in code)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-29 12:14:08 +02:00
Michael Kerrisk 352c778d01 semop.2: Recast discussion of blocking behavior in terms of threads
semop() blocks the calling thread, not the process.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-27 12:59:11 +02:00
Michael Kerrisk 77ba6370c2 semop.2: Minor rewording
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-27 12:45:23 +02:00
Michael Kerrisk f81b78a4ca semop.2: SEE ALSO: Add clone(2)
Give reader a clue about CLONE_SYSVSEM.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-27 12:43:52 +02:00
Michael Kerrisk 2e72e99169 select.2: Clarify equivalent pslect() code in terms of threads
s/sigprogmask/pthread_sigmask/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-22 15:29:04 +02:00
Michael Kerrisk 5adf628119 clock_nanosleep.2: wfix: s/SA_SIGACTION/SA_RESTART/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-22 15:28:19 +02:00
Michael Kerrisk 67378c4842 epoll_wait.2: Add pointer to select(2) for discussion of close in another thread
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-17 08:41:35 +02:00
Michael Kerrisk f33050d604 poll.2: Add pointer to select(2) for discussion of close in another thread
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-17 08:36:48 +02:00
Michael Kerrisk 10ed041e56 select.2: Note behavior if monitored file descriptor is closed in another thread
Executive summary: a sane application can't rely on any
particular behavior if another thread closes a file descriptor
being monitored by select().

See https://bugzilla.kernel.org/show_bug.cgi?id=40852

Reported-by: Stephane Fillod <fillods@users.sf.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-17 08:36:48 +02:00
Michael Kerrisk 8c1d94ae86 select.2: Minor wording fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-17 08:36:48 +02:00
Michael Kerrisk 355f61b5bc epoll_wait.2: Describe timeout limitation in kernels < 2.6.37
As reported by Fredrik (and as far as I can tell the problem
went back to 2.6.0):

The timeout argument has an upper limit. Any values above that
limit are treated the same as -1, i.e. to wait indefinitely.
The limit is given by:

    #define EP_MAX_MSTIMEO min(1000ULL * MAX_SCHEDULE_TIMEOUT / HZ, \
	(LONG_MAX - 999ULL) / HZ)

That is, the limit depends on the size of a long and the timer
frequency.  Assuming the a long is never smaller than 32 bits
and HZ never larger than 1000, the worst case is 35 minutes.
I think this should be mentioned under "BUGS".

Although this is likely to be fixed in the future
(http://lkml.org/lkml/2010/8/8/144), the problem exists in
at least 2.6.14 - 2.6.35. I don't know if select(2) and poll(2)
are affected.

https://bugzilla.kernel.org/show_bug.cgi?id=20762

Reported-by: Fredrik Arnerup <arnerup@kth.se>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-17 08:36:28 +02:00
Michael Kerrisk 11c85ed875 Removed trailing white space at end of lines 2012-08-14 00:39:21 +02:00
Michael Kerrisk bf42aad4a7 mprotect.2, syscall.2, realpath.3, iso_8859-1.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-14 00:37:33 +02:00
Michael Kerrisk 4832b48ab0 futex.2: Fix description of EINVAL error
The current text seems incorrect. Replace with a more general
description.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-14 00:10:36 +02:00
Michael Kerrisk e808bba0ff futex.2: Various wording fix-ups
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 14:50:26 +02:00
Марк Коренберг 9f6c40c0e6 futex.2: Consolidate error descriptions to ERRORS
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 14:25:13 +02:00
Michael Kerrisk a2f11be3c1 mprotect.2: 'addr' argument is not const
As reported by Rasmus:

    Both my system's man-pages (3.22) and the latest online
    (3.41) show:

        int mprotect(const void *addr, size_t len, int prot);

    as the prototype for mprotect(2). However, POSIX [1] and the
    actual sys/mman.h (on all the systems I checked) do not have
    the const qualifier on the first argument.

Reported-by: Rasmus Villemoes <Rasmus.Villemoes@decode.is>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 14:00:29 +02:00
Sami Kerola 608bf95023 capget.2, futex.2, sched_setscheduler.2, spu_create.2, spu_run.2, vfork.2, getnameinfo.3, netlink.3, cciss.4, console_codes.4, dsp56k.4, hpsa.4, sk98lin.4, filesystems.5, protocols.5, aio.7, capabilities.7, charsets.7, feature_test_macros.7, futex.7, hier.7, iso_8859-16.7, iso_8859-2.7, koi8-r.7, libc.7, man.7, netlink.7, numa.7, standards.7, unicode.7, units.7, uri.7, x25.7: Global fix: use UR macro where applicable
The syntax .UR http://example.com paired with .UE will create
links which one can interact, if the pager allows that.  One
way to see the effect is ask the man(1) command to use browser
display, e.g.:

    man -H man7/uri.7

("\:" is optional groff syntax to permit hyphenless line breaks.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 10:02:36 +02:00
Michael Kerrisk 6edb20bcd8 migrate_pages.2: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 09:26:21 +02:00
David Prévot b0b1d9b517 ptrace.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 09:22:34 +02:00
Michael Kerrisk 13f78d96ad getdents.2, select_tut.2, atof.3, atoi.3, pthread_create.3, pthread_sigmask.3, rtime.3, setbuf.3, tsearch.3, netlink.7: Remove unneeded casts
Reported-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Denys Vlasenko ca302d0ee3 ptrace.2: Explain WNOHANG behavior and EINTR bug
I didn't like ithe "SIGKILL operates similarly, with exceptions"
phrase (if it's different, then it's not "similar", right?),
and now I got around to changing it. Now it says simply:
"SIGKILL does not generate signal-delivery-stop and therefore
the tracer can't suppress it."

Replaced "why WNOHANG is not reliable" example with a more
realistic one (the one which actually inspired to add this
information to man page in the first place): we got
ESRCH - process is gone! - but waitpid(WNOHANG) can still
confusingly return 0 "no processes to wait for".

Replaced "This means that unneeded trailing arguments may
be omitted" part with a much better recommendation
to never do that and to supply zero arguments instead.
(The part about "undocumentedness" of gcc behavior was bogus,
btw - deleted).

Expanded BUGS section with the explanation and an example
of visible strace behavior on the buggy syscalls which
exit with EINTR on ptrace attach. I hope this will lead
to people submitting better bug reports to lkml about
such syscalls.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Michael Kerrisk 65cee725a9 adjtimex.2: srcfix: added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Michael Kerrisk cb72917199 ptrace.2: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Michael Kerrisk 41a65f128c migrate_pages.2: Fix description of return value
Reported-by: Christoph Lameter <cl@linux.com>
Reported-by: JoonSoo Kim <js1304@gmail.com>

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Akihiro MOTOKI 1f1fd5eff5 socket.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Akihiro MOTOKI 982ff543cd inotify_init.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Michael Kerrisk 82fdd7c7d0 ioprio_set.2: Document who==0 for IOPRIO_WHO_PROCESS and IOPRIO_WHO_PGRP
For IOPRIO_WHO_PROCESS, who==0 means operate on the caller.
For IOPRIO_WHO_PGRP, who==0 means operate on the caller's
process group.

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

Reported-by: Марк Коренберг <socketpair@gmail.com>
Reported-by: Kalle Olavi Niemitalo <kon@iki.fi>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Michael Kerrisk c4949ba488 ioprio_set.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00