]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 days agoman/man2/getsockopt.2: tfix master
Cody Harris [Mon, 22 Sep 2025 19:52:25 +0000 (15:52 -0400)] 
man/man2/getsockopt.2: tfix

Message-ID: <3589b9717dacf9e21bea9317da0840ad9095d7f1.1758570745.git.git@hypodyne.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/msgop.2: grfix
Kele Huang [Mon, 22 Sep 2025 03:59:33 +0000 (23:59 -0400)] 
man/man2/msgop.2: grfix

Signed-off-by: Kele Huang <kele@cs.columbia.edu>
Message-ID: <20250922035934.446271-6-kele@cs.columbia.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/rt_sigqueueinfo.2: grfix
Kele Huang [Mon, 22 Sep 2025 03:59:32 +0000 (23:59 -0400)] 
man/man2/rt_sigqueueinfo.2: grfix

Signed-off-by: Kele Huang <kele@cs.columbia.edu>
Message-ID: <20250922035934.446271-5-kele@cs.columbia.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/unshare.2: grfix
Kele Huang [Mon, 22 Sep 2025 03:59:31 +0000 (23:59 -0400)] 
man/man2/unshare.2: grfix

Signed-off-by: Kele Huang <kele@cs.columbia.edu>
Message-ID: <20250922035934.446271-4-kele@cs.columbia.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/setns.2: grfix
Kele Huang [Mon, 22 Sep 2025 03:59:30 +0000 (23:59 -0400)] 
man/man2/setns.2: grfix

Signed-off-by: Kele Huang <kele@cs.columbia.edu>
Message-ID: <20250922035934.446271-3-kele@cs.columbia.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/getitimer.2: grfix
Kele Huang [Mon, 22 Sep 2025 03:59:29 +0000 (23:59 -0400)] 
man/man2/getitimer.2: grfix

Signed-off-by: Kele Huang <kele@cs.columbia.edu>
Message-ID: <20250922035934.446271-2-kele@cs.columbia.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
10 days agoman/: ffix (escape dashes)
Alejandro Colomar [Thu, 25 Sep 2025 08:55:10 +0000 (10:55 +0200)] 
man/: ffix (escape dashes)

Most of these have been reported by 'make lint-man-dash'.  A couple of
them were found manually.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
10 days agoshare/mk/: lint-man-dash: Diagnose unescaped dashes
Alejandro Colomar [Mon, 22 Sep 2025 21:28:33 +0000 (23:28 +0200)] 
share/mk/: lint-man-dash: Diagnose unescaped dashes

Signed-off-by: Alejandro Colomar <alx@kernel.org>
10 days agoshare/mk/: build-catman-troff: Ignore adjustment warning
Alejandro Colomar [Sun, 21 Sep 2025 18:24:52 +0000 (20:24 +0200)] 
share/mk/: build-catman-troff: Ignore adjustment warning

This is too common, and I don't see a solution in many cases.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman-pages.7: STYLE GUIDE: Mention UNIX for Beginners
Alejandro Colomar [Fri, 10 Jun 2022 10:31:16 +0000 (12:31 +0200)] 
man-pages.7: STYLE GUIDE: Mention UNIX for Beginners

Reported-by: Peter Xu <peterx@redhat.com>
[gbr: style fixes]
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 weeks agoman/: Use semantic newlines
Alejandro Colomar [Tue, 19 Aug 2025 11:40:01 +0000 (13:40 +0200)] 
man/: Use semantic newlines

And fix related issues while at it.

Silence false positives with \&.

Reported-by: `make lint-man-semnl`
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoshare/mk/: lint-man-poems: Align output
Alejandro Colomar [Sun, 24 Aug 2025 15:51:45 +0000 (17:51 +0200)] 
share/mk/: lint-man-poems: Align output

pcre2grep(1) doesn't have a -T flag, so we need to script a bit to do
something similar.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoshare/mk/: $AWK: Add dependency
Alejandro Colomar [Sun, 24 Aug 2025 15:48:09 +0000 (17:48 +0200)] 
share/mk/: $AWK: Add dependency

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoshare/mk/: lint-man-poems: Diagnose (lack of) semantic newlines
Alejandro Colomar [Tue, 19 Aug 2025 11:31:41 +0000 (13:31 +0200)] 
share/mk/: lint-man-poems: Diagnose (lack of) semantic newlines

Write poems, not prose.

This only catches the most obvious issues, but at least that's
something.

We need pcre2grep(3) because it allows multiple patterns, whereas
grep(1) in -P mode only accepts one.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoshare/mk/: $PCRE2GREP: Add dependency
Alejandro Colomar [Sat, 23 Aug 2025 10:13:36 +0000 (12:13 +0200)] 
share/mk/: $PCRE2GREP: Add dependency

