]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agogetutmp.3: ffix
Alejandro Colomar [Sun, 9 May 2021 21:39:03 +0000 (23:39 +0200)] 
getutmp.3: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc_usable_size.3: ffix
Alejandro Colomar [Sun, 9 May 2021 21:39:02 +0000 (23:39 +0200)] 
malloc_usable_size.3: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosignalfd.2: tfix
Akihiro Motoki [Sun, 9 May 2021 20:19:50 +0000 (22:19 +0200)] 
signalfd.2: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofanotify.7: ffix
Akihiro Motoki [Sun, 9 May 2021 20:19:49 +0000 (22:19 +0200)] 
fanotify.7: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosemctl.2: ffix
Akihiro Motoki [Sun, 9 May 2021 20:19:48 +0000 (22:19 +0200)] 
semctl.2: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomove_pages.2: ffix
Akihiro Motoki [Sun, 9 May 2021 20:19:47 +0000 (22:19 +0200)] 
move_pages.2: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexecve.2: tfix
Štěpán Němec [Sun, 9 May 2021 20:19:46 +0000 (22:19 +0200)] 
execve.2: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshmop.2: tfix
Vishwajith K [Sun, 9 May 2021 20:19:45 +0000 (22:19 +0200)] 
shmop.2: tfix

Signed-off-by: Vishwajith K <vishuvikas1996@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetopt.3: Minor tweaks to James' patch
Alejandro Colomar [Sun, 9 May 2021 20:19:44 +0000 (22:19 +0200)] 
getopt.3: Minor tweaks to James' patch

The rest of the page writes the characters without naming them.
Follow that convention.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetopt.3: Clarify behaviour
James O. D. Hunt [Sun, 9 May 2021 20:19:43 +0000 (22:19 +0200)] 
getopt.3: Clarify behaviour

Improved the `getopt(3)` man page in the following ways:

1) Defined the existing term "legitimate option character".
2) Added an additional NOTE stressing that arguments are parsed in strict
   order and the implications of this when numeric options are utilised.

Signed-off-by: James O. D. Hunt <jamesodhunt@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosigwaitinfo.2: tfix
Alejandro Colomar [Sun, 9 May 2021 20:19:42 +0000 (22:19 +0200)] 
sigwaitinfo.2: tfix

Fix wording issue introduced in commit
bf1298c9e5053f55dea43e74255dae5ec57f251e.

Reported-by: Chris Keilbart <keilbartchris@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexit_group.2, getunwind.2: tfix
Jakub Wilk [Sun, 9 May 2021 20:19:41 +0000 (22:19 +0200)] 
exit_group.2, getunwind.2: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges.old: tfix
Jakub Wilk [Sun, 9 May 2021 20:19:40 +0000 (22:19 +0200)] 
Changes.old: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoptrace.2: mention PTRACE_GET_SYSCALL_INFO in RETURN VALUE section
Dmitry V. Levin [Sun, 9 May 2021 20:19:39 +0000 (22:19 +0200)] 
ptrace.2: mention PTRACE_GET_SYSCALL_INFO in RETURN VALUE section

Mirror the wording about PTRACE_GET_SYSCALL_INFO return value semantics
from "DESCRIPTION" section to "RETURN VALUE" section.

Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Complements: fc91449cb "ptrace.2: Document PTRACE_GET_SYSCALL_INFO"
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomove_pages.2: ffix
Dmitry V. Levin [Sun, 9 May 2021 20:19:38 +0000 (22:19 +0200)] 
move_pages.2: ffix

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: tfix
Johannes Berg [Sun, 9 May 2021 20:19:37 +0000 (22:19 +0200)] 
clone.2: tfix

Despite my mention of this spawning a hilarious discussion
on IRC, this alignment restriction should be 128-bit, not
126-bit.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosetbuf.3: tfix
Alejandro Colomar [Sun, 9 May 2021 20:19:36 +0000 (22:19 +0200)] 
setbuf.3: tfix

