]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
20 months agostrncat.3: Rename third parameter to ssize
Alejandro Colomar [Tue, 21 Nov 2023 15:21:55 +0000 (16:21 +0100)] 
strncat.3: Rename third parameter to ssize

This better clarifies that the size is of src.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
20 months agostrncat.3: Fix bug in possible implementation of strncat(3)
Alejandro Colomar [Tue, 21 Nov 2023 15:20:23 +0000 (16:20 +0100)] 
strncat.3: Fix bug in possible implementation of strncat(3)

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
20 months agostrncat.3: SYNOPSIS: ffix
Alejandro Colomar [Tue, 21 Nov 2023 15:15:51 +0000 (16:15 +0100)] 
strncat.3: SYNOPSIS: ffix

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
20 months agostrncat.3: Don't say 'width' when 'size' is meant
Alejandro Colomar [Tue, 21 Nov 2023 15:13:39 +0000 (16:13 +0100)] 
strncat.3: Don't say 'width' when 'size' is meant

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostrncat.3: Say append instead of (con)catenate
Alejandro Colomar [Tue, 21 Nov 2023 15:11:44 +0000 (16:11 +0100)] 
strncat.3: Say append instead of (con)catenate

Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoscripts/LinuxManBook/: Split the pipeline for building the Linux Man Book
Alejandro Colomar [Mon, 20 Nov 2023 17:54:12 +0000 (18:54 +0100)] 
scripts/LinuxManBook/: Split the pipeline for building the Linux Man Book

This helps understand how this book is built.  The Perl script was too
magic for my taste.  Now it does less magic.  :)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoREADME: Versions: Document PDF books in <https://www.alejandro-colomar.es/share/dist...
Alejandro Colomar [Tue, 7 Nov 2023 19:37:19 +0000 (20:37 +0100)] 
README: Versions: Document PDF books in <https://www.alejandro-colomar.es/share/dist/man-pages/>

I also publish the books in my server.  See for example:
<https://www.alejandro-colomar.es/share/dist/man-pages/6/6.05/6.05.01/>

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoman*/: srcfix
G. Branden Robinson [Tue, 7 Nov 2023 18:49:12 +0000 (12:49 -0600)] 
man*/: srcfix

Clean up in preparation for "MR sed".

Format only one man page cross reference per input line.

Begin parentheticals on their own input lines.

Also, groff 1.23.0's (and Plan 9 from User Space's) `MR` is not a font
style alternation macro; there is no "reversed" form as with `BR` and
`RB`.  So when a man page cross reference must be immediately preceded
by punctuation, put that punctuation on the previous text line and use
the `\c` escape sequence to connect them.

Signed-off-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agombsrtowcs.3: Clarify that mbsrtowcs(3) is a restartable version of mbstowcs(3)
Alejandro Colomar [Tue, 14 Nov 2023 10:02:19 +0000 (11:02 +0100)] 
mbsrtowcs.3: Clarify that mbsrtowcs(3) is a restartable version of mbstowcs(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agombsrtowcs.3: Clarify how to ensure a full conversion
Alejandro Colomar [Tue, 14 Nov 2023 09:58:37 +0000 (10:58 +0100)] 
mbsrtowcs.3: Clarify how to ensure a full conversion

This text is based on a similar one from mbstowcs(3).

Suggested-by: Andriy Utkin <andriy_utkin@fastmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoffs.3: All these functions live in <strings.h>.
Elliott Hughes [Tue, 14 Nov 2023 00:46:43 +0000 (16:46 -0800)] 
ffs.3: All these functions live in <strings.h>.

In most cases you'll get them transitively through <string.h>, but it's
misleading for the man page to claim that they're _in_ <string.h>, and
especially weird to claim they're in _different_ headers from each
other!

This is also true of Apple's headers, and FreeBSD (the other BSDs only
have ffs(), not its siblings).

Signed-off-by: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agombstowcs.3: Reorder text
Alejandro Colomar [Tue, 14 Nov 2023 09:45:07 +0000 (10:45 +0100)] 
mbstowcs.3: Reorder text

So that it appears in the same order as in mbsrtowcs(3), for being able
to diff(1) the two pages.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agombsrtowcs.3, mbstowcs.3: Remove unnecessary references to the function name
Alejandro Colomar [Tue, 14 Nov 2023 09:42:31 +0000 (10:42 +0100)] 
mbsrtowcs.3, mbstowcs.3: Remove unnecessary references to the function name

This allows diffing both pages, which are very similar:

$ diff -u <(man mbstowcs) <(man mbsrtowcs)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agombsrtowcs.3, mbstowcs.3: Use dsize for dst size; not len, and not n
Alejandro Colomar [Tue, 14 Nov 2023 09:34:36 +0000 (10:34 +0100)] 
mbsrtowcs.3, mbstowcs.3: Use dsize for dst size; not len, and not n

This makes it clear that it's a size, not a length.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring.3: strncpy(): wfix
Paul Eggert [Mon, 13 Nov 2023 22:26:42 +0000 (14:26 -0800)] 
string.3: strncpy(): wfix

Say "size" not "width" for byte counts; "width" is for the number of
bits in a word.  Say "leading" to make it clear we don’t care about what
the source contains after its first null byte.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring.3: strncpy(): Talk about bytes, not characters
Alejandro Colomar [Mon, 13 Nov 2023 00:47:47 +0000 (01:47 +0100)] 
string.3: strncpy(): Talk about bytes, not characters

