]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
40 hours agoman/man2/getdents.2: ffix master
Alejandro Colomar [Wed, 8 Apr 2026 08:17:14 +0000 (10:17 +0200)] 
man/man2/getdents.2: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 days agoman/man2/getdents.2: Document system call interface of getdents64
vursc [Mon, 6 Apr 2026 09:21:14 +0000 (09:21 +0000)] 
man/man2/getdents.2: Document system call interface of getdents64

The count argument of the getdents64 system call is assumed to not exceed
INT_MAX. The glibc function accepts a size_t and passes INT_MAX to the kernel
if count exceeds INT_MAX.

Also document the dirent64 structure in glibc.

Signed-off-by: vursc <vursc@vursc.org>
Message-ID: <20260406092113.184487-2-vursc@vursc.org>
Cc: Mark Harris <mark.hsj@gmail.com>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 days agoman/man7/hostname.7: A hostname may not end with a hyphen either
Alejandro Colomar [Mon, 6 Apr 2026 22:02:16 +0000 (00:02 +0200)] 
man/man7/hostname.7: A hostname may not end with a hyphen either

On 2026-04-06T19:19:36+0000, Neitzert, Greg A wrote:
> At the bottom of your man page you do refer in the SEE ALSO to the
> pertinent RFCs:
>
>      IETF RFC 1123 ⟨http://www.ietf.org/rfc/rfc1123.txt⟩
>      IETF RFC 1178 ⟨http://www.ietf.org/rfc/rfc1178.txt⟩
>
> RFC 1178 has some general best practices and is not really governing
> for this.  RFC 1123 however, and the RFC it refers back to, RFC-952,
> are directly on point.
>
> RFC UPDATES RFC-952 and refers to it:
>
> "The syntax of a legal Internet host name was specified in RFC-952
>       [DNS:4].  One aspect of host name syntax is hereby changed: the
>       restriction on the first character is relaxed to allow either a
>       letter or a digit.  Host software MUST support this more liberal
>       syntax.
>
>  Host software MUST handle host names of up to 63 characters and
>       SHOULD handle host names of up to 255 characters."
>
>
> Referring back to RFC-952:
>
> "1. A "name" (Net, Host, Gateway, or Domain name) is a text string up
>    to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
>    sign (-), and period (.).  Note that periods are only allowed when
>    they serve to delimit components of "domain style names". (See
>    RFC-921, "Domain Name System Implementation Schedule", for
>    background).  No blank or space characters are permitted as part of
>    a name.  No distinction is made between upper and lower case.  The
>    first character must be an alpha character.  The last character
>    must not be a minus sign or period."
>
>
> Taking RFC 952, and the updates in RFC-1123 we end up with the
> following:
> 1.  Length is now of 63 characters minimum (superceding 24).
> 2.  The first character must be an alpha (or numeric - as amended by
>     RFC 1123).
> 3.  The last character MUST NOT be a minus sign (from RFC 952 and left
>     unchanged).
>
> Therefore, to be accurate with the standard you are referring to
> (RFC 1123 and the RFC it updates 952), I believe you should have:
>
> "A hostname may not start or end with a hyphen."
>
> All of your text is in harmony with RFC 952 and RFC 1123 except for
> the issue regarding the hyphens - at least from my reading.

Reported-by: "Neitzert, Greg A" <greg.neitzert@unisys.com>
Suggested-by: "Neitzert, Greg A" <greg.neitzert@unisys.com>
Message-ID: <DM8PR07MB8854A4169C2DD8BC4DAD6ED0885DA@DM8PR07MB8854.namprd07.prod.outlook.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/landlock_create_ruleset.2: Document scoped field in struct landlock_ruleset_...
Günther Noack [Sun, 29 Mar 2026 12:48:15 +0000 (14:48 +0200)] 
man/man2/landlock_create_ruleset.2: Document scoped field in struct landlock_ruleset_attr (ABI v6)

Add the missing scoped field to the struct landlock_ruleset_attr
definition, and document it as a bitmask of scope flags.

Available since Linux 6.12 (Landlock ABI version 6).

Cc: Tahera Fahimi <fahimitahera@gmail.com>
Cc: Mickaël Salaün <mic@digikod.net>
Fixes: 5a89b5bd (2025-03-06; "man/man7/landlock.7: Document IPC scoping (Landlock ABI v6)")
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Message-ID: <20260329124815.92502-4-gnoack3000@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man2/landlock*.2: ERRORS: Reorder alphabetically
Günther Noack [Sun, 29 Mar 2026 12:48:14 +0000 (14:48 +0200)] 
man/man2/landlock*.2: ERRORS: Reorder alphabetically

Reorder lists of error codes alphabetically, in line with man-pages(7).

Cc: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Message-ID: <20260329124815.92502-3-gnoack3000@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 days agoman/man3/strptime.3: tfix
Stan Ulbrych [Mon, 30 Mar 2026 20:50:55 +0000 (22:50 +0200)] 
man/man3/strptime.3: tfix

A little patch to fix a few little issues I noticed in the doc.  I've
never contributed here before so I'm not sure if I'm doing it all
right, if not, apologies!

Message-ID: <CAEMnaZ+paJ5_Dc5FkibQSggqiR9hW7EYLtnn=wmbCz3Cb+iLVw@mail.gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 weeks agoman/man3/pthread_cond_init.3: Fix name of mutex unlock function
Christoph Erhardt [Wed, 18 Mar 2026 09:37:39 +0000 (10:37 +0100)] 
man/man3/pthread_cond_init.3: Fix name of mutex unlock function

Fixes: 31b1e42d (2023-10-03; "LinuxThreads library.")
Signed-off-by: Christoph Erhardt <fedora@sicherha.de>
Message-ID: <7245006.9J7NaK4W3v@framework>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man2/statmount.2: Fix incorrect naming of STATMOUNT_MNT_{UID,GID}MAP flags
Bhavik Sachdev [Thu, 19 Mar 2026 07:09:12 +0000 (12:39 +0530)] 
man/man2/statmount.2: Fix incorrect naming of STATMOUNT_MNT_{UID,GID}MAP flags

STATMOUNT_UIDMAP is actually STATMOUNT_MNT_UIDMAP and STATMOUNT_GIDMAP
is STATMOUNT_MNT_GIDMAP.

