]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
3 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

3 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

3 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

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

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

3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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.

3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 years agoprctl.2: Minor tweaks to "prctl.2: Add PR_SPEC_INDIRECT_BRANCH for SPECULATION_CTRL...
Michael Kerrisk [Wed, 13 May 2020 11:19:50 +0000 (13:19 +0200)] 
prctl.2: Minor tweaks to "prctl.2: Add PR_SPEC_INDIRECT_BRANCH for SPECULATION_CTRL prctls" patch

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

Add the PR_SPEC_INDIRECT_BRANCH "misfeature" added in Linux 4.20
for PR_SET_SPECULATION_CTRL and PR_GET_SPECULATION_CTRL.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agocore.5: ffix
Michael Kerrisk [Wed, 27 May 2020 13:26:45 +0000 (15:26 +0200)] 
core.5: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoctime.3: wfix
Michael Kerrisk [Tue, 26 May 2020 11:23:19 +0000 (13:23 +0200)] 
ctime.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agopipe.2, socketpair.2, dlopen.3, posix_memalign.3, signal-safety.7: Correct bogus...
Michael Kerrisk [Tue, 26 May 2020 11:09:31 +0000 (13:09 +0200)] 
pipe.2, socketpair.2, dlopen.3, posix_memalign.3, signal-safety.7: Correct bogus POSIX.1 standards names

POSIX.1-2003 ==> POSIX.1-2001 TC1
POSIX.1-2004 ==> POSIX.1-2001 TC2
POSIX.1-2013 ==> POSIX.1-2008 TC1
POSIX.1-2016 ==> POSIX.1-2008 TC2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoclose.2: wfix
Michael Kerrisk [Tue, 26 May 2020 11:17:59 +0000 (13:17 +0200)] 
close.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agotzset.3: ffix
Michael Kerrisk [Tue, 26 May 2020 11:11:00 +0000 (13:11 +0200)] 
tzset.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agogetnameinfo.3: srcfix
Michael Kerrisk [Tue, 26 May 2020 11:04:53 +0000 (13:04 +0200)] 
getnameinfo.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agodlopen.3: tfix
Michael Kerrisk [Tue, 26 May 2020 10:57:25 +0000 (12:57 +0200)] 
dlopen.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoposix_fadvise.2: tfix
Michael Kerrisk [Tue, 26 May 2020 10:57:13 +0000 (12:57 +0200)] 
posix_fadvise.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoy0.3: errno is now correctly set to ERANGE on underflow
Michael Kerrisk [Tue, 26 May 2020 10:32:14 +0000 (12:32 +0200)] 
y0.3: errno is now correctly set to ERANGE on underflow

The fix was in glibc 2.17. See
https://www.sourceware.org/bugzilla/show_bug.cgi?id=6808

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoy0.3: srcfix: remove an ancient FIXME that no longer matters much
Michael Kerrisk [Tue, 26 May 2020 10:26:31 +0000 (12:26 +0200)] 
y0.3: srcfix: remove an ancient FIXME that no longer matters much

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoy0.3: These functions now correctly diagnose a pole error
Michael Kerrisk [Tue, 26 May 2020 10:23:54 +0000 (12:23 +0200)] 
y0.3: These functions now correctly diagnose a pole error

The fix was in glibc 2.19. See
https://sourceware.org/bugzilla/show_bug.cgi?id=6807

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoy0.3: srcfix: Note on "Range error: result underflow" and FE_UNDERFLOW
Michael Kerrisk [Tue, 26 May 2020 10:10:55 +0000 (12:10 +0200)] 
y0.3: srcfix: Note on "Range error: result underflow" and FE_UNDERFLOW