Reported-by: Zhiheng Li <phoenix_lzh@sina.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosigaltstack.2: tfix
Borislav Petkov [Sun, 9 May 2021 20:19:35 +0000 (22:19 +0200)] 
sigaltstack.2: tfix

Add a missing "to" in an "in order to" formulation.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoflock.2: add CIFS details
Aurelien Aptel [Sun, 9 May 2021 20:19:34 +0000 (22:19 +0200)] 
flock.2: add CIFS details

CIFS flock() locks behave differently than the standard. Give overview
of those differences.

Here is the rendered text:

CIFS details
  In Linux kernels up to 5.4, flock() is not propagated over SMB.  A file
  with such locks will not appear locked for remote clients.

  Since Linux 5.5, flock() locks are emulated with SMB  byte-range  locks
  on  the  entire  file.   Similarly to NFS, this means that fcntl(2) and
  flock() locks interact with one another.  Another important side-effect
  is  that  the  locks  are not advisory anymore: any IO on a locked file
  will always fail with EACCES when done from a separate file descriptor.
  This  difference  originates from the design of locks in the SMB proto-
  col, which provides mandatory locking semantics.

  Remote and mandatory locking semantics  may  vary  with  SMB  protocol,
  mount options and server type.  See mount.cifs(8) for additional infor-
  mation.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Discussion: linux-man <https://lore.kernel.org/linux-man/20210302154831.17000-1-aaptel@suse.com/>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Remove unused <sys/ipc.h> (and <sys/types.h>)
Alejandro Colomar [Wed, 21 Apr 2021 22:44:18 +0000 (00:44 +0200)] 
Various pages: Remove unused <sys/ipc.h> (and <sys/types.h>)

In b0b19983d9a2001ce94b908a99f4c05a50fd47ee we removed
<sys/types.h>.  For the same reasons there, remove now <sys/ipc.h>
from many pages.

If someone wonders why <sys/ipc.h> was needed, the reason was to
get all the definitions of IPC_* constants.  However, that header
is now included by <sys/msg.h>, so it's not needed anymore to
explicitly include it.  Quoting POSIX: "In addition, the
<sys/msg.h> header shall include the <sys/ipc.h> header."

There were some remaining cases where I forgot to remove
<sys/types.h>; remove them now too.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen_by_handle_at.2: Remove unused <sys/stat.h>
Alejandro Colomar [Fri, 23 Apr 2021 09:52:19 +0000 (11:52 +0200)] 
open_by_handle_at.2: Remove unused <sys/stat.h>

AFAICS, all types and constants used by these functions are
defined in <fcntl.h>.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscalls.2: perfmonctl(2) was removed in Linux 5.10
Michael Kerrisk [Sun, 9 May 2021 17:20:32 +0000 (05:20 +1200)] 
syscalls.2: perfmonctl(2) was removed in Linux 5.10

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoperfmonctl.2: This system call was removed in Linux 5.10
Michael Kerrisk [Sun, 9 May 2021 17:18:40 +0000 (05:18 +1200)] 
perfmonctl.2: This system call was removed in Linux 5.10

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshm_overview.7: ffix
Akihiro Motoki [Thu, 6 May 2021 11:49:38 +0000 (20:49 +0900)] 
shm_overview.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopthread_yield.3: Note that this function is deprecated since glibc 2.34
Michael Kerrisk [Sun, 9 May 2021 16:19:32 +0000 (04:19 +1200)] 
pthread_yield.3: Note that this function is deprecated since glibc 2.34

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopthread_mutexattr_setrobust.3: Note that the *_np() APIs are deprecated since glibc...
Michael Kerrisk [Sun, 9 May 2021 16:15:13 +0000 (04:15 +1200)] 
pthread_mutexattr_setrobust.3: Note that the *_np() APIs are deprecated since glibc 2.34

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopthread_mutex_consistent.3: Note that pthread_mutexattr_setrobust() is now deprecated
Michael Kerrisk [Sun, 9 May 2021 16:13:07 +0000 (04:13 +1200)] 
pthread_mutex_consistent.3: Note that pthread_mutexattr_setrobust() is now deprecated

