]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agoReady for 5.04 man-pages-5.04
Michael Kerrisk [Tue, 19 Nov 2019 14:27:30 +0000 (15:27 +0100)] 
Ready for 5.04

4 years agoRemoved trailing white space at end of lines
Michael Kerrisk [Tue, 19 Nov 2019 14:27:18 +0000 (15:27 +0100)] 
Removed trailing white space at end of lines

4 years agobpf-helpers.7: tfix
Michael Kerrisk [Tue, 19 Nov 2019 14:25:53 +0000 (15:25 +0100)] 
bpf-helpers.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2, fallocate.2, ioctl_iflags.2, ioctl_list.2, pidfd_open.2, pivot_root.2, quota...
Michael Kerrisk [Tue, 19 Nov 2019 14:25:14 +0000 (15:25 +0100)] 
clone.2, fallocate.2, ioctl_iflags.2, ioctl_list.2, pidfd_open.2, pivot_root.2, quotactl.2, seccomp.2, select.2, wait.2, proc.5, cgroups.7, netdevice.7, uts_namespaces.7: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Ready for 5.04
Michael Kerrisk [Tue, 19 Nov 2019 14:23:17 +0000 (15:23 +0100)] 
Changes: Ready for 5.04

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf-helpers.7: Fix .TH line
Michael Kerrisk [Tue, 19 Nov 2019 11:50:47 +0000 (12:50 +0100)] 
bpf-helpers.7: Fix .TH line

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf-helpers.7: srcfix
Michael Kerrisk [Tue, 19 Nov 2019 11:39:37 +0000 (12:39 +0100)] 
bpf-helpers.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobpf-helpers.7: Refresh against kernel v5.4-rc7
Michael Kerrisk [Tue, 19 Nov 2019 11:11:47 +0000 (12:11 +0100)] 
bpf-helpers.7: Refresh against kernel v5.4-rc7

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Use pid_t for clone3() {child,parent}_tid
Christian Brauner [Sat, 16 Nov 2019 11:41:14 +0000 (12:41 +0100)] 
clone.2: Use pid_t for clone3() {child,parent}_tid

Advertise to userspace that they should use proper pid_t types
for arguments returning a pid.

The kernel-internal struct kernel_clone_args currently uses int
as type and since POSIX mandates that pid_t is a signed integer
type and glibc and friends use int this is not an issue. After
the merge window for v5.5 closes we can switch struct
kernel_clone_args over to using pid_t as well without any danger
in regressing current userspace.

Also note, that the new set tid feature which will be merged for
v5.5 uses pid_t types as well.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Check for MAP_FAILED not NULL on mmap()
Christian Brauner [Sat, 16 Nov 2019 11:41:13 +0000 (12:41 +0100)] 
clone.2: Check for MAP_FAILED not NULL on mmap()

If mmap() fails it will return MAP_FAILED which according to the manpage
is (void *)-1 not NULL.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: tfix
Christian Brauner [Sat, 16 Nov 2019 11:41:12 +0000 (12:41 +0100)] 
clone.2: tfix

Fix two spelling mistakes in manpage describing the clone{2,3}()
syscalls/syscall wrappers.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agommap.2: tfix
Michael Kerrisk [Sat, 16 Nov 2019 22:35:14 +0000 (23:35 +0100)] 
mmap.2: tfix

Reported-by: Marko Myllynen <myllynen@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agommap.2: Some rewording of the description of MAP_STACK
Michael Kerrisk [Thu, 14 Nov 2019 12:00:01 +0000 (13:00 +0100)] 
mmap.2: Some rewording of the description of MAP_STACK

Reword a little to allow for the fact that there are now
*two* reasons to consider using this flag.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agommap.2: Note that MAP_STACK exists on some other systems
Michael Kerrisk [Thu, 14 Nov 2019 11:52:40 +0000 (12:52 +0100)] 
mmap.2: Note that MAP_STACK exists on some other systems