The fact that an FE_UNDERFLOW exception is not raised for
"Range error: result underflow" is intended behavior.
See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6806.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoj0.3: srcfix: add notes that failing to raise FE_UNDERFLOW is intended behavior
Michael Kerrisk [Tue, 26 May 2020 09:26:00 +0000 (11:26 +0200)] 
j0.3: srcfix: add notes that failing to raise FE_UNDERFLOW is intended behavior

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6805

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoscalbln.3: These functions now correctly set errno for the ERANGE case
Michael Kerrisk [Tue, 26 May 2020 09:19:03 +0000 (11:19 +0200)] 
scalbln.3: These functions now correctly set errno for the ERANGE case

Modify DESCRIPTION appropriately and add BUGS section.
The fix was in glibc 2.20.

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6803

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agohypot.3: srcfix: add some notes about the underflow case
Michael Kerrisk [Tue, 26 May 2020 08:56:28 +0000 (10:56 +0200)] 
hypot.3: srcfix: add some notes about the underflow case

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agosincos.3: The glibc implementation does now give EDOM for a domain error
Michael Kerrisk [Tue, 26 May 2020 08:36:49 +0000 (10:36 +0200)] 
sincos.3: The glibc implementation does now give EDOM for a domain error

The fix was in glibc 2.22
(commit d435569cd626bccb9c27361202a279d0fd7fce88).

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=15467

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agorename.2: SEE ALSO: add rename(1)
Michael Kerrisk [Tue, 26 May 2020 08:24:32 +0000 (10:24 +0200)] 
rename.2: SEE ALSO: add rename(1)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agomount_namespaces.7: SEE ALSO: add mount(8), umount(8)
Michael Kerrisk [Mon, 25 May 2020 19:34:43 +0000 (21:34 +0200)] 
mount_namespaces.7: SEE ALSO: add mount(8), umount(8)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Remove "mp" under VmFlags in /proc/[pid]/smaps
Michael Kerrisk [Mon, 25 May 2020 18:48:21 +0000 (20:48 +0200)] 
proc.5: Remove "mp" under VmFlags in /proc/[pid]/smaps

Reported-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoprintf.3: Prevent signed integer overflow in example
Tobias Stoeckmann [Thu, 21 May 2020 12:15:06 +0000 (14:15 +0200)] 
printf.3: Prevent signed integer overflow in example

The function make_message illustrates how to use vsnprintf to
determine the required amount of memory for a specific format and
its arguments.

If make_message is called with a format which will use exactly
INT_MAX characters (excluding '\0'), then the size++ calculation
will overflow the signed integer "size", which is an undefined
behaviour in C.

Since malloc and vsnprintf rightfully take a size_t argument, I
decided to use a size_t variable for size calculation. Therefore,
this patched code uses variables of the same data types as
expected by function arguments.

Proof of concept (tested on Linux/glibc amd64):

int main() { make_message("%647s%2147483000s", "", ""); }

If the code is compiled with address sanitizer (gcc
-fsanitize=address) you can see the following line, assuming that
a signed integer overflow simply leads to INT_MIN:

==3094==WARNING: AddressSanitizer failed to allocate 0xffffffff80000000 bytes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Add "sf" to VmFlags in /proc/[pid]/smaps
Michael Kerrisk [Mon, 25 May 2020 13:40:29 +0000 (15:40 +0200)] 
proc.5: Add "sf" to VmFlags in /proc/[pid]/smaps

Added in kernel commit b6fb293f2497a9841d94f6b57bd2bb2cd222da43
Text from comment in include/uapi/asm-generic/mman.h.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Add "um" and "uw" to VmFlags in /proc/[pid]/smaps
Michael Kerrisk [Mon, 25 May 2020 13:36:35 +0000 (15:36 +0200)] 
proc.5: Add "um" and "uw" to VmFlags in /proc/[pid]/smaps

Added in kernel commit 16ba6f811dfe44bc14f7946a4b257b85476fc16e.
Text taken from comments in include/linux/mm.h.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Add "mp" to VmFlags in /proc/[pid]/smaps
Michael Kerrisk [Mon, 25 May 2020 13:30:30 +0000 (15:30 +0200)] 
proc.5: Add "mp" to VmFlags in /proc/[pid]/smaps