These functions are also the way to copy multibyte strings, so be
generic and say that they just copy bytes.  Not every byte is a valid
character in (for example) UTF-8 locales.

Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring.3: strncpy(): Reword so as to not imply the result has some null padding.
Alejandro Colomar [Mon, 13 Nov 2023 00:22:31 +0000 (01:22 +0100)] 
string.3: strncpy(): Reword so as to not imply the result has some null padding.

Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring.3: tfix
Alejandro Colomar [Mon, 13 Nov 2023 00:19:13 +0000 (01:19 +0100)] 
string.3: tfix

Replace “‐” (U+2020 HYPHEN) with “-” (U+002D HYPHEN-MINUS).

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostpecpyx.3: Remove link page
Paul Eggert [Sun, 12 Nov 2023 23:52:05 +0000 (15:52 -0800)] 
stpecpyx.3: Remove link page

* Remove man3/stpecpyx.3; no longer present.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: Recommend failing instead of truncating
Alejandro Colomar [Sun, 12 Nov 2023 22:11:52 +0000 (23:11 +0100)] 
string_copying.7: Recommend failing instead of truncating

Especially for validating input, code should fail, not truncate.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostpecpy.3, ustpcpy.3, ustr2stp.3, zustr2stp.3, zustr2ustp.3: Remove link pages that...
Alejandro Colomar [Sun, 12 Nov 2023 21:38:14 +0000 (22:38 +0100)] 
stpecpy.3, ustpcpy.3, ustr2stp.3, zustr2stp.3, zustr2ustp.3: Remove link pages that don't correspond to a libc function

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: Use 'dsize' and 'ssize' for 'dst size' and 'src size'
Alejandro Colomar [Sun, 12 Nov 2023 12:21:02 +0000 (13:21 +0100)] 
string_copying.7: Use 'dsize' and 'ssize' for 'dst size' and 'src size'

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: Add strtcpy(3)
Alejandro Colomar [Sun, 12 Nov 2023 11:10:36 +0000 (12:10 +0100)] 
string_copying.7: Add strtcpy(3)

Add this new truncating string-copying function.  It intends to fully
replace strlcpy(3), which has important bugs (documented in the
preceeding commit).

It is almost identical to Linux kernel's strscpy(9), so reduce the
documentation of strscpy(9) in this page to the minimum, giving
preference to strtcpy(3).  Provide a reference implementation, since no
libc provides it.

Providing an easy, safe, and relatively fast truncating string-copying
function should prevent users from rolling their own, in which they
might introduce bugs accidentally.  We already made enough mistakes
while discussing these functions, so it's certainly not something that
should be written often.

Cc: Paul Eggert <eggert@cs.ucla.edu>
Cc: Jonny Grant <jg@jguk.org>
Cc: DJ Delorie <dj@redhat.com>
Cc: Matthew House <mattlloydhouse@gmail.com>
Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Cc: Thorsten Kukuk <kukuk@suse.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Xi Ruoyao <xry111@xry111.site>
Cc: Stefan Puiu <stefan.puiu@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: BUGS: Document strl{cpy,cat}(3)'s performance problems
Alejandro Colomar [Sun, 12 Nov 2023 08:58:56 +0000 (09:58 +0100)] 
string_copying.7: BUGS: Document strl{cpy,cat}(3)'s performance problems

Also point to BUGS from other sections that talk about these functions.

These functions are doomed due to the design decision of mirroring
snprintf(3)'s return value.  They must return strlen(src), which makes
them terribly slow, and vulnerable to DoS if an attacker can control
strlen(src).

A better design would have been to return -1 when truncating.

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Cc: Jonny Grant <jg@jguk.org>
Cc: DJ Delorie <dj@redhat.com>
Cc: Matthew House <mattlloydhouse@gmail.com>
Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Cc: Thorsten Kukuk <kukuk@suse.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Xi Ruoyao <xry111@xry111.site>
Cc: Stefan Puiu <stefan.puiu@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: BUGS: *cat(3) functions aren't always bad
Alejandro Colomar [Sun, 12 Nov 2023 08:52:36 +0000 (09:52 +0100)] 
string_copying.7: BUGS: *cat(3) functions aren't always bad

The compiler will sometimes optimize them to normal *cpy(3) functions,
since the length of dst is usually known, if the previous *cpy(3) is
visible to the compiler.  And they provide for cleaner code.  If you
know that they'll get optimized, you could use them.

Cc: Paul Eggert <eggert@cs.ucla.edu>
Cc: Jonny Grant <jg@jguk.org>
Cc: DJ Delorie <dj@redhat.com>
Cc: Matthew House <mattlloydhouse@gmail.com>
Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Cc: Thorsten Kukuk <kukuk@suse.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Xi Ruoyao <xry111@xry111.site>
Cc: Stefan Puiu <stefan.puiu@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: wfix
Alejandro Colomar [Sat, 11 Nov 2023 22:30:55 +0000 (23:30 +0100)] 
string_copying.7: wfix

Don't start this paragraph with a fragment.  Also, remove "by nature",
which is superfluous.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: DESCRIPTION::Functions: ustpcpy() and ustr2stp() are not provided...
Alejandro Colomar [Sat, 11 Nov 2023 22:10:01 +0000 (23:10 +0100)] 
string_copying.7: DESCRIPTION::Functions: ustpcpy() and ustr2stp() are not provided by any libc

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: RETURN VALUE: ffix
Alejandro Colomar [Sat, 11 Nov 2023 21:48:20 +0000 (22:48 +0100)] 
string_copying.7: RETURN VALUE: ffix