This will be used for adding diagnostics about semantic newlines.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man2/mount_setattr.2: Mirror opening sentence from fsopen(2)
Aleksa Sarai [Fri, 19 Sep 2025 01:59:49 +0000 (11:59 +1000)] 
man/man2/mount_setattr.2: Mirror opening sentence from fsopen(2)

All of the other new mount API docs have this lead-in sentence in order
to make this set of APIs feel a little bit more cohesive.  Despite being
a bit of a latecomer, mount_setattr(2) is definitely part of this family
of APIs and so deserves the same treatment.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Message-ID: <20250919-new-mount-api-v4-8-1261201ab562@cyphar.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoshare/mk/: $CLANG_CFLAGS: Add -Wno-unknown-attributes
Alejandro Colomar [Sat, 20 Sep 2025 19:40:58 +0000 (21:40 +0200)] 
share/mk/: $CLANG_CFLAGS: Add -Wno-unknown-attributes

Clang doesn't know [[gnu::nonnull]].

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man2/splice.2: EXAMPLES: Use [[gnu::nonstring]]
Alejandro Colomar [Sat, 20 Sep 2025 19:38:52 +0000 (21:38 +0200)] 
man/man2/splice.2: EXAMPLES: Use [[gnu::nonstring]]

This silences -Wunterminated-string-initialization.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoshare/mk/, etc/clang-tidy: Silence diagnostics about unnamed parameters
Alejandro Colomar [Sat, 20 Sep 2025 19:24:05 +0000 (21:24 +0200)] 
share/mk/, etc/clang-tidy: Silence diagnostics about unnamed parameters

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man2/clock_getres.2: EXAMPLES: Don't name unused parameters
Alejandro Colomar [Sat, 20 Sep 2025 19:20:18 +0000 (21:20 +0200)] 
man/man2/clock_getres.2: EXAMPLES: Don't name unused parameters

This silences -Wunused-parameter.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/: EXAMPLES: Use NITEMS() consistently
Alejandro Colomar [Sat, 20 Sep 2025 19:17:21 +0000 (21:17 +0200)] 
man/: EXAMPLES: Use NITEMS() consistently

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man3/streq.3: Add page
Alejandro Colomar [Thu, 18 Sep 2025 16:11:21 +0000 (18:11 +0200)] 
man/man3/streq.3: Add page

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3611.txt>
Link: <https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=60b0949c939013bd8275fd9e6227014096d7c264>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man3/memeq.3: Add page
Alejandro Colomar [Thu, 18 Sep 2025 16:08:15 +0000 (18:08 +0200)] 
man/man3/memeq.3: Add page

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3617.txt>
Link: <https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=60b0949c939013bd8275fd9e6227014096d7c264>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man7/rtnetlink.7: ffix
Guillaume Nault [Thu, 18 Sep 2025 15:12:07 +0000 (17:12 +0200)] 
man/man7/rtnetlink.7: ffix

Add the missing dot before "br", so that the command is properly
executed instead of printing a spurious "br" in the output.

Fixes: ab08f6698e57 (2020-04-24; "rtnetlink.7: Minor consistency fixes")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Message-ID: <901f3e9f201e9dad7af3456ec7e21e738dfbd899.1758208304.git.gnault@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man2/mount_setattr.2, man/man2type/mount_attr.2type: Move mount_attr struct to...
Aleksa Sarai [Fri, 19 Sep 2025 01:59:42 +0000 (11:59 +1000)] 
man/man2/mount_setattr.2, man/man2type/mount_attr.2type: Move mount_attr struct to new page mount_attr(2type)

As with open_how(2type), it makes sense to move this to a separate man
page.  In addition, future man pages added in this patchset will want to
reference mount_attr(2type).

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Message-ID: <20250919-new-mount-api-v4-1-1261201ab562@cyphar.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man2/quotactl[_fd].2: Document quotactl_fd() syscall; add link page
trillian [Sat, 6 Sep 2025 16:01:37 +0000 (19:01 +0300)] 
man/man2/quotactl[_fd].2: Document quotactl_fd() syscall; add link page

I based these changes on kernel commits [1], [2].  Man-page wording
changes inspired by [3].  Rationale for the syscall itself is from [4].

