Commit Graph

11943 Commits

Author SHA1 Message Date
Michael Kerrisk aeb666ce12 man-pages.7: Clarify that SEE ALSO entries may refer to pages from other projects
Reported-by: Laurent Georget <laurent.georget@supelec.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-29 14:32:29 +01:00
Michael Kerrisk 26f418daaf getopt.3: Ensure that 'nsecs' is used
Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-29 14:30:26 +01:00
Michael Kerrisk d2d136f7e1 man-pages.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-29 12:06:13 +01:00
Carlos O'Donell 62b1156b15 wordexp.3: Make it clear that WRDE_NOCMD prevents command substitution
The use of WRDE_NOCMD prevents command substitution. If the flag
WRDE_NOCMD is set then no command substitution shall occur and
the error WRDE_CMDSUB will be returned if such substitution is
requested when processing the words.

The manual page as-is makes it seem like the command substitution
occurs, and an error is returned *after* the substitution.
This patch clarifies that.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk 4158771432 proc.5: Revise description of /proc/PID/status 'VmSwap' entry
Reported-by: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk 1ddc16655d proc.5: Note kernel version that added "VmSwap" to /proc/PID/status
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Sven Hoexter 49f6dda794 proc.5: Add "VmSwap" to /proc/[pid]/status
Documented as is in Documentation/filesystems/proc.txt of Linux 3.18.

