]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agosigaction.2: Document SA_EXPOSE_TAGBITS and the flag support detection protocol
Peter Collingbourne [Sun, 8 Aug 2021 08:41:12 +0000 (10:41 +0200)] 
sigaction.2: Document SA_EXPOSE_TAGBITS and the flag support detection protocol

Signed-off-by: Peter Collingbourne <pcc@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopath_resolution.7: Improve description of trailin slashes
Michael Kerrisk [Sun, 8 Aug 2021 23:02:18 +0000 (01:02 +0200)] 
path_resolution.7: Improve description of trailin slashes

See https://bugzilla.kernel.org/show_bug.cgi?id=212385

some/path/dir/ is not always the same as some/path/dir/:

$ mkdir u
$ rmdir u/.
rmdir: failed to remove 'u/.': Invalid argument
$ rmdir u
$

The text in POSIX.1-2018 Section 4.13 ("Pathname Resolution")
is helpful in pointing to a better wording.

Reported-by: Askar Safin <safinaskar@mail.ru>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoldd.1: Fix example command
Alejandro Colomar [Sun, 8 Aug 2021 08:41:32 +0000 (10:41 +0200)] 
ldd.1: Fix example command

Emanuele Torre via linux-man@:

[
I was reading the man page for ldd(1)[1]; and I read this in the first
paragraph of the DECRIPTION section:

 ldd prints the shared objects (shared libraries) required by each
 program or shared object specified on the command line.  An
 example of its use and output (using sed(1) to trim leading white
 space for readability in this page) is the following:

     $ ldd /bin/ls | sed 's/^ */    /'
         linux-vdso.so.1 (0x00007ffcc3563000)
         libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f87e5459000)
         libcap.so.2 => /lib64/libcap.so.2 (0x00007f87e5254000)
         libc.so.6 => /lib64/libc.so.6 (0x00007f87e4e92000)
         libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f87e4c22000)
         libdl.so.2 => /lib64/libdl.so.2 (0x00007f87e4a1e000)
         /lib64/ld-linux-x86-64.so.2 (0x00005574bf12e000)
         libattr.so.1 => /lib64/libattr.so.1 (0x00007f87e4817000)
         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f87e45fa000)

This is a little confusing though since that sed(1) command does not
seem to work. (and also potentially misleading for someone who is trying
figure out how to parse ldd(1)'s output.)

ldd(1) prepends a TAB character (0x09) to each line, not spaces:

 $ ldd /bin/ls | xxd | head -1
 00000000: 096c 696e 7578 2d76 6473 6f2e 736f 2e31  .linux-vdso.so.1

I read ldd(1)'s source code[2] (it is part of glibc) and it seems to be
a bash script that tries to use different rtld programs ( ld.so(8) )
from an RTLDLIST.

Those, on my system, are:

 * /usr/lib/ld-linux.so.2
 * /usr/lib64/ld-linux-x86-64.so.2
 * /usr/libx32/ld-linux-x32.so.2

And they all seem to also be part of glibc.

I have tried to follow the git history of glibc to see when the switch
from spaces to the TAB character occured, but, to me, it seems like
glibc.git/elf/rtld.c has always used '\t'; at since
6a76c115150318eae5d02eca76f2fc03be7bd029[3] (358th commit since glibc
started using the git repository repository - Nov 18th 1995): before
that commit there are not any results for `git grep '\\t'` in the elf
directory and I did not investigate further.

Still, at the time of that commit, glibc did not seem to have an ldd(1)
utility.

Perhaps the man page is old and its original author was using and
documenting an ldd(1) utility that was not part of glibc when he was
writing it.

Anyhow, since I think that sed(1) command will not work on any system
that uses, at least, the most recent version of glibc (because lld(1)
and the ld.so(8) programs it depends on are all part of glibc), I think
that that example should be changed to avoid confusions.

The output format of ldd(1) does not seem to be clearly defined, so I
think this would be a good option:

 $ ldd /bin/ls | sed 's/^[[:space:]]*/    /'

NB: ^\s* should also work on most GNU/Linux systems, but \s is
    non-standard or documented so I don not suggest using it in the man
    page.

Another option could be to remove "the pipe to sed(1)" part and the note
in parentheses that explains why it was used by the original author.

Cheers.
 emanuele6

[1]: https://man7.org/linux/man-pages/man1/ldd.1.html
[2]: https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/ldd.bash.in;h=ba736464ac5e4a9390b1b6a39595035238250232;hb=5188a9d0265cc6f7235a8af1d31ab02e4a24853d
[3]: https://sourceware.org/git/?p=glibc.git;a=commit;h=6a76c115150318eae5d02eca76f2fc03be7bd029

///////

 $ uname -a
 Linux t420 5.10.54-1-lts #1 SMP Wed, 28 Jul 2021 15:05:20 +0000
x86_64 GNU/Linux
 $ pacman -Qo ldd
 /usr/bin/ldd is owned by glibc 2.33-5
 $ pacman -Qo /usr/share/man/man1/ldd.1.gz
 /usr/share/man/man1/ldd.1.gz is owned by man-pages 5.12-2
 $ pacman -Qo /usr/lib/ld-linux.so.2
 /usr/lib/ld-linux.so.2 is owned by lib32-glibc 2.33-5
 $ pacman -Qo /usr/lib64/ld-linux-x86-64.so.2
 /usr/lib/ld-linux-x86-64.so.2 is owned by glibc 2.33-5
 $ pacman -F /usr/libx32/ld-linux-x32.so.2 || echo not available on arch linux.
 not available on arch linux.
]