[1] linux.git 9dfa23c8de925041b7b45637a1a80a98a22f19dd
("quota: Add mountpath based quota support")
[2] linux.git 64c2c2c62f92339b176ea24403d8db16db36f9e6
("quota: Change quotactl_path() systcall to an fd-based one")
[3] <https://lore.kernel.org/all/20210304123541.30749-4-s.hauer@pengutronix.de/>
[4] <https://lwn.net/Articles/859679/>

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: trillian <trillian@r9.pm>
Message-ID: <d89a3f923f2954d161a8d60e3002e1496d3327d5.1757174497.git.trillian@r9.pm>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man2/sigaction.2: pfix
Alejandro Colomar [Sun, 14 Sep 2025 11:30:43 +0000 (13:30 +0200)] 
man/man2/sigaction.2: pfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man2/sigaction.2: Update si_code list with Linux v6.16
Thiago Jung Bauermann [Tue, 9 Sep 2025 19:13:57 +0000 (16:13 -0300)] 
man/man2/sigaction.2: Update si_code list with Linux v6.16

Update with missing si_code values from Linux v6.16's
"include/uapi/asm-generic/siginfo.h".

Signed-off-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Message-ID: <20250909191357.44951-1-thiago.bauermann@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Unify variable names for regex files
Alejandro Colomar [Wed, 10 Sep 2025 15:52:37 +0000 (17:52 +0200)] 
share/mk/: Unify variable names for regex files

Within recipes, variables have delayed expansion, which means that we
can't use variables that we've undefined.  That's why we need to use
a filter to get the regex file name from the rule prerequisites.  This
trick was suggested by Philip.

Cc: Philip Guenther <guenther@gmail.com>
Cc: Paul Smith <psmith@gnu.org>
Cc: Martin Dorey <Martin.Dorey@hitachivantara.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man5/locale.5: wfix
Alejandro Colomar [Sun, 14 Sep 2025 11:19:05 +0000 (13:19 +0200)] 
man/man5/locale.5: wfix

Reported-by: Christoph Anton Mitterer <calestyo@scientia.org>
Suggested-by: Christoph Anton Mitterer <calestyo@scientia.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man5/locale.5: tfix
Alejandro Colomar [Sun, 14 Sep 2025 11:16:47 +0000 (13:16 +0200)] 
man/man5/locale.5: tfix

Fixes: 73cb5f18348c (2014-03-03; "locale.5: Document LC_ADDRESS")
Link: <https://www.open-std.org/jtc1/sc22/wg20/docs/n972-14652ft.pdf>
Link: <https://www.cept.org/cept/cept-country-codes>
Reported-by: Christoph Anton Mitterer <calestyo@scientia.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Reduce rebuilds, and simplify makefile code
Alejandro Colomar [Thu, 11 Sep 2025 08:41:54 +0000 (10:41 +0200)] 
share/mk/: Reduce rebuilds, and simplify makefile code

I've verified that the build system produces the same amount of files
with 'make -R -j24 -k lint build-all check'.  This was just to make sure
there are no silent regressions.

$ diff -u \
<(find ~/src/linux/man-pages/man-pages/contrib/.tmp/ -type f \
| sed s/contrib/X/ \
| sort) \
<(find ~/src/linux/man-pages/man-pages/main/.tmp/ -type f \
| sed s/main/X/ \
| sort);
--- /dev/fd/63 2025-09-11 10:44:37.386884907 +0200
+++ /dev/fd/62 2025-09-11 10:44:37.386884907 +0200
@@ -3,7 +3,7 @@
 /home/alx/src/linux/man-pages/man-pages/X/.tmp/fonts/devpdf/TinosR
 /home/alx/src/linux/man-pages/man-pages/X/.tmp/fonts/devpdf/TinosR.afm
 /home/alx/src/linux/man-pages/man-pages/X/.tmp/fonts/devpdf/download
-/home/alx/src/linux/man-pages/man-pages/X/.tmp/man-pages-6.15-85-gbd98df418.pdf
+/home/alx/src/linux/man-pages/man-pages/X/.tmp/man-pages-6.15-77-g1d0de88eb.pdf
 /home/alx/src/linux/man-pages/man-pages/X/.tmp/man/man1/diffman-git.1
 /home/alx/src/linux/man-pages/man-pages/X/.tmp/man/man1/diffman-git.1.cat
 /home/alx/src/linux/man-pages/man-pages/X/.tmp/man/man1/diffman-git.1.cat.grep

The file contents are slightly different, but that's because for some
reason groff(1) is not reproducible; I've checked some samples, and the
differences seem trivial, and unrelated to these build-system changes.
I've reported to the groff@ mailing list the lack of reproducibility of
groff(1).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Merge handling of man(7) and mdoc(7) pages
Alejandro Colomar [Wed, 10 Sep 2025 17:47:34 +0000 (19:47 +0200)] 
share/mk/: Merge handling of man(7) and mdoc(7) pages

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Fix include
Alejandro Colomar [Wed, 10 Sep 2025 19:48:33 +0000 (21:48 +0200)] 
share/mk/: Fix include

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Use $ext to simplify
Alejandro Colomar [Wed, 10 Sep 2025 16:30:43 +0000 (18:30 +0200)] 
share/mk/: Use $ext to simplify

