]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
6 years agoaccess.2, delete_module.2, eventfd.2, fallocate.2, fcntl.2, getrandom.2, init_module...
Michael Kerrisk [Fri, 20 Oct 2017 14:55:10 +0000 (16:55 +0200)] 
access.2, delete_module.2, eventfd.2, fallocate.2, fcntl.2, getrandom.2, init_module.2, open.2, seccomp.2, timerfd_create.2, openpty.3, pthread_spin_lock.3, shm_open.3, tempnam.3, fifo.7, keyrings.7, pid_namespaces.7, sched.7, thread-keyring.7: wfix (will fail --> fail/fails)

Reported-by: Pedro Alves <palves@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agogetrlimit.2: wfix
Michael Kerrisk [Fri, 20 Oct 2017 14:43:11 +0000 (16:43 +0200)] 
getrlimit.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocapget.2, fanotify_init.2, fcntl.2, ioctl_tty.2, madvise.2, mbind.2, prctl.2, sched_s...
Michael Kerrisk [Fri, 20 Oct 2017 10:36:42 +0000 (12:36 +0200)] 
capget.2, fanotify_init.2, fcntl.2, ioctl_tty.2, madvise.2, mbind.2, prctl.2, sched_setaffinity.2, hash.3, isgreater.3, posix_fallocate.3, sigvec.3, full.4, sd.4, wavelan.4, core.5, host.conf.5, epoll.7, signal.7, unix.7, user_namespaces.7: wfix (will fail --> fail/fails)

Reported-by: Pedro Alves <palves@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoreboot.2: wfix
Michael Kerrisk [Fri, 20 Oct 2017 10:28:54 +0000 (12:28 +0200)] 
reboot.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoopen.2: wfix
Michael Kerrisk [Fri, 20 Oct 2017 10:28:06 +0000 (12:28 +0200)] 
open.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agotimes.2: Language fix-up: clarify that "tasks" means "work"
Michael Kerrisk [Fri, 20 Oct 2017 09:05:34 +0000 (11:05 +0200)] 
times.2: Language fix-up: clarify that "tasks" means "work"

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

Reported-by: Victor Porton <porton@narod.ru>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agotimes.2: ffix
Michael Kerrisk [Fri, 20 Oct 2017 08:56:53 +0000 (10:56 +0200)] 
times.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: SHow command used to move a veth device into another network namespace
Michael Kerrisk [Thu, 19 Oct 2017 17:09:55 +0000 (19:09 +0200)] 
veth.4: SHow command used to move a veth device into another network namespace

Reported-by: Tomas Pospisek <tpo@sourcepole.ch>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: ffix
Michael Kerrisk [Wed, 18 Oct 2017 07:51:20 +0000 (09:51 +0200)] 
veth.4: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agonamespaces.7: Add a reference to new veth(4) page
Michael Kerrisk [Tue, 3 Oct 2017 19:41:49 +0000 (21:41 +0200)] 
namespaces.7: Add a reference to new veth(4) page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Add a reference to new veth(4) page
Michael Kerrisk [Tue, 3 Oct 2017 19:40:27 +0000 (21:40 +0200)] 
clone.2: Add a reference to new veth(4) page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: Elaborate on use of ethtool(8) to find veth peer
Michael Kerrisk [Tue, 3 Oct 2017 19:36:52 +0000 (21:36 +0200)] 
veth.4: Elaborate on use of ethtool(8) to find veth peer

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: Minor fixes
Michael Kerrisk [Tue, 3 Oct 2017 19:07:05 +0000 (21:07 +0200)] 
veth.4: Minor fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: Integrate content from Eric Biederman
Michael Kerrisk [Tue, 3 Oct 2017 18:47:37 +0000 (20:47 +0200)] 
veth.4: Integrate content from Eric Biederman

Cowritten-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: SEE ALSO: add ip-link(8)
Michael Kerrisk [Tue, 3 Oct 2017 13:52:38 +0000 (15:52 +0200)] 
veth.4: SEE ALSO: add ip-link(8)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoveth.4: New page document veth virtual ethernet devices
Tomáš Pospíšek [Tue, 3 Oct 2017 13:52:04 +0000 (15:52 +0200)] 
veth.4: New page document veth virtual ethernet devices