Deprecated since glibc 2.34.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexecveat.2: Library support has been added in glibc 2.34
Michael Kerrisk [Sun, 9 May 2021 16:12:38 +0000 (04:12 +1200)] 
execveat.2: Library support has been added in glibc 2.34

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopthread_mutex_consistent.3: tfix
Michael Kerrisk [Sun, 9 May 2021 16:06:15 +0000 (04:06 +1200)] 
pthread_mutex_consistent.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscalls.2: SEE ALSO: add ausyscall(1)
Michael Kerrisk [Thu, 29 Apr 2021 19:14:59 +0000 (21:14 +0200)] 
syscalls.2: SEE ALSO: add ausyscall(1)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoget_mempolicy.2, mq_getsetattr.2, poll.2: ffix
Michael Kerrisk [Tue, 6 Apr 2021 11:38:40 +0000 (13:38 +0200)] 
get_mempolicy.2, mq_getsetattr.2, poll.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopipe.2: Rearrange SYNOPSIS so that minority version pipe() is at end
Michael Kerrisk [Tue, 6 Apr 2021 11:36:25 +0000 (13:36 +0200)] 
pipe.2: Rearrange SYNOPSIS so that minority version pipe() is at end

A few architectures have a different call signature for pipe().
Since those architectures are the minority, place the prototype
at the end of the SYNOPSIS, rather than the start.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount.2: ffix
Michael Kerrisk [Tue, 6 Apr 2021 11:29:18 +0000 (13:29 +0200)] 
mount.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouserfaultfd.2: tfix
Michael Kerrisk [Tue, 6 Apr 2021 11:26:29 +0000 (13:26 +0200)] 
userfaultfd.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_userfaultfd.2: tfix
Michael Kerrisk [Tue, 6 Apr 2021 11:26:01 +0000 (13:26 +0200)] 
ioctl_userfaultfd.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7, namespaces.7: Relocate reference to pam_namespace(8)
Michael Kerrisk [Tue, 6 Apr 2021 10:24:33 +0000 (12:24 +0200)] 
mount_namespaces.7, namespaces.7: Relocate reference to pam_namespace(8)

SEE ALSO: move pam_namespace(8) from namespaces(7) to
mount_namespaces(7) (since pam_namespace(8) makes use of
mount namespaces specifically).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agovsock.7: ffix
Michael Kerrisk [Tue, 6 Apr 2021 08:35:45 +0000 (10:35 +0200)] 
vsock.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agovsock.7: ioctls are on /dev/vsock, not sockets
Alyssa Ross [Wed, 24 Mar 2021 14:05:03 +0000 (14:05 +0000)] 
vsock.7: ioctls are on /dev/vsock, not sockets

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_userfaultfd.2, userfaultfd.2: Minor tweaks to Peter Xu's patches
Michael Kerrisk [Tue, 6 Apr 2021 08:04:46 +0000 (10:04 +0200)] 
ioctl_userfaultfd.2, userfaultfd.2: Minor tweaks to Peter Xu's patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_userfaultfd.2: Add write-protect mode docs
Peter Xu [Mon, 5 Apr 2021 13:13:08 +0000 (15:13 +0200)] 
ioctl_userfaultfd.2: Add write-protect mode docs