Put the text after the function names, like the rest of the page.

Suggested-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostring_copying.7: wfix
Alejandro Colomar [Sat, 11 Nov 2023 21:41:24 +0000 (22:41 +0100)] 
string_copying.7: wfix

Remove superfluous words.

Suggested-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoman*/: Improve timestamp documentation
Paul Eggert [Wed, 8 Nov 2023 21:05:57 +0000 (13:05 -0800)] 
man*/: Improve timestamp documentation

Improve discussion of leap seconds, year-2038 etc.

Cc: Elliott Hughes <enh@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agohostname.7: ffix
Alejandro Colomar [Sat, 11 Nov 2023 19:51:01 +0000 (20:51 +0100)] 
hostname.7: ffix

Add missing man-page reference.

Fixes: 921e2cfd1fc6 ("hostname.7: HOSTALIASES/search path processing is DNS-specific")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoREADME: Update links
Alejandro Colomar [Sat, 11 Nov 2023 19:35:36 +0000 (20:35 +0100)] 
README: Update links

-  Mention the mirrors in my web server, both for dist (recently added),
   and git.
-  Use HTTPS for all links.  Remove git: and http: links.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoREADME: Files: Remove .mailmap
Florian Lehner [Sat, 11 Nov 2023 18:43:57 +0000 (19:43 +0100)] 
README: Files: Remove .mailmap

.mailmap was removed with 2231a165.  Therefore, remove its reference
from the README file.

Fixes: 2231a1659621 (".mailmap: Remove file")
Signed-off-by: Florian Lehner <dev@der-flo.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostpncpy.3, string.3, string_copying.7: Clarify that st[rp]ncpy() pad with null bytes
Alejandro Colomar [Thu, 9 Nov 2023 15:12:40 +0000 (16:12 +0100)] 
stpncpy.3, string.3, string_copying.7: Clarify that st[rp]ncpy() pad with null bytes

The previous wording could be interpreted as if the nulls were already
in place.  Clarify that it's this function which pads with null bytes.

Also, it copies "characters" from the src string.  That's a bit more
specific than copying "bytes", and makes it clearer that the terminating
null byte in src is not part of the copy.

Suggested-by: Jonny Grant <jg@jguk.org>
Cc: DJ Delorie <dj@redhat.com>
Cc: Matthew House <mattlloydhouse@gmail.com>
Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Cc: Thorsten Kukuk <kukuk@suse.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Paul Eggert <eggert@cs.ucla.edu>
Cc: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostpncpy.3, string_copying.7: Clarify that st[rp]ncpy() do NOT produce a string
Alejandro Colomar [Mon, 6 Nov 2023 22:27:35 +0000 (23:27 +0100)] 
stpncpy.3, string_copying.7: Clarify that st[rp]ncpy() do NOT produce a string

These copy *from* a string.  But the destination is a simple character
sequence within an array; not a string.

Suggested-by: DJ Delorie <dj@redhat.com>
Acked-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Cc: Jonny Grant <jg@jguk.org>
Cc: Matthew House <mattlloydhouse@gmail.com>
Cc: Thorsten Kukuk <kukuk@suse.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Paul Eggert <eggert@cs.ucla.edu>
Cc: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostpncpy.3: tfix
Alejandro Colomar [Mon, 6 Nov 2023 22:17:49 +0000 (23:17 +0100)] 
stpncpy.3: tfix

Fixes: 4131356cdab8 ("man*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections")
Reported-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agobcmp.3: wfix
Alejandro Colomar [Thu, 2 Nov 2023 11:31:24 +0000 (12:31 +0100)] 
bcmp.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Suggested-by: Stefan Puiu <stefan.puiu@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoregex.7: ffix
Alejandro Colomar [Wed, 1 Nov 2023 16:52:38 +0000 (17:52 +0100)] 
regex.7: ffix

Fixes: de9137cb670e ("man-pages 1.20")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agosetlogmask.3: ffix
Alejandro Colomar [Wed, 1 Nov 2023 16:47:52 +0000 (17:47 +0100)] 
setlogmask.3: ffix

Fixes: c06eb28eb622 ("man-pages 1.41")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agocatan.3: ffix
Alejandro Colomar [Wed, 1 Nov 2023 16:39:45 +0000 (17:39 +0100)] 
catan.3: ffix

Fixes: 8d332a95081b ("man-pages 1.57")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoreadlink.2: tfix (Remove repeated word)
Alejandro Colomar [Wed, 1 Nov 2023 16:31:22 +0000 (17:31 +0100)] 
readlink.2: tfix (Remove repeated word)

Fixes: f06a3f30fa66 ("readlink.2: Fix an off-by-one error in example code")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agosyscalls.2: wfix
Alejandro Colomar [Wed, 1 Nov 2023 16:28:23 +0000 (17:28 +0100)] 
syscalls.2: wfix

Fixes: b324e17d3208 ("Many pages: wfix")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoposixoptions.7: pfix
Alejandro Colomar [Wed, 1 Nov 2023 16:19:09 +0000 (17:19 +0100)] 
posixoptions.7: pfix

