]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agoReady for 5.05 man-pages-5.05
Michael Kerrisk [Sun, 9 Feb 2020 11:24:58 +0000 (12:24 +0100)] 
Ready for 5.05

4 years ago_exit.2, capget.2, fcntl.2, futex.2, listen.2, memfd_create.2, modify_ldt.2, move_pag...
Michael Kerrisk [Sun, 9 Feb 2020 10:53:28 +0000 (11:53 +0100)] 
_exit.2, capget.2, fcntl.2, futex.2, listen.2, memfd_create.2, modify_ldt.2, move_pages.2, open.2, perf_event_open.2, ptrace.2, set_thread_area.2, stime.2, syscall.2, sysctl.2, userfaultfd.2, cmsg.3, exit.3, ftime.3, getpt.3, malloc.3, console_codes.4, loop.4, inotify.7, netlink.7, packet.7, rtnetlink.7, tcp.7, unix.7, vsock.7, ldconfig.8: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Ready for 5.05
Michael Kerrisk [Sat, 8 Feb 2020 22:45:56 +0000 (23:45 +0100)] 
Changes: Ready for 5.05

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostime.2: ffix
Michael Kerrisk [Sat, 8 Feb 2020 22:53:19 +0000 (23:53 +0100)] 
stime.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: Minor tweaks to Vegard Nossum's patch
Michael Kerrisk [Sat, 8 Feb 2020 22:27:05 +0000 (23:27 +0100)] 
malloc.3: Minor tweaks to Vegard Nossum's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: realloc() return value
Vegard Nossum [Sat, 8 Feb 2020 15:37:14 +0000 (16:37 +0100)] 
malloc.3: realloc() return value

One might be tempted to think that realloc() always requests a new
allocation before moving the contents over (at least in the case
where the new size is bigger than the original). This is not the
case; for example, on my system the following program:

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
void *x = malloc(15);
void *y = malloc(32);

printf("x = %p\n", x);
printf("y = %p\n", y);
printf("usable_size(x) = %lu\n", malloc_usable_size(x));

void *z = realloc(x, 24);
printf("z = %p\n", z);

return 0;
}

prints:

x = 0x1b3a010
y = 0x1b3a030
usable_size(x) = 24
z = 0x1b3a010

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: Further tweaks to F_SEAL_FUTURE_WRITE text
Michael Kerrisk [Sat, 8 Feb 2020 13:10:31 +0000 (14:10 +0100)] 
fcntl.2: Further tweaks to F_SEAL_FUTURE_WRITE text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_create.2: Minor tweaks's to Joel Fernandes's patch
Michael Kerrisk [Sat, 8 Feb 2020 11:36:26 +0000 (12:36 +0100)] 
memfd_create.2: Minor tweaks's to Joel Fernandes's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_create.2: srcfix: semantic line breaks
Michael Kerrisk [Sat, 8 Feb 2020 11:35:55 +0000 (12:35 +0100)] 
memfd_create.2: srcfix: semantic line breaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemfd_create.2: Update manpage with new memfd F_SEAL_FUTURE_WRITE seal
Joel Fernandes (Google) [Thu, 14 Mar 2019 21:48:44 +0000 (17:48 -0400)] 
memfd_create.2: Update manpage with new memfd F_SEAL_FUTURE_WRITE seal

More details of the seal can be found in the LKML patch:
https://lore.kernel.org/lkml/20181120052137.74317-1-joel@joelfernandes.org/T/#t

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: Note kernel version for F_SEAL_FUTURE_WRITE
Michael Kerrisk [Sat, 8 Feb 2020 12:03:34 +0000 (13:03 +0100)] 
fcntl.2: Note kernel version for F_SEAL_FUTURE_WRITE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: Minor tweaks to Joel Fernandes's patch
Michael Kerrisk [Sat, 8 Feb 2020 11:32:08 +0000 (12:32 +0100)] 
fcntl.2: Minor tweaks to Joel Fernandes's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: srcfix: rewrap source lines
Michael Kerrisk [Sat, 8 Feb 2020 11:31:11 +0000 (12:31 +0100)] 
fcntl.2: srcfix: rewrap source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: ffix
Michael Kerrisk [Sat, 8 Feb 2020 11:09:56 +0000 (12:09 +0100)] 
fcntl.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofcntl.2: Update manpage with new memfd F_SEAL_FUTURE_WRITE seal
Joel Fernandes (Google) [Thu, 14 Mar 2019 21:48:43 +0000 (17:48 -0400)] 
fcntl.2: Update manpage with new memfd F_SEAL_FUTURE_WRITE seal

