]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
5 years agoreaddir.3: wfix
Michael Kerrisk [Sun, 19 Apr 2020 22:01:16 +0000 (00:01 +0200)] 
readdir.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agortc.4: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:59:20 +0000 (23:59 +0200)] 
rtc.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoscanf.3: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:54:11 +0000 (23:54 +0200)] 
scanf.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosysconf.3: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:48:21 +0000 (23:48 +0200)] 
sysconf.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agost.4: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:40:11 +0000 (23:40 +0200)] 
st.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agost.4: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:34:17 +0000 (23:34 +0200)] 
st.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosignal.7: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:32:58 +0000 (23:32 +0200)] 
signal.7: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoresolver.3: ffix
Michael Kerrisk [Sun, 19 Apr 2020 21:31:01 +0000 (23:31 +0200)] 
resolver.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomlock.2: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:27:43 +0000 (23:27 +0200)] 
mlock.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoinitrd.4: tfix
Michael Kerrisk [Sun, 19 Apr 2020 21:23:36 +0000 (23:23 +0200)] 
initrd.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agostrstr.3: srcfix: remove some ancient Linux libc details that were in comments
Michael Kerrisk [Sun, 19 Apr 2020 20:43:41 +0000 (22:43 +0200)] 
strstr.3: srcfix: remove some ancient Linux libc details that were in comments

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoutmp.5: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:37:18 +0000 (22:37 +0200)] 
utmp.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoutmp.5: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:35:38 +0000 (22:35 +0200)] 
utmp.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agotermcap.5: wfix
Michael Kerrisk [Sun, 19 Apr 2020 20:26:31 +0000 (22:26 +0200)] 
termcap.5: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:23:32 +0000 (22:23 +0200)] 
proc.5: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agonice.2: wfix
Michael Kerrisk [Sun, 19 Apr 2020 20:22:32 +0000 (22:22 +0200)] 
nice.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoinitrd.4: wfix
Michael Kerrisk [Sun, 19 Apr 2020 20:19:00 +0000 (22:19 +0200)] 
initrd.4: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopipe.2, st.4, filesystems.5: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:17:03 +0000 (22:17 +0200)] 
pipe.2, st.4, filesystems.5: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: wfix
Michael Kerrisk [Sun, 19 Apr 2020 20:13:21 +0000 (22:13 +0200)] 
proc.5: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agorename.2: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:11:55 +0000 (22:11 +0200)] 
rename.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofilesystems.5: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:06:38 +0000 (22:06 +0200)] 
filesystems.5: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofcntl.2: wfix
Michael Kerrisk [Sun, 19 Apr 2020 20:05:49 +0000 (22:05 +0200)] 
fcntl.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopersonality.2: wfix
Michael Kerrisk [Sun, 19 Apr 2020 20:03:46 +0000 (22:03 +0200)] 
personality.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocarg.3: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:02:20 +0000 (22:02 +0200)] 
carg.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoexecve.2: tfix
Michael Kerrisk [Sun, 19 Apr 2020 20:01:08 +0000 (22:01 +0200)] 
execve.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:59:43 +0000 (21:59 +0200)] 
open.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agohypot.3: wfix
Michael Kerrisk [Sun, 19 Apr 2020 19:57:49 +0000 (21:57 +0200)] 
hypot.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetmntent.3: ffix
Michael Kerrisk [Sun, 19 Apr 2020 19:55:11 +0000 (21:55 +0200)] 
getmntent.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomknod.2: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:54:00 +0000 (21:54 +0200)] 
mknod.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agowavelan.4: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:47:48 +0000 (21:47 +0200)] 
wavelan.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agox25.7: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:45:01 +0000 (21:45 +0200)] 
x25.7: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agorename.2: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:43:36 +0000 (21:43 +0200)] 
rename.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosysconf.3: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:40:04 +0000 (21:40 +0200)] 
sysconf.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoswapon.2: wfix
Michael Kerrisk [Sun, 19 Apr 2020 19:39:14 +0000 (21:39 +0200)] 
swapon.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agostrftime.3: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:37:41 +0000 (21:37 +0200)] 
strftime.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoinitrd.4: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:32:12 +0000 (21:32 +0200)] 
initrd.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoerf.3: wfix
Michael Kerrisk [Sun, 19 Apr 2020 19:28:57 +0000 (21:28 +0200)] 
erf.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoerf.3: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:26:28 +0000 (21:26 +0200)] 
erf.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocpuid.4: wfix
Michael Kerrisk [Sun, 19 Apr 2020 19:25:31 +0000 (21:25 +0200)] 
cpuid.4: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: tfix
Michael Kerrisk [Sun, 19 Apr 2020 19:20:09 +0000 (21:20 +0200)] 
capabilities.7: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogcvt.3: wfix
Michael Kerrisk [Sun, 19 Apr 2020 19:17:37 +0000 (21:17 +0200)] 
gcvt.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: tfix
Michael Kerrisk [Sun, 19 Apr 2020 14:42:00 +0000 (16:42 +0200)] 
capabilities.7: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosocket.7: Minor tweaks to SO_RCVLOWAT description
Michael Kerrisk [Fri, 17 Apr 2020 13:33:28 +0000 (15:33 +0200)] 
socket.7: Minor tweaks to SO_RCVLOWAT description

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agommap.2: srcfix: note kernel commit that caused MAP_POPULATE | MAP_NONBLOCK to be...
Kirill Smelkov [Fri, 17 Apr 2020 11:24:48 +0000 (13:24 +0200)] 
mmap.2: srcfix: note kernel commit that caused MAP_POPULATE | MAP_NONBLOCK to be noop