Reported-by: EmanueleTorre <torreemanuele6@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agolocaledef.1, access.2, ioctl_console.2, ioctl_fslabel.2, openat2.2, write.2, dlsym...
Michael Kerrisk [Sun, 8 Aug 2021 22:26:25 +0000 (00:26 +0200)] 
localedef.1, access.2, ioctl_console.2, ioctl_fslabel.2, openat2.2, write.2, dlsym.3, getopt.3, nl_langinfo.3, termios.3, xcrypt.3, hosts.equiv.5, nsswitch.conf.5, cgroups.7, man-pages.7, netlink.7, system_data_types.7: srcfix: semantic newlines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonl_langinfo.3: wfix
Michael Kerrisk [Sun, 8 Aug 2021 22:22:31 +0000 (00:22 +0200)] 
nl_langinfo.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetopt.3: Minor tweak to James's patch
Alejandro Colomar [Sun, 8 Aug 2021 08:41:21 +0000 (10:41 +0200)] 
getopt.3: Minor tweak to James's patch

Cc: James O. D. Hunt <jamesodhunt@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetopt.3: Further clarification of optstring
James O. D. Hunt [Sun, 8 Aug 2021 08:41:20 +0000 (10:41 +0200)] 
getopt.3: Further clarification of optstring

Explain that `optstring` cannot contain a semi-colon (`;`)
character.
[mtk: verified with a small test program; see also posix/getopt.c
in the glibc sources:

    if (temp == NULL || c == ':' || c == ';')
      {
        if (print_errors)
          fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0], c);
        d->optopt = c;
        return '?';
      }
]

Also explain that `optstring` can include `+` as an option
character, possibly in addition to that character being used as
the first character in `optstring` to denote `POSIXLY_CORRECT`
behaviour.
[mtk: verified with a small test program.]

Test program below. Example runs:

$ ./a.out -+
opt = 43 (+); optind = 2
Got plus
$ ./a.out -';'
./a.out: invalid option -- ';'
opt = 63 (?); optind = 2; optopt = 59 (;)
Unrecognized option (-;)
Usage: ./a.out [-p arg] [-x]

Signed-off-by: James O. D. Hunt <jamesodhunt@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
8x---8x---8x---8x---8x---8x---8x---8x---8x---8x---8x---
#include <ctype.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define printable(ch) (isprint((unsigned char) ch) ? ch : '#')

static void             /* Print "usage" message and exit */
usageError(char *progName, char *msg, int opt)
{
    if (msg != NULL && opt != 0)
        fprintf(stderr, "%s (-%c)\n", msg, printable(opt));
    fprintf(stderr, "Usage: %s [-p arg] [-x]\n", progName);
    exit(EXIT_FAILURE);
}

