aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2025-09-20man/man2/quotactl[_fd].2: Document quotactl_fd() syscall; add link pagetrillian2-5/+74
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>
2025-09-14man/man2/sigaction.2: pfixAlejandro Colomar1-7/+7
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-14man/man2/sigaction.2: Update si_code list with Linux v6.16Thiago Jung Bauermann1-2/+49
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>
2025-09-14share/mk/: Unify variable names for regex filesAlejandro Colomar4-22/+18
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>
2025-09-14man/man5/locale.5: wfixAlejandro Colomar1-1/+2
Reported-by: Christoph Anton Mitterer <calestyo@scientia.org> Suggested-by: Christoph Anton Mitterer <calestyo@scientia.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-14man/man5/locale.5: tfixAlejandro Colomar1-1/+1
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>
2025-09-11share/mk/: Reduce rebuilds, and simplify makefile codeAlejandro Colomar51-691/+779
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>
2025-09-11share/mk/: Merge handling of man(7) and mdoc(7) pagesAlejandro Colomar15-75/+37
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-11share/mk/: Fix includeAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-11share/mk/: Use $ext to simplifyAlejandro Colomar27-40/+106
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>
2025-09-11share/mk/: Unify local variable namesAlejandro Colomar7-48/+54
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-11share/mk/: Remove unused variablesAlejandro Colomar5-24/+10
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-10share/mk/: lint, build, check: Move exceptions to separate filesAlejandro Colomar32-507/+625
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>
2025-09-09share/mk/: $DOWNLOAD: Remove unused variableAlejandro Colomar1-2/+0
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-09share/mk/: build-*-troff: Merge targets for man(7) and mdoc(7)Alejandro Colomar8-76/+28
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>
2025-09-09man/: EXAMPLES: Fix includesAlejandro Colomar4-3/+2
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>
2025-09-07man/: Address diagnostic about mismatched quotesAlejandro Colomar40-188/+160
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>
2025-09-07man/man3/cfree.3: pfixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-07share/mk/: lint-man-quote: Diagnose an unmatched quoteAlejandro Colomar3-0/+48
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man3/fma.3: ERRORS: Add missing errorAlejandro Colomar1-2/+2
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>
2025-09-06man/man2/readv.2: Document RWF_DONTCACHEAlejandro Colomar1-0/+39
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>
2025-09-06man/man3/login.3: ffixAlejandro Colomar1-8/+26
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2/sched_rr_get_interval.2: ffixAlejandro Colomar1-1/+2
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man3/stdin.3: tfixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2/shmget.2: Fix broken references to proc_sys_vm(5)Alejandro Colomar1-2/+2
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2/syscalls.2: tfixAlejandro Colomar1-1/+1
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/: ffixAlejandro Colomar3-11/+15
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/: ffixAlejandro Colomar2-3/+3
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>
2025-09-06man/man3/gethostbyname.3: Fix reference to function parameterAlejandro Colomar1-1/+1
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>
2025-09-06man/man2/ioctl_pipe.2: grfixAlejandro Colomar1-1/+1
Be consistent with the lowercase used elsewhere in the document. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man3/gnu_get_libc_version.3: grfixAlejandro Colomar1-1/+1
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man3/malloc.3: STANDARDS: wfixAlejandro Colomar1-2/+2
Suggested-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2/listmount.2: ERRORS: Clarify EPERMAlejandro Colomar1-1/+3
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2const/PR_[GS]ET_ENDIAN.2const: tfix (s/endian-ness/endianness/)Alejandro Colomar2-3/+3
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>
2025-09-06man/man7/man-pages.7: Document formatting of foward declarations of function ↵Alejandro Colomar1-0/+13
parameters Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2const/PR_SET_THP_DISABLE.2const: ffixAlejandro Colomar1-1/+3
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Acked-by: "Carlos O'Donell" <carlos@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2/mount.2: tfix (mountpoint => mount point)Askar Safin1-1/+1
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>
2025-09-06man/man2/mount.2: Expand and clarify docs for MS_REMOUNT | MS_BINDAskar Safin1-4/+20
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>
2025-09-06man/man7/random.7: grfixElliott Hughes1-2/+2
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-09-06man/man2/futex.2: Recycle two gmane URLsSebastian Andrzej Siewior1-2/+2
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>
2025-08-29man/: wsfixAlejandro Colomar10-12/+14
These cases were found with a script: $ grep -rn -P '^[^. #][^:%#]*[a-z] *[a-z][^;=%:]*$' Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man2/: Use the common name 'fd' instead of 'fildes'Alejandro Colomar2-3/+3
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>
2025-08-24man/man2const/PR_CAPBSET_DROP.2const: pfixAlejandro Colomar1-1/+1
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man2/open.2: wfix, ffixAlejandro Colomar1-1/+4
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man2const/PR_SET_FPEXC.2const: Format information as a listAlejandro Colomar1-11/+32
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man2const/PR_SET_SECUREBITS.2const: wfixAlejandro Colomar1-4/+1
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>
2025-08-24man/man2const/PR_[SG]ET_TSC.2const: Fix parameter nameAlejandro Colomar2-2/+2
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>
2025-08-24man/man3/pthread_mutexattr_getpshared.3: ffixAlejandro Colomar1-1/+2
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man3/random_r.3: pfixAlejandro Colomar1-2/+2
Reported-by: Helge Kreutzmann <debian@helgefjell.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man7/environ.7: srcfixAlejandro Colomar1-1/+1
Fixes: a82917ada050 (2025-03-30; "man/: srcfix (\fX => \f[X])") Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24share/mk/: lint-man-ws: Diagnose spurious use of white spaceAlejandro Colomar3-1/+57
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man5/proc_pid_map_files.5: Remove SELinux indicator in examplesAlejandro Colomar1-2/+2
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>
2025-08-24man/man4/console_codes.4: tfixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-24man/man7/inode.7: srcfixAlejandro Colomar1-4/+4
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>
2025-08-24share/mk/: lint-man-blank: Add target to lint about blank linesAlejandro Colomar2-1/+43
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>
2025-08-23man/man7/man-pages.7: ffixAlejandro Colomar1-1/+3
Prevent splitting 'uname -m', and use italics instead of quotes. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-22man/: ffixAlejandro Colomar3-9/+5
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>
2025-08-22man/man7/man-pages.7: ffixAlejandro Colomar1-1/+1
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>
2025-08-22man/man2/syscalls.2: Remove pread and pwrite from list of arch-specific syscallsAskar Safin1-16/+0
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>
2025-08-20share/mk/: lint-man-tbl: Show target name in diagnosticsAlejandro Colomar1-3/+3
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-20man/man2/mremap.2: Describe previously undocumented shrink behaviourLorenzo Stoakes1-2/+31
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>
2025-08-20man/man2/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of ↵Alejandro Colomar2-4/+6
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>
2025-08-20man/: EXAMPLES: Use err(3) and errc(3bsd) instead of similar macrosAlejandro Colomar24-211/+154
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>
2025-08-19man/man3/strftime.3: EXAMPLES: Validate number of argumentsDr. David Alan Gilbert1-0/+5
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>
2025-08-19man/man7/operator.7: Add _Countof and alignofAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man7/operator.7: Add compound literalAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man7/operator.7: Add some primary expressions that look like operatorsAlejandro Colomar1-3/+8
This allows comparing them with the precedence of operators. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man3/countof.3: Add pageAlejandro Colomar1-0/+35
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>
2025-08-19PR_FUTEX_HASH_GET_SLOTS.2const: Add pageSebastian Andrzej Siewior1-0/+37
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>
2025-08-19man/man2const/PR_FUTEX_HASH.2const: Update as of Linux v6.17-rc2Sebastian Andrzej Siewior1-5/+2
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>
2025-08-19man/man3/posix_spawn.3: EXAMPLES: Validate the number of argumentsDr. David Alan Gilbert1-0/+5
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>
2025-08-19man/man2/getrusage.2: Use correct unit (KiB) for .ru_maxrssAlex Yang1-1/+1
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>
2025-08-19src/bin/diffman-git: Show sections as hunk contextAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man2/syslog.2: SYNOPSIS: Remove incorrect includeAlejandro Colomar1-1/+0
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>
2025-08-19man/man3/sem_post.3: ERRORS: Clarify EOVERFLOWAlex Tran1-1/+2
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>
2025-08-19man/man3/mallinfo.3: Reduce MAX_ALLOCSDr. David Alan Gilbert1-1/+1
The current mallinfo2() example segfaults on 64bit Linux. This happens because it builds a large 'alloc' array on the stack, which is currently 2M entries, each of which is a pointer, so hitting 16MB which is more than the default Linux stack ulimit of 8MiB. Reduce it. Signed-off-by: "Dr. David Alan Gilbert" <dave@treblig.org> Message-ID: <20250816204252.63616-1-dave@treblig.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man2/mremap.2: Describe multiple-mapping moveLorenzo Stoakes1-11/+57
Document the new behaviour introduced in Linux 6.17 whereby it is now possible to move multiple mappings in a single operation, as long as the operation is purely a move, that is, old_size == new_size and MREMAP_FIXED is specified. This change also explains the limitations of this method and the possibility of partial failure. Finally, we pluralise language where it makes sense to so the documentation does not contradict either this new capability nor the pre-existing edge case. Example code is enclosed below demonstrating the behaviour which is now possible: #define _GNU_SOURCE #include <err.h> #include <stddef.h> #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> int main(void) { void *ptr, *tgt_ptr; size_t page_size; page_size = sysconf(_SC_PAGESIZE); ptr = mmap(NULL, 10 * page_size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (ptr == MAP_FAILED) err(EXIT_FAILURE, "mmap"); tgt_ptr = mmap(NULL, 10 * page_size, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0); if (tgt_ptr == MAP_FAILED) err(EXIT_FAILURE, "mmap"); /* Unmap every other page. */ for (int i = 1; i < 10; i += 2) munmap(ptr + i * page_size, page_size); /* Now move all 5 distinct mappings to tgt_ptr. */ ptr = mremap(ptr, 10 * page_size, 10 * page_size, MREMAP_MAYMOVE | MREMAP_FIXED, tgt_ptr); if (ptr == MAP_FAILED) err(EXIT_FAILURE, "mremap"); exit(EXIT_SUCCESS); } Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Message-ID: <4e0c992a6374e417367475e3b3bbbc9d43380f4c.1754924278.git.lorenzo.stoakes@oracle.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man2/mremap.2: Explicitly document the simple move operationLorenzo Stoakes1-0/+14
In preparation for discussing newly introduced mremap() behaviour to permit the move of multiple mappings at once, add a section to the this manual page to describe these operations in general. Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Message-ID: <0a5d0d6e9f75e8e2de05506f73c41b069d77de36.1754924278.git.lorenzo.stoakes@oracle.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-19man/man7/cgroups.7: plfixIan1-1/+1
Signed-off-by: Ian <ilc@ilcharle.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-10man/man2/getgroups.2: setgroups(2): Don't use NULL as a 0-length arrayAlejandro Colomar1-2/+2
Reported-by: Christopher Bazley <chris.bazley.wg14@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-10man/man3/setlocale.3: SYNOPSIS: Use _NullableAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-09man/man2/mount_setattr.2: ffixAlejandro Colomar1-1/+1
Reported-by: Askar Safin <safinaskar@zohomail.com> Cc: Aleksa Sarai <cyphar@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-07man/man2type/open_how.2type: Move VERSIONS to HISTORYAlejandro Colomar1-3/+3
Reported-by: Aleksa Sarai <cyphar@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-07man/man2/mount_setattr.2: Document glibc >= 2.36 syscall wrappersAleksa Sarai1-38/+7
glibc 2.36 added syscall wrappers for the entire family of fd-based mount syscalls, including mount_setattr(2). Thus it's no longer necessary to instruct users to do raw syscall(2) operations. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> Cc: <linux-api@vger.kernel.org> Cc: <linux-fsdevel@vger.kernel.org> Cc: <linux-kernel@vger.kernel.org> Cc: "Michael T. Kerrisk" <mtk.manpages@gmail.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Jan Kara <jack@suse.cz> Cc: Askar Safin <safinaskar@zohomail.com> Cc: "G. Branden Robinson" <branden@debian.org> Cc: David Howells <dhowells@redhat.com> Cc: Christian Brauner <brauner@kernel.org> Message-ID: <20250807-new-mount-api-v2-1-558a27b8068c@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-07GNUmakefile: help: Document the usual targetsAlejandro Colomar1-1/+16
Suggested-by: Aleksa Sarai <cyphar@cyphar.com> Acked-by: Aleksa Sarai <cyphar@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-08-02man/man2const/PR_GET_TIMING.2const: SYNOPSIS: tfixFlorian Schmaus1-1/+1
Fixes: 6c6125882666 (2024-05-31; "PR_GET_TIMING.2const: Tweak after split") Signed-off-by: Florian Schmaus <flo@geekplace.eu> Message-ID: <20250704153630.1236769-1-flo@geekplace.eu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-24man/man2/openat2.2: Update RESOLVE_CACHED to mention kernel versionAleksa Sarai1-1/+2
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> Message-ID: <20250724-openat2-cached-note-v1-1-037e7398f797@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-22src/bin/sortman: Fix order of intro(*) pages for subsectionsAlejandro Colomar1-2/+3
Here's what changes with this patch: $ diff -u \ <(find man -type f | ../master/src/bin/sortman) \ <(find man -type f | ./src/bin/sortman); --- /dev/fd/63 2025-07-22 11:47:27.982307499 +0200 +++ /dev/fd/62 2025-07-22 11:47:27.982307499 +0200 @@ -805,7 +805,6 @@ man/man2const/VT_SETMODE.2const man/man2const/VT_WAITACTIVE.2const man/man2type/open_how.2type -man/man3attr/intro.3attr man/man3/intro.3 man/man3/a64l.3 man/man3/abort.3 @@ -2517,6 +2516,7 @@ man/man3/yn.3 man/man3/ynf.3 man/man3/ynl.3 +man/man3attr/intro.3attr man/man3attr/gnu::aligned.3attr man/man3attr/gnu::format.3attr man/man3const/EOF.3const Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-22share/mk/build/pdf/book/prepare.pl: Add support for man3attrAlejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-21man/man3/malloc.3: STANDARDS: tfix, ffixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-21man/man2/openat2.2: HISTORY: Include epilogue about FreeBSDAleksa Sarai1-0/+13
While RESOLVE_BENEATH was based on FreeBSD's O_BENEATH, there was a well-known safety issue in O_BENEATH that we explicitly avoided replicating -- FreeBSD would only verify whether the lookup escaped the dirfd *at the end of the path lookup*. This meant that even with O_BENEATH, an attacker could gain information about the structure of the filesystem outside of the dirfd through timing attacks or other side-channels. Once Linux had RESOLVE_BENEATH, FreeBSD implemented O_RESOLVE_BENEATH to mimic the same behaviour[1] and eventually removed O_BENEATH entirely from their system[2]. It seems prudent to provide this epilogue in the HISTORY section of the openat2(2) man page (the FreeBSD man page does for open(2) not reference this historical connection with Linux at all, as far as I can tell). Link: [1] <https://reviews.freebsd.org/D25886> Link: [2] <https://reviews.freebsd.org/D28907> Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> Message-ID: <20250721-openat2-history-v1-1-994936dd224a@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20lsm: Released 6.15Alejandro Colomar1-3/+3
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20Changes: Ready for 6.15man-pages-6.15Alejandro Colomar1-8/+100
The commands in 4a2750a06f98 (2023-08-01; "Changes: Ready for 6.05") need as update for the new man/ directory. I've also added code to get the page which link pages link to. List of new pages: $ git diff man-pages-6.14..HEAD \ | grep -A1 '^--- /dev/null' \ | grep -v -e '\--' -e '\--- /dev/null' \ | sed 's,+++ b/,,' \ | grep '^man/' \ | xargs grep -L '^\.so ' \ | sed 's,.*/,,'; List of new links: $ git diff man-pages-6.14..HEAD \ | grep '^+++ ' \ | sed 's,+++ b/,,' \ | grep '^man/' \ | xargs grep -l '^\.so ' \ | sed 's,.*/,,' \ | while read -r f; do echo "$f" \ | tr -d '\n'; find man/ -type f \ | grep "$f" \ | xargs grep '^\.so' \ | sed 's,.*/,\t\t\t(,' \ | sed 's/\./(/' \ | sed 's/$/))/'; done; Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man3/malloc.3: STANDARDS, HISTORY, BUGS: Clarify (non)conformance of ↵Alejandro Colomar1-2/+80
realloc{,array}(3) Link: <https://nabijaczleweli.xyz/content/blogn_t/017-malloc0.html> Link: <https://sourceware.org/pipermail/libc-alpha/1999-April/000956.html> Link: <https://inbox.sourceware.org/libc-alpha/nbyurzcgzgd5rdybbi4no2kw5grrc32k63svf7oq73nfcbus5r@77gry66kpqfr/> Link: <https://inbox.sourceware.org/libc-alpha/20241019014002.3684656-1-siddhesh@sourceware.org/T/#u> Link: <https://inbox.sourceware.org/libc-alpha/qukfe5yxycbl5v7ooskvqdnm3au3orohbx4babfltegi47iyly@or6dgf7akeqv/T/#u> Link: <https://github.com/bminor/glibc/commit/7c2b945e1fd64e0a5a4dbd6ae6592a7314dcd4b5> Link: <https://github.com/llvm/llvm-project/issues/113065> Link: <https://www.austingroupbugs.net/view.php?id=400> Link: <https://www.austingroupbugs.net/view.php?id=526> Link: <https://www.austingroupbugs.net/view.php?id=688> Link: <https://sourceware.org/bugzilla/show_bug.cgi?id=12547> Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_400.htm> Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n868.htm> Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2438.htm> Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2464.pdf> Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3621.txt> Link: <https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/functions/realloc.html> Link: <https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/functions/realloc.html> Link: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120744> Link: <https://lore.kernel.org/lkml/20220213182443.4037039-1-keescook@chromium.org/> Link: <https://awakened1712.github.io/hacking/hacking-whatsapp-gif-rce/> Link: <https://gbhackers.com/whatsapp-double-free-vulnerability/> Cc: <bug-gnulib@gnu.org> Cc: <musl@lists.openwall.com> Cc: <libc-alpha@sourceware.org> Cc: наб <nabijaczleweli@nabijaczleweli.xyz> Cc: Douglas McIlroy <douglas.mcilroy@dartmouth.edu> Cc: Paul Eggert <eggert@cs.ucla.edu> Cc: Robert Seacord <rcseacord@gmail.com> Cc: Elliott Hughes <enh@google.com> Cc: Bruno Haible <bruno@clisp.org> Cc: JeanHeyd Meneide <phdofthehouse@gmail.com> Cc: Rich Felker <dalias@libc.org> Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> Cc: Joseph Myers <josmyers@redhat.com> Cc: Florian Weimer <fweimer@redhat.com> Cc: Andreas Schwab <schwab@suse.de> Cc: Thorsten Glaser <tg@mirbsd.de> Cc: Eric Blake <eblake@redhat.com> Cc: Vincent Lefevre <vincent@vinc17.net> Cc: Mark Harris <mark.hsj@gmail.com> Cc: Collin Funk <collin.funk1@gmail.com> Cc: Wilco Dijkstra <Wilco.Dijkstra@arm.com> Cc: DJ Delorie <dj@redhat.com> Cc: Cristian Rodríguez <cristian@rodriguez.im> Cc: Siddhesh Poyarekar <siddhesh@gotplt.org> Cc: Sam James <sam@gentoo.org> Cc: Mark Wielaard <mark@klomp.org> Cc: "Maciej W. Rozycki" <macro@redhat.com> Cc: Martin Uecker <ma.uecker@gmail.com> Cc: Christopher Bazley <chris.bazley.wg14@gmail.com> Cc: Eskil Steenberg <eskil@obsession.se> Cc: Terence Kelly <tpkelly@eecs.umich.edu> Cc: Daniel Krügler <daniel.kruegler@googlemail.com> Cc: Kees Cook <keescook@chromium.org> Cc: Valdis Klētnieks <valdis.kletnieks@vt.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_*.2const: Make sashimi of fcntl(2)Alejandro Colomar31-1980/+2428
2025-07-20man/man2/fcntl.2: Tweak after making sashimi of this pageAlejandro Colomar1-15/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl_locking.2, man/man2const/F_*.2const: Tweak after split, and ↵Alejandro Colomar7-6/+12
add link pages Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl{,_locking}.2: Split locking operations from fcntl(2)Alejandro Colomar2-694/+757
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_*.2const: Tweak after split, and add link pagesAlejandro Colomar6-15/+37
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_GETSIG.2const: Split F_{G,S}ETOWN*, ↵Alejandro Colomar2-440/+508
F_{G,S}ETSIG from fcntl(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_{G,S}ETLEASE.2const: Tweak after split, and add link pageAlejandro Colomar2-4/+5
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_GETLEASE.2const: Split F_{G,S}ETLEASE from ↵Alejandro Colomar2-166/+208
fcntl(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_NOTIFY.2const: Tweak after splitAlejandro Colomar1-19/+7
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_NOTIFY.2const: Split F_NOTIFY from fcntl(2)Alejandro Colomar2-132/+168
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_{G,S}ET{,_FILE}_RW_HINT.2const: Tweak after split, and add ↵Alejandro Colomar4-6/+9
link pages Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_GET_RW_HINT.2const: Split ↵Alejandro Colomar2-79/+127
F_{G,S}ET{,_FILE}_RW_HINT from fcntl(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_{GET,ADD}_SEALS.2const: Tweak after split, and add link pageAlejandro Colomar2-10/+6
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_GET_SEALS.2const: Split F_{GET,ADD}_SEALS ↵Alejandro Colomar2-206/+242
from fcntl(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_{G,S}ETPIPE_SZ.2const: Tweak after split, and add link pageAlejandro Colomar2-4/+5
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_GETPIPE_SZ.2const: Split F_{G,S}ETPIPE_SZ ↵Alejandro Colomar2-66/+99
from fcntl(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2const/F_{G,S}ETFL.2const: Tweak after split, and add link pageAlejandro Colomar2-3/+4
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-20man/man2/fcntl.2, man/man2const/F_GETFL.2const: Split F_{G,S}ETFL from fcntl(2)Alejandro Colomar2-71/+112
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man2const/F_{G,S}ETFD.2const: Tweak after split, and add link pageAlejandro Colomar2-2/+3
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man2/fcntl.2, man/man2const/F_GETFD.2const: Split F_{G,S}ETFD from fcntl(2)Alejandro Colomar2-45/+85
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man2const/F_DUPFD{,_CLOEXEC}.2const: Tweak after split, and add link pageAlejandro Colomar2-15/+8
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man2/fcntl.2, man/man2const/F_DUPFD.2const: Split F_DUPFD and ↵Alejandro Colomar2-70/+113
F_DUPFD_CLOEXEC from fcntl(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/: Replace reserved exp identifierVincent Lefevre5-46/+47
Since exp is a library function, this is a reserved identifier, which should not be used as a variable name / parameter. Signed-off-by: Vincent Lefevre <vincent@vinc17.net> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man3/printf.3: Mention Android's %m support.Elliott Hughes1-1/+2
In future we might want to note that it's _not_ available on iOS/macOS and the BSDs, since that's the caveat I usually give when recommending the use of %m. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man2/clone.2: Move ia64 to HISTORYAlejandro Colomar1-30/+30
Reported-by: Elliott Hughes <enh@google.com> Cc: Carlos O'Donell <carlos@redhat.com> Cc: Eugene Syromyatnikov <evgsyr@gmail.com> Cc: Walter Harms <wharms@bfs.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-19man/man3attr/gnu::format.3attr: Add pageAlejandro Colomar1-0/+154
Cc: Aaron Ballman <aaron@aaronballman.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-12man/man2/seccomp.2: Add link to post about using seccomp(2) in filtersAlejandro Colomar1-0/+5
Suggested-by: Terence Kelly <tpkelly@eecs.umich.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-11man/man3/stpncpy.3: RETURN VALUE: wfixAlejandro Colomar1-1/+3
This is for consistency with wcpncpy(3). Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-07-11man/man3/wcpncpy.3: RETURN VALUE: Fix incorrect wordingAlejandro Colomar1-2/+4
Fixes: d91506f8faa4 (1999-08-24, 2022-12-19; "man-pages 1.26") Reported-by: Elliott Hughes <enh@google.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/: SYNOPSIS: Don't highlight forward declarations of function parametersAlejandro Colomar139-237/+237
Previously, many people confused these for actual parameters, since it's hard to distinguish a ',' from ';'. By removing bold/italics from these, it will be easier to distinguish them. The cases have been found with a script: $ find -type f \ | xargs grep -l '^\.TH ' \ | sort \ | xargs mansect SYNOPSIS \ | man /dev/stdin \ | grep -e '^[^ ]' -e '[^ ]( [^ )].*[^)];' \ | less; Reported-by: Mark Naughton <mnaughto@redhat.com> Suggested-by: Mark Harris <mark.hsj@gmail.com> Acked-by: Mark Naughton <mnaughto@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28share/mk/: uninstall-man: Fix support for pages with ':' in their file nameAlejandro Colomar1-1/+2
I don't know when this was exacly broken, since we didn't have such pages until now. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man3attr/gnu::aligned.3attr: Add pageAlejandro Colomar1-0/+51
Cc: Aaron Ballman <aaron@aaronballman.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man3attr/intro.3attr: Add pageAlejandro Colomar1-0/+49
Cc: Aaron Ballman <aaron@aaronballman.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man3attr/: Add subsection for attributesAlejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man3/ftime.3: Reorder and clarify STANDARDSCollin Funk1-2/+3
Put 4.2BSD first and mention that POSIX.1-2001 marked this function as LEGACY. Signed-off-by: Collin Funk <collin.funk1@gmail.com> Message-ID: <fcc66f4d8694f933a71688ad529e6f4f43024658.1750646692.git.collin.funk1@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man2/chmod.2: Document AT_SYMLINK_NOFOLLOW support in fchmodat(2)Benjamin Peterson1-1/+4
Historically, Linux systems did not support the AT_SYMLINK_NOFOLLOW flag to fchmodat(2). glibc added userspace emulation support in glibc 2.32, and Linux gained native support in 6.5. See glibc.git 6b89c385d8bd (2020-02-12; "io: Implement lchmod using fchmodat [BZ #14578]") and linux.git 09da082b07bb (2023-07-27; "fs: Add fchmodat2()"). Signed-off-by: Benjamin Peterson <benjamin@locrian.net> Message-ID: <20250619051342.145412-2-benjamin@locrian.net> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man2/statx.2: Add stx_atomic_write_unit_max_optJohn Garry1-1/+20
XFS supports atomic writes - or untorn writes - based on two different methods: - HW offload in the disk - FS method based on out-of-place writes The value reported in stx_atomic_write_unit_max will be the max size of the FS-based method. The max atomic write unit size of the FS-based atomic writes will typically be much larger than what is capable from the HW offload. However, FS-based atomic writes will also be typically much slower. Advertise this HW offload size limit to the user in a new statx member, stx_atomic_write_unit_max_opt. We want STATX_WRITE_ATOMIC to get this new member in addition to the already-existing members, so mention that a value of 0 in stx_atomic_write_unit_max_opt means that stx_atomic_write_unit_max holds this optimised limit. Linux will zero unused statx members, so stx_atomic_write_unit_max_opt will always hold 0 for older kernel versions which do not support this FS-based atomic write method (for XFS). Signed-off-by: John Garry <john.g.garry@oracle.com> Message-ID: <20250619154455.321848-3-john.g.garry@oracle.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man2/statx.2: Properly align stx_dio_read_offset_alignJohn Garry1-1/+1
Align this member in struct statx with the members above it. Signed-off-by: John Garry <john.g.garry@oracle.com> Message-ID: <20250619154455.321848-2-john.g.garry@oracle.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man5/elf.5: Clarify string table reference for SHT_SYMTAB sectionsDacian Pascu1-0/+4
Add clarification that for SHT_SYMTAB sections, the associated string table section index can be found in the sh_link member, following the same pattern documented for section header string tables. This was discovered while writing an ELF parser, where the sh_link field is needed to locate the string table for symbol name lookups in SHT_SYMTAB sections. Signed-off-by: Dacian Pascu <pascu.dacian@gmail.com> Message-ID: <78e41dade449bafddfb730b39226f8d9cb3fefdb.1750427945.git.pascu.dacian@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man3/malloc.3: Shorten parameter name (s/ptr/p/)Alejandro Colomar1-17/+17
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-28man/man2/cachestat.2: Add pageMatteo Croce1-0/+112
The text was converted from the commit message in linux.git cf264e1329fb (2023-06-09; "cachestat: implement cachestat syscall"). Link: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cf264e1329fb0307e044f7675849f9f38b44c11a> Signed-off-by: Nhat Pham <nphamcs@gmail.com> Signed-off-by: Matteo Croce <teknoraver@meta.com> Message-ID: <20250611141350.1829-1-technoboy85@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-19man/man5/core.5: Document the new %F identifier in core_patternJelle van der Waa1-0/+5
Signed-off-by: Jelle van der Waa <jvanderw@redhat.com> Message-ID: <20250616133212.131064-1-jvanderwaa@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-19man/man2/chmod.2: Document fchmodat(AT_EMPTY_PATH)Aleksa Sarai1-1/+24
The documentation and behaviour is indentical to the equivalent flag for fchownat(2). Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> Message-ID: <20250619-fchmod-empty-path-v1-1-feff2c63abe4@cyphar.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-13Revert "GNUmakefile: help: Show only variables assigned with '?='"Alejandro Colomar1-2/+3
We don't use ?= anymore (except for MANWIDTH). We'd like to use ?:= eventually, but for now we use := surrounded by conditionals. This reverts commit e18c21096714545db6c4855e20c43bbb1541489c. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-13INSTALL: Adjust file names to match current build system organization.Collin Funk1-6/+8
Signed-off-by: Collin Funk <collin.funk1@gmail.com> Message-ID: <1cd0d5aa80cdc10a6c03dc8f3f2827d38bc86767.1749795252.git.collin.funk1@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-11man/man2/prctl.2, man/man2const/PR_FUTEX_HASH.2const: Document PR_FUTEX_HASHSebastian Andrzej Siewior2-0/+94
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Message-ID: <20250602140104.2769223-2-bigeasy@linutronix.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-11man/man1/iconv.1: Mention that -c does not change exit statusFlorian Weimer1-1/+6
And that input decoding failures are treated as errors. Exiting with status 0 is a POSIX conformance issue that was fixed in glibc 2.41. Signed-off-by: Florian Weimer <fweimer@redhat.com> Message-ID: <87msamxso9.fsf@oldenburg.str.redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-11man/man2/ioctl_vt.2: Document VT_GETCONSIZECSRPOSNicolas Pitre2-0/+19
Corresponding code is in drivers/tty/vt/vt_ioctl.c. New in Linux v6.16. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> Message-ID: <4n723o1q-pr52-319q-nsr7-6442387s12s2@onlyvoer.pbz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-11man/man2const/TIOCLINUX.2const: Document TIOCL_GETBRACKETEDPASTENicolas Pitre1-0/+8
Corresponding code is in drivers/tty/vt/vt.c:tioclinux(). New in Linux v6.16. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> Message-ID: <o5p79351-1ops-on58-3o20-rp142r6s4o21@onlyvoer.pbz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-08etc/checkpatch/checkpatch.conf: Ignore TYPO_SPELLINGAlejandro Colomar1-0/+1
It suggest 'cancellation' instead of 'cancelation', but we want the latter. Since it hasn't caught anything useful, AFAIR, turn it off. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-08man/man3/scalb*.3: NAME: Document the meaning of the name of these functionsAlejandro Colomar2-3/+4
Cc: Alex Celeste <alexg.nvfp@gmail.com> Reported-by: Jorenar <dev@jorenar.com> Suggested-by: "Fred J. Tydeman" <tydeman@tybor.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-05man/man3/inet_net_pton.3: SYNOPSIS: ffixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-05man/man3/: Shorten parameter namesAlejandro Colomar2-13/+13
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-05man/: SYNOPSIS: Use array notationAlejandro Colomar4-8/+10
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-02man/man2const/PR_SET_MM_AUXV.2const: SYNOPSIS: Fix position of #include lineAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-02man/man2const/: TH: Fix subsectionAlejandro Colomar2-2/+2
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-06-01man/man2const/KEYCTL_SESSION_TO_PARENT.2const: SYNOPSIS: ffixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-31man/man2/: Fix broken references to proc_sys_vm(5)Ahelenia Ziemiańska2-3/+3
Fixes: 0569afbbccd6 (2023-08-17; "proc*.5: Make sashimi") Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Message-ID: <c28f98b90ff40c3944aaa3189627d795e0c2d9f6.1748714599.git.nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-31man/: Fix name of /proc/sys/vm/hugetlb_shm_groupAhelenia Ziemiańska4-7/+7
sysctl_hugetlb_shm_group is the name of the variable in "mm/hugetlb.c". Fixes: 090fdddb4342 (2021-05-17; "memfd_create.2, mmap.2, shmget.2: Document the EPERM for huge page allocations") Fixes: 6cee0ddeb414 (2021-05-17; "proc.5: Document /proc/sys/vm/sysctl_hugetlb_shm_group") Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Message-ID: <22436441b7bac0177213c99c55187c4af085d4ca.1748714599.git.nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/mbind.2: SYNOPSIS: ffixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/: SYNOPSIS: Use array notationAlejandro Colomar2-4/+7
Signed-off-by: Alejandro Colomar <alx@kernel.org> ar
2025-05-30man/man2/open.2: Fix doc for O_CREAT | O_DIRECTORYPaul Eggert1-14/+10
Although Linux kernels before 5.7 would create a regular file when opening a nonexistent file with O_CREAT | O_DIRECTORY, this behavior was changed to something deeply buggy in 5.7, and when the bug was fixed in 6.4 this combination of open flags became invalid. Adjust the documentation to match the 6.4+ behavior, which makes more sense anyway. Signed-off-by: Paul Eggert <eggert@cs.ucla.edu> Message-ID: <20250530072029.344532-1-eggert@cs.ucla.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_*.2const: Make sashimi of futex(2)Alejandro Colomar15-1297/+1860
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2: Tweak after making sashimi of this pageAlejandro Colomar1-55/+12
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_WAIT_REQUEUE_PI.2const: Tweak after splitAlejandro Colomar1-7/+5
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_WAIT_REQUEUE_PI.2const: Split ↵Alejandro Colomar2-106/+135
FUTEX_WAIT_REQUEUE_PI from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_CMP_REQUEUE_PI.2const: Tweak after splitAlejandro Colomar1-17/+11
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_CMP_REQUEUE_PI.2const: Split ↵Alejandro Colomar2-185/+224
FUTEX_CMP_REQUEUE_PI from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_UNLOCK_PI.2const: Tweak after splitAlejandro Colomar1-5/+4
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_UNLOCK_PI.2const: Split ↵Alejandro Colomar2-50/+80
FUTEX_UNLOCK_PI from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_TRYLOCK_PI.2const: Tweak after splitAlejandro Colomar1-4/+3
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_TRYLOCK_PI.2const: Split ↵Alejandro Colomar2-69/+125
FUTEX_TRYLOCK_PI from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_LOCK_PI2.2const: Tweak after splitAlejandro Colomar1-71/+6
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_LOCK_PI2.2const: Split FUTEX_LOCK_PI2 ↵Alejandro Colomar2-39/+127
from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_LOCK_PI.2const: Tweak after splitAlejandro Colomar1-34/+30
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_LOCK_PI.2const: Split FUTEX_LOCK_PI ↵Alejandro Colomar2-156/+238
from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_WA??_BITSET.2const: Tweak after split, and add link pageAlejandro Colomar2-6/+6
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_WAIT_BITSET.2const: Split ↵Alejandro Colomar2-152/+228
FUTEX_WAIT_BITSET and FUTEX_WAKE_BITSET from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_WAKE_OP.2const: Tweak after splitAlejandro Colomar1-21/+18
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_WAKE_OP.2const: Split FUTEX_WAKE_OP ↵Alejandro Colomar2-160/+216
from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_CMP_REQUEUE.2const: Tweak after splitAlejandro Colomar1-11/+10
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_CMP_REQUEUE.2const: Split ↵Alejandro Colomar2-135/+196
FUTEX_CMP_REQUEUE from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_REQUEUE.2const: Tweak after splitAlejandro Colomar1-8/+5
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_REQUEUE.2const: Split FUTEX_REQUEUE ↵Alejandro Colomar2-18/+71
from futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_FD.2const: Tweak after splitAlejandro Colomar1-4/+3
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_FD.2const: Split FUTEX_FD from futex(2)Alejandro Colomar2-51/+80
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_WAKE.2const: Tweak after splitAlejandro Colomar1-6/+7
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_WAKE.2const: Split FUTEX_WAKE from ↵Alejandro Colomar2-52/+90
futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2const/FUTEX_WAIT.2const: Tweak after splitAlejandro Colomar1-28/+25
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2, man/man2const/FUTEX_WAIT.2const: Split FUTEX_WAIT from ↵Alejandro Colomar2-112/+181
futex(2) Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2: De-duplicate information about timeoutsAlejandro Colomar1-18/+10
And be more explicit about the one case that's different. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/futex.2: Prepare for sashimiAlejandro Colomar1-20/+17
- Remove dead code (redundant .P). - Adjust white space. - Remove redundant note. - Use the same language as always about returning -1 and setting errno. - Split errors. Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-30man/man2/sched_setaffinity.2: EXAMPLES: Use 0 instead of getpid()Ahelenia Ziemiańska1-2/+2
getpid() is superfluous here. Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Message-ID: <v5p4zfqrepnrorszmuie47aiulivcykicxuhtxfkqhrq5t3cis@tarta.nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-28man/man2/link.2: Update manual page referenceAlejandro Colomar1-1/+1
proc(5) was split into many small pages recently. Reported-by: Pali Rohár <pali@kernel.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-27man/man2/futex.2: wfixAlejandro Colomar1-2/+8
Suggested-by: Carlos O'Donell <carlos@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-27man/man2/futex.2: tfixAlejandro Colomar1-1/+1
Fixes: 3dfcc11d4630 (2015-12-15; "futex.2: Expand description of FUTEX_CMP_REQUEUE") Fixes: 8297383e9eeb (2015-12-15; "futex.2: Clean-ups and FIXME removeal after feedback from Thomas Gleixner") Reported-by: Jens Gustedt <jens.gustedt@inria.fr> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-24man/man5/proc_meminfo.5: Shmem also accounts for other types of shared memoryAlejandro Colomar1-1/+5
Reported-by: Carsten Grohmann <carstengrohmann@gmx.de> Message-ID: <20250523122617.48cf9feb@max.localdomain> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-22man/man2/syscall.2: x86-64 + x32 syscall numbers go in eaxBen Kallus1-2/+2
The kernel sign-extends eax before dispatching syscalls. From arch/x86/entry/entry_64.S: > movslq %eax, %rsi > IBRS_ENTER > UNTRAIN_RET > CLEAR_BRANCH_HISTORY > > call do_syscall_64 /* returns with IRQs disabled */ This patch updates syscall.2 to document this. ARM64 exhibits a similar behavior (w8 is extended), which is already documented. Signed-off-by: Ben Kallus <benjamin.p.kallus.gr@dartmouth.edu> Message-ID: <20250518234507.404608-1-benjamin.p.kallus.gr@dartmouth.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-21man/man3/mbrtowc.3: RETURN VALUE: Tweak description of -2 returnSteffen Nurpmeso1-3/+3
Signed-off-by: Steffen Nurpmeso <steffen@sdaoden.eu> Message-ID: <f90b33d398ccf814083e300454df88e0937b94d3.1747784310.git.steffen@sdaoden.eu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-21man/man3/*printf.3: Document ERRORSTobias Stoeckmann3-4/+58
The printf family of functions set errno if a negative value is returned. Source is POSIX.1, see <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fprintf.html> <https://pubs.opengroup.org/onlinepubs/9799919799/functions/fwprintf.html> Also see manual pages of FreeBSD and OpenBSD. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Message-ID: <34octlcodbwm3kfqlouvrvhriiftmlzzobbohgzivlkgi53nfs@7gxajeb56klz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-18man/man2const/UFFDIO_API.2const: Add an entry for UFFDIO_FEATURE_MOVEPeter Xu1-0/+6
Add the entry for UFFDIO_MOVE ioctl in UFFDIO_API man page. Fixes: d7dec35a3b19 ("man/man2/ioctl_userfaultfd.2, man/man2const/UFFDIO_MOVE.2const: Document UFFDIO_MOVE") Reviewed-by: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-ID: <20250514172630.569788-3-peterx@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-18man/man2const/UFFDIO_API.2const: Update userfaultfd handshake and feature probePeter Xu1-19/+25
There's a confusing paragraph in the man page on two-steps handshake for userfaultfd UFFDIO_API ioctl. In reality, after a successful UFFDIO_API ioctl, the userfaultfd will be locked up on the features and any further UFFDIO_API on top of an initialized userfaultfd would fail. Modify the UFFDIO_API(2const) man page to reflect the reality. Instead, add a paragraph explaining the right way to probe userfaultfd features. Add that only after the "Before Linux 4.11" paragraph, as the old kernel doesn't support any feature anyway. Fixes: a252b3345 ("ioctl_userfaultfd.2: Describe two-step feature handshake") Reviewed-by: Kyle Huey <khuey@kylehuey.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-ID: <20250514172630.569788-2-peterx@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-17*: grfixAlejandro Colomar1510-1511/+1511
Scripted change: $ grep -rl 'The authors of the Linux man-pages' \ | xargs sed -i '/Copyright, The authors of the Linux man-pages project/s/The/the/'; Reported-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-10README: Files: Update man/ pathAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-10AUTHORS: Update emailsAlejandro Colomar1-4/+4
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-05-10README: Files: Document the AUTHORS fileAlejandro Colomar1-0/+4
Suggested-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>