Signed-off-by: Kirill Smelkov <kirr@nexedi.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agonetlink.7: Note that NETLINK_SOCK_DIAG is preferred over NETLINK_INET_DIAG
Michael Kerrisk [Fri, 17 Apr 2020 11:09:59 +0000 (13:09 +0200)] 
netlink.7: Note that NETLINK_SOCK_DIAG is preferred over NETLINK_INET_DIAG

Reported-by: Fabien Siron <fabien.siron@epita.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoposix_spawn.3: ffix
Michael Kerrisk [Fri, 17 Apr 2020 10:29:16 +0000 (12:29 +0200)] 
posix_spawn.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoposix_spawn.3: Document the POSIX_SPAWN_SETSID attribute
Olivier Gayot [Tue, 16 Oct 2018 19:37:51 +0000 (21:37 +0200)] 
posix_spawn.3: Document the POSIX_SPAWN_SETSID attribute

Since glibc 2.26, posix_spawn (2) function accepts the
POSIX_SPAWN_SETSID flag. This flag has been accepted by POSIX and
should be added to the next major revision. The current support
can be enabled with _GNU_SOURCE.

Upstream commit in glibc.git:

  daeb1fa2e1 [BZ 21340] add support for POSIX_SPAWN_SETSID

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoposix_spawn.3: Clarify by using name of steps rather than syscalls
Olivier Gayot [Tue, 16 Oct 2018 19:37:50 +0000 (21:37 +0200)] 
posix_spawn.3: Clarify by using name of steps rather than syscalls

The implementation of the fork() step in posix_spawn(2) relies on
either fork(2), vfork(2) or clone(2) depending on the version of
the glibc and the arguments passed to posix_spawn(2).

It is sometimes ambiguous whether, when we are mentioning
"fork(2)", we are referring to the fork() step or the actual
fork(2) syscall.

This patch hopefully avoids the ambiguity by replacing confusing
occurrences by "the xxx() step" where appropriate.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoposix_spawn.3: Document POSIX_SPAWN_USEVFORK
Olivier Gayot [Tue, 16 Oct 2018 19:37:49 +0000 (21:37 +0200)] 
posix_spawn.3: Document POSIX_SPAWN_USEVFORK

Added a few lines about POSIX_SPAWN_USEVFORK so that it appears
clearly that since glibc 2.24, the flag has no effect.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoposix_spawn.3: Document implementation using clone() since glibc 2.24
Olivier Gayot [Tue, 16 Oct 2018 19:37:48 +0000 (21:37 +0200)] 
posix_spawn.3: Document implementation using clone() since glibc 2.24

Since glibc 2.24, the use of posix_spawn (2) makes an
unconditional call to clone(CLONE_VM | CLONE_VFORK ...) rather
than relying on fork (2) or vfork (2).

As a consequence, the statements regarding the use of the flag
POSIX_SPAWN_USEVFORK and how the function decides whether it
should use fork (2) or vfork (2) are obsolete since glibc 2.24.

This patch makes a distinction in the manual page between glibc
2.24 and older versions.

Upstream commit in glibc.git:

  9ff72da471 posix: New Linux posix_spawn{p} implementation

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf.2: Update enum bpf_map_type and enum bpf_prog_type
Peter Wu [Sun, 4 Aug 2019 20:53:53 +0000 (21:53 +0100)] 
bpf.2: Update enum bpf_map_type and enum bpf_prog_type