As noted in man-pages commit 99c3a000279919cc4875c9dfa9c,
MAP_STACK exists on at least OpenBSD and FreeBSD.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopivot_root.2: EXAMPLE: allocate stack using mmap() MAP_STACK rather than malloc()
Michael Kerrisk [Fri, 8 Nov 2019 10:33:41 +0000 (11:33 +0100)] 
pivot_root.2: EXAMPLE: allocate stack using mmap() MAP_STACK rather than malloc()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Allocate child's stack using mmap(2) rather than malloc(3)
Michael Kerrisk [Thu, 14 Nov 2019 11:19:21 +0000 (12:19 +0100)] 
clone.2: Allocate child's stack using mmap(2) rather than malloc(3)

Christian Brauner suggested mmap(MAP_STACKED), rather than
malloc(), as the canonical way of allocating a stack for the
child of clone(), and Jann Horn noted some reasons why:

    Not on Linux, but on OpenBSD, they do use MAP_STACK now
    AFAIK; this was announced here:
    <http://openbsd-archive.7691.n7.nabble.com/stack-register-checking-td338238.html>.
    Basically they periodically check whether the userspace
    stack pointer points into a MAP_STACK region, and if not,
    they kill the process. So even if it's a no-op on Linux, it
    might make sense to advise people to use the flag to improve
    portability? I'm not sure if that's something that belongs
    in Linux manpages.

    Another reason against malloc() is that when setting up
    thread stacks in proper, reliable software, you'll probably
    want to place a guard page (in other words, a 4K PROT_NONE
    VMA) at the bottom of the stack to reliably catch stack
    overflows; and you probably don't want to do that with
    malloc, in particular with non-page-aligned allocations.

And the OpenBSD 6.5 manual pages says:

    MAP_STACK
        Indicate that the mapping is used as a stack. This
        flag must be used in combination with MAP_ANON and
        MAP_PRIVATE.

And I then noticed that MAP_STACK seems already to be on
FreeBSD for a long time:

    MAP_STACK
        Map the area as a stack.  MAP_ANON is implied.
        Offset should be 0, fd must be -1, and prot should
        include at least PROT_READ and PROT_WRITE.  This
        option creates a memory region that grows to at
        most len bytes in size, starting from the stack
        top and growing down.  The stack top is the startā€
        ing address returned by the call, plus len bytes.
        The bottom of the stack at maximum growth is the
        starting address returned by the call.

        The entire area is reserved from the point of view
        of other mmap() calls, even if not faulted in yet.

Reported-by: Jann Horn <jannh@google.com>
Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrftime.3: wfix
Jakub Wilk [Wed, 13 Nov 2019 14:28:40 +0000 (15:28 +0100)] 
strftime.3: wfix

Fix comma splice.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Minor tweaks after feedback from Christian Brauner
Michael Kerrisk [Sun, 10 Nov 2019 19:39:17 +0000 (20:39 +0100)] 
clone.2: Minor tweaks after feedback from Christian Brauner

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: tfix
Jakub Wilk [Sat, 9 Nov 2019 08:50:46 +0000 (09:50 +0100)] 
clone.2: tfix

Remove duplicated word.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Tidy up the description of CLONE_DETACHED
Michael Kerrisk [Sat, 9 Nov 2019 07:32:32 +0000 (08:32 +0100)] 
clone.2: Tidy up the description of CLONE_DETACHED

The obsolete CLONE_DETACHED flag has never been properly
documented, but now the discussion CLONE_PIDFD also requires
mention of CLONE_DETACHED. So, properly document CLONE_DETACHED,
and mention its interactions with CLONE_PIDFD.

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: tfix
Michael Kerrisk [Fri, 8 Nov 2019 22:22:50 +0000 (23:22 +0100)] 
clone.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Consistently order paragraphs for CLONE_NEW* flags
Michael Kerrisk [Fri, 8 Nov 2019 21:40:45 +0000 (22:40 +0100)] 
clone.2: Consistently order paragraphs for CLONE_NEW* flags

Sometimes the descriptions of these flags mentioned the
corresponding section 7 namespace manual page and then the
required capabilities, and sometimes the order was the was
the reverse. Make it consistent.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Remove various details that are already covered in namespaces pages
Michael Kerrisk [Fri, 8 Nov 2019 21:32:47 +0000 (22:32 +0100)] 
clone.2: Remove various details that are already covered in namespaces pages