int
main(int argc, char *argv[])
{
    int opt, xfnd;
    char *pstr;

    xfnd = 0;
    pstr = NULL;

    while ((opt = getopt(argc, argv, "p:x+;")) != -1) {
        printf("opt =%3d (%c); optind = %d", opt, printable(opt), optind);
        if (opt == '?' || opt == ':')
            printf("; optopt =%3d (%c)", optopt, printable(optopt));
        printf("\n");

        switch (opt) {
        case 'p': pstr = optarg;                break;
        case 'x': xfnd++;                       break;
        case ';': printf("Got semicolon\n");    break;
        case '+': printf("Got plus\n"); break;
        case ':': usageError(argv[0], "Missing argument", optopt);
        case '?': usageError(argv[0], "Unrecognized option", optopt);
        default:
                  printf("Unexpected case in switch()\n");
                  exit(EXIT_FAILURE);
        }
    }

    if (xfnd != 0)
        printf("-x was specified (count=%d)\n", xfnd);
    if (pstr != NULL)
        printf("-p was specified with the value \"%s\"\n", pstr);
    if (optind < argc)
        printf("First nonoption argument is \"%s\" at argv[%d]\n",
                argv[optind], optind);
    exit(EXIT_SUCCESS);
}

4 years agoclose_range.2: Glibc added a wrapper recently
Alejandro Colomar [Sun, 8 Aug 2021 08:41:33 +0000 (10:41 +0200)] 
close_range.2: Glibc added a wrapper recently

Fixes: c2356ba085ed4f748b81c0ceeba1811b4a549e1c
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: Note kernel version that added TCGETS2, TCSETS2, TCSETSW2, and TCSETSF2
Michael Kerrisk [Sun, 8 Aug 2021 20:54:29 +0000 (22:54 +0200)] 
ioctl_tty.2: Note kernel version that added TCGETS2, TCSETS2, TCSETSW2, and TCSETSF2

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: Minor wording clean-ups
Michael Kerrisk [Sun, 8 Aug 2021 20:42:22 +0000 (22:42 +0200)] 
ioctl_tty.2: Minor wording clean-ups

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2
Pali Rohár [Sun, 8 Aug 2021 08:41:23 +0000 (10:41 +0200)] 
ioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2
Pali Rohár [Sun, 8 Aug 2021 08:41:23 +0000 (10:41 +0200)] 
ioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: Update DTR example
Pali Rohár [Sun, 8 Aug 2021 08:41:24 +0000 (10:41 +0200)] 
ioctl_tty.2: Update DTR example

Do not include unused (and incompatible) header file termios.h and
include required header files for puts() and close() functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: wfix
Michael Kerrisk [Sun, 8 Aug 2021 20:51:27 +0000 (22:51 +0200)] 
termios.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: SPARC architecture has 4 different Bnnn constants
Pali Rohár [Sun, 8 Aug 2021 08:41:28 +0000 (10:41 +0200)] 
termios.3: SPARC architecture has 4 different Bnnn constants

SPARC is special, it does not have Bnnn constants for baud rates above
2000000. Instead it defines 4 Bnnn constants with smaller baud rates.

This difference between SPARC and non-SPARC architectures is present in
both glibc API (termios.h) and also kernel ioctl API (asm/termbits.h).

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: ffix
Alejandro Colomar [Sun, 8 Aug 2021 08:41:27 +0000 (10:41 +0200)] 
termios.3: ffix

Format variable parts of words referring to a group of identifiers
in italics, following groff_man(7) recommendations.

Also srcfix surrounding uses of \f escape sequences to use macros

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: Add information how to set baud rate to any other value
Pali Rohár [Sun, 8 Aug 2021 08:41:25 +0000 (10:41 +0200)] 
termios.3: Add information how to set baud rate to any other value

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: Use bold style for Bnn and EXTn macro constants
Pali Rohár [Sun, 8 Aug 2021 08:41:22 +0000 (10:41 +0200)] 
termios.3: Use bold style for Bnn and EXTn macro constants

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotermios.3: Document missing baud-rate constants
Pali Rohár [Sun, 8 Aug 2021 08:41:19 +0000 (10:41 +0200)] 
termios.3: Document missing baud-rate constants

These baud-rate macro constants are defined in bits/termios.h and are
already supported.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounix.7: tfix
Štěpán Němec [Sun, 8 Aug 2021 08:41:15 +0000 (10:41 +0200)] 
unix.7: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoregex.3: wfix
наб [Sun, 8 Aug 2021 08:41:29 +0000 (10:41 +0200)] 
regex.3: wfix

"address of regcomp() initialized buffer" ->
"address of regcomp()-initialized buffer"

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoman-pages.7: wfix
G. Branden Robinson [Sun, 8 Aug 2021 08:41:26 +0000 (10:41 +0200)] 
man-pages.7: wfix

Saw this while preparing the "switch to \~" change Alex invited.

Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonamespaces.7: ffix
Michael Weiß [Sun, 8 Aug 2021 08:41:14 +0000 (10:41 +0200)] 
namespaces.7: ffix

