]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
5 years agoman4/*: srcfix: remove trailing space in "strings"
Bjarni Ingi Gislason [Sat, 20 Jun 2020 15:39:48 +0000 (15:39 +0000)] 
man4/*: srcfix: remove trailing space in "strings"

Trim trailing space.

There is no change in the output from "nroff" and "groff".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofstatvfs.2, getcontext.2, getcwd.2, gethostid.2, killpg.2, mq_notify.2, mq_open.2...
Michael Kerrisk [Sat, 20 Jun 2020 07:24:32 +0000 (09:24 +0200)] 
fstatvfs.2, getcontext.2, getcwd.2, gethostid.2, killpg.2, mq_notify.2, mq_open.2, mq_timedreceive.2, mq_timedsend.2, mq_unlink.2, setcontext.2, sethostid.2, statvfs.2: Remove historical .so links

These links were mostly created when pages were moved between
sections, in almost every case several years ago. The idea
was to allow people time to get used to the new section numbers
while still having commands of the form "man <sec> <page>"
work as before. Let's assume that people have now had time to
get used to the new section numbers, and remove these links.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetdtablesize.2, sigqueue.2, clock_getres.3, clock_gettime.3, clock_settime.3, attr...
Michael Kerrisk [Fri, 19 Jun 2020 18:50:47 +0000 (20:50 +0200)] 
getdtablesize.2, sigqueue.2, clock_getres.3, clock_gettime.3, clock_settime.3, attr.5, numa_maps.5: Remove old links

These are all links that were created several years ago, mainly
when pages were migrated to different sections, in order to
allow the 'man' commands using the old section numbers to work.
However, the plan was always to eventually remove them, after
allowing people who cared to get used to the new section numbers.
Now, after 5+ years in each case, it's time to remove
these links.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosymlink.7: Minor fixes to Aleksa Sarai's patch
Michael Kerrisk [Fri, 19 Jun 2020 12:54:27 +0000 (14:54 +0200)] 
symlink.7: Minor fixes to Aleksa Sarai's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosymlink.7: Document magic links more completely
Aleksa Sarai [Wed, 10 Jun 2020 05:53:19 +0000 (15:53 +1000)] 
symlink.7: Document magic links more completely

Traditionally, magic links have not been a well-understood topic
in Linux. This helps clarify some of the terminology used in
openat2.2.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agokeyctl.2: Declare auth_key
Oleksandr Kravchuk [Fri, 12 Jun 2020 15:35:33 +0000 (17:35 +0200)] 
keyctl.2: Declare auth_key

The variable is used in the code example, but not declared,
leading to a compilation error.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofread.3: srcfix: remove crufty line
Michael Kerrisk [Fri, 19 Jun 2020 12:38:11 +0000 (14:38 +0200)] 
fread.3: srcfix: remove crufty line

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofread.3: Add example
Arkadiusz Drabczyk [Thu, 18 Jun 2020 14:22:32 +0000 (16:22 +0200)] 
fread.3: Add example

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofread.3: Explain that file position is moved after calling fread()/fwrite()
Arkadiusz Drabczyk [Tue, 16 Jun 2020 22:15:20 +0000 (00:15 +0200)] 
fread.3: Explain that file position is moved after calling fread()/fwrite()

Corresponding manpage on FreeBSD already contains that
information.

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoatoi.3: Minor tweaks to Arkadiusz Drabczyk's patch
Michael Kerrisk [Fri, 19 Jun 2020 12:23:38 +0000 (14:23 +0200)] 
atoi.3: Minor tweaks to Arkadiusz Drabczyk's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoatoi.3: Relocate BUGS section
Michael Kerrisk [Fri, 19 Jun 2020 12:22:18 +0000 (14:22 +0200)] 
atoi.3: Relocate BUGS section

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoatoi.3: Add NOTES section explaining 0 return value on error
Michael Kerrisk [Fri, 19 Jun 2020 12:19:27 +0000 (14:19 +0200)] 
atoi.3: Add NOTES section explaining 0 return value on error

And note that this is not specified by POSIX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoatoi.3: Explain disadvantages of atoi()
Arkadiusz Drabczyk [Thu, 18 Jun 2020 20:42:41 +0000 (22:42 +0200)] 
atoi.3: Explain disadvantages of atoi()

I believe new users should be discouraged from using atoi() and
that its disadvantages should be explained.

I added the information that 0 is returned on error - although C
standard and POSIX say that "If the value of the result cannot be
represented, the behavior is undefined." there are some
interpretations that 0 has to be returned
https://stackoverflow.com/questions/38393162/what-can-i-assume-about-the-behaviour-of-atoi-on-error
and this is also what happens in practice with glibc, musl and
uClibc.

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: Inform that comm in /proc/pid/{stat,status} might also be truncated
Arkadiusz Drabczyk [Wed, 17 Jun 2020 20:51:25 +0000 (22:51 +0200)] 
proc.5: Inform that comm in /proc/pid/{stat,status} might also be truncated

pgrep for example searches for a process name in /proc/pid/status
and therefore cannot find processes whose names are longer than 15
characters unless -f is specified.

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: wfix
Jakub Wilk [Thu, 18 Jun 2020 21:26:49 +0000 (23:26 +0200)] 
man-pages.7: wfix

Reorder full wordings to match the order of abbreviations.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosetns.2: ERRORS: add ESRCH for PID FD that refers to a terminated process
Michael Kerrisk [Mon, 15 Jun 2020 20:41:49 +0000 (22:41 +0200)] 
setns.2: ERRORS: add ESRCH for PID FD that refers to a terminated process

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosetns.2: Minor wording fixes
Michael Kerrisk [Mon, 15 Jun 2020 20:16:32 +0000 (22:16 +0200)] 
setns.2: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosetns.2: wfix
Michael Kerrisk [Mon, 15 Jun 2020 20:12:42 +0000 (22:12 +0200)] 
setns.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosetns.2: Minor tweak
Michael Kerrisk [Mon, 15 Jun 2020 14:32:52 +0000 (16:32 +0200)] 
setns.2: Minor tweak

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosetns.2: Document the use of PID file descriptors with setns()
Michael Kerrisk [Mon, 15 Jun 2020 14:23:49 +0000 (16:23 +0200)] 
setns.2: Document the use of PID file descriptors with setns()

Starting with Linux 5.8, setns() can take a PID file descriptor as
an argument, and move the caller into or more of the namespaces of
the thread referred to by that descriptor.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopidfd_open.2: Add the setns(2) use case for PID file descriptors
Michael Kerrisk [Mon, 15 Jun 2020 13:04:16 +0000 (15:04 +0200)] 
pidfd_open.2: Add the setns(2) use case for PID file descriptors

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopidfd_open.2: ffix
Michael Kerrisk [Mon, 15 Jun 2020 13:02:05 +0000 (15:02 +0200)] 
pidfd_open.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosetns.2: It is possible to setns() to the caller's current PID namespace
Michael Kerrisk [Mon, 15 Jun 2020 10:01:31 +0000 (12:01 +0200)] 
setns.2: It is possible to setns() to the caller's current PID namespace

The page currently incorrectly says that 'fd' must refer to
a descendant PID namespace. However, 'fd' can also refer to
the caller's current PID namespace. Verified by experiment,
and also comments in kernel/pid_namespace.c (Linux 5.8-rc1).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoVarious pages: srcfix: trim a trailing space
Bjarni Ingi Gislason [Fri, 12 Jun 2020 19:57:42 +0000 (19:57 +0000)] 
Various pages: srcfix: trim a trailing space

Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z

  [ "test-groff" is a developmental version of "groff" ]

  There is no change in the output of "nroff" and "groff".

####

troff: <fts.3>:50: warning: trailing space
####

troff: <getgrnam.3>:175: warning: trailing space
####

troff: <getpwnam.3>:181: warning: trailing space
####

troff: <rcmd.3>:52: warning: trailing space
troff: <rcmd.3>:57: warning: trailing space
troff: <rcmd.3>:60: warning: trailing space
troff: <rcmd.3>:63: warning: trailing space
troff: <rcmd.3>:69: warning: trailing space
troff: <rcmd.3>:73: warning: trailing space
####

troff: <rexec.3>:48: warning: trailing space
troff: <rexec.3>:51: warning: trailing space
####

troff: <sem_open.3>:36: warning: trailing space

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopenat2.2: ffix
Michael Kerrisk [Fri, 12 Jun 2020 19:54:55 +0000 (21:54 +0200)] 
openat2.2: ffix

Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopidfd_getfd.2: srcfix
Michael Kerrisk [Fri, 12 Jun 2020 19:47:21 +0000 (21:47 +0200)] 
pidfd_getfd.2: srcfix

Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomadvise.2: tfix
Michael Kerrisk [Fri, 12 Jun 2020 19:46:21 +0000 (21:46 +0200)] 
madvise.2: tfix

Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agotimer_create.2, timerfd_create.2: tfix
Michael Kerrisk [Fri, 12 Jun 2020 19:44:55 +0000 (21:44 +0200)] 
timer_create.2, timerfd_create.2: tfix

Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agotimerfd_create.2: tfix
Michael Kerrisk [Fri, 12 Jun 2020 19:44:15 +0000 (21:44 +0200)] 
timerfd_create.2: tfix

Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman2/*: srcfix: trim trailing space
Bjarni Ingi Gislason [Fri, 12 Jun 2020 03:23:23 +0000 (03:23 +0000)] 
man2/*: srcfix: trim trailing space

  Remove superfluous space at the end of a processed input line.

  There is no change in the output from "nroff" and "groff".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agotime.1: ffix: correct a three-fonts line in SYNOPSIS
Bjarni Ingi Gislason [Fri, 12 Jun 2020 02:22:31 +0000 (02:22 +0000)] 
time.1: ffix: correct a three-fonts line in SYNOPSIS

  The current version shows the square brackets, '[' and ']', in
boldface.

  Use the '\c' escape sequence (function) to join the output of two
macros.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: Document CAP_BPF
Michael Kerrisk [Fri, 12 Jun 2020 10:15:02 +0000 (12:15 +0200)] 
capabilities.7: Document CAP_BPF

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: srcfix
Michael Kerrisk [Fri, 12 Jun 2020 09:51:50 +0000 (11:51 +0200)] 
capabilities.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: Add CAP_PERFMON
Michael Kerrisk [Fri, 12 Jun 2020 09:50:57 +0000 (11:50 +0200)] 
capabilities.7: Add CAP_PERFMON

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosyscalls.2: Add faccessat2(), added in Linux 5.8
Michael Kerrisk [Fri, 12 Jun 2020 09:15:10 +0000 (11:15 +0200)] 
syscalls.2: Add faccessat2(), added in Linux 5.8

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoaddress_families.7: srcfix
Michael Kerrisk [Thu, 11 Jun 2020 05:53:17 +0000 (07:53 +0200)] 
address_families.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agochroot.2, utimensat.2, vfork.2, getcwd.3, getdtablesize.3, ualarm.3, usleep.3, rtnetl...
Michael Kerrisk [Thu, 11 Jun 2020 05:52:18 +0000 (07:52 +0200)] 
chroot.2, utimensat.2, vfork.2, getcwd.3, getdtablesize.3, ualarm.3, usleep.3, rtnetlink.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetpagesize.2: ffix
Michael Kerrisk [Thu, 11 Jun 2020 05:47:23 +0000 (07:47 +0200)] 
getpagesize.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agodup.2, fallocate.2, futex.2, ioctl_fat.2, ioctl_ficlonerange.2, ioctl_fideduperange...
Michael Kerrisk [Thu, 11 Jun 2020 05:45:09 +0000 (07:45 +0200)] 
dup.2, fallocate.2, futex.2, ioctl_fat.2, ioctl_ficlonerange.2, ioctl_fideduperange.2, madvise.2, membarrier.2, mprotect.2, open.2, openat2.2, perf_event_open.2, perfmonctl.2, pipe.2, process_vm_readv.2, s390_pci_mmio_write.2, s390_runtime_instr.2, s390_sthyi.2, set_thread_area.2, sigprocmask.2, subpage_prot.2, unshare.2, cmsg.3, newlocale.3, pthread_setname_np.3, strfmon.3, strfromd.3, tsearch.3, tcp.7, ld.so.8: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopthread_setconcurrency.3: ffix
Michael Kerrisk [Thu, 11 Jun 2020 05:42:26 +0000 (07:42 +0200)] 
pthread_setconcurrency.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoif_nameindex.3: ffix
Michael Kerrisk [Thu, 11 Jun 2020 05:41:35 +0000 (07:41 +0200)] 
if_nameindex.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: srcfix
Michael Kerrisk [Thu, 11 Jun 2020 05:23:37 +0000 (07:23 +0200)] 
proc.5: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocgroups.7: ffix
Michael Kerrisk [Wed, 10 Jun 2020 10:06:41 +0000 (12:06 +0200)] 
cgroups.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocgroup_namespaces.7: ffix
Michael Kerrisk [Wed, 10 Jun 2020 10:04:48 +0000 (12:04 +0200)] 
cgroup_namespaces.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: ffix
Michael Kerrisk [Wed, 10 Jun 2020 10:03:06 +0000 (12:03 +0200)] 
proc.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprintf.3: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:57:30 +0000 (11:57 +0200)] 
printf.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosignal.2: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:55:22 +0000 (11:55 +0200)] 
signal.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:53:47 +0000 (11:53 +0200)] 
open.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf.2: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:52:31 +0000 (11:52 +0200)] 
bpf.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetdents.2: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:49:18 +0000 (11:49 +0200)] 
getdents.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agodup.2: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:48:44 +0000 (11:48 +0200)] 
dup.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: ffix
Michael Kerrisk [Wed, 10 Jun 2020 09:45:21 +0000 (11:45 +0200)] 
proc.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: SEE ALSO: add getpcaps(8)
Michael Kerrisk [Wed, 10 Jun 2020 06:00:46 +0000 (08:00 +0200)] 
capabilities.7: SEE ALSO: add getpcaps(8)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: wfix
Michael Kerrisk [Tue, 9 Jun 2020 18:09:48 +0000 (20:09 +0200)] 
prctl.2: wfix

Reported-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoChanges.old: Fixes to 5.07 change log
Michael Kerrisk [Tue, 9 Jun 2020 17:21:31 +0000 (19:21 +0200)] 
Changes.old: Fixes to 5.07 change log

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoStart of man-pages-5.08: updating Changes and Changes.old
Michael Kerrisk [Tue, 9 Jun 2020 12:47:23 +0000 (14:47 +0200)] 
Start of man-pages-5.08: updating Changes and Changes.old

5 years agoStart of man-pages-5.08: updating .Announce and .lsm files
Michael Kerrisk [Tue, 9 Jun 2020 12:47:23 +0000 (14:47 +0200)] 
Start of man-pages-5.08: updating .Announce and .lsm files

5 years agoStart of man-pages-5.08: renaming .Announce and .lsm files
Michael Kerrisk [Tue, 9 Jun 2020 12:47:23 +0000 (14:47 +0200)] 
Start of man-pages-5.08: renaming .Announce and .lsm files

5 years agoReady for 5.07
Michael Kerrisk [Tue, 9 Jun 2020 12:45:54 +0000 (14:45 +0200)] 
Ready for 5.07

5 years agoChanges: whitespace cleanups
Michael Kerrisk [Tue, 9 Jun 2020 12:45:44 +0000 (14:45 +0200)] 
Changes: whitespace cleanups

5 years agoiconv.1, locale.1, memusage.1, memusagestat.1, pldd.1, sprof.1, _syscall.2, add_key...
Michael Kerrisk [Tue, 9 Jun 2020 12:43:54 +0000 (14:43 +0200)] 
iconv.1, locale.1, memusage.1, memusagestat.1, pldd.1, sprof.1, _syscall.2, add_key.2, adjtimex.2, bind.2, bpf.2, chown.2, clone.2, close.2, copy_file_range.2, eventfd.2, fanotify_init.2, fanotify_mark.2, fork.2, fsync.2, futex.2, getdents.2, getrlimit.2, getxattr.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, ioctl_fat.2, ioctl_getfsmap.2, ioctl_ns.2, ioctl_tty.2, ioctl_userfaultfd.2, kcmp.2, keyctl.2, listen.2, listxattr.2, mbind.2, membarrier.2, memfd_create.2, mkdir.2, move_pages.2, mremap.2, msync.2, nfsservctl.2, open.2, perf_event_open.2, pidfd_send_signal.2, pipe.2, pivot_root.2, pkey_alloc.2, process_vm_readv.2, ptrace.2, readlink.2, readv.2, recv.2, recvmmsg.2, rename.2, request_key.2, s390_runtime_instr.2, sched_setaffinity.2, seccomp.2, send.2, sendmmsg.2, sigaltstack.2, signalfd.2, socket.2, socketpair.2, splice.2, spu_create.2, spu_run.2, statfs.2, syscall.2, sysctl.2, sysfs.2, tee.2, timer_getoverrun.2, timer_settime.2, umount.2, userfaultfd.2, utimensat.2, wait4.2, INFINITY.3, __ppc_get_timebase.3, __setfpucw.3, abort.3, aio_cancel.3, aio_error.3, aio_read.3, aio_return.3, atexit.3, backtrace.3, basename.3, bsearch.3, bswap.3, cacos.3, cacosh.3, catan.3, catanh.3, cexp2.3, clock_getcpuclockid.3, clog2.3, cmsg.3, confstr.3, div.3, dl_iterate_phdr.3, dlerror.3, dlinfo.3, dlopen.3, dlsym.3, duplocale.3, encrypt.3, end.3, endian.3, envz_add.3, err.3, expm1.3, fdim.3, flockfile.3, fmtmsg.3, frexp.3, ftw.3, get_nprocs_conf.3, get_phys_pages.3, getaddrinfo_a.3, getauxval.3, getdate.3, getdtablesize.3, getgrent_r.3, getgrouplist.3, gethostbyname.3, getline.3, getnameinfo.3, getopt.3, getprotoent_r.3, getpwent_r.3, getpwnam.3, getservent_r.3, getsubopt.3, getutent.3, glob.3, gnu_get_libc_version.3, hsearch.3, if_nameindex.3, inet.3, inet_net_pton.3, inet_ntop.3, inet_pton.3, insque.3, killpg.3, makecontext.3, mallinfo.3, malloc.3, malloc_hook.3, malloc_info.3, mallopt.3, matherr.3, mbsnrtowcs.3, mbstowcs.3, mcheck.3, mempcpy.3, mq_getattr.3, mq_notify.3, mtrace.3, newlocale.3, nextafter.3, ntp_gettime.3, offsetof.3, open_memstream.3, pow.3, printf.3, pthread_attr_init.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setstack.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_create.3, pthread_detach.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_join.3, pthread_mutex_consistent.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_spin_init.3, pthread_testcancel.3, pthread_tryjoin_np.3, ptsname.3, qsort.3, rand.3, random.3, remainder.3, rpmatch.3, rtime.3, rtnetlink.3, scalb.3, scalbln.3, scandir.3, sem_getvalue.3, sem_wait.3, setaliasent.3, setlogmask.3, sigwait.3, sincos.3, sockatmark.3, stdarg.3, stpcpy.3, strcat.3, strfmon.3, strptime.3, strtod.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, tsearch.3, uselocale.3, wcstok.3, wcstombs.3, wordexp.3, y0.3, loop.4, vcs.4, veth.4, charmap.5, core.5, filesystems.5, gai.conf.5, hosts.5, hosts.equiv.5, locale.5, nss.5, repertoiremap.5, securetty.5, shells.5, ttytype.5, ascii.7, complex.7, cpuset.7, credentials.7, fanotify.7, hier.7, inotify.7, ip.7, mount_namespaces.7, mq_overview.7, netlink.7, network_namespaces.7, pid_namespaces.7, pkeys.7, rtld-audit.7, rtnetlink.7, sem_overview.7, signal-safety.7, sock_diag.7, spufs.7, standards.7, symlink.7, tcp.7, time_namespaces.7, unix.7, user_namespaces.7, xattr.7, ldconfig.8: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopenat2.2, proc.5, bpf-helpers.7: srcfix: strip trailing whitespace
Michael Kerrisk [Tue, 9 Jun 2020 12:48:01 +0000 (14:48 +0200)] 
openat2.2, proc.5, bpf-helpers.7: srcfix: strip trailing whitespace

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoChanges: Ready for 5.07
Michael Kerrisk [Tue, 9 Jun 2020 12:42:10 +0000 (14:42 +0200)] 
Changes: Ready for 5.07

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: Fixes to Dave Martin's patch
Michael Kerrisk [Tue, 9 Jun 2020 11:33:23 +0000 (13:33 +0200)] 
prctl.2: Fixes to Dave Martin's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: Add PR_PAC_RESET_KEYS (arm64)
Dave Martin [Tue, 9 Jun 2020 11:30:57 +0000 (13:30 +0200)] 
prctl.2: Add PR_PAC_RESET_KEYS (arm64)

Add documentation for the PR_PAC_RESET_KEYS ioctl added in Linux
5.0 for arm64.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Amit Daniel Kachhap <amit.kachhap@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: Add reference to proc(5) for /proc/self/task/[tid]/comm
Michael Kerrisk [Tue, 9 Jun 2020 10:38:45 +0000 (12:38 +0200)] 
prctl.2: Add reference to proc(5) for /proc/self/task/[tid]/comm

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: Add a detail to /proc/[pid]/comm
Michael Kerrisk [Tue, 9 Jun 2020 10:36:38 +0000 (12:36 +0200)] 
proc.5: Add a detail to /proc/[pid]/comm

Note the connection to the "%e" specifier in
/proc/sys/kernel/core_pattern.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: TASK_COMM_LEN limit includes the terminating '\0'
Michael Kerrisk [Tue, 9 Jun 2020 10:29:48 +0000 (12:29 +0200)] 
proc.5: TASK_COMM_LEN limit includes the terminating '\0'

Clarify this detail in the discussion of /proc/[pid]/comm.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: minor tweaks
Michael Kerrisk [Tue, 9 Jun 2020 10:32:46 +0000 (12:32 +0200)] 
core.5: minor tweaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: Explain that core_pattern %e is process/thread 'comm' value
Michael Kerrisk [Tue, 9 Jun 2020 10:08:39 +0000 (12:08 +0200)] 
core.5: Explain that core_pattern %e is process/thread 'comm' value

The 'comm' value is typically the same as the (possibly
truncated) executable name, but may be something different.

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoconnect.2: Minor tweaks to Stefan Puiu's patch
Michael Kerrisk [Tue, 9 Jun 2020 08:17:34 +0000 (10:17 +0200)] 
connect.2: Minor tweaks to Stefan Puiu's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoconnect.2: Can return EACCES because of SELinux
Stefan Puiu [Fri, 29 May 2020 07:11:48 +0000 (10:11 +0300)] 
connect.2: Can return EACCES because of SELinux

Recently I had to troubleshoot a problem where a connect() call
was returning EACCES:

17648 socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 37
17648 connect(37, {sa_family=AF_INET, sin_port=htons(8081),
sin_addr=inet_addr("10.12.1.201")}, 16) = -1 EACCES (Permission
denied)

I've traced this to SELinux policy denying the connection. This is
on a Fedora 23 VM:

$ cat /etc/redhat-release
Fedora release 23 (Twenty Three)
$ uname -a
Linux mako-fedora-01 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9 14:51:40
UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

The manpage says this can happen when connecting to a broadcast
address, or when a local firewall rule blocks the connection.
However, the address above is unicast, and using 'wget' from
another account to access the URL works fine.

The context is that we're building an OS image, and this involves
downloading RPMs through a proxy. The proxy (polipo) is labelled
by SELinux, and I guess there is some sort of policy that says
"proxy can only connect to HTTP ports". When trying to connect to
a server listening on a port that is not labeled as an HTTP server
port, I guess SELinux steps in. With 'setenforce 0', the build
works fine. In the kernel sources I see connect() calls
security_socket_connect() (see
https://elixir.bootlin.com/linux/latest/source/net/socket.c#L1855),
which calls whatever security hooks are registered. I see the
SELinux hook getting registered at
https://elixir.bootlin.com/linux/latest/source/security/selinux/hooks.c#L7047,
and setting a perf probe on the call proves that the
selinux_socket_connect function gets called (while
tcp_v4_connect() is not).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agouser_namespaces.7: Clarify "system time"
Michael Kerrisk [Tue, 9 Jun 2020 08:03:04 +0000 (10:03 +0200)] 
user_namespaces.7: Clarify "system time"

From an email conversation with Léo Stefanesco:

> In the man7.org version of the man page for user_namespaces(7), it reads:
>
>    there are many privileged operations that affect
>    resources that are not associated with any namespace type,
>    for example, changing the system time
>    (governed by CAP_SYS_TIME)
>
> which is not consistent with time_namespaces(7).

In fact, strictly peaking the text still is correct, even after
the arrival of time namespaces.

Time namespaces virtualize only the boot-time and monotonic
clocks, not the "real time" (i.e., calendar time), which is the
time referred in the passage you quote.

That said, the text is perhaps now a little misleading, and
a little clarification would help. I changed the text to:

    there are many privileged operations that affect
    resources are not associated with any namespace type,
    for example, changing the system **(i.e., calendar)** time
    (governed by CAP_SYS_TIME)

Reported-by: Léo Stefanesco <leo.lveb@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf-helpers.7: Resync against kernel 5.7
Michael Kerrisk [Tue, 9 Jun 2020 07:47:48 +0000 (09:47 +0200)] 
bpf-helpers.7: Resync against kernel 5.7

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl.2: Remove mentions of ioctl_list(2)
Michael Kerrisk [Thu, 16 Apr 2020 07:00:37 +0000 (09:00 +0200)] 
ioctl.2: Remove mentions of ioctl_list(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_list.2: Remove this page
Michael Kerrisk [Thu, 16 Apr 2020 06:28:05 +0000 (08:28 +0200)] 
ioctl_list.2: Remove this page

This page was first added more than 20 years ago. Since
that time it has seen hardly any update, and is by now
very much out of date, as reported by Heinrich Schuchardt
and confirmed by Eugene Syromyatnikov.

As Heinrich says:

    Man-pages like netdevices.7 or ioctl_fat.2 are what is
    needed to help a user who does not want to read through the
    kernel code.

    If ioctl_list.2 has not been reasonably maintained since
    Linux 1.3.27 and hence is not a reliable source of
    information, shouldn't it be dropped?

My answer is, yes (but let's move a little info into ioctl(2)).

Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl.2: Move subsection on "ioctl structure" from ioctl_list(2) to ioctl(2)
Michael Kerrisk [Thu, 16 Apr 2020 06:57:18 +0000 (08:57 +0200)] 
ioctl.2: Move subsection on "ioctl structure" from ioctl_list(2) to ioctl(2)

In preparation for removing ioctl_list(2), let's preserve
some useful text that was added to ioctl_list(2)
by Andries Brouwer.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosyscall.2: Minor wording tweaks
Michael Kerrisk [Mon, 8 Jun 2020 20:59:47 +0000 (22:59 +0200)] 
syscall.2: Minor wording tweaks

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agorandom.3: wfix: no need to mention INT32_MAX
Michael Kerrisk [Mon, 8 Jun 2020 20:25:36 +0000 (22:25 +0200)] 
random.3: wfix: no need to mention INT32_MAX

Reported-by: walter harms <wharms@bfs.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agorandom.3: Change "RAND_MAX" tp "2^31-1"
John Marshall [Mon, 8 Jun 2020 11:04:16 +0000 (12:04 +0100)] 
random.3: Change "RAND_MAX" tp "2^31-1"

RAND_MAX is for rand(3).  POSIX fixes random()'s range at 2^31-1;
RAND_MAX may be smaller on some platforms (even though with glibc
or musl on Linux they are the same).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify.7, fanotify_mark.2: Clarify FAN_ONDIR in output mask
Amir Goldstein [Fri, 29 May 2020 09:25:30 +0000 (12:25 +0300)] 
fanotify.7, fanotify_mark.2: Clarify FAN_ONDIR in output mask

FAN_ONDIR was an input only flag before introducing
FAN_REPORT_FID.  Since the introduction of FAN_REPORT_FID, it can
also be in output mask.

Move the text describing its role in the output mask to fanotify.7
where the other output mask bits are documented.

[mtk: commit message tidy-up]

Reviewed-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify_init.2: Move out of place entry FAN_REPORT_FID
Amir Goldstein [Fri, 29 May 2020 09:25:29 +0000 (12:25 +0300)] 
fanotify_init.2: Move out of place entry FAN_REPORT_FID

It was inserted in the middle of the FAN_CLASS_ multi flags bit
and broke the multi flag documentation.

Reviewed-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify.7, fanotify_mark.2: Revert "fanotify.7, fanotify_mark.2: Document FAN_DIR_MO...
Amir Goldstein [Fri, 29 May 2020 09:25:28 +0000 (12:25 +0300)] 
fanotify.7, fanotify_mark.2: Revert "fanotify.7, fanotify_mark.2: Document FAN_DIR_MODIFY"

This reverts commit a93e5c9593a95d09a1c9deb94dfdecbb970b8162.

FAN_DIR_MODIFY was disabled for v5.7 release by kernel commit
f17936993af0 ("fanotify: turn off support for FAN_DIR_MODIFY").

Reviewed-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: Note that not dumping core of an unreadable binary is a security measure
Michael Kerrisk [Mon, 8 Jun 2020 16:16:53 +0000 (18:16 +0200)] 
core.5: Note that not dumping core of an unreadable binary is a security measure

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: wfix
Michael Kerrisk [Mon, 8 Jun 2020 16:06:10 +0000 (18:06 +0200)] 
core.5: wfix

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: ffix
Jakub Wilk [Sat, 30 May 2020 15:58:41 +0000 (17:58 +0200)] 
proc.5: ffix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoerr.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
Michael Kerrisk [Wed, 3 Jun 2020 20:49:36 +0000 (22:49 +0200)] 
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status

By way of good example, use the an EXIT_* symbolic constant,
rather than a hard-coded number.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoclock_getres.2, fsync.2, mlock.2, mmap.2, msync.2, INFINITY.3, cexp2.3, clog2.3,...
Michael Kerrisk [Thu, 21 May 2020 08:34:33 +0000 (10:34 +0200)] 
clock_getres.2, fsync.2, mlock.2, mmap.2, msync.2, INFINITY.3, cexp2.3, clog2.3, flockfile.3: Remove AVAILABILITY section heading

In the few pages where this heading (which is "nonstandard" within
man-pages) is used, it always immediately follows CONFORMING TO
and generally contains information related to standards. Remove
the section heading, thus incorporating AVAILABILITY into
CONFORMING TO.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: Rename EXAMPLE to EXAMPLES
Michael Kerrisk [Thu, 21 May 2020 08:04:19 +0000 (10:04 +0200)] 
man-pages.7: Rename EXAMPLE to EXAMPLES

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoVarious pages: retitle EXAMPLE section heading to EXAMPLES
Michael Kerrisk [Thu, 21 May 2020 08:00:37 +0000 (10:00 +0200)] 
Various pages: retitle EXAMPLE section heading to EXAMPLES

EXAMPLES appears to be the wider majority usage across various
projects' manual pages, and is also what is used in the POSIX
manual pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: Add REPORTING BUGS section
Michael Kerrisk [Thu, 21 May 2020 06:15:46 +0000 (08:15 +0200)] 
man-pages.7: Add REPORTING BUGS section

man-pages doesn't have a REPORTING BUGS section in manual pages,
but many other projects do. Make some recommendations about
placement of that section.

5 years agoman-pages.7: ffix
Michael Kerrisk [Thu, 21 May 2020 06:12:29 +0000 (08:12 +0200)] 
man-pages.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: Describe COPYRIGHT section
Michael Kerrisk [Thu, 21 May 2020 06:08:52 +0000 (08:08 +0200)] 
man-pages.7: Describe COPYRIGHT section

man-pages doesn't use COPYRIGHT sections in manual pages, but
various projects do. Make some recommendations about placement
of the section.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: Mention AUTHORS in summary section list
Michael Kerrisk [Thu, 21 May 2020 06:00:48 +0000 (08:00 +0200)] 
man-pages.7: Mention AUTHORS in summary section list

Although man-pages doesn't use AUTHORS sections, many projects do
use an AUTHORS section in their manual pages, so mention it in
man-pages to suggest some guidance on the position at which
to place that section.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: tfix
Michael Kerrisk [Thu, 28 May 2020 09:35:46 +0000 (11:35 +0200)] 
core.5: tfix

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: Mention 'sysctl -w' as a way of changing core_pattern setting
Michael Kerrisk [Thu, 28 May 2020 09:14:36 +0000 (11:14 +0200)] 
core.5: Mention 'sysctl -w' as a way of changing core_pattern setting

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocore.5: ffix
Michael Kerrisk [Thu, 28 May 2020 07:52:09 +0000 (09:52 +0200)] 
core.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: ffix: use literal hyphens when referencing kernel docs
Dave Martin [Wed, 27 May 2020 21:17:33 +0000 (22:17 +0100)] 
prctl.2: ffix: use literal hyphens when referencing kernel docs

There is one case of a cross-reference to a kernel documentation
filename that uses unescaped hyphens.

To avoid misrendering, escape these as \- similarly to other
instances.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: wfix
Michael Kerrisk [Wed, 13 May 2020 11:22:10 +0000 (13:22 +0200)] 
prctl.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprctl.2: Add PR_SPEC_DISABLE_NOEXEC for SPECULATION_CTRL prctls
Dave Martin [Tue, 12 May 2020 16:36:56 +0000 (17:36 +0100)] 
prctl.2: Add PR_SPEC_DISABLE_NOEXEC for SPECULATION_CTRL prctls

Add the PR_SPEC_DISABLE_NOEXEC mode added in Linux 5.1
for the PR_SPEC_STORE_BYPASS "misfeature" of
PR_SET_SPECULATION_CTRL and PR_GET_SPECULATION_CTRL.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>