Remove details of UTS, IPC, and network namespaces that are
already covered in the corresponding namespaces pages in
section 7. This change is for consistency, since corresponding
details were not provided for other namespace types in clone(2)
and these details do not appear in unshare(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouts_namespaces.7: Add a little more detail on scope of UTS namespaces
Michael Kerrisk [Fri, 8 Nov 2019 21:04:25 +0000 (22:04 +0100)] 
uts_namespaces.7: Add a little more detail on scope of UTS namespaces

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Remove wording that suggests CLONE_NEW* flags are for containers
Michael Kerrisk [Fri, 8 Nov 2019 20:52:37 +0000 (21:52 +0100)] 
clone.2: Remove wording that suggests CLONE_NEW* flags are for containers

These flags are used for implementing many other interesting
things by now.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Adjustments to clone3() text as well as some other details in the page
Michael Kerrisk [Fri, 8 Nov 2019 20:42:06 +0000 (21:42 +0100)] 
clone.2: Adjustments to clone3() text as well as some other details in the page

After feedback from Christian Brauner [1], I've adjusted a few pieces
of the clone3() text, and also adjusted some of the older text in
the page.

[1] https://lore.kernel.org/linux-man/20191107151941.dw4gtul5lrtax4se@wittgenstein/

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Give the introductory paragraph a new coat of paint
Michael Kerrisk [Fri, 8 Nov 2019 08:34:45 +0000 (09:34 +0100)] 
clone.2: Give the introductory paragraph a new coat of paint

Change the text in the introductory paragraph (which was written
20 years ago) to reflect the fact that clone*() does more things
nowadays.

Cowritten-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoresolv.conf.5: srcfix
Michael Kerrisk [Thu, 7 Nov 2019 12:21:53 +0000 (13:21 +0100)] 
resolv.conf.5: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoresolv.conf.5: Attempt clarify domain/search interaction
Florian Weimer [Thu, 7 Nov 2019 12:05:14 +0000 (13:05 +0100)] 
resolv.conf.5: Attempt clarify domain/search interaction

The domain directive is historic at this point; it should not
be used.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosignal-safety.7: ffix
Michael Kerrisk [Tue, 5 Nov 2019 09:38:54 +0000 (10:38 +0100)] 
signal-safety.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_iflags.2: Emphasize that FS_IOC_GETFLAGS and FS_IOC_SETFLAGS argument is 'int *'
Michael Kerrisk [Tue, 5 Nov 2019 09:31:39 +0000 (10:31 +0100)] 
ioctl_iflags.2: Emphasize that FS_IOC_GETFLAGS and FS_IOC_SETFLAGS argument is 'int *'

Reported-by: Robert Edmonds <edmonds@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_list.2: Add reference to ioctl(2) SEE ALSO section
Michael Kerrisk [Tue, 5 Nov 2019 09:06:03 +0000 (10:06 +0100)] 
ioctl_list.2: Add reference to ioctl(2) SEE ALSO section

The referenced section lists various pages that document ioctls.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonetdevice.7: Small wording fix in description of SIOCGIFCONF
Michael Kerrisk [Tue, 5 Nov 2019 08:25:21 +0000 (09:25 +0100)] 
netdevice.7: Small wording fix in description of SIOCGIFCONF

SIOCGIFCONF returns "network layer" addresses (not "transport
layer").

Reported-by: Silviu Popescu <silviupopescu1990@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofallocate.2: Add gfs2 to the list of punch hole-capable filesystems
Andrew Price [Thu, 31 Oct 2019 16:26:47 +0000 (16:26 +0000)] 
fallocate.2: Add gfs2 to the list of punch hole-capable filesystems

Also remove a stray " from the previous item.

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: ffix
Michael Kerrisk [Thu, 31 Oct 2019 13:22:13 +0000 (14:22 +0100)] 
clone.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2, proc.5: Adjust references to namespaces(7)
Michael Kerrisk [Thu, 31 Oct 2019 10:34:08 +0000 (11:34 +0100)] 
clone.2, proc.5: Adjust references to namespaces(7)

Adjust references to namespaces(7) to be references to pages
describing specific namespace types.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: wfix: consistently use 'operation', rather than 'command'
Michael Kerrisk [Thu, 31 Oct 2019 05:58:59 +0000 (06:58 +0100)] 
quotactl.2: wfix: consistently use 'operation', rather than 'command'

A mix of the two words was being used, with 'operation' being
more common.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: tfix
Michael Kerrisk [Thu, 31 Oct 2019 05:52:29 +0000 (06:52 +0100)] 
quotactl.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: Minor tweaks to Yang Xu's patch
Michael Kerrisk [Thu, 31 Oct 2019 05:42:53 +0000 (06:42 +0100)] 
quotactl.2: Minor tweaks to Yang Xu's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoquotactl.2: Add some details about Q_QUOTAON
Yang Xu [Fri, 25 Oct 2019 06:06:25 +0000 (14:06 +0800)] 
quotactl.2: Add some details about Q_QUOTAON

For Q_QUOTAON, on old kernel we can use quotacheck -ug to generate
quota files. But in current kernel, we can also hide them in
system inodes and indicate them by using "quota" or project
feature.

For user or group quota, we can do as below (etc ext4):

mkfs.ext4 -F -o quota /dev/sda5
mount /dev/sda5 /mnt
quotactl(QCMD(Q_QUOTAON, USRQUOTA), /dev/sda5, QFMT_VFS_V0, NULL);

For project quota, we can do as below (etc ext4):

mkfs.ext4 -F -o quota,project /dev/sda5
mount /dev/sda5 /mnt
quotactl(QCMD(Q_QUOTAON, PRJQUOTA), /dev/sda5, QFMT_VFS_V0, NULL);

Reported-by: Jan Kara <jack@suse.cz>
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocopy_file_range.2: tfix
Yang Xu [Tue, 22 Oct 2019 03:20:23 +0000 (11:20 +0800)] 
copy_file_range.2: tfix

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Include clone3 in NAME section.
Jakub Wilk [Mon, 28 Oct 2019 10:50:54 +0000 (11:50 +0100)] 
clone.2: Include clone3 in NAME section.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonetlink.7: tfix
Jakub Wilk [Tue, 22 Oct 2019 21:37:15 +0000 (23:37 +0200)] 
netlink.7: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounix.7: tfix
Torin Carey [Tue, 29 Oct 2019 12:51:44 +0000 (12:51 +0000)] 
unix.7: tfix

In the given example, the second recvmsg(2) call should receive four bytes,
as the third sendmsg(2) call only sends four.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounix.7: tfix
Torin Carey [Tue, 29 Oct 2019 12:41:54 +0000 (12:41 +0000)] 
unix.7: tfix

Signed-off-by: Torin Carey <torin@tcarey.uk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: tfix
Michael Kerrisk [Wed, 30 Oct 2019 09:23:10 +0000 (10:23 +0100)] 
pidfd_open.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocgroups.7: Switch to "considerate language"
Michael Kerrisk [Mon, 28 Oct 2019 13:31:14 +0000 (14:31 +0100)] 
cgroups.7: Switch to "considerate language"

Thanks-to: https://twitter.com/expensivestevie
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp.2: Switch to "considerate language"
Michael Kerrisk [Mon, 28 Oct 2019 11:40:36 +0000 (12:40 +0100)] 
seccomp.2: Switch to "considerate language"

Thanks-to: https://twitter.com/expensivestevie
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Introduce "flags mask" as a generic term for clone()/clone3()
Michael Kerrisk [Fri, 25 Oct 2019 19:42:05 +0000 (21:42 +0200)] 
clone.2: Introduce "flags mask" as a generic term for clone()/clone3()

Use "flags mask" as a generic term to refer to the clone()
'flags' argument and the clone3() 'cl_args.flags' field.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Minor improvements following clone3() additions
Michael Kerrisk [Fri, 25 Oct 2019 19:20:38 +0000 (21:20 +0200)] 
clone.2: Minor improvements following clone3() additions

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: srcfix: update copyright
Michael Kerrisk [Fri, 25 Oct 2019 18:25:53 +0000 (20:25 +0200)] 
clone.2: srcfix: update copyright

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone3.2: New link to clone(2)
Michael Kerrisk [Fri, 25 Oct 2019 14:32:33 +0000 (16:32 +0200)] 
clone3.2: New link to clone(2)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Document clone3()
Michael Kerrisk [Thu, 24 Oct 2019 14:17:14 +0000 (16:17 +0200)] 
clone.2: Document clone3()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: wfix
Michael Kerrisk [Thu, 24 Oct 2019 13:34:14 +0000 (15:34 +0200)] 
clone.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Minor change: move a paragraph from DESCRIPTION to NOTES
Michael Kerrisk [Thu, 24 Oct 2019 07:26:26 +0000 (09:26 +0200)] 
clone.2: Minor change: move a paragraph from DESCRIPTION to NOTES

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Add some subsection headings
Michael Kerrisk [Thu, 24 Oct 2019 07:25:14 +0000 (09:25 +0200)] 
clone.2: Add some subsection headings

Again, in preparation for adding clone3() documentation.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Rename arguments for consistency with clone3()
Michael Kerrisk [Thu, 24 Oct 2019 07:13:44 +0000 (09:13 +0200)] 
clone.2: Rename arguments for consistency with clone3()

Sometime soon, we'll have to add documentation of clone3() to this
page. As a preparatorys step, make the names of the clone()
arguments the same as the fields in the clone3() 'args' struct:

    ctid        ==> child_pid
    ptid        ==> parent_tid
    newtls      ==> tld
    child_stack ==> stack

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoabort.3: wfix
Michael Kerrisk [Wed, 16 Oct 2019 19:47:20 +0000 (21:47 +0200)] 
abort.3: wfix

Reported-by: Mikael Magnusson <mikachu@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount.2, pidfd_open.2, fuse.4: Minor fix: s/file system/filesystem/
Michael Kerrisk [Sun, 13 Oct 2019 19:04:32 +0000 (21:04 +0200)] 
mount.2, pidfd_open.2, fuse.4: Minor fix: s/file system/filesystem/

Reported-by: Marko Myllynen <myllynen@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait.2: Clarify semantics of waitpid(0, ...)
Michael Kerrisk [Sat, 12 Oct 2019 22:20:46 +0000 (00:20 +0200)] 
wait.2: Clarify semantics of waitpid(0, ...)

As noted in kernel commit 821cc7b0b205c0df64cce59aacc330af251fa8f7,
threads create an ambiguity: what if the calling process's PGID
is changed by another thread while waitpid(0, ...) is blocked?
So, clarify that waitpid(0, ...) means wait for children whose
PGID matches the caller's PGID at the time of the call to
waitpid().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait.2: waitid() can be used to wait on children in same process group as caller
Michael Kerrisk [Sat, 12 Oct 2019 21:36:20 +0000 (23:36 +0200)] 
wait.2: waitid() can be used to wait on children in same process group as caller

Since Linux 5.4, idtype == P_PGID && id == 0 can be used to wait
on children in same process group as caller.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait.2: Add P_PIDFD for waiting on a child referred to by a PID file descriptor
Michael Kerrisk [Sat, 12 Oct 2019 20:55:24 +0000 (22:55 +0200)] 
wait.2: Add P_PIDFD for waiting on a child referred to by a PID file descriptor

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Note the waitid() use case for PID file descriptors
Michael Kerrisk [Sat, 12 Oct 2019 20:40:09 +0000 (22:40 +0200)] 
pidfd_open.2: Note the waitid() use case for PID file descriptors

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Minor fix: add some structure to text on use cases
Michael Kerrisk [Sat, 12 Oct 2019 19:18:40 +0000 (21:18 +0200)] 
pidfd_open.2: Minor fix: add some structure to text on use cases

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Add a subsection header "Use cases for PID file descriptors"
Michael Kerrisk [Sat, 12 Oct 2019 19:14:58 +0000 (21:14 +0200)] 
pidfd_open.2: Add a subsection header "Use cases for PID file descriptors"

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Make it a little more explicit the CLONE_PIDFD returns a PID FD
Michael Kerrisk [Sat, 12 Oct 2019 19:12:34 +0000 (21:12 +0200)] 
pidfd_open.2: Make it a little more explicit the CLONE_PIDFD returns a PID FD

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Minor wording improvement
Michael Kerrisk [Sat, 12 Oct 2019 19:05:04 +0000 (21:05 +0200)] 
pidfd_open.2: Minor wording improvement

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Remove a redundant sentence
Michael Kerrisk [Sat, 12 Oct 2019 19:03:10 +0000 (21:03 +0200)] 
pidfd_open.2: Remove a redundant sentence

clone() CLONE_PIDFD is already mentioned elsewhere in NOTES.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetauxval.3: Clarify that AT_BASE_PLATFORM and AT_EXECFN return pointers to strings
Michael Kerrisk [Sat, 12 Oct 2019 12:23:15 +0000 (14:23 +0200)] 
getauxval.3: Clarify that AT_BASE_PLATFORM and AT_EXECFN return pointers to strings

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942207

Reported-by: Witold Baryluk <witold.baryluk@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoselect.2: POLLIN_SET/POLLOUT_SET/POLLEX_SET are now defined in terms of EPOLL*
Michael Kerrisk [Thu, 10 Oct 2019 07:56:07 +0000 (09:56 +0200)] 
select.2: POLLIN_SET/POLLOUT_SET/POLLEX_SET are now defined in terms of EPOLL*

Since kernel commit a9a08845e9acbd224e4ee466f5c1275ed50054e8, the
equivalence between select() and poll()/epoll is defined in terms
of the EPOLL* constants, rather than the POLL* constants.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount_namespaces.7: tfix
Jakub Wilk [Fri, 11 Oct 2019 20:58:11 +0000 (22:58 +0200)] 
mount_namespaces.7: tfix

Remove duplicated word.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrptime.3: tfix
Jakub Wilk [Fri, 11 Oct 2019 20:24:50 +0000 (22:24 +0200)] 
strptime.3: tfix

Escape hyphens.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoReady for 5.04
Michael Kerrisk [Fri, 11 Oct 2019 21:07:30 +0000 (23:07 +0200)] 
Ready for 5.04

4 years agoChanges.old: Fix typos in 5.03 change log
Michael Kerrisk [Fri, 11 Oct 2019 20:36:08 +0000 (22:36 +0200)] 
Changes.old: Fix typos in 5.03 change log

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoReady for 5.04
Michael Kerrisk [Fri, 11 Oct 2019 20:15:52 +0000 (22:15 +0200)] 
Ready for 5.04

4 years agoStart of man-pages-5.04: updating Changes and Changes.old
Michael Kerrisk [Fri, 11 Oct 2019 09:01:23 +0000 (11:01 +0200)] 
Start of man-pages-5.04: updating Changes and Changes.old

4 years agoStart of man-pages-5.04: updating .Announce and .lsm files
Michael Kerrisk [Fri, 11 Oct 2019 09:01:23 +0000 (11:01 +0200)] 
Start of man-pages-5.04: updating .Announce and .lsm files

4 years agoStart of man-pages-5.04: renaming .Announce and .lsm files
Michael Kerrisk [Fri, 11 Oct 2019 09:01:23 +0000 (11:01 +0200)] 
Start of man-pages-5.04: renaming .Announce and .lsm files

4 years agoReady for 5.03
Michael Kerrisk [Fri, 11 Oct 2019 08:56:00 +0000 (10:56 +0200)] 
Ready for 5.03

4 years agolocaledef.1, close.2, copy_file_range.2, execve.2, get_robust_list.2, getdomainname...
Michael Kerrisk [Thu, 10 Oct 2019 20:28:39 +0000 (22:28 +0200)] 
localedef.1, close.2, copy_file_range.2, execve.2, get_robust_list.2, getdomainname.2, gethostname.2, inotify_add_watch.2, io_submit.2, ioctl_fideduperange.2, kcmp.2, kill.2, mmap.2, move_pages.2, perf_event_open.2, ptrace.2, rt_sigqueueinfo.2, sched_setaffinity.2, sched_setparam.2, setns.2, sigaction.2, signalfd.2, statx.2, syscall.2, syscalls.2, uname.2, write.2, errno.3, fexecve.3, getauxval.3, printf.3, pthread_mutex_consistent.3, pthread_mutexattr_init.3, pthread_mutexattr_setrobust.3, pthread_setcancelstate.3, regex.3, strtok.3, strtol.3, ttyname.3, smartpqi.4, core.5, resolv.conf.5, man-pages.7, mq_overview.7, operator.7, pthreads.7, signal-safety.7, sysvipc.7: Update timestamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Ready for 5.03
Michael Kerrisk [Wed, 9 Oct 2019 21:03:31 +0000 (23:03 +0200)] 
Changes: Ready for 5.03

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Further enhancements to fork() + pidfd_open() text
Michael Kerrisk [Wed, 25 Sep 2019 14:16:58 +0000 (16:16 +0200)] 
pidfd_open.2: Further enhancements to fork() + pidfd_open() text

Christian noted that SA_NOCLDWAIT also matters in this scenario.

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: wfix
Michael Kerrisk [Wed, 25 Sep 2019 14:03:12 +0000 (16:03 +0200)] 
pidfd_open.2: wfix

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: tfix
Michael Kerrisk [Wed, 25 Sep 2019 14:01:32 +0000 (16:01 +0200)] 
pidfd_open.2: tfix

Reported-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Enhance the discussion of usage of fork() + pidfd_open()
Michael Kerrisk [Wed, 25 Sep 2019 13:59:12 +0000 (15:59 +0200)] 
pidfd_open.2: Enhance the discussion of usage of fork() + pidfd_open()

After review comments from Christian and Daniel.

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Reported-by: Daniel Colascione <dancol@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Explain how pidfd_open() can be used to with fork()
Michael Kerrisk [Wed, 25 Sep 2019 13:23:18 +0000 (15:23 +0200)] 
pidfd_open.2: Explain how pidfd_open() can be used to with fork()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_send_signal.2: Minor wording improvement
Michael Kerrisk [Tue, 24 Sep 2019 19:54:03 +0000 (21:54 +0200)] 
pidfd_send_signal.2: Minor wording improvement

Reported-by: Daniel Colascione <dancol@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_send_signal.2: tfix
Michael Kerrisk [Tue, 24 Sep 2019 19:10:39 +0000 (21:10 +0200)] 
pidfd_send_signal.2: tfix

Reported-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_send_signal.2: Fixes after review comments from Florian Weimer
Michael Kerrisk [Tue, 24 Sep 2019 19:09:12 +0000 (21:09 +0200)] 
pidfd_send_signal.2: Fixes after review comments from Florian Weimer

Reported-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_send_signal.2: wfix
Michael Kerrisk [Mon, 23 Sep 2019 20:26:29 +0000 (22:26 +0200)] 
pidfd_send_signal.2: wfix

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Add some missing errors
Michael Kerrisk [Mon, 23 Sep 2019 20:10:38 +0000 (22:10 +0200)] 
pidfd_open.2: Add some missing errors

Reported-by: Florian Weimer <fw@deneb.enyo.de>
Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Improve description in example
Michael Kerrisk [Mon, 23 Sep 2019 20:07:21 +0000 (22:07 +0200)] 
pidfd_open.2: Improve description in example

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Add a comment on system call number in example code
Michael Kerrisk [Mon, 23 Sep 2019 19:43:07 +0000 (21:43 +0200)] 
pidfd_open.2: Add a comment on system call number in example code

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: read(2) of a PID file descriptor fails with EINVAL
Michael Kerrisk [Mon, 23 Sep 2019 19:41:50 +0000 (21:41 +0200)] 
pidfd_open.2: read(2) of a PID file descriptor fails with EINVAL

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: wfix
Michael Kerrisk [Mon, 23 Sep 2019 19:35:13 +0000 (21:35 +0200)] 
pidfd_open.2: wfix

Reported-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: wfix
Michael Kerrisk [Mon, 23 Sep 2019 19:27:01 +0000 (21:27 +0200)] 
pidfd_open.2: wfix

Reported-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: Add <sys/types.h> to SYNOPSIS
Michael Kerrisk [Mon, 23 Sep 2019 19:13:11 +0000 (21:13 +0200)] 
pidfd_open.2: Add <sys/types.h> to SYNOPSIS

Reported-by: Florian Weimer <fw@deneb.enyo.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_send_signal.2: tfix
Michael Kerrisk [Mon, 23 Sep 2019 09:43:32 +0000 (11:43 +0200)] 
pidfd_send_signal.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopidfd_open.2: tfix
Michael Kerrisk [Mon, 23 Sep 2019 09:43:13 +0000 (11:43 +0200)] 
pidfd_open.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: SEE ALSO: add pidfd_open(2)
Michael Kerrisk [Mon, 23 Sep 2019 08:50:28 +0000 (10:50 +0200)] 
clone.2: SEE ALSO: add pidfd_open(2)

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