Fixes: 9968ead5 (2026-03-05; "man/man2/statmount.2: Document STATMOUNT_{UIDMAP,GIDMAP}")
Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <4f6135c8b84b8b291a7145a72f216e77f8cf0103.1773904035.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man2/statmount.2: Fix STATMOUNT_MNT_{UID,GID}MAP documentation
Bhavik Sachdev [Thu, 19 Mar 2026 07:09:11 +0000 (12:39 +0530)] 
man/man2/statmount.2: Fix STATMOUNT_MNT_{UID,GID}MAP documentation

In case of idmapped mounts and statmount(), three cases can occur:

1. The mount is not an idmapped mount. In this case, smbuf->mask will
   *not* have STATMOUNT_MNT_{UID,GID}MAP set.
2. The mount is an idmapped mount but *all* its mappings are *not*
   resolvable in the user namespace of the caller.
   In this case, smbuf->mask will have STATMOUNT_MNT_{UID,GID}MAP set
   but smbuf->mnt_{uid,gid}map_num will be 0.
3. The mount is an idmapped mount and *all* its mappings are resolvable
   in the user namespace of the caller.
   In this case, smbuf->mask will have STATMOUNT_MNT_{UID,GID}MAP set
   and mbuf->mnt_{uid,gid}map_num will be greater than 0.

The current documentation fails to differentiate between case 1 and 2
and incorrectly states that STATMOUNT_MNT_{UID,GID}MAP will be set for
non-idmapped mounts.

We can verify that the above is the case by looking at [1] and is made
explicitly clear by the comment in the implementation [2]. The case for
STATMOUNT_MNT_{UID,GID}MAP not being raised for a non-idmapped mount can
be verified by running this program [3].