Userfaultfd write-protect mode is supported starting from Linux 5.7.

Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
[alx: ffix + srcfix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs
Peter Xu [Mon, 5 Apr 2021 13:13:07 +0000 (15:13 +0200)] 
ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

UFFD_FEATURE_THREAD_ID is supported in Linux 4.14.

Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouserfaultfd.2: Add write-protect mode
Peter Xu [Mon, 5 Apr 2021 13:13:06 +0000 (15:13 +0200)] 
userfaultfd.2: Add write-protect mode

Write-protect mode is supported starting from Linux 5.7.

Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouserfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs
Peter Xu [Mon, 5 Apr 2021 13:13:05 +0000 (15:13 +0200)] 
userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

UFFD_FEATURE_THREAD_ID is supported since Linux 4.14.

Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
[alx: srcfix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoscanf.3: Clarify that %n supports type modifiers
Alyssa Ross [Mon, 5 Apr 2021 13:13:04 +0000 (15:13 +0200)] 
scanf.3: Clarify that %n supports type modifiers

My initial reading of this was that type modifiers were probably
not supported.  But they are, and this is actually documented
further up, in the type modifiers documentation.  But to make it
clearer, let's copy the language that printf(3) has in its %n
section.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshm_open.3: wfix
Michael Kerrisk [Mon, 5 Apr 2021 19:40:01 +0000 (21:40 +0200)] 
shm_open.3: wfix

Reported-by: Jon Murphy <jonmurphy1618@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoio_cancel.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:41 +0000 (13:58 +0200)] 
io_cancel.2: Use syscall(SYS_...); for system calls without a wrapper

In this case there's a wrapper provided by libaio,
but this page documents the raw kernel syscall.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoinit_module.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:40 +0000 (13:58 +0200)] 
init_module.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodelete_module.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:39 +0000 (13:58 +0200)] 
delete_module.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoget_robust_list.2: ffix
Michael Kerrisk [Mon, 5 Apr 2021 11:39:12 +0000 (13:39 +0200)] 
get_robust_list.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoget_robust_list.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:38 +0000 (13:58 +0200)] 
get_robust_list.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetunwind.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:37 +0000 (13:58 +0200)] 
getunwind.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexit_group.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:29 +0000 (13:58 +0200)] 
exit_group.2: Use syscall(SYS_...); for system calls without a wrapper

<linux/unistd.h> is not needed.  We need <unistd.h> for syscall(),
and <sys/syscall.h> for SYS_exit_group.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexecveat.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:27 +0000 (13:58 +0200)] 
execveat.2: Use syscall(SYS_...); for system calls without a wrapper

Add <linux/fcntl.h>, which contains AT_* definitions used by
execveat().

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:24 +0000 (13:58 +0200)] 
clone.2: Use syscall(SYS_...); for system calls without a wrapper

The CLONE_* constants seem to be available from either
<linux/sched.h> or <sched.h>, and since clone3() already
includes <linux/sched.h> for 'struct clone_args', <sched.h>
is not really needed, AFAICS; however, to avoid confusion,
I also included <sched.h> for clone3() for consistency:

clone() is getting CLONE_* from <sched.h>, and it would confuse
the reader if clone3() got the same CLONE_* constants from a
different header.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapget.2: Minor tweaks to Alex Colomar's patch
Michael Kerrisk [Mon, 5 Apr 2021 11:29:05 +0000 (13:29 +0200)] 
capget.2: Minor tweaks to Alex Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapget.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:23 +0000 (13:58 +0200)] 
capget.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoarch_prctl.2: SYNOPSIS: Remove unused includes
Alejandro Colomar [Sun, 4 Apr 2021 11:58:22 +0000 (13:58 +0200)] 
arch_prctl.2: SYNOPSIS: Remove unused includes

AFAICS, there's no reason to include that.
All of the macros that this function uses
are already defined in the other headers.

Cc: glibc <libc-alpha@sourceware.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoarch_prctl.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:21 +0000 (13:58 +0200)] 
arch_prctl.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoalloc_hugepages.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:20 +0000 (13:58 +0200)] 
alloc_hugepages.2: Use syscall(SYS_...); for system calls without a wrapper

The page didn't specify includes, and the syscalls are extinct, so
instead of adding incomplete information about includes, just
leave it without any includes.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoaccess.2: Use syscall(SYS_...); for system calls without a wrapper
Alejandro Colomar [Sun, 4 Apr 2021 11:58:18 +0000 (13:58 +0200)] 
access.2: Use syscall(SYS_...); for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fideduperange.2: Minor tweaks to Alex Colomar's patch
Michael Kerrisk [Mon, 5 Apr 2021 11:15:31 +0000 (13:15 +0200)] 
ioctl_fideduperange.2: Minor tweaks to Alex Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fideduperange.2: Make clear why exactly is each header needed
Alejandro Colomar [Sun, 4 Apr 2021 11:58:45 +0000 (13:58 +0200)] 
ioctl_fideduperange.2: Make clear why exactly is each header needed