Added in kernel commit 4aae7e436fa51faf4bf5d11b175aea82cfe8224a.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Note kernel version for /proc/PID/smaps VmFlags "dd" flag
Michael Kerrisk [Mon, 25 May 2020 11:40:32 +0000 (13:40 +0200)] 
proc.5: Note kernel version for /proc/PID/smaps VmFlags "dd" flag

Kernel commit ec8e41aec13005fed0dbee002fb8c99b4e001d50

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Note kernel version that removed /proc/PID/smaps VmFlags "nl" flag
Michael Kerrisk [Mon, 25 May 2020 11:30:28 +0000 (13:30 +0200)] 
proc.5: Note kernel version that removed /proc/PID/smaps VmFlags "nl" flag

Kernel commit 1da4b35b001481df99a6dcab12d5d39a876f7056

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Note kernel version for /proc/PID/smaps VmFlags "wf" flag
Michael Kerrisk [Mon, 25 May 2020 11:29:09 +0000 (13:29 +0200)] 
proc.5: Note kernel version for /proc/PID/smaps VmFlags "wf" flag

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoproc.5: Add "wf" to VmFlags in /proc/[pid]/smaps
Ian Rogers [Thu, 21 May 2020 22:25:51 +0000 (15:25 -0700)] 
proc.5: Add "wf" to VmFlags in /proc/[pid]/smaps

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19
Author: Rik van Riel <riel@redhat.com>
Date:   Wed Sep 6 16:25:15 2017 -0700

    mm,fork: introduce MADV_WIPEONFORK

This was already documented in man2/madvise.2 in the commit:

commit c0c4f6c29c494c466f3a2a6273c5b55b76a72927
Author: Rik van Riel <riel@redhat.com>
Date:   Tue Sep 19 20:32:00 2017 +0200

    madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoprctl.2: tfix
Jakub Wilk [Mon, 25 May 2020 13:21:48 +0000 (15:21 +0200)] 
prctl.2: tfix

Remove duplicated word.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agogettid.2: Document header file and feature test macro requirements for gettid()
Michael Kerrisk [Mon, 25 May 2020 10:54:14 +0000 (12:54 +0200)] 
gettid.2: Document header file and feature test macro requirements for gettid()

The gettid() wrapper was added glibc 2.30, and is declared by
<unistd.h> if _GNU_SOURCE is defined.

Reported-by: Joseph C. Sible <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoscanf.3: Clarify that 'x' specifier allows a 0x/0X prefix in input string
Michael Kerrisk [Mon, 25 May 2020 09:30:30 +0000 (11:30 +0200)] 
scanf.3: Clarify that 'x' specifier allows a 0x/0X prefix in input string

Reported-by: Jürgen Sauermann <mail@juergen-sauermann.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agopow.3: Minor tweak to BUGS
Michael Kerrisk [Mon, 25 May 2020 13:15:14 +0000 (15:15 +0200)] 
pow.3: Minor tweak to BUGS