[1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=37c4a9590e1efcae7749682239fc22a330d2d325>
[2]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/namespace.c#n5489>
[3]: <https://gist.github.com/bsach64/674264ec69e592f906b2713c9f95060b>

Fixes: 9968ead5 (2026-03-05; "man/man2/statmount.2: Document STATMOUNT_{UIDMAP,GIDMAP}")
Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <8e3b0ce5a322e253ddad52e10875ce37c9c005cd.1773904035.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man2/mmap.2: Document that MAP_GROWSDOWN doesn't affect mmap return value.
Ben Kallus [Wed, 18 Mar 2026 14:49:37 +0000 (10:49 -0400)] 
man/man2/mmap.2: Document that MAP_GROWSDOWN doesn't affect mmap return value.

The man page states that the MAP_GROWSDOWN flag causes the kernel to
return an address one page lower than the mapping created.  This is not
true; the kernel returns the base address of the mapping created, just
as it does when MAP_GROWSDOWN is not passed.  This can be confirmed by
inspecting "/proc/self/maps" after making a gd mapping, and comparing it
to the returned value from mmap.

You can confirm this by running this example program:

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>

int
main(void)
{
int   c;
void  *p;
FILE  *f;

p = mmap(NULL, 1 /* rounds up to page */,
         PROT_READ | PROT_WRITE,
         MAP_ANONYMOUS | MAP_PRIVATE | MAP_GROWSDOWN,
         -1, 0);
printf("mmap() return value: %p\n", p);
f = fopen("/proc/self/maps", "r");
while (EOF != (c = fgetc(f)))
putchar(c);

exit(EXIT_SUCCESS);
}

...and observing that the value returned from mmap is the base of a
mapping in "/proc/self/maps".

Fixes: 176b1a76 (2016-11-21; "mmap.2: Add (much) more detail on MAP_GROWSDOWN")
Signed-off-by: Ben Kallus <benjamin.p.kallus.gr@dartmouth.edu>
Message-ID: <20260318144937.2210447-1-benjamin.p.kallus.gr@dartmouth.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man5/proc_pid.5: Clarify which user namespace affects permissions
Vivian Wang [Mon, 16 Mar 2026 14:07:52 +0000 (22:07 +0800)] 
man/man5/proc_pid.5: Clarify which user namespace affects permissions

A more careful reading of fs/proc/base.c (since v4.11, as of v7.0-rc1)
reveals that it is not task->cred->user_ns that is checked, but
task->mm->user_ns, which is set during execve(2) (and copied over in
fork(2) and so on) [1], and is the correct user namespace to check for
ptrace-related purposes.  Clarify the relevant text.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfedb589252c01fa505ac9f6f2a3d5d68d707ef4

Fixes: ae636827 (2018-07-05; "proc.5: Fix description of /proc/PID/* ownership to account for user namespaces")
Signed-off-by: Vivian Wang <dramforever@live.com>
Message-ID: <OSCPR01MB134682A1A80B8C9FB71CBA64DC640A@OSCPR01MB13468.jpnprd01.prod.outlook.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoCONTRIBUTING.d/patches/trailer: Fixes: Use 8-char hashes
Alejandro Colomar [Wed, 18 Mar 2026 00:40:00 +0000 (01:40 +0100)] 
CONTRIBUTING.d/patches/trailer: Fixes: Use 8-char hashes

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man3/strcmp.3: Refer to memcmp(3) for several details
Alejandro Colomar [Mon, 16 Mar 2026 00:30:37 +0000 (01:30 +0100)] 
man/man3/strcmp.3: Refer to memcmp(3) for several details

It's unnecessary to duplicate the information here.  Let's keep a single
source of truth.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man7/tcp.7: Document effect of TCP_DEFER_ACCEPT on client socket
Ran Benita [Fri, 13 Mar 2026 09:26:12 +0000 (11:26 +0200)] 
man/man7/tcp.7: Document effect of TCP_DEFER_ACCEPT on client socket

TCP_DEFER_ACCEPT has an interesting little-known effect on client
sockets.  I don't think it's very useful but should still be documented.

See here for reference:
<https://elixir.bootlin.com/linux/v6.19.6/source/net/ipv4/tcp_input.c#L6781-L6796>

Signed-off-by: Ran Benita <ran@unusedvar.com>
Message-ID: <777621b7-d204-4476-bf98-23a703250db2@app.fastmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man5/core.5: Document the %f and %C core_pattern specifiers
Emanuele Rocca [Fri, 13 Mar 2026 19:15:54 +0000 (20:15 +0100)] 
man/man5/core.5: Document the %f and %C core_pattern specifiers

Whilst going through the relevant kernel code in fs/coredump.c,
I noticed that two core pattern specifiers supported by Linux are
missing from man5/core.5.  Document them now.

Signed-off-by: Emanuele Rocca <emanuele.rocca@arm.com>
Message-ID: <abRiap_UrhFzNxPs@NH27D9T0LF>
Acked-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Message-ID: <4718783.LvFx2qVVIh@natalenko.name>
Acked-by: Lepton Wu <ytht.net@gmail.com>
Message-ID: <CALqoU4xVdo_-W+yv7Rf77+G0wG6Dvit5dqZyhmPHpU+Qhbsm=Q@mail.gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
3 weeks agoman/man3/[v]aprintf.3: New page and link page
Alejandro Colomar [Wed, 11 Mar 2026 19:48:03 +0000 (20:48 +0100)] 
man/man3/[v]aprintf.3: New page and link page

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3750.txt>
Link: <https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=68143964a370b3a565d081d4d994aee772eaca00>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/clock_getres.2: CLOCK_TAI: Modernize leap-seconds documentation
Paul Eggert [Sat, 7 Mar 2026 20:54:53 +0000 (12:54 -0800)] 
man/man2/clock_getres.2: CLOCK_TAI: Modernize leap-seconds documentation

Give more details about CLOCK_TAI, such as its epoch, its
connection to NTP, and the past and planned future of leap seconds.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Message-ID: <d3b5a021-9299-466c-b939-c54143034e86@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/clock_getres.2: Clarify what "TAI" stands for.
Paul Eggert [Sat, 7 Mar 2026 20:54:53 +0000 (12:54 -0800)] 
man/man2/clock_getres.2: Clarify what "TAI" stands for.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Message-ID: <d3b5a021-9299-466c-b939-c54143034e86@cs.ucla.edu>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/clock_getres.2: wfix
Paul Eggert [Sat, 7 Mar 2026 20:54:53 +0000 (12:54 -0800)] 
man/man2/clock_getres.2: wfix

Tighten up the language.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Message-ID: <d3b5a021-9299-466c-b939-c54143034e86@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/clock_getres.2: Some clocks behave differently if the system is suspended
Paul Eggert [Sat, 7 Mar 2026 20:54:53 +0000 (12:54 -0800)] 
man/man2/clock_getres.2: Some clocks behave differently if the system is suspended

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Message-ID: <d3b5a021-9299-466c-b939-c54143034e86@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
4 weeks agoman/man2/clock_getres.2: Clarify when clocks are indirectly settable
Paul Eggert [Sat, 7 Mar 2026 20:54:53 +0000 (12:54 -0800)] 
man/man2/clock_getres.2: Clarify when clocks are indirectly settable

..., by setting CLOCK_REALTIME.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Message-ID: <d3b5a021-9299-466c-b939-c54143034e86@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_BY_FD
Bhavik Sachdev [Thu, 26 Feb 2026 03:10:16 +0000 (08:40 +0530)] 
man/man2/statmount.2: Document STATMOUNT_BY_FD

STATMOUNT_BY_FD introduces the ability to get information about a mount
using a fd on the mount.  This functionality is currently in linux-next
[1].

Link [1]: <https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20260126&id=d5bc4e31f2a3f301b4214858bec834c67bb2be5c>
Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <57c96336ccfbdc05f60b7875c315a8c1dd0d14b8.1771870334.git.b.sachdev1904@gmail.com>
Message-ID: <7d4b22c595feeadb3be6df8a8781344597120f7e.1771870502.git.b.sachdev1904@gmail.com>
Message-ID: <ef5a337e52f904d7eeb1e3fa82a09b04b46a4860.1772075365.git.b.sachdev1904@gmail.com>
Cc: Askar Safin <safinaskar@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document req.mnt_ns_fd
Bhavik Sachdev [Mon, 23 Feb 2026 14:10:25 +0000 (19:40 +0530)] 
man/man2/statmount.2: Document req.mnt_ns_fd

Document the new mnt_ns_fd parameter to struct mnt_id_req.

req.mnt_ns_fd can be used to query for a mount in a foreign mount
namespace.

The mnt_ns_fd parameter description is based on this commit message [1].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9020d0d844ad58a051f90b1e5b82ba34123925b9>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <6577568b31ba8700214af1696d740d3b6aa1869d.1771855135.git.b.sachdev1904@gmail.com>
Message-ID: <a250e5c44e03428b5817ee863ebe6b47977ec9ab.1771855680.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_SUPPORTED_MASK
Bhavik Sachdev [Mon, 23 Feb 2026 14:10:24 +0000 (19:40 +0530)] 
man/man2/statmount.2: Document STATMOUNT_SUPPORTED_MASK

Document STATMOUNT_SUPPORTED_MASK flag and the corresponding field
introduced by it. It is used to determine the flags supported by the
current kernel. The text is based on this commit message [1].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f6116b5b77b0536d2ad7482ee42bfe58b8fac01>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <b537e03ab73d8677a53730311b5a3c11ff29a51b.1771855135.git.b.sachdev1904@gmail.com>
Message-ID: <2bf71bae60b181c206326417047ece49f1113940.1771855680.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_{UIDMAP,GIDMAP}
Bhavik Sachdev [Mon, 23 Feb 2026 14:10:23 +0000 (19:40 +0530)] 
man/man2/statmount.2: Document STATMOUNT_{UIDMAP,GIDMAP}

Document the STATMOUNT_{UIDMAP,GIDMAP} flags and the corresponding
fields introduced by them. Most of this is based on the commit message
provided here [1].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=37c4a9590e1efcae7749682239fc22a330d2d325>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <6146fa1d59006387ad7996f28f5651787125d956.1771855135.git.b.sachdev1904@gmail.com>
Message-ID: <2c1e23c24b64c5466075dcf5d4ac1595c04b4139.1771855680.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_OPT_SEC_ARRAY
Bhavik Sachdev [Sun, 22 Feb 2026 14:45:56 +0000 (20:15 +0530)] 
man/man2/statmount.2: Document STATMOUNT_OPT_SEC_ARRAY

Document STATMOUNT_OPT_SEC_ARRAY flag and the corresponding fields
introduced by it. This text is based this commit message [1].

Retrieves only security options separated by null bytes.

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aefff51e1c2986e16f2780ca8e4c97b784800ab5>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <185c7248b4ee5dbe840904d0b0b3782b29ed6579.1771771560.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_OPT_ARRAY
Bhavik Sachdev [Sun, 22 Feb 2026 14:45:55 +0000 (20:15 +0530)] 
man/man2/statmount.2: Document STATMOUNT_OPT_ARRAY

Document STATMOUNT_OPT_ARRAY flag and the corresponding fields
introduced by it. This text is based on this commit message [1].

Retrieve only file system options, separated by null bytes. For security
opts STATMOUNT_OPT_SEC_ARRAY is used.

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2f4d4503e9e5ab765a7948f98bc5deef7850f607>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <4e925a9f871ec408d82db0124300d97200c4a778.1771771560.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_SB_SOURCE
Bhavik Sachdev [Sun, 22 Feb 2026 14:45:54 +0000 (20:15 +0530)] 
man/man2/statmount.2: Document STATMOUNT_SB_SOURCE

Document STATMOUNT_SB_SOURCE flag and the corresponding field introduced
by it. This text is based on this commit message [1].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=44010543fc8bedad172aa5b6c43480e5d2124497>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <569933a8b526b89d35e84d5f0af42c7a4711b97f.1771771560.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_FS_SUBTYPE
Bhavik Sachdev [Sun, 22 Feb 2026 14:45:53 +0000 (20:15 +0530)] 
man/man2/statmount.2: Document STATMOUNT_FS_SUBTYPE

Document STATMOUNT_FS_SUBTYPE flag and the corresponding field
introduced by it.

STATMOUNT_FS_SUBTYPE retrieves the subtype of a file system, useful for
FUSE mounts (example: fuse.sshfs, where "sshfs" is the subtype).

This work is based on this commit message [1].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed9d95f691c29748f21bc019de9566b698fdfab7>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <82e6babcdac48155cdb64c6f4b98c058e6f19060.1771771560.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document STATMOUNT_MNT_OPTS
Bhavik Sachdev [Sun, 22 Feb 2026 14:45:52 +0000 (20:15 +0530)] 
man/man2/statmount.2: Document STATMOUNT_MNT_OPTS

Document STATMOUNT_MNT_OPTS flag and the corresponding field introduced
by it.

STATMOUNT_MNT_OPTS is used to get all mount options on the mount
separated by commas. Similiar to how they are displayed in
/proc/[pid]/mountinfo.

This text is based on this commit [1].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9af549d1fd31487bbbc666b5b158cfc940ccc17>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <24ba21cad0766cf8c1666b85684eda154acce16b.1771771560.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: Document req.mnt_ns_id and STATMOUNT_MNT_NS_ID
Bhavik Sachdev [Sun, 22 Feb 2026 14:45:51 +0000 (20:15 +0530)] 
man/man2/statmount.2: Document req.mnt_ns_id and STATMOUNT_MNT_NS_ID

Document the new mnt_ns_id parameter to struct mnt_id_req and the
STATMOUNT_MNT_NS_ID flag.

req.mnt_ns_id can be used to query for a mount in a foreign mount
namespace.

STATMOUNT_MNT_NS_ID can be used to retreive the mnt_ns_id of the mount
being queried.

The mnt_ns_id parameter description is based on this commit message [1]
and STATMOUNT_MNT_NS_ID text is based on [2].

Link [1]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71aacb4c8c3d19da053363a5fe7538a8af082d56>
Link [2]:
<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09b31295f833031c88419550172703d45c5401e3>

Signed-off-by: Bhavik Sachdev <b.sachdev1904@gmail.com>
Message-ID: <c7cb4bb9b8242009c672ddfd4d6568b8a7dde189.1771771560.git.b.sachdev1904@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man2/statmount.2: wsfix
Alejandro Colomar [Sun, 22 Feb 2026 21:35:08 +0000 (22:35 +0100)] 
man/man2/statmount.2: wsfix

This is in preparation for the following commit.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
5 weeks agoman/man3/stpcpy.3: Fix UB in expression
Alejandro Colomar [Tue, 3 Mar 2026 00:41:07 +0000 (01:41 +0100)] 
man/man3/stpcpy.3: Fix UB in expression

The order of evaluation is undefined, so we must use a length that is
stable.

Reported-by: Bruno Haible <bruno@clisp.org>
Suggested-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoCONTRIBUTING.d/patches/trailer: Don't specify the hash length
Alejandro Colomar [Thu, 26 Feb 2026 16:38:26 +0000 (17:38 +0100)] 
CONTRIBUTING.d/patches/trailer: Don't specify the hash length

We document the exact length in <CONTRIBUTING.d/git>.

Fixes: a8aa0eaf (2026-02-08; "CONTRIBUTING.d/: Document format of 'Fixes:' trailer fields")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoCONTRIBUTING.d/git: core.abbrev: Use only 8 characters
Alejandro Colomar [Thu, 26 Feb 2026 00:58:50 +0000 (01:58 +0100)] 
CONTRIBUTING.d/git: core.abbrev: Use only 8 characters

8 characters is enough for showing most commits unambiguously.

12 would be necessary if we didn't have the date.  However, the date can
be used to disambiguate a commit better than a longer hash.  Let's cut
some characters to make commit references more readable.

Fixes: a8aa0eaf (2026-02-08; "CONTRIBUTING.d/: Document format of 'Fixes:' trailer fields")
Fixes: e9fa66a0 (2026-02-08; "CONTRIBUTING.d/git: core.abbrev: Set to 12")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/: Document how string functions relate to each other
Alejandro Colomar [Wed, 25 Feb 2026 22:28:50 +0000 (23:28 +0100)] 
man/man3/: Document how string functions relate to each other

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strcpy.3: Compare str{cpy,cat}(3) to stpcpy(3)
Alejandro Colomar [Wed, 25 Feb 2026 22:15:14 +0000 (23:15 +0100)] 
man/man3/strcpy.3: Compare str{cpy,cat}(3) to stpcpy(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/stpcpy.3: Compare stpcpy(3) to strcpy(3)
Alejandro Colomar [Wed, 25 Feb 2026 22:13:00 +0000 (23:13 +0100)] 
man/man3/stpcpy.3: Compare stpcpy(3) to strcpy(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/stpcpy.3: Compare stpcpy(3) to other string functions
Alejandro Colomar [Wed, 25 Feb 2026 22:11:25 +0000 (23:11 +0100)] 
man/man3/stpcpy.3: Compare stpcpy(3) to other string functions

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/streq.3: Compare streq(3) to strcmp(3)
Alejandro Colomar [Wed, 25 Feb 2026 21:50:28 +0000 (22:50 +0100)] 
man/man3/streq.3: Compare streq(3) to strcmp(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strlen.3: Compare strlen(3) to strnul(3)
Alejandro Colomar [Wed, 25 Feb 2026 21:48:31 +0000 (22:48 +0100)] 
man/man3/strlen.3: Compare strlen(3) to strnul(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strncat.3: Compare strncat(3) to other string functions
Alejandro Colomar [Wed, 25 Feb 2026 21:28:20 +0000 (22:28 +0100)] 
man/man3/strncat.3: Compare strncat(3) to other string functions

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strcmp.3: Compare str[n]cmp(3) to memcmp(3)
Alejandro Colomar [Wed, 25 Feb 2026 21:20:36 +0000 (22:20 +0100)] 
man/man3/strcmp.3: Compare str[n]cmp(3) to memcmp(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/stpncpy.3: Compare st[rp]ncpy(3) to other string functions
Alejandro Colomar [Wed, 25 Feb 2026 20:58:27 +0000 (21:58 +0100)] 
man/man3/stpncpy.3: Compare st[rp]ncpy(3) to other string functions

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strdupa.3: Compare str[n]dupa(3) to other functions
Alejandro Colomar [Wed, 25 Feb 2026 20:47:44 +0000 (21:47 +0100)] 
man/man3/strdupa.3: Compare str[n]dupa(3) to other functions

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strnlen.3: Compare strnlen(3) to memchr(3)
Alejandro Colomar [Wed, 25 Feb 2026 19:43:06 +0000 (20:43 +0100)] 
man/man3/strnlen.3: Compare strnlen(3) to memchr(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strspn.3: Compare strcspn(3) to strpbrk(3)
Alejandro Colomar [Wed, 25 Feb 2026 19:28:41 +0000 (20:28 +0100)] 
man/man3/strspn.3: Compare strcspn(3) to strpbrk(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strstr.3: Compare strstr(3) to memmem(3)
Alejandro Colomar [Wed, 25 Feb 2026 19:13:35 +0000 (20:13 +0100)] 
man/man3/strstr.3: Compare strstr(3) to memmem(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchr.3: Compate strchr(3) to strpbrk(3)
Alejandro Colomar [Wed, 25 Feb 2026 19:36:59 +0000 (20:36 +0100)] 
man/man3/strchr.3: Compate strchr(3) to strpbrk(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchr.3: Compare str[r]chr(3) to mem[r]chr(3)
Alejandro Colomar [Wed, 25 Feb 2026 17:35:40 +0000 (18:35 +0100)] 
man/man3/strchr.3: Compare str[r]chr(3) to mem[r]chr(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strnul.3: Compare strnul(3) to strlen(3) and strchr(3)
Alejandro Colomar [Wed, 25 Feb 2026 17:16:12 +0000 (18:16 +0100)] 
man/man3/strnul.3: Compare strnul(3) to strlen(3) and strchr(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchrnul.3: Compare strchrnul(3) to strcspn(3)
Alejandro Colomar [Wed, 25 Feb 2026 19:21:44 +0000 (20:21 +0100)] 
man/man3/strchrnul.3: Compare strchrnul(3) to strcspn(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchrnul.3: Compare strchrnul(3) to strchr(3) and strnul(3)
Alejandro Colomar [Wed, 25 Feb 2026 17:11:30 +0000 (18:11 +0100)] 
man/man3/strchrnul.3: Compare strchrnul(3) to strchr(3) and strnul(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchr.3: Remove obvious paragraph
Alejandro Colomar [Wed, 25 Feb 2026 20:08:28 +0000 (21:08 +0100)] 
man/man3/strchr.3: Remove obvious paragraph

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchrnul.3: RETURN VALUE: Remove parenthetical
Alejandro Colomar [Wed, 25 Feb 2026 20:06:33 +0000 (21:06 +0100)] 
man/man3/strchrnul.3: RETURN VALUE: Remove parenthetical

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/str*.3: ffix, wfix
Alejandro Colomar [Wed, 25 Feb 2026 20:05:44 +0000 (21:05 +0100)] 
man/man3/str*.3: ffix, wfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/st[rp]cpy.3: Split stpcpy(3) to a separate page
Alejandro Colomar [Wed, 25 Feb 2026 22:07:09 +0000 (23:07 +0100)] 
man/man3/st[rp]cpy.3: Split stpcpy(3) to a separate page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/str[n]dup[a].3: Split str[n]dupa(3) to a separate page
Alejandro Colomar [Wed, 25 Feb 2026 19:54:11 +0000 (20:54 +0100)] 
man/man3/str[n]dup[a].3: Split str[n]dupa(3) to a separate page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strtok{,_r}.3: Split strtok_r(3) to a separate page
Alejandro Colomar [Wed, 25 Feb 2026 19:02:37 +0000 (20:02 +0100)] 
man/man3/strtok{,_r}.3: Split strtok_r(3) to a separate page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/{raw,}memchr.3: Split rawmemchr(3) to a separate page
Alejandro Colomar [Wed, 25 Feb 2026 17:24:48 +0000 (18:24 +0100)] 
man/man3/{raw,}memchr.3: Split rawmemchr(3) to a separate page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strchr{,nul}.3: Split strchrnul(3) to a separate page
Alejandro Colomar [Wed, 25 Feb 2026 16:58:50 +0000 (17:58 +0100)] 
man/man3/strchr{,nul}.3: Split strchrnul(3) to a separate page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/str{sep,tok}.3: CAVEATS: Remove obvious statements
Alejandro Colomar [Wed, 25 Feb 2026 18:44:50 +0000 (19:44 +0100)] 
man/man3/str{sep,tok}.3: CAVEATS: Remove obvious statements

These are obvious from the fact that the first argument is non-const.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strtok.3: Rename BUGS => CAVEATS
Alejandro Colomar [Wed, 25 Feb 2026 18:47:29 +0000 (19:47 +0100)] 
man/man3/strtok.3: Rename BUGS => CAVEATS

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/string.3: Move text from SYNOPSIS to DESCRIPTION
Alejandro Colomar [Wed, 25 Feb 2026 18:27:54 +0000 (19:27 +0100)] 
man/man3/string.3: Move text from SYNOPSIS to DESCRIPTION

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/string.3: Remove index(3) and rindex(3)
Alejandro Colomar [Wed, 25 Feb 2026 18:25:16 +0000 (19:25 +0100)] 
man/man3/string.3: Remove index(3) and rindex(3)

They're deprecated; their own manual page is enough.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoCONTRIBUTING.d/style/c: Split subsections
Alejandro Colomar [Wed, 25 Feb 2026 15:50:12 +0000 (16:50 +0100)] 
CONTRIBUTING.d/style/c: Split subsections

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoCONTRIBUTING.d/style/c: Add 'Alignment' subsection
Alejandro Colomar [Wed, 25 Feb 2026 11:46:24 +0000 (12:46 +0100)] 
CONTRIBUTING.d/style/c: Add 'Alignment' subsection

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoCONTRIBUTING.d/style/c: Use tabs for indentation
Alejandro Colomar [Wed, 25 Feb 2026 11:39:36 +0000 (12:39 +0100)] 
CONTRIBUTING.d/style/c: Use tabs for indentation

I'm going to eventually convert everything to tabs.  It's simpler, and
it allows me to paste code directly to the examples.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoetc/shellcheck/shellcheckrc, share/mk/: Move exception to shellcheckrc
Alejandro Colomar [Tue, 24 Feb 2026 13:33:53 +0000 (14:33 +0100)] 
etc/shellcheck/shellcheckrc, share/mk/: Move exception to shellcheckrc

Fixes: 78488ed5ccbb (2025-11-06; "share/mk/: $SHELLCHECKFLAGS: Disable SC2028")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/s390_guarded_storage.2: HISTORY: ffix
Seth McDonald [Sun, 22 Feb 2026 10:12:15 +0000 (20:12 +1000)] 
man/man2/s390_guarded_storage.2: HISTORY: ffix

Signed-off-by: Seth McDonald <dev@sethm.id.au>
Message-ID: <464d2acd9d6246ae40849738f6b5ff6151ae9e97.1771750388.git.dev@sethm.id.au>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/readv.2: HISTORY: ffix
Seth McDonald [Sun, 22 Feb 2026 10:12:14 +0000 (20:12 +1000)] 
man/man2/readv.2: HISTORY: ffix

Signed-off-by: Seth McDonald <dev@sethm.id.au>
Message-ID: <f336517a9084b23f49da379a4d2a73f7a86c2e32.1771750388.git.dev@sethm.id.au>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/process_madvise.2: HISTORY: ffix
Seth McDonald [Sun, 22 Feb 2026 10:12:13 +0000 (20:12 +1000)] 
man/man2/process_madvise.2: HISTORY: ffix

Signed-off-by: Seth McDonald <dev@sethm.id.au>
Message-ID: <e0ecd2307cf922ec0a7ad34d6524f0a62bfc67e0.1771750388.git.dev@sethm.id.au>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/perfmonctl.2: HISTORY: wfix
Seth McDonald [Sun, 22 Feb 2026 10:12:12 +0000 (20:12 +1000)] 
man/man2/perfmonctl.2: HISTORY: wfix

Signed-off-by: Seth McDonald <dev@sethm.id.au>
Message-ID: <5be05e964e1443e036e18acbb8c497052d524259.1771750388.git.dev@sethm.id.au>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man2/open_tree.2: HISTORY: ffix
Seth McDonald [Sun, 22 Feb 2026 10:12:11 +0000 (20:12 +1000)] 
man/man2/open_tree.2: HISTORY: ffix

Signed-off-by: Seth McDonald <dev@sethm.id.au>
Message-ID: <3b27c0e095e33180f26181043f64f1a52a6066e8.1771750388.git.dev@sethm.id.au>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/: Use strnul(3) where suitable
Alejandro Colomar [Sun, 22 Feb 2026 16:31:59 +0000 (17:31 +0100)] 
man/man3/: Use strnul(3) where suitable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/: Use streq(3) where suitable
Alejandro Colomar [Sun, 22 Feb 2026 16:17:56 +0000 (17:17 +0100)] 
man/: Use streq(3) where suitable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strnul.3: SYNOPSIS: Document that it's a const-generic API
Alejandro Colomar [Sun, 22 Feb 2026 13:34:36 +0000 (14:34 +0100)] 
man/man3/strnul.3: SYNOPSIS: Document that it's a const-generic API

Document it as two overloads (C++-style).

Reported-by: Paul Eggert <eggert@cs.ucla.edu>
Suggested-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
6 weeks agoman/man3/strnul.3: New page
Alejandro Colomar [Sat, 21 Feb 2026 15:00:25 +0000 (16:00 +0100)] 
man/man3/strnul.3: New page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/man2/futex_waitv.2: Move text from ERRORS to DESCRIPTION
Alejandro Colomar [Wed, 18 Feb 2026 22:05:18 +0000 (23:05 +0100)] 
man/man2/futex_waitv.2: Move text from ERRORS to DESCRIPTION

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/man2/futex_waitv.2: NOTES: Remove section
Alejandro Colomar [Wed, 18 Feb 2026 21:57:58 +0000 (22:57 +0100)] 
man/man2/futex_waitv.2: NOTES: Remove section

The previous commit made it redundant; I forgot to remove it then.

Fixes: eb7620b01fce (2026-02-18; "man/man2/futex_waitv.2: Move text from ERRORS to DESCRIPTION")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/man2/futex_waitv.2: Move text from ERRORS to DESCRIPTION
Alejandro Colomar [Wed, 18 Feb 2026 21:23:12 +0000 (22:23 +0100)] 
man/man2/futex_waitv.2: Move text from ERRORS to DESCRIPTION

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoshare/mk/: $CLANG_CFLAGS: -Wno-pre-c11-compat, -Wno-atomic-implicit-seq-cst
Alejandro Colomar [Tue, 17 Feb 2026 15:41:31 +0000 (16:41 +0100)] 
share/mk/: $CLANG_CFLAGS: -Wno-pre-c11-compat, -Wno-atomic-implicit-seq-cst

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/man2/futex_waitv.2: New page
наб [Tue, 17 Feb 2026 14:31:29 +0000 (15:31 +0100)] 
man/man2/futex_waitv.2: New page

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Message-ID: <y2tytznhy5c6grvzvtw7px3a3qmj2u7evwaax4qzc2lf44sawd@tarta.nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/man2/mincore.2: HISTORY: Update appearances of mincore(2)
Seth McDonald [Mon, 16 Feb 2026 11:45:30 +0000 (21:45 +1000)] 
man/man2/mincore.2: HISTORY: Update appearances of mincore(2)

mincore(2) was implemented in FreeBSD on 1995-10-21,[1] and was first
included in the FreeBSD 2.2 release on 1997-03.[2]

It was implemented in NetBSD on 1999-06-15,[3] and was first included in
the NetBSD 1.5 release on 2000-12-06,[4] (despite the commit message
stating its intended inclusion in NetBSD 1.4.1).

It was implemented in OpenBSD on 2001-03-09,[5] and was first included
in the OpenBSD 2.9 release on 2001-06-01.[6]

All other listed systems are taken at face value and rearranged in
chronological-ish order.

[1] Dyson, John (21 Oct 1995).  "Implement mincore system call."
FreeBSD source tree (Git repository).  Commit
02c04a2f6c83ee28ed637d120296d04da8f03372.
[2] The FreeBSD Project (29 Nov 2025).  "Prior Releases – EOL".
<https://www.freebsd.org/releases>
[3] Thorpe, Jason (15 Jun 1999).  "Several changes, developed and tested
concurrently:".  NetBSD src (CVS repository).
<https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/uvm/uvm_mmap.c?rev=1.22>
[4] The NetBSD Foundation (2026).  "History of NetBSD releases".
<https://www.netbsd.org/releases/formal.html>
[5] art (9 Mar 2001).  "More syncing to NetBSD."  OpenBSD src (CVS
repository).
<https://cvsweb.openbsd.org/src/sys/uvm/uvm_mmap.c?rev=1.7&content-type=text/x-cvsweb-markup>
[6] de Raadt, Theo (1 Jun 2001).  "OpenBSD 2.9".
<https://www.openbsd.org/29.html>

Signed-off-by: Seth McDonald <dev@sethm.id.au>
Message-ID: <b1b6f011a7d36cda53abe8c561da44bff08d381b.1771232583.git.dev@sethm.id.au>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/: Document and use wN length modifier for printf(3) and scanf(3)
Alejandro Colomar [Sun, 15 Feb 2026 23:59:20 +0000 (00:59 +0100)] 
man/: Document and use wN length modifier for printf(3) and scanf(3)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 weeks agoman/: EXAMPLES: Use consistent syntax for forever loops
Alejandro Colomar [Sat, 14 Feb 2026 19:43:35 +0000 (20:43 +0100)] 
man/: EXAMPLES: Use consistent syntax for forever loops

'for (;;)' is the most common spelling:

$ grep -rn 'while (true)' man/
$ grep -rn 'while (1)' man/ | wc -l
6
$ grep -rn 'for (;;)' man/ | wc -l
23

I also personally happen to like it most, mentally reading it as
'for ever'.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoStart of man-pages-NEXT: Move Changes to Changes.old
Alejandro Colomar [Wed, 11 Feb 2026 18:03:41 +0000 (19:03 +0100)] 
Start of man-pages-NEXT: Move Changes to Changes.old

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks ago*/: Say GNU+Linux instead of GNU/Linux
Alejandro Colomar [Wed, 11 Feb 2026 17:04:15 +0000 (18:04 +0100)] 
*/: Say GNU+Linux instead of GNU/Linux

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agolsm: Released 6.17
Alejandro Colomar [Wed, 11 Feb 2026 17:00:56 +0000 (18:00 +0100)] 
lsm: Released 6.17

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoChanges: Ready for 6.17 man-pages-6.17
Alejandro Colomar [Wed, 11 Feb 2026 16:47:02 +0000 (17:47 +0100)] 
Changes: Ready for 6.17

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoREADME.d/deps: Document gpg/gpg
Alejandro Colomar [Wed, 11 Feb 2026 13:57:35 +0000 (14:57 +0100)] 
README.d/deps: Document gpg/gpg

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/: HISTORY, STANDARDS: Update history of syscalls H-M
Alejandro Colomar [Wed, 11 Feb 2026 00:00:15 +0000 (01:00 +0100)] 
man/man2/: HISTORY, STANDARDS: Update history of syscalls H-M

On 2026-01-26T12:28:10+0000, Seth McDonald wrote:
> This set updates the history of system calls H to M.
>
> While I have been thorough with my research, I would encourage those
> interested to double-check that my edits make sense given the listed
> sources.  Particularly for linkat(2), SEEK_DATA/SEEK_HOLE, mkdirat(2),
> and mincore(2), since they took significantly more time and research
> than other functions.

Co-authored-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <cover.1769429341.git.sethmcmail@pm.me>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/msync.2: HISTORY: Update POSIX appearances of msync(2)
Seth McDonald [Mon, 26 Jan 2026 12:30:25 +0000 (12:30 +0000)] 
man/man2/msync.2: HISTORY: Update POSIX appearances of msync(2)

msync(2) appeared in SUSv1.[1]  The function was then added to
POSIX.1-1996.[2]

[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", pp. 412-413.
[2] ISO/IEC 9945-1:1996, Section 12.2.4 "Memory Object Synchronization".

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <d106bca86ec14c722b31febfaae0bdea6afbd8b2.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/msgop.2: STANDARDS, HISTORY: Update POSIX appearances of msg{rcv,snd}(2)
Seth McDonald [Mon, 26 Jan 2026 12:30:21 +0000 (12:30 +0000)] 
man/man2/msgop.2: STANDARDS, HISTORY: Update POSIX appearances of msg{rcv,snd}(2)

msgrcv(2) and msgsnd(2) appeared in SUSv1.[1]  The functions were added
to POSIX.1-2001 when POSIX and SUS merged, but as an XSI extension
(still SUS-only).[2][3]  And they remain as an XSI extension in
POSIX.1-2024.[4][5]

[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", pp. 408-411.
[2] IEEE Std 1003.1-2001, Volume 2, Chapter 3 "System Interfaces", pp.
806-808.
<https://pubs.opengroup.org/onlinepubs/009604499/functions/msgrcv.html>
[3] IEEE Std 1003.1-2001, Volume 2, Chapter 3 "System Interfaces", pp.
809-811.
<https://pubs.opengroup.org/onlinepubs/009604499/functions/msgsnd.html>
[4] IEEE Std 1003.1-2024, Volume 2, Chapter 3 "System Interfaces", pp.
1475-1477.
<https://pubs.opengroup.org/onlinepubs/9799919799/functions/msgrcv.html>
[5] IEEE Std 1003.1-2024, Volume 2, Chapter 3 "System Interfaces", pp.
1478-1480.
<https://pubs.opengroup.org/onlinepubs/9799919799/functions/msgsnd.html>

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <86e7c24b14286fe05108c623d61d93106f9c9209.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/msgget.2: STANDARDS, HISTORY: Update POSIX appearances of msgget(2)
Seth McDonald [Mon, 26 Jan 2026 12:30:16 +0000 (12:30 +0000)] 
man/man2/msgget.2: STANDARDS, HISTORY: Update POSIX appearances of msgget(2)

msgget(2) appeared in SUSv1.[1]  The function was added to POSIX.1-2001
when POSIX and SUS merged, but as an XSI extension (still SUS-only).[2]
And it remains an XSI extension in POSIX.1-2024.[3]

[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", pp. 406-407.
[2] IEEE Std 1003.1-2001, Volume 2, Chapter 3 "System Interfaces", pp.
804-805.
<https://pubs.opengroup.org/onlinepubs/009604499/functions/msgget.html>
[3] IEEE Std 1003.1-2024, Volume 2, Chapter 3 "System Interfaces", pp.
1473-1474.
<https://pubs.opengroup.org/onlinepubs/9799919799/functions/msgget.html>

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <975e61bea29f1b03d0d95fa9ea707938ee32c4f0.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/msgctl.2: STANDARDS, HISTORY: Update POSIX appearances of msgctl(2)
Seth McDonald [Mon, 26 Jan 2026 12:30:11 +0000 (12:30 +0000)] 
man/man2/msgctl.2: STANDARDS, HISTORY: Update POSIX appearances of msgctl(2)

msgctl(2) appeared in SUSv1.[1]  The function was added to POSIX.1-2001
when POSIX and SUS merged, but as an XSI extension (still SUS-only).[2]
And it remains an XSI extension in POSIX.1-2024.[3]

[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", pp. 404-405.
[2] IEEE Std 1003.1-2001, Volume 2, Chapter 3 "System Interfaces", pp.
802-803.
<https://pubs.opengroup.org/onlinepubs/009604499/functions/msgctl.html>
[3] IEEE Std 1003.1-2024, Volume 2, Chapter 3 "System Interfaces", pp.
1471-1472.
<https://pubs.opengroup.org/onlinepubs/9799919799/functions/msgctl.html>

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <024ce32c9da51aa6da991b55ffcc3d72a9aaaa55.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/mprotect.2: HISTORY: Update POSIX appearances of mprotect(2)
Seth McDonald [Mon, 26 Jan 2026 12:30:07 +0000 (12:30 +0000)] 
man/man2/mprotect.2: HISTORY: Update POSIX appearances of mprotect(2)

mprotect(2) appeared in SUSv1.[1]  The function was then added to
POSIX.1-1996.[2]

[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", p. 402.
[2] ISO/IEC 9945-1:1996, Section 12.2.3 "Change Memory Protection".

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <4e1acc0f5e001c3b51af8750f61d25387154e750.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/{mount_setattr,move_mount}.2: HISTORY: ffix
Seth McDonald [Mon, 26 Jan 2026 12:30:01 +0000 (12:30 +0000)] 
man/man2/{mount_setattr,move_mount}.2: HISTORY: ffix

Commas are more consistent with other man pages.

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <b8f4e6fa54e7ebb38fb933438982347aa101b1bb.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/mmap.2: HISTORY: Update POSIX appearances of m(un)map(2)
Seth McDonald [Mon, 26 Jan 2026 12:29:56 +0000 (12:29 +0000)] 
man/man2/mmap.2: HISTORY: Update POSIX appearances of m(un)map(2)

mmap(2) and munmap(2) appeared in SUSv1.[1]  The functions were then
added to POSIX.1-1996.[2][3]

[1] X/Open CAE Specification, System Interfaces and Headers Issue 4,
Version 2, Chapter 3 "System Interfaces", pp. 398-400, 414.
[2] ISO/IEC 9945-1:1996, Section 12.2.1 "Map Process Addresses to a
Memory Object".
[3] ISO/IEC 9945-1:1996, Section 12.2.2 "Unmap Previously Mapped
Addresses".

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <57292b4f60c41b05274f5906ed0b8196cb053515.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 weeks agoman/man2/mlock.2: HISTORY: Update POSIX appearances of m(un)lock(all)(2)
Seth McDonald [Mon, 26 Jan 2026 12:29:51 +0000 (12:29 +0000)] 
man/man2/mlock.2: HISTORY: Update POSIX appearances of m(un)lock(all)(2)

mlock(2), munlock(2), mlockall(2), and munlockall(2) appeared in
POSIX.1-1996.[1][2]

[1] ISO/IEC 9945-1:1996, Section 12.1.1 "Lock/Unlock the Address Space
of a Process".
[2] ISO/IEC 9945-1:1996, Section 12.1.2 "Lock/Unlock a Range of Process
Address Space".

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <67bf0c1aa1338117e930e19dd32ebfe6bdaf8432.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>