Only the include that provides the prototype doesn't need a comment.

Also sort the includes alphabetically.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_ficlonerange.2: Make clear why is each header exactly needed.
Alejandro Colomar [Sun, 4 Apr 2021 11:58:44 +0000 (13:58 +0200)] 
ioctl_ficlonerange.2: Make clear why is each header exactly needed.

Only the one that provides the prototype doesn't need a comment.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fslabel.2: ffix
Alejandro Colomar [Sun, 4 Apr 2021 11:58:46 +0000 (13:58 +0200)] 
ioctl_fslabel.2: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_getfsmap.2: Minor tweaks to Alex Colomar's patch
Michael Kerrisk [Mon, 5 Apr 2021 11:08:58 +0000 (13:08 +0200)] 
ioctl_getfsmap.2: Minor tweaks to Alex Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_getfsmap.2: Make clear why exactly is each header needed
Alejandro Colomar [Sun, 4 Apr 2021 11:58:48 +0000 (13:58 +0200)] 
ioctl_getfsmap.2: Make clear why exactly is each header needed

<linux/fs.h> doesn't seem to be needed!
Only the include that provides the prototype doesn't need a comment.

Also sort the includes alphabetically.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fslabel.2: Make clear why exactly is each header needed
Alejandro Colomar [Sun, 4 Apr 2021 11:58:47 +0000 (13:58 +0200)] 
ioctl_fslabel.2: Make clear why exactly is each header needed

Only the include that provides the prototype doesn't need a comment.

Also sort the includes alphabetically.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fat.2: Minor tweaks to Alex Colomar's patch
Michael Kerrisk [Mon, 5 Apr 2021 11:02:23 +0000 (13:02 +0200)] 
ioctl_fat.2: Minor tweaks to Alex Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fat.2: tfix
Alejandro Colomar [Sun, 4 Apr 2021 11:58:43 +0000 (13:58 +0200)] 
ioctl_fat.2: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fat.2: Make clear why is each header exactly needed.
Alejandro Colomar [Sun, 4 Apr 2021 11:58:42 +0000 (13:58 +0200)] 
ioctl_fat.2: Make clear why is each header exactly needed.

Only the one that provides the prototype doesn't need a comment.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodup.2: SYNOPSIS: Use consistent comments through pages
Alejandro Colomar [Sun, 4 Apr 2021 11:58:26 +0000 (13:58 +0200)] 
dup.2: SYNOPSIS: Use consistent comments through pages

[mtk: Alex's change switches the comment to the more generally used
form "Definition of..."]

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofanotify_init.2: Add comment: why more than one include is needed
Alejandro Colomar [Sun, 4 Apr 2021 11:58:30 +0000 (13:58 +0200)] 
fanotify_init.2: Add comment: why more than one include is needed

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetpriority.2: Remove unused include
Alejandro Colomar [Sun, 4 Apr 2021 11:58:35 +0000 (13:58 +0200)] 
getpriority.2: Remove unused include

<sys/time.h> is not needed to get the function declaration nor any
constant used by the function.  It was only needed (before
POSIX.1) to get 'struct timeval', but that information would be
more suited for system_data_types(7), and not for this page.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodelete_module.2: Add missing include
Alejandro Colomar [Sun, 4 Apr 2021 11:58:25 +0000 (13:58 +0200)] 
delete_module.2: Add missing include

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetrlimit.2, getrusage.2: Remove unused include
Alejandro Colomar [Sun, 4 Apr 2021 11:58:36 +0000 (13:58 +0200)] 
getrlimit.2, getrusage.2: Remove unused include