Fixes: 17282a589f2f ("posixoptions.7: Make function lists more consistent and less cluttered")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agosyscalls.2: Mention Linux 6.x series
Alejandro Colomar [Wed, 1 Nov 2023 16:13:11 +0000 (17:13 +0100)] 
syscalls.2: Mention Linux 6.x series

Suggested-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agomalloc_get_state.3: tfix
Alejandro Colomar [Wed, 1 Nov 2023 15:51:41 +0000 (16:51 +0100)] 
malloc_get_state.3: tfix

Fixes: 30ed4712c794 ("chroot.2, dup.2, nfsservctl.2, utimensat.2, malloc_get_state.3, pthread_setaffinity_np.3, ddp.7, fifo.7, ip.7: Remove some out-of-date/obsolete/irrelevant FIXMEs")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agogetent.1: tfix (Add missing page section)
Alejandro Colomar [Wed, 1 Nov 2023 15:36:51 +0000 (16:36 +0100)] 
getent.1: tfix (Add missing page section)

Fixes: 4a009a370890 ("getent.1: New page to document 'getent' binary provided by glibc")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoman*/: wfix (say 'null pointer', not 'NULL pointer')
Alejandro Colomar [Wed, 1 Nov 2023 15:14:17 +0000 (16:14 +0100)] 
man*/: wfix (say 'null pointer', not 'NULL pointer')

'NULL' is a null pointer _constant_.  A 'null pointer' is a broader
concept.  'NULL pointer' is not a thing.  See the link below.

Link: <https://software.codidact.com/posts/278657>
Fixes: 9517cf56fcbd ("pidfd_send_signal.2: New page documenting pidfd_send_signal(2)")
Fixes: fcd1bee32aa9 ("bpf.2: Improvements after comments from Daniel Borkmann")
Fixes: 5d92031a43b4 ("execve.2: Explicitly note that argv[argc] == NULL in the new program")
Fixes: 9f79744c9af3 ("keyctl.2: Improve KEYCTL_INSTANTIATE details")
Fixes: 1b6ab34c5320 ("attributes.7: New page describing POSIX safety concepts")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoconnect.2: ffix
Alejandro Colomar [Wed, 1 Nov 2023 15:07:16 +0000 (16:07 +0100)] 
connect.2: ffix

Fixes: d5bc35a7a9cc ("connect.2: wfix")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoclone.2: ffix
Alejandro Colomar [Wed, 1 Nov 2023 15:02:49 +0000 (16:02 +0100)] 
clone.2: ffix

Fixes: 184ecd225079 ("clone.2: Note EINVAL when exit_signal + bad flags")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Mario Blaettermann <mario.blaettermann@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoprctl.2: tfix (Add a missing TP)
Bruno Haible [Tue, 31 Oct 2023 17:02:43 +0000 (18:02 +0100)] 
prctl.2: tfix (Add a missing TP)

A paragraph break was missing in the enumeration of possible reasons for EINVAL.

Fixes: 8165500d4c9c ("prctl.2: Add PR_PAC_RESET_KEYS (arm64)")
Signed-off-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoprctl.2: Use a better term
Bruno Haible [Sun, 29 Oct 2023 20:46:49 +0000 (21:46 +0100)] 
prctl.2: Use a better term

The first argument of prctl() was denoted as "option" here.  This makes
no sense, because
-  The first argument is not optional; it is mandatory.
   A choice is an "option" only if it is possible to choose none of
   the available choices.
-  The title of the page is "operations on a process or thread".

A better term is "operation".

Cc: Stefan Puiu <stefan.puiu@gmail.com>
Acked-by: Elliott Hughes <enh@google.com>
Signed-off-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoclone.2: Clarify that CLONE_CLEAR_SIGHAND does not affect SIG_IGN
Max Kellermann [Mon, 30 Oct 2023 16:27:33 +0000 (17:27 +0100)] 
clone.2: Clarify that CLONE_CLEAR_SIGHAND does not affect SIG_IGN

The old wording was ambiguous, but it is important to know that signals
that were set to SIG_IGN will not be restored to SIG_DFL.

This behavior was documented in the kernel commit that introduced the
feature, in the link below.

Link: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b612e5df4587c934bd056bf05f4a1deca4de4f75>
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
[alx: semantic newline; tweak commit message]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agold.so.8: Describe glibc Hardware capabilities
Adhemerval Zanella [Thu, 26 Oct 2023 18:28:02 +0000 (15:28 -0300)] 
ld.so.8: Describe glibc Hardware capabilities

The feature was added on glibc 2.33 as a way to improve the path search,
since the legacy hardware capabilities combination scheme does not scale
properly with new hardware support.  The legacy support was removed non
glibc 2.37, so it is the only scheme currently supported.

Reviewed-by: Stefan Puiu <stefan.puiu@gmail.com>
Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
[alx: ffix, srcfix, semantic newlines]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoman*/: srcfix (Use .P instead of .PP or .LP)
Alejandro Colomar [Tue, 31 Oct 2023 00:28:55 +0000 (01:28 +0100)] 
man*/: srcfix (Use .P instead of .PP or .LP)

We're trying to "standardize" on a paragraphing macro from the three
equivalent ones (P, PP, LP).  We (somewhat arbitrarily) agreed on P.

Scripted change:

$ find man* -type f | xargs sed -i '/\.PP/s/PP/P/'
$ find man* -type f | xargs sed -i '/\.LP/s/LP/P/'