Signed-off-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoreadv.2, pipe.7: Make text on pipe writes more general to avoid a confusion in writev(2)
Michael Kerrisk [Sun, 8 Aug 2021 09:24:16 +0000 (11:24 +0200)] 
readv.2, pipe.7: Make text on pipe writes more general to avoid a confusion in writev(2)

After a patch proposal from наб triggered by concerns that, when
talking about PIPE_BUF, pipe(7) explicitly mentions write(2) but
not writev(2), I've concluded that the reference in writev(2) to
pipe(7) is not needed (mea culpa; I added that text), and I think
the text in pipe(7) could be written to be closer to the POSIX
spec, which doesn't talk about "write() calls", but simply about
"writes".

Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapabilities.7, user_namespaces.7: Minor tweaks (part 2) to Kir Kolyshkin's patch
Michael Kerrisk [Sun, 8 Aug 2021 03:00:36 +0000 (05:00 +0200)] 
capabilities.7, user_namespaces.7: Minor tweaks (part 2) to Kir Kolyshkin's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapabilities.7: Minor tweaks to Kir's patch
Alejandro Colomar [Wed, 28 Jul 2021 20:19:51 +0000 (22:19 +0200)] 
capabilities.7: Minor tweaks to Kir's patch

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapabilities.7, user_namespaces.7: Describe CAP_SETFCAP
Kir Kolyshkin [Wed, 28 Jul 2021 20:19:50 +0000 (22:19 +0200)] 
capabilities.7, user_namespaces.7: Describe CAP_SETFCAP

mtk: The kernel commit message is quite enlihtening:

    commit db2e718a47984b9d71ed890eb2ea36ecf150de18
    Author: Serge E. Hallyn <serge@hallyn.com>
    Date:   Tue Apr 20 08:43:34 2021 -0500

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoreadv.2: Minor fixes (part 2) to Will Manley's patch
Michael Kerrisk [Sun, 8 Aug 2021 02:34:37 +0000 (04:34 +0200)] 
readv.2: Minor fixes (part 2) to Will Manley's patch