Taken from Linux v5.3-rc2. Add a reference to the header file to
save the future reader some time figuring out whether more entries
exist.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf.2: srcfix: Add a note on check for unprivileged BPF_PROG_TYPE_SOCKET_FILTER programs
Michael Kerrisk [Fri, 17 Apr 2020 09:55:13 +0000 (11:55 +0200)] 
bpf.2: srcfix: Add a note on check for unprivileged BPF_PROG_TYPE_SOCKET_FILTER programs

In Linux 4.4, the allowed BPF helper functions that could
be called was governed by a check in sk_filter_func_proto().
Nowadays (Linux 5.6), it is I think governed by the check in
sk_filter_func_proto().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf.2: Minor tweaks to Richard Palethorpe's patch
Michael Kerrisk [Fri, 17 Apr 2020 09:49:30 +0000 (11:49 +0200)] 
bpf.2: Minor tweaks to Richard Palethorpe's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf.2: Change note on unprivileged access
Richard Palethorpe [Mon, 29 Jul 2019 12:58:43 +0000 (14:58 +0200)] 
bpf.2: Change note on unprivileged access

This notes that the kernel now allows calls to bpf() without CAP_SYS_ADMIN
under some circumstances.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoclone.2: wfix
Michael Kerrisk [Fri, 17 Apr 2020 07:06:20 +0000 (09:06 +0200)] 
clone.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocgroups.7: Mention cgroup.sane_behavior file
Marcus Gelderie [Fri, 25 Jan 2019 21:21:23 +0000 (22:21 +0100)] 
cgroups.7: Mention cgroup.sane_behavior file

The cgroup.sane_behavior file returns the hard-coded value "0" and
is kept for legacy purposes. Mention this in the man-page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf-helpers.7: Sync against Linux 5.7-rc1
Michael Kerrisk [Thu, 16 Apr 2020 11:45:41 +0000 (13:45 +0200)] 
bpf-helpers.7: Sync against Linux 5.7-rc1

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomove_pages.2: Minor tweaks to Yang Shi's patch
Michael Kerrisk [Thu, 16 Apr 2020 11:34:39 +0000 (13:34 +0200)] 
move_pages.2: Minor tweaks to Yang Shi's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomove_pages.2: Returning positive value is a new error case
Yang Shi [Mon, 3 Feb 2020 19:18:27 +0000 (03:18 +0800)] 
move_pages.2: Returning positive value is a new error case

Since commit a49bd4d71637 ("mm, numa: rework do_pages_move"), the
semantic of move_pages() has changed to return the number of
non-migrated pages if they were result of a non-fatal reasons
(usually a busy page).  This was an unintentional change that
hasn't been noticed except for LTP tests which checked for the
documented behavior.

There are two ways to go around this change.  We can even get back
to the original behavior and return -EAGAIN whenever migrate_pages
is not able to migrate pages due to non-fatal reasons.  Another
option would be to simply continue with the changed semantic and
extend move_pages documentation to clarify that -errno is returned
on an invalid input or when migration simply cannot succeed (e.g.
-ENOMEM, -EBUSY) or the number of pages that couldn't have been
migrated due to ephemeral reasons (e.g. page is pinned or locked
for other reasons).

We decided to keep the second option in kernel because this
behavior is in place for some time without anybody complaining and
possibly new users depending on it.  Also it allows to have a
slightly easier error handling as the caller knows that it is
worth to retry when err > 0.

Update man pages to reflect the new semantic.

Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agonamespaces.7: Document /proc/sys/user/max_time_namespaces
Michael Kerrisk [Thu, 16 Apr 2020 11:25:02 +0000 (13:25 +0200)] 
namespaces.7: Document /proc/sys/user/max_time_namespaces

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agonamespaces.7: tfix
Michael Kerrisk [Thu, 16 Apr 2020 11:23:44 +0000 (13:23 +0200)] 
namespaces.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetauxval.3: Minor tweaks to YunQiang Su's patch
Michael Kerrisk [Thu, 16 Apr 2020 11:13:12 +0000 (13:13 +0200)] 
getauxval.3: Minor tweaks to YunQiang Su's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetauxval.3: MIPS, AT_BASE_PLATFORM passes ISA level
YunQiang Su [Sun, 22 Mar 2020 09:55:27 +0000 (17:55 +0800)] 
getauxval.3: MIPS, AT_BASE_PLATFORM passes ISA level