This reduces differences between makefiles, and also makes each makefile
specify the file extension only once, which reduces mistakes.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Unify local variable names
Alejandro Colomar [Wed, 10 Sep 2025 16:14:22 +0000 (18:14 +0200)] 
share/mk/: Unify local variable names

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: Remove unused variables
Alejandro Colomar [Wed, 10 Sep 2025 15:58:40 +0000 (17:58 +0200)] 
share/mk/: Remove unused variables

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: lint, build, check: Move exceptions to separate files
Alejandro Colomar [Mon, 8 Sep 2025 23:06:54 +0000 (01:06 +0200)] 
share/mk/: lint, build, check: Move exceptions to separate files

This is so that adding or removing an exception doesn't trigger a
rebuild of the entire project.

This also makes the different files more similar, which reduces
maintenance work.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: $DOWNLOAD: Remove unused variable
Alejandro Colomar [Tue, 9 Sep 2025 21:29:38 +0000 (23:29 +0200)] 
share/mk/: $DOWNLOAD: Remove unused variable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoshare/mk/: build-*-troff: Merge targets for man(7) and mdoc(7)
Alejandro Colomar [Tue, 9 Sep 2025 20:33:15 +0000 (22:33 +0200)] 
share/mk/: build-*-troff: Merge targets for man(7) and mdoc(7)

This simplifies the Makefile by de-duplicating code, and at the same
time verifies that the autodetection of the language works well.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/: EXAMPLES: Fix includes
Alejandro Colomar [Tue, 9 Sep 2025 19:59:56 +0000 (21:59 +0200)] 
man/: EXAMPLES: Fix includes

Reported-by: iwyu(1)
Fixes: 0e7a39804a3c (2025-08-20; "man/: EXAMPLES: Use err(3) and errc(3bsd) instead of similar macros")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/: Address diagnostic about mismatched quotes
Alejandro Colomar [Sat, 23 Aug 2025 19:40:10 +0000 (21:40 +0200)] 
man/: Address diagnostic about mismatched quotes

Most of these are false positives, in the sense that a line break is
escaped, and the matching quote is in the next source line.

However, let's remove those escaped line breaks, which make reading the
source more difficult.  For this, rename some parameters to be shorter,
and allow some lines to go slightly past the 80-column right margin.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/cfree.3: pfix
Alejandro Colomar [Sun, 7 Sep 2025 08:06:47 +0000 (10:06 +0200)] 
man/man3/cfree.3: pfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoshare/mk/: lint-man-quote: Diagnose an unmatched quote
Alejandro Colomar [Sat, 23 Aug 2025 19:14:14 +0000 (21:14 +0200)] 
share/mk/: lint-man-quote: Diagnose an unmatched quote

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/fma.3: ERRORS: Add missing error
Alejandro Colomar [Wed, 3 Sep 2025 14:14:10 +0000 (16:14 +0200)] 
man/man3/fma.3: ERRORS: Add missing error

There's also a domain error if z is a NaN, so let's simplify wording.
See the comments in the source code, which remind that POSIX doesn't
mandate some of this, so this is GNU-specific.

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Suggested-by: Adam Sampson <ats@offog.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/readv.2: Document RWF_DONTCACHE
Alejandro Colomar [Mon, 1 Sep 2025 14:14:09 +0000 (16:14 +0200)] 
man/man2/readv.2: Document RWF_DONTCACHE

Add a description of the RWF_DONTCACHE IO flag, which tells the kernel
that any page cache instantiated by this IO, should be dropped when the
operation has completed.