<sys/time.h> is not required by any of the function declarations
or macro definitions used by these functions.  It may be (or maybe
not) needed by some type inside the rlimit structure, but that
info belongs in system_data_types(7), not here.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoadd_key.2: Remove unused include
Alejandro Colomar [Sun, 4 Apr 2021 11:58:19 +0000 (13:58 +0200)] 
add_key.2: Remove unused include

<sys/types.h> was only needed for size_t, AFAIK.  That is already
(and more precisely) documented in system_data_types(7).  Let's
remove it here, as it's not really needed for calling add_key().

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: Remove unused include
Alejandro Colomar [Sun, 4 Apr 2021 11:58:31 +0000 (13:58 +0200)] 
fcntl.2: Remove unused include

I couldn't find a reason for including <unistd.h>.  All the macros
used by fcntl() are defined in <fcntl.h>.  For comparison, FreeBSD
and OpenBSD don't specify <unistd.h> in their manual pages.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexit_group.2: Use 'noreturn' in prototypes
Alejandro Colomar [Sun, 4 Apr 2021 11:58:28 +0000 (13:58 +0200)] 
exit_group.2: Use 'noreturn' in prototypes

This function never returns to its caller.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofutimesat.2: ffix
Alejandro Colomar [Sun, 4 Apr 2021 11:58:33 +0000 (13:58 +0200)] 
futimesat.2: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosocklen_t.3: New link to system_data_types(7)
Alejandro Colomar [Sat, 3 Apr 2021 19:39:56 +0000 (21:39 +0200)] 
socklen_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'socklen_t'
Alejandro Colomar [Sat, 3 Apr 2021 19:39:55 +0000 (21:39 +0200)] 
system_data_types.7: Add 'socklen_t'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosockaddr.3: New link to system_data_types(7)
Alejandro Colomar [Sat, 3 Apr 2021 19:39:54 +0000 (21:39 +0200)] 
sockaddr.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add 'struct sockaddr'
Alejandro Colomar [Sat, 3 Apr 2021 19:39:53 +0000 (21:39 +0200)] 
system_data_types.7: Add 'struct sockaddr'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoerrno.3: Fix ENODATA text
Alejandro Colomar [Sat, 20 Mar 2021 20:01:16 +0000 (21:01 +0100)] 
errno.3: Fix ENODATA text

ENODATA is an XSI STREAMS extension (not base POSIX).

Linux reused the name for extended attributes.
The current manual pages don't use ENODATA with its POSIX
meaning, so use the xattr(7) specific text, and leave the POSIX
meaning for a secondary paragraph.

Reported-by: Mark Kettenis <kettenis@openbsd.org>
Reported-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexec.3: Clarify that execvpe uses PATH from the caller, not envp
Josh Triplett [Fri, 19 Mar 2021 23:57:16 +0000 (00:57 +0100)] 
exec.3: Clarify that execvpe uses PATH from the caller, not envp

Checked via the latest glibc source. execvpe calls getenv("PATH") and
searches that; the PATH in envp does not affect the search.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoset_mempolicy.2: srcfix
Michael Kerrisk [Sun, 4 Apr 2021 20:07:31 +0000 (22:07 +0200)] 
set_mempolicy.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoset_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING
Huang Ying [Fri, 19 Mar 2021 23:57:12 +0000 (00:57 +0100)] 
set_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING

In Linux kernel 5.12, a new mode flag, MPOL_F_NUMA_BALANCING, is
added to set_mempolicy() to optimize the page placement among the
NUMA nodes with the NUMA balancing mechanism even if the memory of
the applications is bound with MPOL_BIND.  This patch updates the
man page for the new mode flag.

Related kernel commits:
bda420b985054a3badafef23807c4b4fa38a3dff

[mtk: Minor fixes to commit message]

Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Cc: "Michael Kerrisk" <mtk.manpages@gmail.com>
[ alx: srcfix ]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexec.3: Fix description of 'e' variants
Josh Triplett [Fri, 19 Mar 2021 23:57:14 +0000 (00:57 +0100)] 
exec.3: Fix description of 'e' variants