Since Linux 5.7, on MIPS, we use AT_BASE_PLATFORM to pass ISA level.
The values may be:
  mips2, mips3, mips4, mips5,
  mips32, mips32r2, mips32r6,
  mips64, mips64r2, mips64r6.

This behavior is different with PowerPC.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e585b768da111f2c2d413de6214e83bbdfee8f22
Signed-off-by: YunQiang Su <syq@debian.org>
----
v1 -> v2: fix typo

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agos390_runtime_instr.2: Various reworking of Heiko Carstens's patch
Michael Kerrisk [Thu, 16 Apr 2020 10:30:00 +0000 (12:30 +0200)] 
s390_runtime_instr.2: Various reworking of Heiko Carstens's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agos390_runtime_instr.2: srcfix: rewrap long source lines
Michael Kerrisk [Thu, 16 Apr 2020 10:18:19 +0000 (12:18 +0200)] 
s390_runtime_instr.2: srcfix: rewrap long source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agos390_runtime_instr.2: Document signum argument behavior change
Heiko Carstens [Thu, 16 Apr 2020 10:10:07 +0000 (12:10 +0200)] 
s390_runtime_instr.2: Document signum argument behavior change

Document that the signum argument is ignored in newer kernels, but
that user space should pass a valid real-time signal number for
backwards compatibility.

Cowritten-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomsgctl.2: Correct description of 'msg_ctime' field
Michael Kerrisk [Thu, 16 Apr 2020 09:48:08 +0000 (11:48 +0200)] 
msgctl.2: Correct description of 'msg_ctime' field

Verified by inspecting kernel source.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoshmctl.2: f
Michael Kerrisk [Thu, 16 Apr 2020 09:47:16 +0000 (11:47 +0200)] 
shmctl.2: f

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoshmctl.2: Correct 'shm_ctime' description
Michael Kerrisk [Thu, 16 Apr 2020 09:41:47 +0000 (11:41 +0200)] 
shmctl.2: Correct 'shm_ctime' description

Verified from kernel sources.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosemctl.2: Correct description of sem_ctime field
Michael Kerrisk [Thu, 16 Apr 2020 09:33:17 +0000 (11:33 +0200)] 
semctl.2: Correct description of sem_ctime field

Verified from inspection of kernel source code.

Reported-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosemctl.2: tfix
Michael Kerrisk [Thu, 16 Apr 2020 09:27:19 +0000 (11:27 +0200)] 
semctl.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Remove mention of "Segmentation fault" in EFAULT text
Michael Kerrisk [Thu, 16 Apr 2020 06:23:09 +0000 (08:23 +0200)] 
mremap.2: Remove mention of "Segmentation fault" in EFAULT text

"Segmentation fault" (SIGSEGV) is not exactly the same thing as
EFAULT.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Move a paragraph on MREMAP_DONTUNMAP from NOTES to DESCRIPTION
Michael Kerrisk [Thu, 16 Apr 2020 06:21:30 +0000 (08:21 +0200)] 
mremap.2: Move a paragraph on MREMAP_DONTUNMAP from NOTES to DESCRIPTION

I think things read slightly easier, if all of the info on
MREMAP_DONTUNMAP is in one place.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Move a paragraph from DESCRIPTION to NOTES
Michael Kerrisk [Thu, 16 Apr 2020 06:16:01 +0000 (08:16 +0200)] 
mremap.2: Move a paragraph from DESCRIPTION to NOTES

The paragraph on Linux VM is rather generic, and does not belong
in DESCRIPTION. In fact, I'm not sure it even belongs in this
page.  At the least, let's move it to NOTES.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Move a paragraph from DESCRIPTION to NOTES
Michael Kerrisk [Thu, 16 Apr 2020 06:10:46 +0000 (08:10 +0200)] 
mremap.2: Move a paragraph from DESCRIPTION to NOTES

And while we are at it, remove a sentence that makes an obvious
point (that mremap() uses the Linux page table scheme).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: wfix
Michael Kerrisk [Thu, 16 Apr 2020 06:03:34 +0000 (08:03 +0200)] 
mremap.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Reorder some paragraphs in NOTES
Michael Kerrisk [Thu, 16 Apr 2020 05:50:35 +0000 (07:50 +0200)] 
mremap.2: Reorder some paragraphs in NOTES