Mainly: I generally don't want us to be including URLs to mailing
list discussions in a manual page. Either, the issue in the
discussion is worth writing up in the manual page (so that
the reader doesn't have to look elsewhere), or the details
are less important, in which case it is sufficient to note the
existence of the bug. I think this is an example of the latter.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoreadv.2: Minor tweaks to Will Manley's patch
Alejandro Colomar [Wed, 28 Jul 2021 20:19:38 +0000 (22:19 +0200)] 
readv.2: Minor tweaks to Will Manley's patch

Cc: Will Manley <will@williammanley.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoreadv2: Note preadv2(..., RWF_NOWAIT) bug in BUGS section
Will Manley [Wed, 28 Jul 2021 20:19:37 +0000 (22:19 +0200)] 
readv2: Note preadv2(..., RWF_NOWAIT) bug in BUGS section

To save the next person before they fall foul of it.  See
<https://lore.kernel.org/linux-fsdevel/fea8b16d-5a69-40f9-b123-e84dcd6e8f2e@www.fastmail.com/T/#u>
and <https://github.com/tokio-rs/tokio/issues/3803> for more information.

Signed-off-by: Will Manley <will@williammanley.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agovdso.7: Minor tweak to Alejandro Colomar's patch
Michael Kerrisk [Sun, 8 Aug 2021 02:22:49 +0000 (04:22 +0200)] 
vdso.7: Minor tweak to Alejandro Colomar's patch

The correct kernel version seems to 5.11, not 5.10:

$ git describe --contains d0e3fc69d00d
v5.11-rc1~76^2~251

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agovdso.7: Add y2038 compliant gettime for ppc/32
Alejandro Colomar [Wed, 28 Jul 2021 20:19:40 +0000 (22:19 +0200)] 
vdso.7: Add y2038 compliant gettime for ppc/32

Christophe Leroy via Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=213421

[
In ppc32 functions section, the Y2038 compliant function
__kernel_clock_gettime64() is missing.

It was added by commit d0e3fc69d00d
("powerpc/vdso: Provide __kernel_clock_gettime64() on vdso32")
]

.../linux$ git describe d0e3fc69d00d
v5.10-rc2-76-gd0e3fc69d00d

Reported-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrlen.3, wcslen.3: Recommend alternatives where input buffer might not be null-termi...
Michael Kerrisk [Sun, 8 Aug 2021 02:16:15 +0000 (04:16 +0200)] 
strlen.3, wcslen.3: Recommend alternatives where input buffer might not be null-terminated

Reported-by: Jonny Grant <jg@jguk.org>
Reported-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexecve.2: The pathname given to interpreter is not necessarily absolute
Michael Kerrisk [Sun, 8 Aug 2021 02:01:21 +0000 (04:01 +0200)] 
execve.2: The pathname given to interpreter is not necessarily absolute

As pointed out by Nora, the example shown in the manual
page already demonstrates that the pathname is not absolute!

Reported-by: Nora Platiel <nplatiel@gmx.us>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetauxval.3: SEE ALSO: add execve(2)
Michael Kerrisk [Sun, 8 Aug 2021 01:58:01 +0000 (03:58 +0200)] 
getauxval.3: SEE ALSO: add execve(2)

Since this page discusses program execution, a link to execve(2)
seems appropriate.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexecve.2: SEE ALSO: getauxval(3)
Michael Kerrisk [Sun, 8 Aug 2021 01:55:54 +0000 (03:55 +0200)] 
execve.2: SEE ALSO: getauxval(3)

getauxval(3) is useful background regarding execve(2).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp_unotify.2: tfix
Jakub Wilk [Wed, 28 Jul 2021 20:19:57 +0000 (22:19 +0200)] 
seccomp_unotify.2: tfix

Remove duplicated word.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp_unotify.2: Minor tweaks (part 2) to Rodrigo's patch
Michael Kerrisk [Sun, 8 Aug 2021 01:12:43 +0000 (03:12 +0200)] 
seccomp_unotify.2: Minor tweaks (part 2) to Rodrigo's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp_unotify.2: Minor tweaks to Rodrigo's patch
Alejandro Colomar [Wed, 28 Jul 2021 20:19:53 +0000 (22:19 +0200)] 
seccomp_unotify.2: Minor tweaks to Rodrigo's patch

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoseccomp_unotify.2: Document SECCOMP_ADDFD_FLAG_SEND
Rodrigo Campos [Wed, 28 Jul 2021 20:19:52 +0000 (22:19 +0200)] 
seccomp_unotify.2: Document SECCOMP_ADDFD_FLAG_SEND

This flag was recently added to Linux 5.14 by a patch I wrote:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c

This patch adds documentation for the flag, the error code that the flag
added and explains in the caveat when it is useful.

Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoman2/fallocate.2: tfix documentation of shared blocks
Dan Robertson [Wed, 28 Jul 2021 20:19:42 +0000 (22:19 +0200)] 
man2/fallocate.2: tfix documentation of shared blocks

Fix a typo in the documentation of using fallocate to allocate shared
blocks. The flag FALLOC_FL_UNSHARE should instead be documented as
FALLOC_FL_UNSHARE_RANGE.

Fixes: 63a599c657d8 ("man2/fallocate.2: Document behavior with shared blocks")
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoposixoptions.7: Fix legacy functions list (s/getcwd/getwd/)
Alejandro Colomar [Wed, 28 Jul 2021 20:19:41 +0000 (22:19 +0200)] 
posixoptions.7: Fix legacy functions list (s/getcwd/getwd/)

Alan:

[
The on-line copy of the manual page "posixoptions(7)" dated
2018-04-30 has an entry for "getcwd()" in the section headed
"XSI - _XOPEN_LEGACY - _SC_XOPEN_LEGACY".
I believe that entry should be "getwd()" as that is the API call
which was present in X/Open-6 but withdrawn in X/Open-7.
]

mtk: confirmed by reviewing the table ("Removed Functions and
Symbols in Issue 7") at the end of Section B.1.1 on page
3564 of IEEE Std 1003.1, 2016 Edition.

Reported-by: Alan Peakall <Alan.Peakall@helpsystems.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agovdso.7: srcfix
Michael Kerrisk [Sun, 8 Aug 2021 00:16:30 +0000 (02:16 +0200)] 
vdso.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agovdso.7: Update CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE info for powerpc
Michael Kerrisk [Sun, 8 Aug 2021 00:13:49 +0000 (02:13 +0200)] 
vdso.7: Update CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE info for powerpc

See https://bugzilla.kernel.org/show_bug.cgi?id=213419
ppc/32 and ppc/64 sections both have the following note:

    The CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE clocks are
    not supported by the __kernel_clock_getres and
    __kernel_clock_gettime interfaces; the kernel falls back to the
    real system call

This note has been wrong from quite some time now, since commit
654abc69ef2e ("powerpc/vdso32: Add support for
CLOCK_{REALTIME/MONOTONIC}_COARSE") and commit
5c929885f1bb ("powerpc/vdso64: Add support for
CLOCK_{REALTIME/MONOTONIC}_COARSE")

Reported-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime.2: wfix regarding year-2038
Viet Than [Sat, 7 Aug 2021 23:58:24 +0000 (01:58 +0200)] 
time.2: wfix regarding year-2038

Signed-off-by: Viet Than <thanhoangviet@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrstr.3: wfix
Michael Kerrisk [Sat, 7 Aug 2021 23:52:08 +0000 (01:52 +0200)] 
strstr.3: wfix

Remove text that is probably redundant.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrstr.3: Document special case for empty needle
Alejandro Colomar [Wed, 28 Jul 2021 20:20:03 +0000 (22:20 +0200)] 
strstr.3: Document special case for empty needle

Reported-by: Stefan Kanthak <stefan.kanthak@nexgo.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonamespaces.7: Fix confusion caused by text reorganization
Štěpán Němec [Wed, 28 Jul 2021 20:20:00 +0000 (22:20 +0200)] 
namespaces.7: Fix confusion caused by text reorganization

Since commit ee81d7e41852, the flags list has been (only) above, not
below, these references.

(The flags table was added even before that, in commit 0b497138b908
("namespaces.7: Add table of namespaces to top of page"))

Fixes: ee81d7e41852 ("namespaces.7: Include manual page references in the summary table of namespace types")
Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoprintf.3: tfix
Michael Kerrisk [Sat, 7 Aug 2021 23:08:01 +0000 (01:08 +0200)] 
printf.3: tfix

Reported-by: Sergey Petrakov <kr@spmail.info>
Reported-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait.2: Minor fixes to Richard Palethorpe's patch
Michael Kerrisk [Sat, 7 Aug 2021 23:04:04 +0000 (01:04 +0200)] 
wait.2: Minor fixes to Richard Palethorpe's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait.2: Add ESRCH for when pid == INT_MIN
Richard Palethorpe [Wed, 28 Jul 2021 20:19:56 +0000 (22:19 +0200)] 
wait.2: Add ESRCH for when pid == INT_MIN

Please see upstream commit:

 commit dd83c161fbcc5d8be637ab159c0de015cbff5ba4
 Author: zhongjiang <zhongjiang@huawei.com>
 Date:   Mon Jul 10 15:53:01 2017 -0700

     kernel/exit.c: avoid undefined behaviour when calling wait4()

It avoids negating INT_MIN by returning early with ESRCH.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: tfix
Jakub Wilk [Wed, 28 Jul 2021 20:19:58 +0000 (22:19 +0200)] 
proc.5: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotkill.2: tfix
Sagar Patel [Wed, 28 Jul 2021 20:20:02 +0000 (22:20 +0200)] 
tkill.2: tfix

Correct function signature by adding missing parenthesis.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoscripts/bash_aliases: tfix
Jakub Wilk [Wed, 28 Jul 2021 20:19:59 +0000 (22:19 +0200)] 
scripts/bash_aliases: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoascii.7: ffix: add vertical rule to separate the two columns
наб [Wed, 28 Jul 2021 20:19:55 +0000 (22:19 +0200)] 
ascii.7: ffix: add vertical rule to separate the two columns

I regularly get mildly lost in this table (and, indeed, didn't realise
it had two columns the first few times I used it to look at something
from the left column) ‒ separating the two columns improves clarity,
and makes which soup of numbers belongs to which character
much more obvious

Other encodings don't need this as they don't use double-columnated
tables

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agorecv.2: tfix
kXuan [Wed, 28 Jul 2021 20:19:54 +0000 (22:19 +0200)] 
recv.2: tfix

The recv.2 misspelled `SO_EE_OFFENDER` to `SOCK_EE_OFFENDER`.

This patch fix this typo.

Signed-off-by: kXuan <kxuanobj@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouser_namespaces.7: Fix a reference to a kernel document
Kir Kolyshkin [Wed, 28 Jul 2021 20:19:49 +0000 (22:19 +0200)] 
user_namespaces.7: Fix a reference to a kernel document

The file being referred to no longer exists, as it was moved to
*.rst first (commit 20a78ae9ed297f2) and then to under
admin-guide (commit bf6b7a742e3f82b). Both those commits
are from 2019 (Linux 5.3).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocapabilities.7: tfix
Kir Kolyshkin [Wed, 28 Jul 2021 20:19:48 +0000 (22:19 +0200)] 
capabilities.7: tfix

Add a missing comma.

Fixes: 3dcdef9437fafb
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopath_resolution.7: tfix
Štěpán Němec [Wed, 28 Jul 2021 20:19:45 +0000 (22:19 +0200)] 
path_resolution.7: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Consistently use '*argv[]'
Thomas Voss [Wed, 28 Jul 2021 20:19:44 +0000 (22:19 +0200)] 
Various pages: Consistently use '*argv[]'

Scripted change:

$ find man? -type f \
  | sed -i 's/int argc, char \*\*argv/int argc, char \*argv\[\]/';

Signed-off-by: Thomas Voss <thomasavoss@protonmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: wfix
Michael Kerrisk [Sun, 25 Jul 2021 23:19:09 +0000 (01:19 +0200)] 
ioctl_tty.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: wfix
Michael Kerrisk [Sun, 25 Jul 2021 23:18:02 +0000 (01:18 +0200)] 
ioctl_tty.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: ffix
Michael Kerrisk [Sun, 25 Jul 2021 23:16:29 +0000 (01:16 +0200)] 
ioctl_tty.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: srcfix
Michael Kerrisk [Sun, 25 Jul 2021 23:12:37 +0000 (01:12 +0200)] 
ioctl_tty.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: tfix
Michael Kerrisk [Sun, 25 Jul 2021 23:12:03 +0000 (01:12 +0200)] 
ioctl_tty.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agommap.2: wfix
Michael Kerrisk [Sun, 25 Jul 2021 23:05:53 +0000 (01:05 +0200)] 
mmap.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agormdir.2: tfix
Michael Kerrisk [Sun, 25 Jul 2021 23:02:36 +0000 (01:02 +0200)] 
rmdir.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshmop.2: wfix
Michael Kerrisk [Sun, 25 Jul 2021 22:59:55 +0000 (00:59 +0200)] 
shmop.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agorename.2: wfix
Michael Kerrisk [Sun, 25 Jul 2021 22:58:11 +0000 (00:58 +0200)] 
rename.2: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoproc.5: tfix
Michael Kerrisk [Sun, 25 Jul 2021 22:48:49 +0000 (00:48 +0200)] 
proc.5: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosync.2: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:59:30 +0000 (22:59 +0200)] 
sync.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosysvipc.7: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:57:03 +0000 (22:57 +0200)] 
sysvipc.7: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agohier.7: wfix
Michael Kerrisk [Sun, 25 Jul 2021 20:54:37 +0000 (22:54 +0200)] 
hier.7: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoenviron.7: wfix
Michael Kerrisk [Sun, 25 Jul 2021 20:52:55 +0000 (22:52 +0200)] 
environ.7: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocrypt.3: ffix
Michael Kerrisk [Sun, 25 Jul 2021 20:51:18 +0000 (22:51 +0200)] 
crypt.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoconsole_codes.4: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:42:48 +0000 (22:42 +0200)] 
console_codes.4: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agounicode.7: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:39:45 +0000 (22:39 +0200)] 
unicode.7: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agouri.7: wfix
Michael Kerrisk [Sun, 25 Jul 2021 20:35:59 +0000 (22:35 +0200)] 
uri.7: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobzero.3: wfix
Michael Kerrisk [Sun, 25 Jul 2021 20:29:27 +0000 (22:29 +0200)] 
bzero.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoatanh.3: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:28:18 +0000 (22:28 +0200)] 
atanh.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agopid_namespaces.7: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:26:35 +0000 (22:26 +0200)] 
pid_namespaces.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoperf_event_open.2: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:26:01 +0000 (22:26 +0200)] 
perf_event_open.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agochmod.2: tfix
Michael Kerrisk [Sun, 25 Jul 2021 20:25:30 +0000 (22:25 +0200)] 
chmod.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobdflush.2: srcfix
Michael Kerrisk [Sun, 25 Jul 2021 20:25:10 +0000 (22:25 +0200)] 
bdflush.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclose_range.2: Glibc 2.34 has added a close_range() wrapper
Michael Kerrisk [Mon, 12 Jul 2021 01:23:46 +0000 (03:23 +0200)] 
close_range.2: Glibc 2.34 has added a close_range() wrapper

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agold.so.8: Document --list-tunables option added in glibc 2.33
Michael Kerrisk [Sun, 4 Jul 2021 21:33:57 +0000 (09:33 +1200)] 
ld.so.8: Document --list-tunables option added in glibc 2.33

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoStart of man-pages-5.13: updating Changes and Changes.old
Michael Kerrisk [Tue, 22 Jun 2021 01:04:07 +0000 (13:04 +1200)] 
Start of man-pages-5.13: updating Changes and Changes.old