The envp argument specifies the environment of the new process image,
not "the environment of the caller".

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoprintf.3: Minor wording tweaks to Utkarsh's patch
Alejandro Colomar [Fri, 19 Mar 2021 23:57:20 +0000 (00:57 +0100)] 
printf.3: Minor wording tweaks to Utkarsh's patch

The format string refers to the whole string passed in 'format'.
The syntax referred to is that of a conversion specification,
as called in the manual page.
Use specific language.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoprintf.3: Add overall structure of format string
Utkarsh Singh [Fri, 19 Mar 2021 23:57:18 +0000 (00:57 +0100)] 
printf.3: Add overall structure of format string

Can we add a small syntax structure for format string in printf(3)
manual.  I personally find if easier to remember and scan.  This has
been taken from OpenBSD printf(3) manual.

Signed-off-by: Utkarsh Singh <utkarsh190601@gmail.com>
[ alx: ffix ]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoenviron.7: Remove obsolete admonishment of the GZIP environment variable
Josh Triplett [Fri, 19 Mar 2021 23:57:22 +0000 (00:57 +0100)] 
environ.7: Remove obsolete admonishment of the GZIP environment variable

gzip deprecated the GZIP environment variable long ago.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
[ alx: srcfix ]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agommap.2: Clarify that MAP_POPULATE is best-effort
Bruce Merry [Tue, 23 Mar 2021 07:48:31 +0000 (09:48 +0200)] 
mmap.2: Clarify that MAP_POPULATE is best-effort

As discussed on linux-mm
(https://marc.info/?l=linux-mm&m=161528594100612&w=2), MAP_POPULATE can
fail silently if the hugetlb cgroup settings allow huge page reservation
but prevents huge pages being allocated.

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

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowrite.2: wfix
Michael Kerrisk [Fri, 2 Apr 2021 10:28:00 +0000 (12:28 +0200)] 
write.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agolisten.2: wfix
Michael Kerrisk [Fri, 26 Mar 2021 11:05:15 +0000 (12:05 +0100)] 
listen.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years ago_exit.2: Add a little more detail on the raw _exit() system cal
Michael Kerrisk [Thu, 25 Mar 2021 08:32:30 +0000 (09:32 +0100)] 
_exit.2: Add a little more detail on the raw _exit() system cal

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodup.2: Further clarify the effect of dup2()
Michael Kerrisk [Tue, 23 Mar 2021 10:33:40 +0000 (11:33 +0100)] 
dup.2: Further clarify the effect of dup2()

Add a sentence explaining what dup2() does in terms of file
descriptors and open file descriptions.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodup.2: Clarify what silent closing means
Michael Kerrisk [Tue, 23 Mar 2021 10:27:39 +0000 (11:27 +0100)] 
dup.2: Clarify what silent closing means

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: Make it clearer that an FD is an index into the process's FD table
Michael Kerrisk [Tue, 23 Mar 2021 10:05:24 +0000 (11:05 +0100)] 
open.2: Make it clearer that an FD is an index into the process's FD table

Sometimes people are confused, thinking a file descriptor is just a
number.  To help avoid such confusions, add text highlighting that
a file descriptor is an index to an entry in the process's FD table.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agodup.2: Rewrite the description of dup() somewhat
Michael Kerrisk [Tue, 23 Mar 2021 09:35:38 +0000 (10:35 +0100)] 
dup.2: Rewrite the description of dup() somewhat

As can be seen by any number of StackOverflow questions, people
persistently misunderstand what dup() does, and the existing manual
page text, which talks of "copying" a file descriptor doesn't help.
Rewrite the text a little to try to prevent some of these
misunderstandings, in particular noting at the start that dup()
allocates a new file descriptor.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoStart of man-pages-5.12: updating Changes and Changes.old
Michael Kerrisk [Mon, 22 Mar 2021 10:19:38 +0000 (11:19 +0100)] 
Start of man-pages-5.12: updating Changes and Changes.old