Signed-off-by: Sven Hoexter <sven@stormbind.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Simon Newton c420c4a13b pthread_setschedparam.3: Fix logic error in example program
The example program will crash if -A is used, since 'attr'
is uninitialized.

    $ ./a.out  -A
    *** Error in `./a.out': free(): invalid pointer: 0xb779c3c4 ***
    Aborted (core dumped)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk e307112d4e perf_event_open.2: tfix
Reported-by: 尹杰 <writalnaie@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk accffcfa1f tkill.2: Remove bogus text saying tgid==-1 makes tgkill() equivalent to tkill()
Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk 7c244c5312 syscalls.2: 3.19 adds execveat()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk 54305f5b5f open.2: Enhance rationale discussion for openat() and friends
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk a3708b57a5 syscalls.2: Add bpf(2) to list
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:25 +01:00
Michael Kerrisk 6e5199009e madvise.2: VERSIONS: Support for madvise() is now configurable
Support for this system call now depends on the
CONFIG_ADVISE_SYSCALLS configuration option.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:19 +01:00
Michael Kerrisk 732df53e2b posix_fadvise.2: Support for fadvise64() is now configurable
Support for this system call now depends on the
CONFIG_ADVISE_SYSCALLS configuration option.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-26 07:35:12 +01:00
Michael Kerrisk a9adf5158f sgetmask.2: Since 3.16, support for these system call is configurable
Support for these calls is now dependent on the setting of the
CONFIG_SGETMASK_SYSCALL option.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-08 16:52:06 +01:00
Michael Kerrisk 5587b44c90 sigvec.3: Starting with version 2.21, glibc no longer exports sigvec()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-05 20:29:31 +01:00
Michael Kerrisk be031d85ad semop.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-05 06:09:36 +01:00
Richard Weinberger 208c82ce19 pid_namespaces.7: tfix
s/PR_GET_CHILD_SUBREAPER/PR_SET_CHILD_SUBREAPER

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-05 06:09:36 +01:00
Tobias Werth 4fe88cafea ascii.7: tfix
The ' in the compact tables were not escaped correctly resulting in
UTF-8 in the ASCII table.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-05 06:09:36 +01:00
Michael Kerrisk d6c9f01b64 setsid.2: Rewrite some pieces and add some details
Among other changes, add an explanation of why setsid() can't
be called from a process group leader

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-05 06:09:31 +01:00
Michael Kerrisk a00ca3d5a0 ftw.3: FTW_CHDIR has no effect on the 'fpath' argument passed to fn()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-24 18:02:26 +01:00
Michael Kerrisk e4dd2d93aa epoll_wait.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-23 15:02:38 +01:00
Michael Kerrisk e87feb33a5 epoll_ctl.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-23 15:00:38 +01:00
Michael Kerrisk 24453ff068 sigsetops.3: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-18 21:14:41 +01:00
Andrea Balboni d11464ba58 pthread_attr_init.3: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-16 16:50:14 +01:00
Michael Kerrisk ca8c33fcdd termios.3: SEE ALSO: add tset(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-13 11:08:55 +01:00
Michael Kerrisk e7e006f279 getdents.2, capabilities.7, symlink.7: tfix: Change 'i-node' to 'inode'
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-12 22:32:40 +01:00
Michael Kerrisk ac5ba355d5 pow.3: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 13:58:14 +01:00
Manuel López-Ibáñez 285d20e353 pow.3: Add note on performance characteristics of pow()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 13:56:34 +01:00
David Wragg a7bd3dab97 cmsg.3: ensure buf is suitably aligned in sending example
Inspection of the definition of CMSG_FIRSTHDR (both in glibc and
the suggested definition in RFC3542) shows that it yields the
msg_control field.  So when sending, the pointer placed in
msg_control should be suitably aligned as a struct cmsghdr.
In the sending example, buf was declared as a bare char array,
and so is not necessarily suitably aligned.

The solution here involves placing buf inside a union, and is
based on the sockets/scm_rights_send.c sample from The Linux
Programming Interface "dist" source code collection.

Signed-off-by: David Wragg <david@wragg.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 10:01:59 +01:00
Michael Kerrisk e0f1f1765b posix_fadvise.2: ERRORS: Since 2.6.16, the kernel correctly deals with the ESPIPE case
Reported-by: Weijie Yang <weijie.yang.kh@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 09:32:53 +01:00
Mike Frysinger 445d38c9b5 user_namespaces(7): tfix: drop spurious underline
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 06:39:06 +01:00
Heinrich Schuchardt 943c52b7bb fanotify.7: Allow relative paths in example
The current example code requires passing an absolute
path to the mount to be watched.

By passing AT_FDCWD to fanotify_mark it can use both
absolute and relative paths.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 06:38:27 +01:00
Heinrich Schuchardt 8e38f6d391 fanotify.7: wfix
Removed duplicate "using".

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 06:36:36 +01:00
Adam Jiang 59ab8fcf0f sched_setscheduler.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-11 06:16:39 +01:00
Michael Kerrisk 001fed0312 epoll_ctl.2: Regular files and directories can't be monitored with epoll_ctl()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-10 14:00:25 +01:00
Michael Kerrisk f285a958f3 clock_nanosleep.2: Note that 'clock_id' can also be a CPU clock ID
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-10 13:25:30 +01:00
Michael Kerrisk e125c3e172 timerfd_create.2: srcfix: added FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-10 11:56:49 +01:00
Michael Kerrisk 3e35b19b10 unix.7: Fix buglet in code snippet in BUGS section
Reported-by: Scott Harvey <scott.harvey@stonybrook.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-09 21:15:56 +01:00
Heinrich Schuchardt b7670bdd0d ioctl.2: Rename 'd' argument to 'fd' in text
In most other manpages file descriptors are called 'fd'.
This patches renames attribute 'd' to 'fd'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-09 21:11:52 +01:00
Michael Kerrisk c7383f92d4 proc.5: srcfix: Note commit that introduced /proc/thread-self
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-09 20:29:43 +01:00
Bernhard Walle 0ad6ad9c0c proc.5: Document /proc/thread-self
/proc/thread-self has been introduced in Linux 3.17 with
commit 0097875bd41528922fb3bb5f348c53f17e00e2fd.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-09 20:25:39 +01:00
Michael Kerrisk 34fcd227fb abort.3: Note that SIGABRT is raised as though raise(3) is called
Also note that abort is POSIX.1-2008 compliant.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-09 19:52:34 +01:00
Mike Frysinger f7611a00f6 namespaces(7): minor tweaks
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 14:27:47 +01:00
Michael Kerrisk d74f805937 mq_open.3: Document the O_CLOEXEC flag
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 13:49:54 +01:00
Michael Kerrisk 8d121cc5c1 mq_open.3: Place 'flags' constants in alphabetical order
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 13:37:10 +01:00
Michael Kerrisk ee56674428 proc.5: tfix
Reported-by: Huxiaoxiang <huxiaoxiang@huawei.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 13:24:10 +01:00
Michael Kerrisk 464b254bb8 unix.7: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-08 06:13:13 +01:00
Michael Kerrisk 5bc20f9e79 syscalls.2: SEE ALSO: add errno(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-04 08:20:07 +01:00