4 years agoStart of man-pages-5.13: updating .Announce and .lsm files
Michael Kerrisk [Tue, 22 Jun 2021 01:04:07 +0000 (13:04 +1200)] 
Start of man-pages-5.13: updating .Announce and .lsm files

4 years agoStart of man-pages-5.13: renaming .Announce and .lsm files
Michael Kerrisk [Tue, 22 Jun 2021 01:04:07 +0000 (13:04 +1200)] 
Start of man-pages-5.13: renaming .Announce and .lsm files

4 years agoReady for 5.12
Michael Kerrisk [Sun, 20 Jun 2021 04:56:14 +0000 (16:56 +1200)] 
Ready for 5.12

4 years agoexit_group.2, ioprio_set.2, process_madvise.2, seccomp_unotify.2, set_mempolicy.2...
Michael Kerrisk [Sun, 20 Jun 2021 04:55:15 +0000 (16:55 +1200)] 
exit_group.2, ioprio_set.2, process_madvise.2, seccomp_unotify.2, set_mempolicy.2, set_tid_address.2, bswap.3, kernel_lockdown.7: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Ready for 5.12
Michael Kerrisk [Sun, 20 Jun 2021 04:53:07 +0000 (16:53 +1200)] 
Changes: Ready for 5.12

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fideduperange.2: tfix
Michael Kerrisk [Sun, 20 Jun 2021 05:18:33 +0000 (17:18 +1200)] 
ioctl_fideduperange.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoChanges: Change release location
Michael Kerrisk [Sun, 20 Jun 2021 03:56:16 +0000 (15:56 +1200)] 
Changes: Change release location

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount.2: Minor fixes to Topi Miettinen's patch
Michael Kerrisk [Sun, 20 Jun 2021 03:54:10 +0000 (15:54 +1200)] 
mount.2: Minor fixes to Topi Miettinen's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomount.2: document SELinux use of MS_NOSUID mount flag
Topi Miettinen [Sat, 12 Jun 2021 08:51:09 +0000 (11:51 +0300)] 
mount.2: document SELinux use of MS_NOSUID mount flag