Details of glibc 2.4, which is by now fairly old, would be
better at the end of NOTES than at the start.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Some more improvements to Brian Geffon's patch
Michael Kerrisk [Thu, 16 Apr 2020 05:49:04 +0000 (07:49 +0200)] 
mremap.2: Some more improvements to Brian Geffon's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Minor tweaks to Brian Geffon's patch
Michael Kerrisk [Thu, 16 Apr 2020 05:25:32 +0000 (07:25 +0200)] 
mremap.2: Minor tweaks to Brian Geffon's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: Document MREMAP_DONTUNMAP
Brian Geffon [Wed, 15 Apr 2020 16:49:49 +0000 (09:49 -0700)] 
mremap.2: Document MREMAP_DONTUNMAP

Signed-off-by: Brian Geffon <bgeffon@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomremap.2: ffix (Add a paragraph break)
Michael Kerrisk [Thu, 16 Apr 2020 05:29:15 +0000 (07:29 +0200)] 
mremap.2: ffix (Add a paragraph break)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopenat2.2: A few more fixes after feedback from Aleksa Sarai
Michael Kerrisk [Tue, 14 Apr 2020 20:07:39 +0000 (22:07 +0200)] 
openat2.2: A few more fixes after feedback from Aleksa Sarai

Reported-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agommap.2: Don't mark MAP_ANON as deprecated
Michael Kerrisk [Tue, 14 Apr 2020 11:21:26 +0000 (13:21 +0200)] 
mmap.2: Don't mark MAP_ANON as deprecated

From a mailing list conversation:

On 5/24/18 9:03 PM, Heinrich Schuchardt wrote:
> Hello Michael,
>
> in the mmap(2) man page MAP_ANON is described as deprecated.
>
> When I look at the NetBSD manpage
> http://netbsd.gw.com/cgi-bin/man-cgi?mmap+2+NetBSD-current
> I found that MAP_ANONYMOUS is not defined.
>
> https://www.dragonflybsd.org/cgi/web-man?command=mmap&section=2
> indicates MAP_ANONYMOUS is an alias for MAP_ANON and is provided for
> compatibility.
>
> https://man.openbsd.org/mmap.2 also knows MAP_ANONYMOUS as a synonym.
>
> https://www.unix.com/man-page/osx/2/mmap/ does not know MAP_ANONYMOUS.
>
> So shouldn't the man page indicate that MAP_ANON is to be favored to
> write portable code? And correspondingly mark MAP_ANONYMOUS as synonym
> only kept for compatibility.
>
> The Open Group Base Specifications Issue 7, 2018 Edition does not
> reference either of both. So both values are not POSIX but it is not
> correct to describe them as Linux only.

The text saying that MAP_ANON is deprecated is ancient (at least
20 years old). I don't know why that text was added.

Things are not simple though: it looks like there's at least
one historical implementation (HP-US) that defines MAP_ANONYMOUS
but not MAP_ANON.

I've applied the patch below.

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_list.2: Remove hex values from constants
Michael Kerrisk [Tue, 14 Apr 2020 11:06:24 +0000 (13:06 +0200)] 
ioctl_list.2: Remove hex values from constants

As noted by Heinrich Schuchardt:

he list contains hex values of different constants. I just wonder for
which architecture (alpha, i386, mips, or sparc at that time). No
information is supplied.

Current values depend on the architecture, e.g.

On amd64
0x82307201      VFAT_IOCTL_READDIR_BOTH
0x82307202      VFAT_IOCTL_READDIR_SHORT
0x80047210      FAT_IOCTL_GET_ATTRIBUTES
0x40047211      FAT_IOCTL_SET_ATTRIBUTES
0x80047213      FAT_IOCTL_GET_VOLUME_ID

On mips
0x42187201      VFAT_IOCTL_READDIR_BOTH
0x42187202      VFAT_IOCTL_READDIR_SHORT
0x40047210      FAT_IOCTL_GET_ATTRIBUTES
0x80047211      FAT_IOCTL_SET_ATTRIBUTES
0x40047213      FAT_IOCTL_GET_VOLUME_ID

Hence hex values should be removed.

Reported-by:
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agold.so.8: ffix
Michael Kerrisk [Tue, 14 Apr 2020 09:59:14 +0000 (11:59 +0200)] 
ld.so.8: ffix

Reported-by: Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetdents.2: Tweaks to Petr Vorel's patch
Michael Kerrisk [Tue, 14 Apr 2020 09:42:21 +0000 (11:42 +0200)] 
getdents.2: Tweaks to Petr Vorel's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetdents.2: Mention glibc support for getdents64()
Petr Vorel [Mon, 7 Oct 2019 13:53:15 +0000 (15:53 +0200)] 
getdents.2: Mention glibc support for getdents64()