Based on a page from Tomáš Pospíšek, with some clean-ups by mtk.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: srcfix
Michael Kerrisk [Fri, 20 Oct 2017 08:18:56 +0000 (10:18 +0200)] 
pthread_spin_init.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: Minor rewording
Michael Kerrisk [Fri, 20 Oct 2017 07:27:32 +0000 (09:27 +0200)] 
pthread_spin_init.3: Minor rewording

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: Add more caveats on use of spin locks
Michael Kerrisk [Thu, 19 Oct 2017 21:12:54 +0000 (23:12 +0200)] 
pthread_spin_init.3: Add more caveats on use of spin locks

Cowritten-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: Strengthen note about when spin locks should (not) be used
Michael Kerrisk [Thu, 19 Oct 2017 20:04:44 +0000 (22:04 +0200)] 
pthread_spin_init.3: Strengthen note about when spin locks should (not) be used

Reported-by: Zack Weinberg <zackw@panix.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: Operations on copies of *lock yield undefined behavior
Michael Kerrisk [Thu, 19 Oct 2017 19:07:08 +0000 (21:07 +0200)] 
pthread_spin_init.3: Operations on copies of *lock yield undefined behavior

Reported-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: tfix
Michael Kerrisk [Thu, 19 Oct 2017 18:49:26 +0000 (20:49 +0200)] 
pthread_spin_init.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_lock.3: tfix
Michael Kerrisk [Thu, 19 Oct 2017 17:45:59 +0000 (19:45 +0200)] 
pthread_spin_lock.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_lock.3: wfix
Michael Kerrisk [Thu, 19 Oct 2017 19:26:10 +0000 (21:26 +0200)] 
pthread_spin_lock.3: wfix

Reported-by: Zack Weinberg <zackw@panix.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_lock.3: Fixes suggested by Carlos O'Donell
Michael Kerrisk [Thu, 19 Oct 2017 17:44:04 +0000 (19:44 +0200)] 
pthread_spin_lock.3: Fixes suggested by Carlos O'Donell