Suggested-by: "G. Branden Robinson" <branden@debian.org>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agostrerror.3: Document the string produced by 'strerrorname_np(0);'
Alejandro Colomar [Wed, 25 Oct 2023 22:49:33 +0000 (00:49 +0200)] 
strerror.3: Document the string produced by 'strerrorname_np(0);'

Reported-by: Alexander Kozhevnikov <mentalisttraceur@gmail.com>
Link: <https://stackoverflow.com/questions/19885360/how-can-i-print-the-symbolic-name-of-an-errno-in-c/>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoman*/: ffix (Place short options after long options)
Alejandro Colomar [Wed, 25 Oct 2023 15:03:25 +0000 (17:03 +0200)] 
man*/: ffix (Place short options after long options)

This increases the chances that the paragraph will start in the same
line as the tag, wasting less vertical space.

The result seems visually better to me.

On Wed, Oct 25, 2023 at 09:11:03AM -0500, G. Branden Robinson wrote:
> I also like your suggestion that if we really want to economize on
> space, we could present a command's long option form before its short,
> old-style Unix synonym, which will work well when the short option (plus
> its argument, if any) fits within the space for the paragraph tag.  This
> might be a good idea for another reason; in GNU user space, the long
> option is the much more self-documenting form, and the single-character
> option name a kind of "expert mode" alternative.  As a general rule,
> when presenting technical material, one should not lead with "expert
> mode".

Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoiconv.1: ffix (Use TQ where appropriate)
Alejandro Colomar [Wed, 25 Oct 2023 14:59:18 +0000 (16:59 +0200)] 
iconv.1: ffix (Use TQ where appropriate)

This one was missed in 6fdb1c03075b, becuase it wasn't caught by the
regex I used.  I found it by accident, and there may be other cases
around.

Fixes: 6fdb1c03075b ("man*/: ffix (Use '.TQ' where appropriate)")
Acked-by: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agosmartpqi.4: HISTORYise sysfs entry "version"
Don Brace [Wed, 25 Oct 2023 14:22:35 +0000 (09:22 -0500)] 
smartpqi.4: HISTORYise sysfs entry "version"

Remove the "version" sysfs entry.  This entry was changed into
two sysfs entries: driver_version and firmware_version by
patch "(6d90615f1346 scsi: smartpqi: add sysfs entries)" in Linus's
tree Aug 22 2019.

Add HISTORY section.
Enumerate old sysfs entries replaced by newer entries.

Suggested-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Don Brace <don.brace@microchip.com>
[alx: tweak commit message]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agosmartpqi.4: Add device attributes
Don Brace [Tue, 24 Oct 2023 22:01:53 +0000 (17:01 -0500)] 
smartpqi.4: Add device attributes

Add in some device level sysfs entry descriptions:
lunid
unique_id
path_info
raid_bypass_cnt
sas_ncq_prio_enable

These have already been provided by the driver.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agosmartpqi.4: Say "volumes" instead of "drives"
Don Brace [Tue, 24 Oct 2023 22:01:51 +0000 (17:01 -0500)] 
smartpqi.4: Say "volumes" instead of "drives"

Change the word "drives" to "volumes" to match our documentation and how
they are presented to SCSI Mid-layer: as "LOGICAL VOLUMES".

I.E.
[0:1:0:0]    disk    HP       LOGICAL VOLUME   7.02  /dev/sdc

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoioctl_pagemap_scan.2: Add page for pagemap_scan IOCTL
Muhammad Usama Anjum [Thu, 19 Oct 2023 13:12:45 +0000 (18:12 +0500)] 
ioctl_pagemap_scan.2: Add page for pagemap_scan IOCTL

Link: <https://lore.kernel.org/all/20231018213453.BF1ACC43395@smtp.kernel.org>
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoman*/: ffix (Use '.TQ' where appropriate)
Alejandro Colomar [Sun, 22 Oct 2023 12:57:46 +0000 (14:57 +0200)] 
man*/: ffix (Use '.TQ' where appropriate)

When there are multiple tags for a paragraph, using a single TP and
separating the tags with commas makes the man(7) source more complex.
It also has a disadvantage: when searching through a manual page,
heuristics such as "   --option" don't work so well.

By using GNU's TQ, we simplify the source of the pages, and improve the
ability to search them.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agogetent.1: ffix (Simplify indentation)
Alejandro Colomar [Sun, 22 Oct 2023 11:36:20 +0000 (13:36 +0200)] 
getent.1: ffix (Simplify indentation)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
21 months agoioctl_userfaultfd.2: Add UFFD_FEATURE_WP_ASYNC
Muhammad Usama Anjum [Thu, 19 Oct 2023 13:12:44 +0000 (18:12 +0500)] 
ioctl_userfaultfd.2: Add UFFD_FEATURE_WP_ASYNC

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agold.so.8: Clarify LD_PROFILE in secure-execution mode
Adhemerval Zanella [Thu, 19 Oct 2023 12:31:38 +0000 (09:31 -0300)] 
ld.so.8: Clarify LD_PROFILE in secure-execution mode

Different than specified, glibc 2.2.5 does not ignore LD_PROFILE in
secure-execution mode.  Instead, it uses the default LD_PROFILE_OUTPUT
(/var/profile) folder.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agold.so.8: Describe the --list-diagnostics loader option
Adhemerval Zanella [Wed, 18 Oct 2023 17:21:04 +0000 (14:21 -0300)] 
ld.so.8: Describe the --list-diagnostics loader option