More details of the seal can be found in the LKML patch:
https://lore.kernel.org/lkml/20181120052137.74317-1-joel@joelfernandes.org/T/#t

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexit.3: Use hex for the status mask
Benjamin Peterson [Sat, 15 Sep 2018 17:38:48 +0000 (10:38 -0700)] 
exit.3: Use hex for the status mask

Admittedly, the POSIX specification for exit() also uses octal.
However, 0xFF immediately indicates the lowest 8 bits to me
whereas I had to think a bit about the octal mask.

Cowritten-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Add old EINVAL error for AArch64
Michael Kerrisk [Sat, 8 Feb 2020 08:11:01 +0000 (09:11 +0100)] 
clone.2: Add old EINVAL error for AArch64

Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agolisten.2: The 'somaxconn' default value has increased to 4096
Michael Kerrisk [Fri, 7 Feb 2020 17:02:52 +0000 (18:02 +0100)] 
listen.2: The 'somaxconn' default value has increased to 4096

See https://bugzilla.suse.com/show_bug.cgi?id=1162464

Reported-by: Peter Gajdos <pgajdos@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: In O_TMPFILE example, describe alternative linkat() call
Michael Kerrisk [Fri, 7 Feb 2020 16:39:51 +0000 (17:39 +0100)] 
open.2: In O_TMPFILE example, describe alternative linkat() call

This was already shown in an earlier version of the page,
but Adam Borowski's patch replaced it with an alternative.
Probably, it is better to show both possibilities.

Reported-by: "Joseph C. Sible" <josephcsible@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: No need for /proc to make an O_TMPFILE file permanent
Adam Borowski [Tue, 25 Sep 2018 23:09:30 +0000 (01:09 +0200)] 
open.2: No need for /proc to make an O_TMPFILE file permanent

In the example snippet, we already have the fd, thus there's no
need to refer to the file by name.  And, /proc/ might be not
mounted or not accessible.