Support was added in glibc 2.30.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetdents.2: Correct linux_dirent definition in example code
Chris Lamb [Tue, 14 Apr 2020 09:36:51 +0000 (11:36 +0200)] 
getdents.2: Correct linux_dirent definition in example code

It is "unsigned long" earlier up in the file

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoutimensat: Immutable flag returns EPERM
Goldwyn Rodrigues [Mon, 5 Jun 2017 14:18:27 +0000 (09:18 -0500)] 
utimensat: Immutable flag returns EPERM

Linux kernel commit 337684a1746f "fs: return EPERM on immutable
inode" changed (nd unified the return value of the utimensat(2)
from -EACCES to -EPERM in case of an immutable flag. Modify the
man page to reflect the same.

The entire discussion of returning the correct return value is at:
http://lists.linux.it/pipermail/ltp/2017-January/003424.html

[mtk: The change was in Linux 4.8]

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agostrftime.3: ISO week number can be 52, add example
Urs Thuermann [Tue, 14 Apr 2020 07:02:07 +0000 (09:02 +0200)] 
strftime.3: ISO week number can be 52, add example

A year cannot only begin with week number 53 of the previous year but
also with week number 52.  Year 2011 is an example for this case, as
can be easily seen with GNU date:

$ date -d "jan 1 2011" "+%c %V %G"
Sat Jan  1 00:00:00 2011 52 2010

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoarch_prctl.2: wfix
Michael Kerrisk [Tue, 14 Apr 2020 06:36:07 +0000 (08:36 +0200)] 
arch_prctl.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: Tweaks to Joseph Sible's patch
Michael Kerrisk [Mon, 13 Apr 2020 10:27:06 +0000 (12:27 +0200)] 
open.2: Tweaks to Joseph Sible's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: Document fs.protected_fifos and fs.protected_regular
Joseph C. Sible [Sun, 29 Sep 2019 03:01:47 +0000 (23:01 -0400)] 
open.2: Document fs.protected_fifos and fs.protected_regular

The sysctls fs.protected_fifos and fs.protected_regular can cause
open(2) to fail with EACCES (see Documentation/sysctl/fs.rst for
details.)

Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: Document /proc/sys/fs/protected_regular
Michael Kerrisk [Mon, 13 Apr 2020 10:23:19 +0000 (12:23 +0200)] 
proc.5: Document /proc/sys/fs/protected_regular

Text heavily based on Documentation/admin-guide/sysctl/fs.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: Document /proc/sys/fs/protected_fifos
Michael Kerrisk [Mon, 13 Apr 2020 10:17:39 +0000 (12:17 +0200)] 
proc.5: Document /proc/sys/fs/protected_fifos

Text heavily based on Documentation/admin-guide/sysctl/fs.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoio_setup.2: Tweak description of /proc/sys/fs/aio-max-nr
Michael Kerrisk [Mon, 13 Apr 2020 10:03:27 +0000 (12:03 +0200)] 
io_setup.2: Tweak description of /proc/sys/fs/aio-max-nr

As far as I can see, /proc/sys/fs/aio-max-nr is a
system-wide limit, not a per-user limit. This seems to be
confirmed by comments in fs/aio.c (Linux 5.6) sources).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: Document /proc/sys/fs/aio-max-nr and /proc/sys/fs/aio-nr
Michael Kerrisk [Mon, 13 Apr 2020 10:01:56 +0000 (12:01 +0200)] 
proc.5: Document /proc/sys/fs/aio-max-nr and /proc/sys/fs/aio-nr

Text taken nearly verbatim from
Documentation/admin-guide/sysctl/fs.rst.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosendfile.2: wfix
Michael Kerrisk [Mon, 13 Apr 2020 09:42:05 +0000 (11:42 +0200)] 
sendfile.2: wfix

Reported-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosignal.7: srcfix: note some implementation-specific details for process-directed...
Michael Kerrisk [Mon, 13 Apr 2020 09:28:10 +0000 (11:28 +0200)] 
signal.7: srcfix: note some implementation-specific details for process-directed signals

Reported-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoptrace.2: srcfix: mention strace's linux/*/set_scno.c files in relation to PTRACE_SET...
Michael Kerrisk [Mon, 13 Apr 2020 08:39:58 +0000 (10:39 +0200)] 
ptrace.2: srcfix: mention strace's linux/*/set_scno.c files in relation to PTRACE_SET_SYSCALL

Reported-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>