Reported-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_lock.3: Refer reader to important details in NOTES in pthread_spin_init(3)
Michael Kerrisk [Mon, 2 Oct 2017 20:41:57 +0000 (22:41 +0200)] 
pthread_spin_lock.3: Refer reader to important details in NOTES in pthread_spin_init(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: Warn about deadlock with spin locks
Michael Kerrisk [Mon, 2 Oct 2017 20:40:48 +0000 (22:40 +0200)] 
pthread_spin_init.3: Warn about deadlock with spin locks

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: Spin locks should be used with real-time scheduling policies
Michael Kerrisk [Mon, 2 Oct 2017 20:36:50 +0000 (22:36 +0200)] 
pthread_spin_init.3: Spin locks should be used with real-time scheduling policies

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_yield.3: srcfix
Michael Kerrisk [Sun, 1 Oct 2017 07:45:02 +0000 (09:45 +0200)] 
pthread_yield.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthreads.7: SEE ALSO: add pthread_spin_init(3) and pthread_spin_lock(3)
Michael Kerrisk [Sat, 30 Sep 2017 11:21:34 +0000 (13:21 +0200)] 
pthreads.7: SEE ALSO: add pthread_spin_init(3) and pthread_spin_lock(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_trylock.3, pthread_spin_unlock.3: New links to new pthread_spin_lock3...
Michael Kerrisk [Sat, 30 Sep 2017 11:19:40 +0000 (13:19 +0200)] 
pthread_spin_trylock.3, pthread_spin_unlock.3: New links to new pthread_spin_lock3 page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_lock.3: New page describing functions that lock and unlock spin locks
Michael Kerrisk [Sat, 30 Sep 2017 11:16:49 +0000 (13:16 +0200)] 
pthread_spin_lock.3: New page describing functions that lock and unlock spin locks

Add a page descrbing pthread_spin_lock(3), pthread_spin_unlock(3),
and pthread_spin_trylock(3).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_destroy.3: New link to new pthread_spin_init.3 page
Michael Kerrisk [Sat, 30 Sep 2017 10:52:07 +0000 (12:52 +0200)] 
pthread_spin_destroy.3: New link to new pthread_spin_init.3 page

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_spin_init.3: New page describing pthread_spin_init(3) and pthread_spin_destroy(3)
Michael Kerrisk [Sat, 30 Sep 2017 10:50:58 +0000 (12:50 +0200)] 
pthread_spin_init.3: New page describing pthread_spin_init(3) and pthread_spin_destroy(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agostat.2: Use lstat() instead of stat()
Michael Kerrisk [Tue, 17 Oct 2017 20:58:40 +0000 (22:58 +0200)] 
stat.2: Use lstat() instead of stat()

It's more logical to use lstat() in the example code,
since one can then experiment with sybolic links, and
also the S_IFLNK case can also occur.

Reported-by: Richard Knutsson <richard.knutsson@abelko.se>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoioctl_userfaultfd.2: wfix
Michael Kerrisk [Wed, 18 Oct 2017 08:40:01 +0000 (10:40 +0200)] 
ioctl_userfaultfd.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoioctl_userfaultfd.2: Rework version information for feature bits
Michael Kerrisk [Wed, 18 Oct 2017 08:39:34 +0000 (10:39 +0200)] 
ioctl_userfaultfd.2: Rework version information for feature bits

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agouserfaultfd.2: Minor fixes to Prakash Sangappa's patch
Michael Kerrisk [Wed, 18 Oct 2017 08:37:29 +0000 (10:37 +0200)] 
userfaultfd.2: Minor fixes to Prakash Sangappa's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoioctl_userfaultfd.2: Minor fixes to Prakash Sangappa's patch
Michael Kerrisk [Wed, 18 Oct 2017 08:33:18 +0000 (10:33 +0200)] 
ioctl_userfaultfd.2: Minor fixes to Prakash Sangappa's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoioctl_userfaultfd.2, userfaultfd.2: Add description for UFFD_FEATURE_SIGBUS
Prakash Sangappa [Mon, 9 Oct 2017 22:45:51 +0000 (15:45 -0700)] 
ioctl_userfaultfd.2, userfaultfd.2: Add description for UFFD_FEATURE_SIGBUS

Userfaultfd feature UFFD_FEATURE_SIGBUS was merged recently and
should be available in the Linux 4.14 release. This patch is for
the man page changes documenting this API.

Documents the following commit:

commit 2d6d6f5a09a96cc1fec7ed992b825e05f64cb50e
Author: Prakash Sangappa <prakash.sangappa@oracle.com>
Date: Wed Sep 6 16:23:39 2017 -0700

     mm: userfaultfd: add feature to request for a signal delivery

Reviewed-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Prakash Sangappa <prakash.sangappa@oracle.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_yield.3: tfix
Michael Kerrisk [Wed, 18 Oct 2017 07:58:54 +0000 (09:58 +0200)] 
pthread_yield.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agonamespaces.7: EXAMPLE: refer also to example in clone(2)
Michael Kerrisk [Wed, 18 Oct 2017 07:33:50 +0000 (09:33 +0200)] 
namespaces.7: EXAMPLE: refer also to example in clone(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoposix_fallocate.3: ffix
Michael Kerrisk [Wed, 18 Oct 2017 07:13:35 +0000 (09:13 +0200)] 
posix_fallocate.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agonetlink.7: ffix
Michael Kerrisk [Wed, 18 Oct 2017 07:12:39 +0000 (09:12 +0200)] 
netlink.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoman-pages.7: Note that "x86-64" is generally preferred over "x86_64"
Michael Kerrisk [Wed, 18 Oct 2017 07:25:14 +0000 (09:25 +0200)] 
man-pages.7: Note that "x86-64" is generally preferred over "x86_64"

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoproc.5: wfix
Michael Kerrisk [Wed, 18 Oct 2017 07:21:11 +0000 (09:21 +0200)] 
proc.5: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2, getcpu.2, shmget.2, syscall.2, dladdr.3, proc.5, vdso.7: Consistently use...
Michael Kerrisk [Wed, 18 Oct 2017 07:19:34 +0000 (09:19 +0200)] 
clone.2, getcpu.2, shmget.2, syscall.2, dladdr.3, proc.5, vdso.7: Consistently use "x86-64", not "x86_64"

When referring to the architecture, consistently use "x86-64",
not "x86_64". Hitherto, there was a mixture of usages, with
"x86-64" predominant.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Combine redundant paragraphs describing child_stack==NULL
Michael Kerrisk [Wed, 18 Oct 2017 06:53:43 +0000 (08:53 +0200)] 
clone.2: Combine redundant paragraphs describing child_stack==NULL

Combine two redundant paragraphs (one of which I recently
added) describing child_stack==NULL for the raw system call.
Also, make sure this text is in a more obvious place than
its previous location.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Rework the discussion of the historical CLONE_PID for clarity
Michael Kerrisk [Wed, 18 Oct 2017 06:37:46 +0000 (08:37 +0200)] 
clone.2: Rework the discussion of the historical CLONE_PID for clarity

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: ffix
Michael Kerrisk [Wed, 18 Oct 2017 06:26:23 +0000 (08:26 +0200)] 
clone.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Remove a redundant paragraph
Michael Kerrisk [Wed, 18 Oct 2017 06:24:11 +0000 (08:24 +0200)] 
clone.2: Remove a redundant paragraph

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Eliminate some redundant phrasing in discussion of "fn()"
Michael Kerrisk [Wed, 18 Oct 2017 06:15:28 +0000 (08:15 +0200)] 
clone.2: Eliminate some redundant phrasing in discussion of "fn()"

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Minor wording fixes
Michael Kerrisk [Wed, 18 Oct 2017 06:13:43 +0000 (08:13 +0200)] 
clone.2: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Warn that the clone() wrapper modifies child_stack in the parent
Michael Kerrisk [Tue, 17 Oct 2017 20:24:49 +0000 (22:24 +0200)] 
clone.2: Warn that the clone() wrapper modifies child_stack in the parent

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Add NOTES heading
Michael Kerrisk [Tue, 17 Oct 2017 20:17:26 +0000 (22:17 +0200)] 
clone.2: Add NOTES heading

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Note that child_stack can be NULL when using the raw system call
Michael Kerrisk [Tue, 17 Oct 2017 13:52:54 +0000 (15:52 +0200)] 
clone.2: Note that child_stack can be NULL when using the raw system call

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: Minor wording fix (in preparation for subsequent patch)
Michael Kerrisk [Tue, 17 Oct 2017 13:51:43 +0000 (15:51 +0200)] 
clone.2: Minor wording fix (in preparation for subsequent patch)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoclone.2: tfix
Michael Kerrisk [Tue, 17 Oct 2017 12:47:11 +0000 (14:47 +0200)] 
clone.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agold.so.8: Simplify language around conferring capabilities
Michael Kerrisk [Fri, 13 Oct 2017 10:52:46 +0000 (12:52 +0200)] 
ld.so.8: Simplify language around conferring capabilities

The statement "conferring permitted or effective capabilities"
to the process is somewhat redundant. Binaries with capabilities
confer capabilities only to those process capability sets, so it's
simpler to just say"confers capabilities to the process".

Reported-by: Yubin Ruan <ablacktshirt@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocore.5: ffix
Michael Kerrisk [Thu, 12 Oct 2017 10:57:13 +0000 (12:57 +0200)] 
core.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocore.5: tfix
Michael Kerrisk [Thu, 12 Oct 2017 10:54:49 +0000 (12:54 +0200)] 
core.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocore.5: Adds some notes on systemd and core dumps
Michael Kerrisk [Thu, 12 Oct 2017 06:31:17 +0000 (08:31 +0200)] 
core.5: Adds some notes on systemd and core dumps

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocore.5: Dumps are not produced if core_pattern is empty and core_uses_pid is 0
Michael Kerrisk [Wed, 11 Oct 2017 20:00:09 +0000 (22:00 +0200)] 
core.5: Dumps are not produced if core_pattern is empty and core_uses_pid is 0

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocore.5: SEE ALSO: add coredumpctl(1)
Michael Kerrisk [Wed, 11 Oct 2017 16:04:42 +0000 (18:04 +0200)] 
core.5: SEE ALSO: add coredumpctl(1)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agocore.5: RLIMIT_CORE is not enforced when piping core dump to a program
Michael Kerrisk [Mon, 9 Oct 2017 20:25:05 +0000 (22:25 +0200)] 
core.5: RLIMIT_CORE is not enforced when piping core dump to a program

Reported-by: Per Böhlin <Per.Bohlin@zenterio.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agomadvise.2: Note fork() and execve() semantics for wipe-on-fork setting
Michael Kerrisk [Mon, 9 Oct 2017 19:43:00 +0000 (21:43 +0200)] 
madvise.2: Note fork() and execve() semantics for wipe-on-fork setting

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agofork.2: The MADV_WIPEONFORK setting is preserved in child of fork()
Michael Kerrisk [Mon, 9 Oct 2017 19:26:53 +0000 (21:26 +0200)] 
fork.2: The MADV_WIPEONFORK setting is preserved in child of fork()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agofork.2: Minor reworking of MADV_WIPEONFORK text
Michael Kerrisk [Mon, 9 Oct 2017 19:24:06 +0000 (21:24 +0200)] 
fork.2: Minor reworking of MADV_WIPEONFORK text

The wipe-on-fork setting is specified on address ranges,
not mappings.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agogetrlimit.2: Make it clear RLIMIT_NPROC is a limit on current number of processes
Michael Kerrisk [Mon, 9 Oct 2017 13:48:47 +0000 (15:48 +0200)] 
getrlimit.2: Make it clear RLIMIT_NPROC is a limit on current number of processes

https://twitter.com/silentbicycle/status/893849097903505409

Reported-by: Scott Vokes <vokes.s@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agogetrlimit.2: Minor rewording
Michael Kerrisk [Mon, 9 Oct 2017 13:35:20 +0000 (15:35 +0200)] 
getrlimit.2: Minor rewording

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoproc.5: tfix
Jakub Wilk [Sun, 8 Oct 2017 15:53:34 +0000 (17:53 +0200)] 
proc.5: tfix

Remove duplicated word.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoepoll.7: Note existence of kcmp() KCMP_EPOLL_TFD operation
Michael Kerrisk [Mon, 9 Oct 2017 09:45:13 +0000 (11:45 +0200)] 
epoll.7: Note existence of kcmp() KCMP_EPOLL_TFD operation

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoshmop.2: Note that return value of shmat() is page-aligned
Yubin Ruan [Mon, 9 Oct 2017 14:27:27 +0000 (22:27 +0800)] 
shmop.2: Note that return value of shmat() is page-aligned

At the current man page for shmat(2)[1], there is no mentioning
whether the returned memory address of shmat(2) will be page size
aligned or not. As that is quite important to many applications(e.g.,
those that use locks heavily and would like to avoid some locks by
some atomic guarantees provided by the CPU), it would be great to
specify that for Linux.

I walked down the current implementation of shmat(2) in the latest
kernel src and found that shmat(2) does return a page size aligned
memory address:

SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg)
 -> do_shmat(...)
 -> do_mmap_pgoff(...)
 -> do_mmap(...)
 -> get_unmapped_area(...)
 -> get_area(...) -> offset_in_page(addr)

there is a `offset_in_page(addr)' assertion at the end and if that is
true a -EINVAL would be returned, by which we can be sure that
shmat(2) will return a page size aligned memory address on success[2].

[1]: http://man7.org/linux/man-pages/man2/shmat.2.html
[2]: there is also a `offset_in_page(2)' in get_unmapped_area(...),
but that doesn't lead to -EINVAL...I am not sure whether the logic of
that code is right.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoshmop.2: Minor wording fix
Michael Kerrisk [Sun, 8 Oct 2017 21:36:56 +0000 (23:36 +0200)] 
shmop.2: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoabort.3: SEE ALSO: add assert(3)
Michael Kerrisk [Sun, 8 Oct 2017 13:30:11 +0000 (15:30 +0200)] 
abort.3: SEE ALSO: add assert(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoabort.3: Starting with glibc 2.27, abort() does not attempt to flush streams
Michael Kerrisk [Sun, 8 Oct 2017 13:28:43 +0000 (15:28 +0200)] 
abort.3: Starting with glibc 2.27, abort() does not attempt to flush streams

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigaction.2: Mention that libc sets the act.sa_restorer field
Michael Kerrisk [Sun, 8 Oct 2017 12:46:20 +0000 (14:46 +0200)] 
sigaction.2: Mention that libc sets the act.sa_restorer field

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigaction.2: wfix
Michael Kerrisk [Sun, 8 Oct 2017 12:38:34 +0000 (14:38 +0200)] 
sigaction.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigaction.2: wfix
Michael Kerrisk [Sun, 8 Oct 2017 12:37:17 +0000 (14:37 +0200)] 
sigaction.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigreturn.2: Minor fixes to description of sa_restorer field
Michael Kerrisk [Sun, 8 Oct 2017 12:35:52 +0000 (14:35 +0200)] 
sigreturn.2: Minor fixes to description of sa_restorer field

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigreturn.2: Minor wording fix
Michael Kerrisk [Sun, 8 Oct 2017 12:30:05 +0000 (14:30 +0200)] 
sigreturn.2: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigreturn.2: glibc has a simple wrapper for sigreturn() that returns ENOSYS
Michael Kerrisk [Fri, 6 Oct 2017 12:14:02 +0000 (14:14 +0200)] 
sigreturn.2: glibc has a simple wrapper for sigreturn() that returns ENOSYS

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopow10.3: tfix
Fangrui Song [Sun, 8 Oct 2017 06:03:15 +0000 (23:03 -0700)] 
pow10.3: tfix

Signed-off-by: Fangrui Song <i@maskray.me>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigaction.2: Rework discussion of SA_SIGINFO handler arguments
Michael Kerrisk [Sun, 8 Oct 2017 08:49:36 +0000 (10:49 +0200)] 
sigaction.2: Rework discussion of SA_SIGINFO handler arguments

Expand and rework the text a little, in particular adding
a reference to sigreturn(2) as a source of further
information about the ucontext argument.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosigreturn.2: Make it a little clearer that a stack frame is created by the kernel
Michael Kerrisk [Sun, 8 Oct 2017 07:52:12 +0000 (09:52 +0200)] 
sigreturn.2: Make it a little clearer that a stack frame is created by the kernel

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosysfs.5: tfix
Jakub Wilk [Tue, 3 Oct 2017 15:45:12 +0000 (17:45 +0200)] 
sysfs.5: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agostatfs.2: tfix
Jakub Wilk [Tue, 3 Oct 2017 15:45:11 +0000 (17:45 +0200)] 
statfs.2: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agomallinfo.3: Fix the example
Jakub Wilk [Tue, 3 Oct 2017 16:06:22 +0000 (18:06 +0200)] 
mallinfo.3: Fix the example

Remove reference to non-standard "tlpi_hdr.h" and replace calls to
functions that were declared in this header.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoflock.2: Placing an exclusive lock over NFS requires the file is open for writing
Michael Kerrisk [Tue, 3 Oct 2017 13:28:59 +0000 (15:28 +0200)] 
flock.2: Placing an exclusive lock over NFS requires the file is open for writing

Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoflock.2: Minor wording fix
Michael Kerrisk [Tue, 3 Oct 2017 13:28:30 +0000 (15:28 +0200)] 
flock.2: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoflock.2: Break NFS details int two separate paragraphs
Michael Kerrisk [Tue, 3 Oct 2017 13:23:53 +0000 (15:23 +0200)] 
flock.2: Break NFS details int two separate paragraphs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoflock.2: Move NFS details to a headed subsection
Michael Kerrisk [Tue, 3 Oct 2017 13:23:08 +0000 (15:23 +0200)] 
flock.2: Move NFS details to a headed subsection

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosetlocale.3: The standards do not specify all of the locale categories
Michael Kerrisk [Tue, 3 Oct 2017 12:57:36 +0000 (14:57 +0200)] 
setlocale.3: The standards do not specify all of the locale categories

Reported-by: Křištof Želechovski <giecrilj@stegny.2a.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agoprctl.2: wfix
Michael Kerrisk [Tue, 3 Oct 2017 12:25:47 +0000 (14:25 +0200)] 
prctl.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosplice.2: Since Linux 2.6.31,'fd_in' and 'fd_out' may both refer to pipes
Michael Kerrisk [Tue, 3 Oct 2017 12:13:56 +0000 (14:13 +0200)] 
splice.2: Since Linux 2.6.31,'fd_in' and 'fd_out' may both refer to pipes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agomremap.2: Update timestamp: review of new BUGS by Michal Hocko and Mike Kravetz
Michael Kerrisk [Mon, 25 Sep 2017 13:11:36 +0000 (15:11 +0200)] 
mremap.2: Update timestamp: review of new BUGS by Michal Hocko and Mike Kravetz

Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agopthread_yield.3: pthread_yield() is intended for use with real-time scheduling policies
Michael Kerrisk [Fri, 29 Sep 2017 20:46:28 +0000 (22:46 +0200)] 
pthread_yield.3: pthread_yield() is intended for use with real-time scheduling policies

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agosched_yield.2: sched_yield() is intended for use with real-time scheduling policies
Michael Kerrisk [Fri, 29 Sep 2017 20:43:30 +0000 (22:43 +0200)] 
sched_yield.2: sched_yield() is intended for use with real-time scheduling policies

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agobacktrace.3: Minor tweaks to Stefan Puiu's patch
Michael Kerrisk [Fri, 29 Sep 2017 18:36:55 +0000 (20:36 +0200)] 
backtrace.3: Minor tweaks to Stefan Puiu's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
6 years agobacktrace_symbols_fd() can trigger a call to malloc()
Stefan Puiu [Fri, 5 Dec 2014 17:04:02 +0000 (19:04 +0200)] 
backtrace_symbols_fd() can trigger a call to malloc()

Currently, the backtrace(3) manual page says this about backtrace_symbols_fd():

back‐
       trace_symbols_fd() does not call malloc(3), and so can be
employed in situations where the latter function might fail.

However, I watched a video of a presentation about signal handling and
the speaker was saying that calling backtrace() can trigger a call to
malloc - indirectly. That happens because the backtrace*() functions
are part of libgcc, which gets dynamically loaded whenever needed;
dynamic loading would, in turn, trigger a malloc. The talk can be
found here: http://free-electrons.com/pub/video/2008/ols/ols2008-gilad-ben-yossef-fault-handlers.ogg

I decided to test it out, and it seems that this is still true (at
least on Ubuntu 12.04). I compiled the attached program (I used
CXXFLAGS = '-Wall -g -std=c++0x', the -std= part is not really needed)
and ran it through gdb, putting a breakpoint on the line where
backtrace is called. When that breakpoint is hit, I set a breakpoint
on malloc, continued and voila:

Breakpoint 2, __GI___libc_malloc (bytes=36) at malloc.c:2910
2910    malloc.c: No such file or directory.
(gdb) bt
"/lib/x86_64-linux-gnu/libgcc_s.so.1") at dl-load.c:162
"libgcc_s.so.1", type=2, trace_mode=0, mode=-1879048191,
nsid=<optimized out>) at dl-load.c:2473
errstring=0x7fffffffdd00, mallocedp=0x7fffffffdd0f,
operate=0x7ffff7ded700 <dl_open_worker>, args=0x7fffffffdcb0) at
dl-error.c:178
"libgcc_s.so.1", mode=-2147483647, caller_dlopen=0x7ffff7b260a9,
nsid=-2, argc=1, argv=<optimized out>, env=0x7fffffffe068) at
dl-open.c:639
errstring=0x7fffffffded0, mallocedp=0x7fffffffdeef,
operate=0x7ffff7b4bc20 <do_dlopen>, args=0x7fffffffdeb0) at
dl-error.c:178
operate=0x7ffff7b4bc20 <do_dlopen>) at dl-libc.c:48
out>) at dl-libc.c:165
../sysdeps/x86_64/../ia64/backtrace.c:104

Reviewed-by: Walter Harms <wharms@bfs.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>