Using mount flag `MS_NOSUID` also affects SELinux domain transitions but
this has not been documented well.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostrcmp.3: tfix
Alejandro Colomar [Sat, 12 Jun 2021 08:27:41 +0000 (10:27 +0200)] 
strcmp.3: tfix

With a simple backslash, '\0' ended up as ' ' in the man output.

Reported-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoferror.3: tfix
thomasavoss [Sat, 12 Jun 2021 08:27:40 +0000 (10:27 +0200)] 
ferror.3: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetline.3: !*lineptr is sufficient
наб [Sat, 12 Jun 2021 08:27:39 +0000 (10:27 +0200)] 
getline.3: !*lineptr is sufficient

No implementation or spec requires *n to be 0 to allocate a new buffer:
  * musl checks for !*lineptr
    (and sets *n=0 for later allocations)
  * glibc checks for !*lineptr || !*n
    (but only because it allocates early)
  * NetBSD checks for !*lineptr
    (and sets *n=0 for later allocations)
    (but specifies *n => mlen(*lineptr) >= *n as a precondition,
     to which this appears to be an exception)
  * FreeBSD checks for !*lineptr and sets *n=0
    (and specifies !*lineptr as sufficient)
  * Lastly, POSIX.1-2017 specifies:
    > If *n is non-zero, the application shall ensure that *lineptr
    > either points to an object of size at least *n bytes,
    > or is a null pointer.

The new wording matches POSIX, even if it arrives at the point slightly
differently

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait4.2: SYNOPSIS: Remove includes
Alejandro Colomar [Sat, 12 Jun 2021 08:31:45 +0000 (10:31 +0200)] 
wait4.2: SYNOPSIS: Remove includes

Don't document includes that provide types; only those that
provide prototypes and constants.

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