Remove the text ("rare)" after a note from Vincent Lefèvre:

Subject: [Bug math/13932] dbl-64 pow unexpectedly slow for some inputs
Date: Sat, 23 May 2020 21:31:52 +0000
From: vincent-srcware at vinc17 dot net <sourceware-bugzilla@sourceware.org>
To: mtk.manpages@gmail.com

https://sourceware.org/bugzilla/show_bug.cgi?id=13932

--- Comment #26 from Vincent Lefèvre <vincent-srcware at vinc17 dot net> ---
(In reply to Michael Kerrisk from comment #25)
> Fix documented for man-pages-5.07.
[...]
> -On 64-bits,
> +Before glibc 2.28,
>  .\"
>  .\" https://sourceware.org/bugzilla/show_bug.cgi?id=13932
> +on some architectures (e.g., x86-64)
>  .BR pow ()
>  may be more than 10,000 times slower for some (rare) inputs
>  than for other nearby inputs.
[...]

The problematic values are uncommon, but not so rare, in the sense
that they are close to simple values, i.e. are likely to occur in
practice. An example given above: pow(0.999999999999999889, 1.5)

1 and 1.5 are very simple values, which are more likely to occur
in practice than some fixed random value. Then it suffices to have
a small rounding error on 1...

For instance, this is very different from hard-to-round cases of
exp, which are also very slow IMHO, but unless one writes a
specific program for them, no-one should notice the slowness
because such a case would typically occur only once among billions
(I don't remember the accuracy before the slowest path in this
library).

Reported-by: Vincent Lefèvre <vincent-srcware@vinc17.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agopow.3: srcfix: remove an ancient FIXME that is pretty irrelevant these days
Michael Kerrisk [Sat, 23 May 2020 20:18:48 +0000 (22:18 +0200)] 
pow.3: srcfix: remove an ancient FIXME that is pretty irrelevant these days

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agopow.3: Add a subheading to mark off historical bugs that are now fixed
Michael Kerrisk [Sat, 23 May 2020 20:10:44 +0000 (22:10 +0200)] 
pow.3: Add a subheading to mark off historical bugs that are now fixed

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agopow.3: Several bugs in glibc's pow() implementation were fixed in glibc 2.16
Michael Kerrisk [Sat, 23 May 2020 20:04:46 +0000 (22:04 +0200)] 
pow.3: Several bugs in glibc's pow() implementation were fixed in glibc 2.16

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=3866.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agopow.3: BUGS: pow() performance problem for some (rare) inputs has been fixed
Michael Kerrisk [Sat, 23 May 2020 19:29:34 +0000 (21:29 +0200)] 
pow.3: BUGS: pow() performance problem for some (rare) inputs has been fixed

See https://sourceware.org/bugzilla/show_bug.cgi?id=13932
Fixed in glibc 2.28.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agohypot.3: srcfix: Clear an obsolete FIXME
Michael Kerrisk [Sat, 23 May 2020 11:35:50 +0000 (13:35 +0200)] 
hypot.3: srcfix: Clear an obsolete FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoerf.3, erfc.3: srcfix: Clear an obsolete FIXME
Michael Kerrisk [Sat, 23 May 2020 11:28:15 +0000 (13:28 +0200)] 
erf.3, erfc.3: srcfix: Clear an obsolete FIXME

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoscalb.3: These functions now correctly set errno for the EDOM and ERANGE cases
Michael Kerrisk [Sat, 23 May 2020 10:20:59 +0000 (12:20 +0200)] 
scalb.3: These functions now correctly set errno for the EDOM and ERANGE cases

Modify DESCRIPTION appropriately and add BUGS section.
The fix was in glibc 2.20.

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6803
and https://www.sourceware.org/bugzilla/show_bug.cgi?id=6804

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agonextafter.3: Since glibc 2.23, these functions do set errno
Michael Kerrisk [Sat, 23 May 2020 10:09:45 +0000 (12:09 +0200)] 
nextafter.3: Since glibc 2.23, these functions do set errno

Modify DESCRIPTION appropriately and add BUGS section.

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6799.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agofdim.3: BUGS: these functions did not set errno on some architectures
Michael Kerrisk [Sat, 23 May 2020 10:01:15 +0000 (12:01 +0200)] 
fdim.3: BUGS: these functions did not set errno on some architectures

The bug was fixed in glibc 2.24.
https://www.sourceware.org/bugzilla/show_bug.cgi?id=6796

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoexpm1.3: The bogus invalid floating-point exception bug has been fixed
Michael Kerrisk [Sat, 23 May 2020 09:56:12 +0000 (11:56 +0200)] 
expm1.3: The bogus invalid floating-point exception bug has been fixed

Sometime around 2009 (approximately 2.11) according to
https://www.sourceware.org/bugzilla/show_bug.cgi?id=6814.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoexpm1.3: The expm1() bogus underflow floating-point exception has been fixed
Michael Kerrisk [Sat, 23 May 2020 09:45:36 +0000 (11:45 +0200)] 
expm1.3: The expm1() bogus underflow floating-point exception has been fixed

Fixed in glibc 2.17.

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6778

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agomount_namespaces.7: ffix
Michael Kerrisk [Thu, 21 May 2020 19:56:19 +0000 (21:56 +0200)] 
mount_namespaces.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoldconfig.8: Mention new default for --format in glibc 2.32
Florian Weimer [Wed, 20 May 2020 16:48:02 +0000 (18:48 +0200)] 
ldconfig.8: Mention new default for --format in glibc 2.32

This reflects glibc commit cad64f778aced84efdaa04ae64f8737b86f063ab
("ldconfig: Default to the new format for ld.so.cache").

Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agostdarg.3: SEE ALSO: add vprintf(3), vscanf(3), vsyslog(3)
Michael Kerrisk [Thu, 21 May 2020 08:30:01 +0000 (10:30 +0200)] 
stdarg.3: SEE ALSO: add vprintf(3), vscanf(3), vsyslog(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agosysfs.2: SEE ALSO: add proc(5) and sysfs(5)
Michael Kerrisk [Thu, 21 May 2020 08:25:36 +0000 (10:25 +0200)] 
sysfs.2: SEE ALSO: add proc(5) and sysfs(5)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agonfsservctl.2: SEE ALSO: add nfsd(7)
Michael Kerrisk [Thu, 21 May 2020 08:24:12 +0000 (10:24 +0200)] 
nfsservctl.2: SEE ALSO: add nfsd(7)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agocexp2.3: Still not present in glibc 2.31
Michael Kerrisk [Thu, 21 May 2020 08:19:35 +0000 (10:19 +0200)] 
cexp2.3: Still not present in glibc 2.31

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agosysfs.2: wfix
Michael Kerrisk [Thu, 21 May 2020 08:10:08 +0000 (10:10 +0200)] 
sysfs.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agostandards.7: Remove mention of bogus "POSIX" names
Michael Kerrisk [Wed, 20 May 2020 12:45:23 +0000 (14:45 +0200)] 
standards.7: Remove mention of bogus "POSIX" names

The terms POSIX.1-{2003,2004,2013,2016} were inventions of
my imagination, as confirmed by consulting Geoff Clare of
The Open Group. Remove these names.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agostandards.7: Add some more standards
Michael Kerrisk [Wed, 20 May 2020 10:10:44 +0000 (12:10 +0200)] 
standards.7: Add some more standards

Add: SUSv4 2016 edition, POSIX.1-2017, and SUSv4 2018 edition

Reported-by: Geoff Clare <gwc@opengroup.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agodlsym.3: Extend discussion of NULL symbol values
Alexander Monakov [Sat, 16 May 2020 10:02:50 +0000 (13:02 +0300)] 
dlsym.3: Extend discussion of NULL symbol values

Avoid implying that use of IFUNC is the only way to produce a
symbol with NULL value. Give more scenarios how a symbol may get
NULL value, but explain that in those scenarios dlsym() will fail
with Glibc's ld.so due to an implementation inconsistency.

Signed-off-by: Alexander Monakov <amonakov@ispras.ru>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
3 years agoveth.4: Add a more direct example
Devin J. Pohly [Mon, 18 May 2020 20:58:28 +0000 (15:58 -0500)] 
veth.4: Add a more direct example

iproute2 allows you to specify the netns for either side of a veth
interface at creation time.  Add an example of this to veth(4) so
it doesn't sound like you have to move the interfaces in a
separate step.

Verified with commands:
    # ip netns add alpha
    # ip netns add bravo
    # ip link add foo netns alpha type veth peer bar netns bravo
    # ip -n alpha link show
    # ip -n bravo link show

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>