It was added on glibc 2.33 as a way to print system diagnostic
information in a machine-readable format.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoetc/clang-tidy/config.yaml: Ignore 'modernize-macro-to-enum'
Alejandro Colomar [Wed, 18 Oct 2023 19:36:22 +0000 (21:36 +0200)] 
etc/clang-tidy/config.yaml: Ignore 'modernize-macro-to-enum'

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agold.so.8: Add filtered-out environment variable in secure-execution mode
Adhemerval Zanella [Wed, 18 Oct 2023 17:21:02 +0000 (14:21 -0300)] 
ld.so.8: Add filtered-out environment variable in secure-execution mode

They are defined by unservars.h file in glibc code [1].

[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/generic/unsecvars.h;h=8278c50a84ffda18e28c178d390f1899d8306e26;hb=HEAD

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agold.so.8: Update environment variables for recent glibc versions
Adhemerval Zanella [Wed, 18 Oct 2023 17:21:00 +0000 (14:21 -0300)] 
ld.so.8: Update environment variables for recent glibc versions

Recent glibc versions removed support for LD_TRACE_PRELINKING,
LD_ASSUME_KERNEL, and LD_USE_LOAD_BIAS.

Also add a note for LD_HWCAP_MASK that since glibc 2.26 the environment
variable might be ignored if glibc does not support tunables.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoman*/: ffix: Follow rules for lists from man-pages(7)
Alejandro Colomar [Wed, 18 Oct 2023 10:36:22 +0000 (12:36 +0200)] 
man*/: ffix: Follow rules for lists from man-pages(7)

Including in commented out lists, so that grep(1) doesn't show odd cases.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: Document new UFFDIO_POISON ioctl
Axel Rasmussen [Tue, 17 Oct 2023 23:01:10 +0000 (16:01 -0700)] 
ioctl_userfaultfd.2: Document new UFFDIO_POISON ioctl

This is a new feature recently added to the kernel.  So, document the
new ioctl the same way we do other UFFDIO_* ioctls.

Also note the corresponding new ioctl flag we can return in response to
a UFFDIO_REGISTER call.

Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: srcfix
Alejandro Colomar [Tue, 17 Oct 2023 23:12:51 +0000 (01:12 +0200)] 
ioctl_userfaultfd.2: srcfix

Fixes: a252b3345f5b ("ioctl_userfaultfd.2: Describe two-step feature handshake")
Reported-by: groff(1) (`make build-catman`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: Clarify the state of the uffdio_api structure on error
Axel Rasmussen [Tue, 17 Oct 2023 23:01:08 +0000 (16:01 -0700)] 
ioctl_userfaultfd.2: Clarify the state of the uffdio_api structure on error

The old FIXME noted that the zeroing was done to differentiate the two
EINVAL cases.  It's possible something like this was true historically,
but in current Linux we zero it in *both* EINVAL cases, so this is at
least no longer true.

After reading the code, I can't determine any clear reason why we zero
it in some cases but not in others.  So, some simple advice we can give
userspace is: if an error occurs, treat the contents of the structure as
unspecified. Just re-initialize it before retrying UFFDIO_API again.

Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: srcfix
Alejandro Colomar [Mon, 16 Oct 2023 23:58:08 +0000 (01:58 +0200)] 
smartpqi.4: srcfix

Reported-by: groff(1) (`make build-catman`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: ffix
Alejandro Colomar [Mon, 16 Oct 2023 23:38:11 +0000 (01:38 +0200)] 
smartpqi.4: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoCONTRIBUTING: Clarify that subscribing to the mailing list is not necessary
Alejandro Colomar [Mon, 16 Oct 2023 00:15:51 +0000 (02:15 +0200)] 
CONTRIBUTING: Clarify that subscribing to the mailing list is not necessary

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoset_thread_area.2: Document C-SKY arch
Guo Ren [Sun, 15 Oct 2023 15:07:32 +0000 (11:07 -0400)] 
set_thread_area.2: Document C-SKY arch

C-SKY only needs set_thread_area(), no need for get_thread_area(), the
same as MIPS.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Link: <https://lore.kernel.org/linux-man/014e670b-2a11-3deb-4e7e-bfe9defd8597@gmail.com/T/>
Cc: Arnd Bergmann <arnd@arndb.de>
[alx: ffix; tweak commit message too]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agofanotify.7: Fix field name in struct fanotify_event_info_fid
Matthew House [Sun, 15 Oct 2023 00:50:27 +0000 (20:50 -0400)] 
fanotify.7: Fix field name in struct fanotify_event_info_fid

The final field of this struct as defined in include/uapi/linux/fanotify.h
(and as used in the example program) is called handle, not file_handle.
Fix this, and also replace the zero-length array with a flexible array
member to match the definition in the header.

Fixes: 0a4db6dc742d ("fanotify.7, fanotify_init.2, fanotify_mark.2: Document FAN_REPORT_FID and directory modification events")
Signed-off-by: Matthew House <mattlloydhouse@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: Add host attributes
Don Brace [Wed, 11 Oct 2023 19:00:23 +0000 (14:00 -0500)] 
smartpqi.4: Add host attributes

Add in some host level sysfs entries:
enable_stream_detection - Send RAID 5/6 writes down the normal I/O path.
                          Allow for full-stripe write requests.
ssd_smart_path_enabled  - Indicates that our Accelerated I/O (AIO) path
                          is enabled (AIO).
enable_r5_writes        - Allow RAID 5 write operations down the AIO path.
enable_r6_writes        - Allow RAID 6 write operations down the AIO path.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: ffix
Alejandro Colomar [Sat, 14 Oct 2023 22:41:01 +0000 (00:41 +0200)] 
smartpqi.4: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoprctl.2: Document PR_SET_MDWE and PR_GET_MDWE
Florent Revest [Wed, 11 Oct 2023 11:47:44 +0000 (13:47 +0200)] 
prctl.2: Document PR_SET_MDWE and PR_GET_MDWE

Memory-Deny-Write-Execute is a W^X process control originally introduced
by Joey Gouly.  I'm the author of the PR_MDWE_NO_INHERIT flag.

Signed-off-by: Florent Revest <revest@chromium.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoexecve.2: execve() also returns E2BIG if a string is too long
Rik van Riel [Thu, 12 Oct 2023 01:46:52 +0000 (21:46 -0400)] 
execve.2: execve() also returns E2BIG if a string is too long

The execve syscall returns -E2BIG in 3 cases:
-  The total length of the command line arguments and environment is too
   large.
-  An argument or environment string (including the NUL byte) is longer
   than MAX_ARG_STRLEN.
-  The full path to the executable (including the NUL byte) exceeds
   MAX_ARG_STRLEN.

Spell out all 3 cases in the -E2BIG section.

Discovered by moving a too large commandline parameter to an environment
variable, and finding that things still did not work. Examined the code
in fs/exec.c to get the details.

This simple shell script starts failing at 2^17 on a system with 4kB
page size:

#!/bin/sh
STRING="a"

for loop in `seq 20`; do
STRING="$STRING$STRING"
export STRING
if /bin/true ; then
: # still under the limit
else
echo "fork failed at loop $loop"
fi
done

./exec2big.sh: line 10: /bin/true: Argument list too long
fork failed at loop 17

Suggested-by: Matthew House <mattlloydhouse@gmail.com>
Signed-off-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agostring_copying.7: Clarify 'ustr' and 'zustr'
Alejandro Colomar [Thu, 12 Oct 2023 00:31:18 +0000 (02:31 +0200)] 
string_copying.7: Clarify 'ustr' and 'zustr'

Suggested-by: "Serge E. Hallyn" <serge@hallyn.com>
Acked-by: "Serge E. Hallyn" <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: wfix
Alejandro Colomar [Mon, 9 Oct 2023 10:45:53 +0000 (12:45 +0200)] 
ioctl_userfaultfd.2: wfix

Fixes: 1f0f451c78fd ("ioctl_userfaultfd.2: Describe missing UFFDIO_API feature flags")
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Peter Xu <peterx@redhat.com>
Suggested-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agouserfaultfd.2: ffix
G. Branden Robinson [Fri, 6 Oct 2023 06:42:54 +0000 (01:42 -0500)] 
userfaultfd.2: ffix

Signed-off-by: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: FILES: wfix: Change "Logical drives" to "Disk drives" for /dev/sd*.
Don Brace [Tue, 3 Oct 2023 19:54:35 +0000 (14:54 -0500)] 
smartpqi.4: FILES: wfix: Change "Logical drives" to "Disk drives" for /dev/sd*.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agosmartpqi.4: Add module parameter ctrl_ready_timeout
Don Brace [Tue, 3 Oct 2023 19:54:34 +0000 (14:54 -0500)] 
smartpqi.4: Add module parameter ctrl_ready_timeout

Allow user to change the length of time that the driver
will wait for the controller to become ready.

Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Scott Teel <scott.teel@microchip.com>
Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: srcfix: Use one line per identifier
Alejandro Colomar [Sun, 8 Oct 2023 22:12:54 +0000 (00:12 +0200)] 
ioctl_userfaultfd.2: srcfix: Use one line per identifier

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: ffix: Use \[lq] and \[rq]
Alejandro Colomar [Sun, 8 Oct 2023 22:12:32 +0000 (00:12 +0200)] 
ioctl_userfaultfd.2: ffix: Use \[lq] and \[rq]

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: Correct and update UFFDIO_API ioctl error codes
Axel Rasmussen [Tue, 3 Oct 2023 19:45:44 +0000 (12:45 -0700)] 
ioctl_userfaultfd.2: Correct and update UFFDIO_API ioctl error codes

First, it is not correct that repeated UFFDIO_API calls result in
EINVAL.  This is true *if both calls enable features*, but in the case
where we're doing a two-step feature detection handshake, the kernel
explicitly expects 2 calls (one with no features set).  So, correct this
description.

Then, some new error cases have been added to the kernel recently, and
the man page wasn't updated to note these.  So, add in descriptions of
these new error cases.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoioctl_userfaultfd.2: Describe two-step feature handshake
Axel Rasmussen [Tue, 3 Oct 2023 19:45:43 +0000 (12:45 -0700)] 
ioctl_userfaultfd.2: Describe two-step feature handshake

Fully describe how UFFDIO_API can be used to perform a two-step feature
handshake, and also note the case where this isn't necessary (programs
which don't depend on any extra features).

This lets us clean up an old FIXME asking for this to be described.

Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
Cc: Peter Xu <peterx@redhat.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agopthread_key_create.3: Mention glibc instead of LinuxThreads
Alejandro Colomar [Wed, 4 Oct 2023 12:18:59 +0000 (14:18 +0200)] 
pthread_key_create.3: Mention glibc instead of LinuxThreads

glibc defines PTHREAD_DESTRUCTOR_ITERATIONS in <limits.h>.  This means
it must not loop forever.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agopthread_*.3: ffix (semantic newlines)
Alejandro Colomar [Wed, 4 Oct 2023 00:14:16 +0000 (02:14 +0200)] 
pthread_*.3: ffix (semantic newlines)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agopthread_*.3: ffix (paragraphing)
Alejandro Colomar [Tue, 3 Oct 2023 19:23:07 +0000 (21:23 +0200)] 
pthread_*.3: ffix (paragraphing)

Replace blank lines by either a no-op '.', the dummy character '\&', or
an appropriate paragraphing macro.  I've experimented with two '.' lines
before section headings, which may increase readability.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agopthread_*.3: Remove AUTHOR section; add copyright; adapt TH
Alejandro Colomar [Tue, 3 Oct 2023 14:57:29 +0000 (16:57 +0200)] 
pthread_*.3: Remove AUTHOR section; add copyright; adapt TH

Xavier asked that his name be removed from the AUTHOR section, and since
we don't use that section in this project, we can just wipe it.

Add copyright notices to the pages, with Xavier as the original author,
and me, who will maintain them from now on.  Xavier ACKed the
Linux-man-pages-copyleft license.

Adapt the TH line:

-  Specify the date as (date).
-  Specify the project name in the 4th arg.
-  The first arg, the page name, must be the same as the file name.

Suggested-by: Xavier Leroy <Xavier.Leroy@inria.fr>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agopthread_cond_init.3, pthread_condattr_init.3, pthread_key_create.3, pthread_mutex_ini...
Alejandro Colomar [Tue, 3 Oct 2023 22:50:27 +0000 (00:50 +0200)] 
pthread_cond_init.3, pthread_condattr_init.3, pthread_key_create.3, pthread_mutex_init.3, pthread_mutexattr_setkind_np.3, pthread_once.3: Update the glibc pages with the debian/glibc version of them

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agoImport debian/local/manpages/pthread_*.3 git history from debian/glibc
Alejandro Colomar [Tue, 3 Oct 2023 22:42:30 +0000 (00:42 +0200)] 
Import debian/local/manpages/pthread_*.3 git history from debian/glibc

I extracted the same pages that we imported from glibc, from the Debian
package history.  They were imported from glibc to Debian, so we will be
able to pick those updates too.  Below is the process.

$ git clone git@salsa.debian.org:glibc-team/glibc.git
$ cd glibc/
$ git filter-repo --path debian/local/manpages/
$ git filter-repo \
--path debian/local/manpages/pthread_cond_init.3 \
--path debian/local/manpages/pthread_condattr_init.3 \
--path debian/local/manpages/pthread_key_create.3 \
--path debian/local/manpages/pthread_mutex_init.3 \
--path debian/local/manpages/pthread_mutexattr_setkind_np.3 \
--path debian/local/manpages/pthread_once.3
$ git tag | xargs git tag -d
$ git branch | xargs git branch -D
$ git remote add man file:///home/alx/src/linux/man-pages/man-pages/.bare.git
$ git fetch man
$ git rebase man/glibc

Subsequent commits will move the pages to the appropriate directory.

Link: <https://lore.kernel.org/linux-man/93aba0c9-ad1d-d488-1471-be30b7a8bb0c@gmail.com/T/>
Acked-by: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: Debian GNU Libc Maintainers <debian-glibc@lists.debian.org>
Cc: glibc <libc-alpha@sourceware.org>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Reported-by: Arnav Rawat <rawat.arnav@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months agopthread_cond_init.3, pthread_condattr_init.3, pthread_key_create.3, pthread_mutex_ini...
Alejandro Colomar [Tue, 3 Oct 2023 14:34:26 +0000 (16:34 +0200)] 
pthread_cond_init.3, pthread_condattr_init.3, pthread_key_create.3, pthread_mutex_init.3, pthread_mutexattr_setkind_np.3, pthread_once.3: Import pages from glibc

Signed-off-by: Alejandro Colomar <alx@kernel.org>
22 months ago * Remove linuxthreads from the tarball:
Aurelien Jarno [Fri, 29 Nov 2013 11:00:45 +0000 (11:00 +0000)] 
  * Remove linuxthreads from the tarball:
    - rules.d/tarball.mk: don't fetech linuxthreads and linuxthreads_db.
    - rules.d/build.mk: don't build linuxthreads manpages.
    - rules: don't run make clean in linuxthreads directory.
    - patches/any/local-sysctl.diff: drop the linuxthreads part.
    - patches/all/local-pthread-manpages.diff: remove.
    - local/manpages/pthread_*.3: import the few remaining linuxthreads
      manpages.
    - debhelper.in/glibc-doc.manpages: update manpage locations.

svn path=/glibc-package/branches/eglibc-2.18/; revision=5804

22 months agoRevert "linuxthreads, linuxthreads_db: Directories removed (preserved in ports reposi...
Alejandro Colomar [Tue, 3 Oct 2023 20:44:32 +0000 (22:44 +0200)] 
Revert "linuxthreads, linuxthreads_db: Directories removed (preserved in ports repository)."

This reverts commit a3db24d46ceccad34e8e70729596e1b2a2d22f5e.