Reported-by: Christoph Hellwig <hch@infradead.org>
Cc: "Darrick J. Wong" <djwong@kernel.org>
Cc: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Cc: linux-fsdevel@vger.kernel.org
Co-authored-by: Jens Axboe <axboe@kernel.dk>
[alx: editorial improvements; srcfix, ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/login.3: ffix
Alejandro Colomar [Mon, 1 Sep 2025 14:08:11 +0000 (16:08 +0200)] 
man/man3/login.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/sched_rr_get_interval.2: ffix
Alejandro Colomar [Mon, 1 Sep 2025 13:41:58 +0000 (15:41 +0200)] 
man/man2/sched_rr_get_interval.2: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/stdin.3: tfix
Alejandro Colomar [Mon, 1 Sep 2025 13:40:45 +0000 (15:40 +0200)] 
man/man3/stdin.3: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/shmget.2: Fix broken references to proc_sys_vm(5)
Alejandro Colomar [Mon, 1 Sep 2025 13:35:33 +0000 (15:35 +0200)] 
man/man2/shmget.2: Fix broken references to proc_sys_vm(5)

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/syscalls.2: tfix
Alejandro Colomar [Mon, 1 Sep 2025 08:09:35 +0000 (10:09 +0200)] 
man/man2/syscalls.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/: ffix
Alejandro Colomar [Mon, 1 Sep 2025 08:03:59 +0000 (10:03 +0200)] 
man/: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/: ffix
Alejandro Colomar [Mon, 1 Sep 2025 07:54:02 +0000 (09:54 +0200)] 
man/: ffix

Fixes: a82917ada050 (2025-03-30; "man/: srcfix (\fX => \f[X])")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/gethostbyname.3: Fix reference to function parameter
Alejandro Colomar [Sun, 31 Aug 2025 16:45:50 +0000 (18:45 +0200)] 
man/man3/gethostbyname.3: Fix reference to function parameter

Fixes: d180b72135ab (2024-12-24; "man/man3/: Don't use 'length' to refer to buffer size")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/ioctl_pipe.2: grfix
Alejandro Colomar [Sun, 31 Aug 2025 16:29:31 +0000 (18:29 +0200)] 
man/man2/ioctl_pipe.2: grfix

Be consistent with the lowercase used elsewhere in the document.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/gnu_get_libc_version.3: grfix
Alejandro Colomar [Sun, 31 Aug 2025 16:26:56 +0000 (18:26 +0200)] 
man/man3/gnu_get_libc_version.3: grfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man3/malloc.3: STANDARDS: wfix
Alejandro Colomar [Sun, 31 Aug 2025 12:07:03 +0000 (14:07 +0200)] 
man/man3/malloc.3: STANDARDS: wfix

Suggested-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/listmount.2: ERRORS: Clarify EPERM
Alejandro Colomar [Sun, 31 Aug 2025 11:41:12 +0000 (13:41 +0200)] 
man/man2/listmount.2: ERRORS: Clarify EPERM

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2const/PR_[GS]ET_ENDIAN.2const: tfix (s/endian-ness/endianness/)
Alejandro Colomar [Sun, 31 Aug 2025 11:30:00 +0000 (13:30 +0200)] 
man/man2const/PR_[GS]ET_ENDIAN.2const: tfix (s/endian-ness/endianness/)

There's a mix of uses of both spellings.  Unify on the latter.

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man7/man-pages.7: Document formatting of foward declarations of function parameters
Alejandro Colomar [Sun, 31 Aug 2025 09:36:15 +0000 (11:36 +0200)] 
man/man7/man-pages.7: Document formatting of foward declarations of function parameters

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2const/PR_SET_THP_DISABLE.2const: ffix
Alejandro Colomar [Sun, 31 Aug 2025 09:18:07 +0000 (11:18 +0200)] 
man/man2const/PR_SET_THP_DISABLE.2const: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Acked-by: "Carlos O'Donell" <carlos@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/mount.2: tfix (mountpoint => mount point)
Askar Safin [Tue, 26 Aug 2025 08:32:27 +0000 (08:32 +0000)] 
man/man2/mount.2: tfix (mountpoint => mount point)

Here we fix the only remaining mention of "mountpoint"
in all man pages

Signed-off-by: Askar Safin <safinaskar@zohomail.com>
Message-ID: <20250826083227.2611457-3-safinaskar@zohomail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/mount.2: Expand and clarify docs for MS_REMOUNT | MS_BIND
Askar Safin [Tue, 26 Aug 2025 08:32:26 +0000 (08:32 +0000)] 
man/man2/mount.2: Expand and clarify docs for MS_REMOUNT | MS_BIND

My edit is based on experiments and reading Linux code.

Signed-off-by: Askar Safin <safinaskar@zohomail.com>
Message-ID: <20250826083227.2611457-2-safinaskar@zohomail.com>
Reviewed-by: Aleksa Sarai <cyphar@cyphar.com>
[alx: wfix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man7/random.7: grfix
Elliott Hughes [Wed, 27 Aug 2025 18:06:29 +0000 (14:06 -0400)] 
man/man7/random.7: grfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/futex.2: Recycle two gmane URLs
Sebastian Andrzej Siewior [Fri, 29 Aug 2025 16:01:59 +0000 (18:01 +0200)] 
man/man2/futex.2: Recycle two gmane URLs

Based on the date in the comment, the here provided URLs should point to
the mails that the gmane URL no longer can.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Message-ID: <20250829160200.756194-4-bigeasy@linutronix.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/: wsfix
Alejandro Colomar [Fri, 29 Aug 2025 07:15:09 +0000 (09:15 +0200)] 
man/: wsfix

These cases were found with a script:

$ grep -rn -P '^[^. #][^:%#]*[a-z]   *[a-z][^;=%:]*$'

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman2/: Use the common name 'fd' instead of 'fildes'
Alejandro Colomar [Sun, 24 Aug 2025 20:15:33 +0000 (22:15 +0200)] 
man2/: Use the common name 'fd' instead of 'fildes'

File descriptors are commonly called 'fd'.  'fildes' is weird and
confusing.

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2const/PR_CAPBSET_DROP.2const: pfix
Alejandro Colomar [Sun, 24 Aug 2025 20:05:06 +0000 (22:05 +0200)] 
man/man2const/PR_CAPBSET_DROP.2const: pfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/open.2: wfix, ffix
Alejandro Colomar [Sun, 24 Aug 2025 20:01:09 +0000 (22:01 +0200)] 
man/man2/open.2: wfix, ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2const/PR_SET_FPEXC.2const: Format information as a list
Alejandro Colomar [Sun, 24 Aug 2025 19:55:17 +0000 (21:55 +0200)] 
man/man2const/PR_SET_FPEXC.2const: Format information as a list

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2const/PR_SET_SECUREBITS.2const: wfix
Alejandro Colomar [Sun, 24 Aug 2025 19:23:39 +0000 (21:23 +0200)] 
man/man2const/PR_SET_SECUREBITS.2const: wfix

Fixes: 2dcad3cde34e (2024-05-31; "PR_SET_SECUREBITS.2const: Tweak after split")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2const/PR_[SG]ET_TSC.2const: Fix parameter name
Alejandro Colomar [Sun, 24 Aug 2025 16:17:08 +0000 (18:17 +0200)] 
man/man2const/PR_[SG]ET_TSC.2const: Fix parameter name

Fixes: 6cb4a1f5f444 (2024-05-31; "PR_SET_TSC.2const: Tweak after split")
Fixes: cd74efc37571 (2024-05-31; "PR_GET_TSC.2const: Tweak after split")
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/pthread_mutexattr_getpshared.3: ffix
Alejandro Colomar [Sun, 24 Aug 2025 16:14:14 +0000 (18:14 +0200)] 
man/man3/pthread_mutexattr_getpshared.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/random_r.3: pfix
Alejandro Colomar [Sun, 24 Aug 2025 16:08:02 +0000 (18:08 +0200)] 
man/man3/random_r.3: pfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/environ.7: srcfix
Alejandro Colomar [Sat, 23 Aug 2025 18:46:07 +0000 (20:46 +0200)] 
man/man7/environ.7: srcfix

Fixes: a82917ada050 (2025-03-30; "man/: srcfix (\fX => \f[X])")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoshare/mk/: lint-man-ws: Diagnose spurious use of white space
Alejandro Colomar [Sat, 23 Aug 2025 18:41:35 +0000 (20:41 +0200)] 
share/mk/: lint-man-ws: Diagnose spurious use of white space

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man5/proc_pid_map_files.5: Remove SELinux indicator in examples
Alejandro Colomar [Sat, 23 Aug 2025 13:51:46 +0000 (15:51 +0200)] 
man/man5/proc_pid_map_files.5: Remove SELinux indicator in examples

I don't see that dot in my system.  Let's remove it, as it might
distract the reader.

$ sudo ls -l /proc/self/map_files/ | head -n3
total 0
lr-------- 1 root root 64 Aug 23 15:51 555ad39d6000-555ad39da000 -> /usr/bin/ls
lr-------- 1 root root 64 Aug 23 15:51 555ad39da000-555ad39f1000 -> /usr/bin/ls

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man4/console_codes.4: tfix
Alejandro Colomar [Sat, 23 Aug 2025 13:21:22 +0000 (15:21 +0200)] 
man/man4/console_codes.4: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/inode.7: srcfix
Alejandro Colomar [Sat, 16 Aug 2025 16:13:24 +0000 (18:13 +0200)] 
man/man7/inode.7: srcfix

Reported-by: `make lint-man-blank`
Cc: "G. Branden Robinson" <branden@debian.org>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoshare/mk/: lint-man-blank: Add target to lint about blank lines
Alejandro Colomar [Tue, 12 Aug 2025 09:09:48 +0000 (11:09 +0200)] 
share/mk/: lint-man-blank: Add target to lint about blank lines

groff's CHECKSTYLE already warns about this, but it's imperfect, and it
doesn't work with mdoc(7).  This linter is simpler, and works better.

Suggested-by: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/man-pages.7: ffix
Alejandro Colomar [Sat, 23 Aug 2025 09:12:59 +0000 (11:12 +0200)] 
man/man7/man-pages.7: ffix

Prevent splitting 'uname -m', and use italics instead of quotes.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/: ffix
Alejandro Colomar [Fri, 22 Aug 2025 19:53:15 +0000 (21:53 +0200)] 
man/: ffix

On Fri, Aug 22, 2025 at 05:09:42PM +0200, Ingo Schwarze wrote:
> >     .TS
> >     l l l
> >     ---
>
> That's terrible style.
>
> Using "-" in the tbl(7) layout only makes sense when the same layout
> line also contains at least one cell that receives data.
>
> A horizontal line that extends across the table as a whole
> should *not* get its own layout line but can be specified purely
> in the data section of the table.  That's not only more robust,
> but also results in source code that is easier to read and maintain.
>
> The above is not just convention, but also makes sense logically
> and is related to the root cause of your earlier blank line woes.
> A table line that receives no data should not be specified in the
> layout because every layout line requires at least one data line,
> so a layout line receiving no data is an oxymoron, and that logical
> contradiction is precisely what causes the issue of needing a
> blank line in the first place.
>
> Note that in a layout line that only contains "-" for *some* cells,
> while at leat one cell receives data, the problem does not occur
> because the coressponding data line(s) do contain actual data
> for at least one cell, so they are not blank.

Reported-by: Ingo Schwarze <schwarze@openbsd.org>
Suggested-by: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/man-pages.7: ffix
Alejandro Colomar [Fri, 22 Aug 2025 19:38:16 +0000 (21:38 +0200)] 
man/man7/man-pages.7: ffix

This table format specification was bogus.  It specified 4 columns, but
we were only using 3.  Due to the commit in which that was introduced,
I suspect it was just a typo that went unnoticed.

Fixes: 0ab815e900ce (2021-01-06; "man-pages.7: ffix: don't fill text in tables")
Reported-by: Ingo Schwarze <schwarze@openbsd.org>
Suggested-by: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/syscalls.2: Remove pread and pwrite from list of arch-specific syscalls
Askar Safin [Tue, 19 Aug 2025 16:10:00 +0000 (16:10 +0000)] 
man/man2/syscalls.2: Remove pread and pwrite from list of arch-specific syscalls

Current version says that pread(2) and pwrite(2) only ever existed in
avr32 and blackfin archs, which were removed from kernel.
This is not true.  pread(2) and pwrite(2) are present in modern Linux
for all archs.  They were merely renamed to pread64(2) and pwrite64(2)
in Linux 2.6, as explained in big table in this manual page.

Signed-off-by: Askar Safin <safinaskar@zohomail.com>
Message-ID: <20250819161000.768159-3-safinaskar@zohomail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoshare/mk/: lint-man-tbl: Show target name in diagnostics
Alejandro Colomar [Wed, 20 Aug 2025 11:06:41 +0000 (13:06 +0200)] 
share/mk/: lint-man-tbl: Show target name in diagnostics

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/mremap.2: Describe previously undocumented shrink behaviour
Lorenzo Stoakes [Mon, 11 Aug 2025 14:59:39 +0000 (15:59 +0100)] 
man/man2/mremap.2: Describe previously undocumented shrink behaviour

There is pre-existing logic that appears to be undocumented for an
mremap() shrink operation, where it turns out that the usual 'input
range must span a single mapping' requirement no longer applies.

In fact, it turns out that the input range specified by [old_address,
old_address + old_size) may span any number of mappings.

If shrinking in-place (that is, neither the MREMAP_FIXED nor
MREMAP_DONTUNMAP flags are specified), then the new span may also span
any number of VMAs - [old_address, old_address + new_size).

If shrinking and moving, the range specified by [old_address,
old_address + new_size) must span a single VMA.

There must be at least one VMA contained within the [old_address,
old_address + old_size) range, and old_address must be within the range
of a VMA.

Explicitly document this.

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Message-ID: <ab2264d8c29d103d400c028f0417cada002ffc11.1754924278.git.lorenzo.stoakes@oracle.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of array...
Alejandro Colomar [Tue, 19 Aug 2025 16:24:01 +0000 (18:24 +0200)] 
man/man2/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of array parameters

Fixes: d2c2db8830f8 (2025-03-14; "man/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of array parameters")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/: EXAMPLES: Use err(3) and errc(3bsd) instead of similar macros
Alejandro Colomar [Tue, 19 Aug 2025 15:48:50 +0000 (17:48 +0200)] 
man/: EXAMPLES: Use err(3) and errc(3bsd) instead of similar macros

These functions are quite portable.  And if one doesn't have them for
some reason (but libbsd has been ported to many systems), one can write
them easily as macros, anyway.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strftime.3: EXAMPLES: Validate number of arguments
Dr. David Alan Gilbert [Mon, 18 Aug 2025 17:45:53 +0000 (18:45 +0100)] 
man/man3/strftime.3: EXAMPLES: Validate number of arguments

The strftime example requires a format paramter.  If you don't pass one,
it crashes.  Check for the parameter.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Message-ID: <20250818174553.70132-1-dave@treblig.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/operator.7: Add _Countof and alignof
Alejandro Colomar [Sun, 27 Jul 2025 10:57:24 +0000 (12:57 +0200)] 
man/man7/operator.7: Add _Countof and alignof

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/operator.7: Add compound literal
Alejandro Colomar [Sun, 27 Jul 2025 10:52:32 +0000 (12:52 +0200)] 
man/man7/operator.7: Add compound literal

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man7/operator.7: Add some primary expressions that look like operators
Alejandro Colomar [Sun, 27 Jul 2025 10:50:44 +0000 (12:50 +0200)] 
man/man7/operator.7: Add some primary expressions that look like operators

This allows comparing them with the precedence of operators.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/countof.3: Add page
Alejandro Colomar [Sat, 26 Jul 2025 21:03:03 +0000 (23:03 +0200)] 
man/man3/countof.3: Add page

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3550.pdf#subsubsection.0.6.5.4.5>
Link: <https://thephd.dev/the-big-array-size-survey-for-c>
Link: <https://thephd.dev/the-big-array-size-survey-for-c-results>
Link: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117025>
Link: <https://github.com/llvm/llvm-project/issues/102836>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoPR_FUTEX_HASH_GET_SLOTS.2const: Add page
Sebastian Andrzej Siewior [Tue, 19 Aug 2025 07:17:28 +0000 (09:17 +0200)] 
PR_FUTEX_HASH_GET_SLOTS.2const: Add page

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Message-ID: <20250819071728.1431543-4-bigeasy@linutronix.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2const/PR_FUTEX_HASH.2const: Update as of Linux v6.17-rc2
Sebastian Andrzej Siewior [Tue, 19 Aug 2025 07:17:26 +0000 (09:17 +0200)] 
man/man2const/PR_FUTEX_HASH.2const: Update as of Linux v6.17-rc2

The PR_FUTEX_HASH prctl interface was updated shortly before the release
of v6.16.  The changes are:
-  The functionality was disabled in v6.16 and enabled v6.17-rc1 after
   some updates address the performance concerns.
-  The "IMMUTABLE" functionality was removed.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Message-ID: <20250819071728.1431543-2-bigeasy@linutronix.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/posix_spawn.3: EXAMPLES: Validate the number of arguments
Dr. David Alan Gilbert [Mon, 18 Aug 2025 22:59:10 +0000 (23:59 +0100)] 
man/man3/posix_spawn.3: EXAMPLES: Validate the number of arguments

Make the example check for an executable name on the command line
rather than segfaulting in the child.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Message-ID: <20250818225910.101238-1-dave@treblig.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/getrusage.2: Use correct unit (KiB) for .ru_maxrss
Alex Yang [Mon, 18 Aug 2025 07:59:05 +0000 (00:59 -0700)] 
man/man2/getrusage.2: Use correct unit (KiB) for .ru_maxrss

The .ru_maxrss member was documented as using "kilobytes" as its unit.
However, the value is actually in multiples of 1024 bytes, which is
correctly referred to as "kibibytes" (KiB) according to the IEC
standard.

Message-ID: <20250818075905.40146-1-himself65@outlook.com>
Cc: Collin Funk <collin.funk1@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agosrc/bin/diffman-git: Show sections as hunk context
Alejandro Colomar [Mon, 18 Aug 2025 08:34:17 +0000 (10:34 +0200)] 
src/bin/diffman-git: Show sections as hunk context

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/syslog.2: SYNOPSIS: Remove incorrect include
Alejandro Colomar [Mon, 18 Aug 2025 06:39:51 +0000 (08:39 +0200)] 
man/man2/syslog.2: SYNOPSIS: Remove incorrect include

It doesn't provide any macros, as said later in the page.  The
programmer must either define the macros itself, or use the raw values.

Fixes: e5a173829179 (2021-06-20; "syslog.2: Use syscall(SYS_...); for raw system calls")
Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=220273>
Reported-by: Nathaniel Manista <nathaniel@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/sem_post.3: ERRORS: Clarify EOVERFLOW
Alex Tran [Mon, 18 Aug 2025 04:25:58 +0000 (21:25 -0700)] 
man/man3/sem_post.3: ERRORS: Clarify EOVERFLOW

Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=219335>
Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
Message-ID: <20250818042558.95341-1-alex.t.tran@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>