Noticed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoconsole_codes.4: Minor tweaks to Adam Borowski's patches
Michael Kerrisk [Fri, 7 Feb 2020 16:26:21 +0000 (17:26 +0100)] 
console_codes.4: Minor tweaks to Adam Borowski's patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoconsole_codes.4: ffix
Michael Kerrisk [Fri, 7 Feb 2020 16:18:39 +0000 (17:18 +0100)] 
console_codes.4: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoconsole_codes.4: Document \e[90m to 97, 100 to 107
Adam Borowski [Fri, 8 Mar 2019 19:40:59 +0000 (20:40 +0100)] 
console_codes.4: Document \e[90m to 97, 100 to 107

Supported since fadb4244085cd04fd9c8b3a4b3bc161f506431f3 (4.9),
100..107 are supposed to be bright but this does not yet work
(unmerged patches to do so exist).

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoconsole_codes.4: Update \e[38m and \e[48m
Adam Borowski [Fri, 8 Mar 2019 19:40:58 +0000 (20:40 +0100)] 
console_codes.4: Update \e[38m and \e[48m

Supported since cec5b2a97a11ade56a701e83044d0a2a984c67b4 (3.16).

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoconsole_codes.4: \e[21m is now underline
Adam Borowski [Fri, 8 Mar 2019 19:40:57 +0000 (20:40 +0100)] 
console_codes.4: \e[21m is now underline

Since 65d9982d7e523a1a8e7c9af012da0d166f72fc56 (4.17), it follows
xterm rather than common sense and consistency, being the only
command 1..9 where N+20 doesn't undo what N did.  As libvte
0.51.90 got changed the same way, this behaviour will probably
stay.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_userfaultfd.2: wfix
Yu Jian Wu [Thu, 30 Jan 2020 16:02:02 +0000 (11:02 -0500)] 
ioctl_userfaultfd.2: wfix

Hi,

Patch as attached. I think the comment on the variables in the struct is
reversed.

Thanks!

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocmsg.3: ffix
Dmitry V. Levin [Wed, 5 Feb 2020 08:08:30 +0000 (11:08 +0300)] 
cmsg.3: ffix

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotcp.7: tcp_low_latency is ignored since Linux 4.14
Michael Kerrisk [Fri, 7 Feb 2020 15:11:06 +0000 (16:11 +0100)] 
tcp.7: tcp_low_latency is ignored since Linux 4.14

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounix.7: The PID sent with SCM_CREDENTIALS must match an existing process
Michael Kerrisk [Wed, 5 Feb 2020 11:51:51 +0000 (12:51 +0100)] 
unix.7: The PID sent with SCM_CREDENTIALS must match an existing process

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocmsg.3: Modify CMSG_DATA() example to use memcpy()
Michael Kerrisk [Wed, 5 Feb 2020 00:21:17 +0000 (01:21 +0100)] 
cmsg.3: Modify CMSG_DATA() example to use memcpy()

See previous patch to this page for rationale

Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocmsg.3: Clarify alignment issues and correct method of accessing CMSG_DATA()
Rich Felker [Wed, 5 Feb 2020 00:16:10 +0000 (01:16 +0100)] 
cmsg.3: Clarify alignment issues and correct method of accessing CMSG_DATA()

From an email by Rich Felker:

It came to my attention while reviewing possible breakage with
move to 64-bit time_t that some applications are dereferencing
data in socket control messages (particularly SCM_TIMESTAMP*)
in-place as the message type, rather than memcpy'ing it to
appropriate storage. This necessarily does not work and is not
supportable if the message contains data with greater alignment
requirement than the header. In particular, on 32-bit archs,
cmsghdr has size 12 and alignment 4, but struct timeval and
timespec may have alignment requirement 8.

I found at least ptpd, socat, and ssmping doing this via Debian
Code Search:

https://sources.debian.org/src/ptpd/2.3.1-debian1-4/src/dep/net.c/?hl=1578#L1578
https://sources.debian.org/src/socat/1.7.3.3-2/xio-socket.c/?hl=1839#L1839
https://sources.debian.org/src/ssmping/0.9.1-3/ssmpngcl.c/?hl=307#L307

and I suspect there are a good deal more out there. On most archs
they won't break, or will visibly break with SIGBUS, but in theory
it's possible that they silently read wrong data and this might
happen on some older and more tiny-embedded-oriented archs.

I think it's clear to someone who understands alignment and who's
thought about it that applications just can't do this, but it
doesn't seem to be documented, and an example in cmsg(3) even
shows access to int payload via *(int *)CMSG_DATA(cmsg) (of course
int is safe because its alignment is <= header alignment, but this
is not mentioned).

Could we add text, and perhaps change the example, to indicate
that in general memcpy needs to be used to copy the payload
to/from a suitable object?

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexec.3: tfix
Michael Kerrisk [Mon, 3 Feb 2020 23:42:34 +0000 (00:42 +0100)] 
exec.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp.2: ffix
Michael Kerrisk [Wed, 22 Jan 2020 04:23:50 +0000 (05:23 +0100)] 
seccomp.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Note the kernel version that added the 'set_tid' feature
Michael Kerrisk [Wed, 22 Jan 2020 01:19:09 +0000 (02:19 +0100)] 
clone.2: Note the kernel version that added the 'set_tid' feature

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Document CLONE_CLEAR_SIGHAND
Michael Kerrisk [Wed, 22 Jan 2020 01:09:17 +0000 (02:09 +0100)] 
clone.2: Document CLONE_CLEAR_SIGHAND

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoptrace.2: PTRACE_EVENT_STOP does not always report SIGTRAP
Denys Vlasenko [Tue, 21 Jan 2020 18:20:45 +0000 (19:20 +0100)] 
ptrace.2: PTRACE_EVENT_STOP does not always report SIGTRAP

PTRACE_EVENT_STOP does not always report SIGTRAP, can be the
signal which stopped us

While at it, fix an obvious copy/paste error in
PTRACE_GET_SYSCALL_INFO description.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouserfaultfd.2: Note that CAP_SYS_PTRACE is checked in the *initial* user namespace
Michael Kerrisk [Tue, 21 Jan 2020 21:02:04 +0000 (22:02 +0100)] 
userfaultfd.2: Note that CAP_SYS_PTRACE is checked in the *initial* user namespace

(Add a detail missing in Yang Xu's patch.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: Document /proc/sys/vm/unprivileged_userfaultfd
Michael Kerrisk [Tue, 21 Jan 2020 20:59:14 +0000 (21:59 +0100)] 
proc.5: Document /proc/sys/vm/unprivileged_userfaultfd

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouserfaultfd.2: Tweaks to Yang Xu's patch
Michael Kerrisk [Tue, 21 Jan 2020 20:49:06 +0000 (21:49 +0100)] 
userfaultfd.2: Tweaks to Yang Xu's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouserfaultfd.2: Add EPERM error
Yang Xu [Wed, 18 Dec 2019 06:13:07 +0000 (14:13 +0800)] 
userfaultfd.2: Add EPERM error

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoloop.4: Minor tweaks to Yang Xu's patches
Michael Kerrisk [Tue, 21 Jan 2020 20:14:07 +0000 (21:14 +0100)] 
loop.4: Minor tweaks to Yang Xu's patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoloop.4: ffix
Michael Kerrisk [Tue, 21 Jan 2020 20:03:58 +0000 (21:03 +0100)] 
loop.4: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoloop.4: srcfix: semantic line breaks
Michael Kerrisk [Tue, 21 Jan 2020 20:02:37 +0000 (21:02 +0100)] 
loop.4: srcfix: semantic line breaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoloop.4: Document LOOP_SET_BLOCK_SIZE
Yang Xu [Mon, 6 Jan 2020 07:42:23 +0000 (15:42 +0800)] 
loop.4: Document LOOP_SET_BLOCK_SIZE

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoloop.4: Document LOOP_SET_DIRECT_IO
Yang Xu [Mon, 6 Jan 2020 07:42:22 +0000 (15:42 +0800)] 
loop.4: Document LOOP_SET_DIRECT_IO

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoperf_event_open.2: Mention EINTR for perf_event_open
Daniel Colascione [Wed, 8 Jan 2020 23:57:18 +0000 (15:57 -0800)] 
perf_event_open.2: Mention EINTR for perf_event_open

Somewhat surprisingly, perf_event_open() can fail with EINTR when
trying to enable perf reporting for a uprobe that's already been
configured for use with ftrace. Mention this error in the man
page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoinotify.7: Merge late perror() into fprintf()
Nick Shipp [Mon, 20 Jan 2020 16:58:44 +0000 (11:58 -0500)] 
inotify.7: Merge late perror() into fprintf()

fprintf() may have overridden errno before perror() could print
it in this example.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agokeyrings.7: ffix
Jakub Wilk [Tue, 21 Jan 2020 11:28:32 +0000 (12:28 +0100)] 
keyrings.7: ffix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoepoll.7: wfix
Michael Kerrisk [Tue, 21 Jan 2020 19:20:04 +0000 (20:20 +0100)] 
epoll.7: wfix

Reported-by: John Jones <jmjatlanta@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetcwd.3: wfix
Mike Salvatore [Thu, 16 Jan 2020 21:15:09 +0000 (16:15 -0500)] 
getcwd.3: wfix

This patch is a minor wording fix in getcwd.3 that changes "In the case getcwd()" to "In the case of getcwd()". This patch should apply cleanly to the master branch of the git repository.

Regards,
Mike Salvatore

From 3b68ad225dbaada2b1b55153dc57807b04531cd6 Mon Sep 17 00:00:00 2001
From: Mike Salvatore <mike.salvatore@canonical.com>
Date: Thu, 16 Jan 2020 16:08:08 -0500
Subject: [PATCH] getcwd.3: wfix

Signed-off-by: Mike Salvatore <mike.salvatore@canonical.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouts_namespaces.7: wfix
Michael Kerrisk [Tue, 21 Jan 2020 19:12:43 +0000 (20:12 +0100)] 
uts_namespaces.7: wfix

Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoipc_namespaces.7: wfix
Michael Kerrisk [Tue, 21 Jan 2020 19:12:26 +0000 (20:12 +0100)] 
ipc_namespaces.7: wfix

Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofanotify.7: srcfix
Michael Kerrisk [Tue, 21 Jan 2020 19:11:17 +0000 (20:11 +0100)] 
fanotify.7: srcfix

Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofanotify_init.2: srcfix
Michael Kerrisk [Tue, 21 Jan 2020 19:07:34 +0000 (20:07 +0100)] 
fanotify_init.2: srcfix

Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Minor tweaks to Adrian Reber's 'set_tid' patch
Michael Kerrisk [Sun, 12 Jan 2020 20:44:03 +0000 (21:44 +0100)] 
clone.2: Minor tweaks to Adrian Reber's 'set_tid' patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: srcfix: semantic line breaks
Michael Kerrisk [Sun, 12 Jan 2020 19:34:07 +0000 (20:34 +0100)] 
clone.2: srcfix: semantic line breaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Add clone3() set_tid information
Adrian Reber [Tue, 17 Dec 2019 15:05:05 +0000 (16:05 +0100)] 
clone.2: Add clone3() set_tid information

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofutex.2: Fix a bug in the example
Ponnuvel Palaniyappan [Wed, 8 Jan 2020 09:09:48 +0000 (09:09 +0000)] 
futex.2: Fix a bug in the example

The man page contains a trivial bug that's discussed here:
https://stackoverflow.com/q/59628958

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscall.2: Minor tweaks to Petr Vorel's patch
Michael Kerrisk [Fri, 10 Jan 2020 20:12:20 +0000 (21:12 +0100)] 
syscall.2: Minor tweaks to Petr Vorel's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscall.2: Update feature test macro requirements
Petr Vorel [Thu, 9 Jan 2020 15:46:26 +0000 (16:46 +0100)] 
syscall.2: Update feature test macro requirements

Reported-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: Remove duplicate _GNU_SOURCE
Petr Vorel [Thu, 9 Jan 2020 15:36:51 +0000 (16:36 +0100)] 
malloc.3: Remove duplicate _GNU_SOURCE

Fixes: d8d701003 ("malloc.3: Since glibc 2.29, realloc() is exposed by
defining _DEFAULT_SOURCE")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosched.7: tfix
Michael Kerrisk [Mon, 6 Jan 2020 18:42:43 +0000 (19:42 +0100)] 
sched.7: tfix

Reported-by: Will <cassis@tricolore.lu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetpt.3: Remove mention of O_NOCTTY
Samuel Thibault [Tue, 31 Dec 2019 17:01:35 +0000 (18:01 +0100)] 
getpt.3: Remove mention of O_NOCTTY

The glibc implementation of getpt has actually never been setting
O_NOCTTY when opening /dev/ptmx or BSD ptys.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoldconfig.8: tfix
Marko Myllynen [Wed, 18 Dec 2019 13:56:51 +0000 (15:56 +0200)] 
ldconfig.8: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomove_pages.2: Remove ENOENT from the list of possible return values
John Hubbard [Thu, 19 Dec 2019 05:13:47 +0000 (21:13 -0800)] 
move_pages.2: Remove ENOENT from the list of possible return values

Linux kernel commit e78bbfa82624 ("mm: stop returning -ENOENT from
sys_move_pages() if nothing got migrated") had the effect of
*never* returning -ENOENT, in any situation. So we need to update
the man page to reflect that ENOENT is not a possible return
value.

Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Brice Goglin <Brice.Goglin@inria.fr>
Cc: Yang Shi <yang.shi@linux.alibaba.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonetlink.7: Fix alignment issue in example
Antonin Décimo [Fri, 27 Dec 2019 21:15:42 +0000 (22:15 +0100)] 
netlink.7: Fix alignment issue in example

PVS-Studio reports that in

    char buf[8192];
    /* ... */
    nh = (struct nlmsghdr *) buf,

the pointer 'buf' is cast to a more strictly aligned pointer type.
This is undefined behaviour. One possible solution to make sure
that buf is correctly aligned is to declare buf as an array of
struct nlmsghdr. Other solutions include allocating the array on
the heap, use an union, or stdalign features.  With this patch,
the buffer still contains 8192 bytes.

This was raised on Stack Overflow:
https://stackoverflow.com/questions/57745580/netlink-receive-buffer-alignment

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agortnetlink.7: ifa_index is an unsigned int
Antonin Décimo [Sun, 29 Dec 2019 18:25:10 +0000 (19:25 +0100)] 
rtnetlink.7: ifa_index is an unsigned int

See include/linux/if_addr.h.

struct ifaddrmsg {
    __u8        ifa_family;
    __u8        ifa_prefixlen;    /* The prefix length        */
    __u8        ifa_flags;    /* Flags            */
    __u8        ifa_scope;    /* Address scope        */
    __u32        ifa_index;    /* Link index            */
};

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapabilities.7: Minor clarification of historical behavior
Michael Kerrisk [Mon, 30 Dec 2019 10:00:02 +0000 (11:00 +0100)] 
capabilities.7: Minor clarification of historical behavior

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapabilities.7: wfix
Michael Kerrisk [Mon, 30 Dec 2019 09:57:50 +0000 (10:57 +0100)] 
capabilities.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoldconfig.8: srcfix: semantic line breaks
Michael Kerrisk [Fri, 13 Dec 2019 06:27:20 +0000 (07:27 +0100)] 
ldconfig.8: srcfix: semantic line breaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoldconfig.8: Document file filter and symlink pattern expectations
DJ Delorie [Mon, 2 Dec 2019 20:32:10 +0000 (15:32 -0500)] 
ldconfig.8: Document file filter and symlink pattern expectations

Information gleaned from comments in glibc's elf/ldconfig.c

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomodify_ldt.2, set_thread_area.2: Fix type of base_addr
Andy Lutomirski [Wed, 4 Dec 2019 20:30:45 +0000 (12:30 -0800)] 
modify_ldt.2, set_thread_area.2: Fix type of base_addr

Historically (before Linux 2.6.23), base_addr was unsigned long
for 32-bit code and unsigned int for 64-bit code.  In other words,
it was always a 32-bit value.  When the ldt.h header files were
unified, the type became unsigned int on all systems.  Update
modify_ldt.2 and set_thread_area.2 accordingly.

Indeed, on x86, the GDT and LDT specify 32-bit bases for code and
data segments, and this has nothing to do with the kernel.

Reported-by: "Metzger, Markus T" <markus.t.metzger@intel.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: Don't show numeric values of Q_XQUOTAON XFS_QUOTA_?DQ_* flags
Michael Kerrisk [Fri, 13 Dec 2019 17:07:27 +0000 (18:07 +0100)] 
quotactl.2: Don't show numeric values of Q_XQUOTAON XFS_QUOTA_?DQ_* flags

The programmer should not need to care about the numeric values,
and their inclusion is verbosity.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: tfix
Michael Kerrisk [Fri, 13 Dec 2019 17:03:33 +0000 (18:03 +0100)] 
quotactl.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: srcfix: semantic line breaks
Michael Kerrisk [Fri, 13 Dec 2019 16:59:28 +0000 (17:59 +0100)] 
quotactl.2: srcfix: semantic line breaks

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: Tweaks to Yang Xu's Q_XQUOTARM EINVAL patch
Michael Kerrisk [Fri, 13 Dec 2019 16:58:37 +0000 (17:58 +0100)] 
quotactl.2: Tweaks to Yang Xu's Q_XQUOTARM EINVAL patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: Add EINVAL error of Q_XQUOTARM operation
Yang Xu [Tue, 3 Dec 2019 06:05:53 +0000 (14:05 +0800)] 
quotactl.2: Add EINVAL error of Q_XQUOTARM operation

Since kernel commit 3dd4d40b4208("xfs: Sanity check flags
of Q_XQUOTARM call"), it has added flags check. If it is
not usr,grp,prj quota type, it will report EINVAL.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopacket.7: Add comment noting when 'tp_vlan_tpid' field appeared
Michael Kerrisk [Thu, 12 Dec 2019 08:54:54 +0000 (09:54 +0100)] 
packet.7: Add comment noting when 'tp_vlan_tpid' field appeared

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopacket.7: Add missing tpacket_auxdata field (tp_vlan_tpid)
kevin sztern [Tue, 26 Nov 2019 23:22:20 +0000 (23:22 +0000)] 
packet.7: Add missing tpacket_auxdata field (tp_vlan_tpid)

The definition of the tpacket_auxdata struct in the manpage is not
the same as the definition found in
/include/uapi/linux/if_packet.h.

In particular, instead of a tp_padding field, there is a
tp_vlan_tpid field. An example of a project using this field is
libpcap[1].

[1]: https://github.com/the-tcpdump-group/libpcap/blob/master/pcap-linux.c#L349

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocopy_file_range.2: tfix
Nikola Forró [Mon, 9 Dec 2019 10:56:41 +0000 (11:56 +0100)] 
copy_file_range.2: tfix

Signed-off-by: Nikola Forró <nforro@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoinotify.7: wfix
Brennan Vincent [Wed, 11 Dec 2019 17:14:41 +0000 (12:14 -0500)] 
inotify.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapget.2: wfix
Michael Kerrisk [Thu, 12 Dec 2019 08:33:00 +0000 (09:33 +0100)] 
capget.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapget.2: Add missing details in EPERM error for setting inheritable capabilities
Michael Kerrisk [Thu, 12 Dec 2019 08:27:28 +0000 (09:27 +0100)] 
capget.2: Add missing details in EPERM error for setting inheritable capabilities

Reported-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoelf.5: tfix
Michael Kerrisk [Wed, 11 Dec 2019 21:16:54 +0000 (22:16 +0100)] 
elf.5: tfix

Reported-by: Robin Kuzmin <kuzmin.robin@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosysctl.2: This system call was removed in Linux 5.5; adjust the page accordingly
Michael Kerrisk [Mon, 9 Dec 2019 21:20:29 +0000 (22:20 +0100)] 
sysctl.2: This system call was removed in Linux 5.5; adjust the page accordingly

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonl_langinfo.3: tfix
Michael Kerrisk [Sun, 8 Dec 2019 06:41:51 +0000 (07:41 +0100)] 
nl_langinfo.3: tfix

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

Reported-by: Weitian LI <liweitianux@live.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: tfix
Adrian Reber [Thu, 28 Nov 2019 12:46:49 +0000 (13:46 +0100)] 
clone.2: tfix

Added two missing parentheses

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocgroups.7: Improve the discussion of the advantages of v2 release notification
Michael Kerrisk [Fri, 29 Nov 2019 12:37:30 +0000 (13:37 +0100)] 
cgroups.7: Improve the discussion of the advantages of v2 release notification

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocgroups.7: Describe the cgroup.events "frozen" key
Michael Kerrisk [Fri, 29 Nov 2019 11:19:32 +0000 (12:19 +0100)] 
cgroups.7: Describe the cgroup.events "frozen" key

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocgroups.7: Split discussion of cgroups.events file and v2 release notification
Michael Kerrisk [Fri, 29 Nov 2019 11:17:36 +0000 (12:17 +0100)] 
cgroups.7: Split discussion of cgroups.events file and v2 release notification

In preparation for adding a description of the "frozen" key.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocgroups.7: The v2 freezer controller was added in Linux 5.2
Michael Kerrisk [Fri, 29 Nov 2019 10:27:48 +0000 (11:27 +0100)] 
cgroups.7: The v2 freezer controller was added in Linux 5.2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostime.2: Note that stime() is deprecated
Michael Kerrisk [Sat, 23 Nov 2019 09:53:56 +0000 (10:53 +0100)] 
stime.2: Note that stime() is deprecated

As per glibc 2.31 feature notes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogettimeofday.2: ffix
Michael Kerrisk [Sat, 23 Nov 2019 09:45:43 +0000 (10:45 +0100)] 
gettimeofday.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoftime.3: Note that this function is deprecated
Michael Kerrisk [Sat, 23 Nov 2019 09:38:28 +0000 (10:38 +0100)] 
ftime.3: Note that this function is deprecated

As noted in glibc 2.31 feature notes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: tfix
Christian Brauner [Thu, 21 Nov 2019 11:06:46 +0000 (12:06 +0100)] 
clone.2: tfix

This surely meant to say clone3() and not clone(3).

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: ERRORS: add EINVAL for use of CLONE_PARENT by an init process
Michael Kerrisk [Thu, 21 Nov 2019 09:47:50 +0000 (10:47 +0100)] 
clone.2: ERRORS: add EINVAL for use of CLONE_PARENT by an init process

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Some reworking of Christian Braunner's CLONE_PARENT init text
Michael Kerrisk [Thu, 21 Nov 2019 09:37:53 +0000 (10:37 +0100)] 
clone.2: Some reworking of Christian Braunner's CLONE_PARENT init text

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: srcfix: rewrap source lines
Michael Kerrisk [Thu, 21 Nov 2019 09:36:51 +0000 (10:36 +0100)] 
clone.2: srcfix: rewrap source lines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Mention that CLONE_PARENT is off-limits for inits
Christian Brauner [Wed, 20 Nov 2019 10:45:04 +0000 (11:45 +0100)] 
clone.2: Mention that CLONE_PARENT is off-limits for inits

The CLONE_PARENT flag cannot but used by init processes. Let's mention
this in the manpages to prevent surprises.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Note that CLONE_THREAD causes similar behavior to CLONE_PARENT
Michael Kerrisk [Thu, 21 Nov 2019 08:35:35 +0000 (09:35 +0100)] 
clone.2: Note that CLONE_THREAD causes similar behavior to CLONE_PARENT

The introductory paragraphs note that "the calling process" is
normally synonymous with the "the parent process", except in the
case of CLONE_PARENT. The same is also true of CLONE_THREAD.

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