summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* share/mk/: build-pdf-book: Build the shadow man-pages bookshadowAlejandro Colomar2024-04-26-6/+12
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts-unifont: Specify spacewidth in afmtodit(1)Alejandro Colomar2024-04-26-1/+1
| | | | | | | Link: <https://lore.kernel.org/linux-man/ZiQ_mTQHPq3ig723@debian/T/#t> Suggested-by: "G. Branden Robinson" <branden@debian.org> Suggested-by: Brian Inglis <Brian.Inglis@shaw.ca> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Use UnifontAlejandro Colomar2024-04-26-2/+6
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts-unifont: Build UnifontR from unifont.otfAlejandro Colomar2024-04-26-1/+80
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-html: Don't build mbind.2 and set_mempolicy.2Alejandro Colomar2024-04-26-0/+2
| | | | | | They have known warnings. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* slist.3: wfixSimon Barth2024-04-26-1/+1
| | | | | | | This page is about singly linked lists, not doubly linked lists. Signed-off-by: Simon Barth <simon.barth@gmx.de> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* man2/: Add MPOL_WEIGHTED_INTERLEAVE documentationSvetly Todorov2024-04-26-3/+43
| | | | | | | | | | | | | | | | | Add documentation for the new MPOL_WEIGHTED_INTERLEAVE mode in the same manual pages that mention MPOL_INTERLEAVE; namely, mbind(2), set_mempolicy(2), and get_mempolicy(2). Descriptions were based on the changes introduced in this patch: <https://lore.kernel.org/all/20240202170238.90004-4-gregory.price@memverge.com/> Which was upstreamed to 6.9 here: <https://lore.kernel.org/linux-mm/20240313200532.34e4cff216acd3db8def4637@linux-foundation.org/> Cc: gregory.price@memverge.com Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Signed-off-by: Svetly Todorov <svetly.todorov@memverge.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* strchr.3: HISTORY: strchrnul(3) is present in FreeBSD and NetBSDAlejandro Colomar2024-04-26-1/+3
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* open.2: protected_* sysctls are defined in proc_sys_fs(5), not proc(5)Emanuele Torre2024-04-26-1/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Fix includesAlejandro Colomar2024-04-19-3/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Split makefilesAlejandro Colomar2024-04-19-41/+87
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts-tinos: Build TinosR from TinosR.afmAlejandro Colomar2024-04-19-3528/+26
| | | | | | | | | | | | And use a consistent name for it: TinosR, not TINOR. This removes the last remaining huge generated file we had in the repository. Link: <https://technicallywewrite.com/2023/09/16/addfonts> Link: <https://www.schaffter.ca/mom/momdoc/appendices.html#fonts> Cc: Jan Eden <tech@eden.one> Cc: "G. Branden Robinson" <branden@debian.org> Cc: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts-tinos: Build TinosR.afm from Tinos-Regular.ttfAlejandro Colomar2024-04-19-3/+37
| | | | | | | | | | | | This will allow generating the font description file from it, which will be done in the next commit. Link: <https://technicallywewrite.com/2023/09/16/addfonts> Link: <https://www.schaffter.ca/mom/momdoc/appendices.html#fonts> Cc: Jan Eden <tech@eden.one> Cc: "G. Branden Robinson" <branden@debian.org> Cc: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Remove unused variableAlejandro Colomar2024-04-18-1/+0
| | | | | Co-developed-by: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts: Use $FONTSDIR/devpdf/, and add the download fileAlejandro Colomar2024-04-17-5/+32
| | | | | | | See gropdf(1). Reported-by: Deri <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* syscalls.2: srcfixG. Branden Robinson2024-04-17-3/+4
| | | | | | | | Tweak input format of table text blocks to make a planned sed-driven update simpler and more reliable. Signed-off-by: "G. Branden Robinson" <g.branden.robinson@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* getpagesize.2: tfixG. Branden Robinson2024-04-17-1/+1
| | | | | Signed-off-by: "G. Branden Robinson" <g.branden.robinson@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Fix chapter bookmarksAlejandro Colomar2024-04-16-1/+2
| | | | | | | | So that they can be folded. Suggested-by: Deri James <deri@chuzzlewit.myzen.co.uk> Cc: "G. Branden Robinson" <branden@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Add support for mdoc(7) pages, with -mandocAlejandro Colomar2024-04-16-1/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Use -rC1, to have strictly increasing page numbersAlejandro Colomar2024-04-16-1/+1
| | | | | | Suggested-by: "G. Branden Robinson" <branden@debian.org> Suggested-by: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Read files before 'if'Alejandro Colomar2024-04-16-14/+21
| | | | | | | 'if' turns off set -e. We want to read files before 'if', so that if they don't exist, the shell will error out. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* GNUmakefile: Simplify the $SHELLAlejandro Colomar2024-04-16-3/+2
| | | | | | | | | | | | nixpkgs does not provide /usr/bin/env, so they had to work around it by specifying just env. Since make(1) accepts program names instead of paths, we can as well use bash directly, which is simpler. Link: <https://github.com/NixOS/nixpkgs/pull/300797> Reported-by: Sergei Trofimovich <slyich@gmail.com> Cc: Mario Rodas <https://github.com/marsam> Cc: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: install-man: Don't pipe to install(1)Alejandro Colomar2024-04-16-3/+3
| | | | | | | | | | | | | | | | | | | install(1) doesn't work well in Darwin. It seems to be unable to handle </dev/stdin>. The problem seems to be that Darwin's stdin misbehaves. I've only workarounded the install target, and not the dist target, since it's unlikely that one would run it in such a broken system. But since installing the pages is a common operation that everybody needs, let's work around it here. Fixes: 30c38a8bf8ae ("*.mk: Pipe to install(1)") Link: <https://github.com/NixOS/nixpkgs/pull/300797> Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=218730> Reported-by: Sergei Trofimovich <slyich@gmail.com> Reported-by: Mario Rodas <https://github.com/marsam> Cc: Eli Schwartz <eschwartz93@gmail.com> Cc: Pádraig Brady <P@draigBrady.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Use the system's man(7) macrosAlejandro Colomar2024-04-16-1613/+2
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* proc.5: Refer to split-out manual pages for detailed descriptionSalvatore Bonaccorso2024-04-14-1/+3
| | | | | | | | | | | | Back in August 2023 various parts of proc(5) were split out into separate manpages. The final cleanup in 92cdcec79df0 ("proc.5: Clean up after making sashimi of this page") missed to as well refer to the split out manpages and retained the wording that details are found further below in the manpages for the various files. Fixes: 92cdcec79df0 ("proc.5: Clean up after making sashimi of this page") Signed-off-by: Salvatore Bonaccorso <carnil@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* man3/, debian/debhelper.in/glibc-doc.links: Move link pages to their placeAlejandro Colomar2024-04-10-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Scripted change: $ cat debian/debhelper.in/glibc-doc.links \ | while read l; do \ echo $l \ | awk '{print $1}' \ | sed 's,usr/share/man/,.so ,' \ | sed 's,\.gz,,' \ > "$(echo $l \ | awk '{print $2}' \ | sed 's,usr/share/man/,,' \ | sed 's,\.gz,,')"; done; $ rm debian/debhelper.in/glibc-doc.links Link: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068188> Link: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068166> Link: <https://lore.kernel.org/linux-man/703ec07e-dd2b-bbc6-f1bc-f495e53b764f@gmail.com/T/> Cc: Marcos Fouces <marcos@debian.org> Cc: Sven Joachim <svenjoac@gmx.de> Cc: Bas Couwenberg <sebastic@xs4all.nl> Cc: Andreas Beckmann <anbe@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* Revert "debian/debhelper.in/glibc-doc.{links,manpages}, ↵Alejandro Colomar2024-04-10-0/+17
| | | | | | debian/local/manpages/pthread_*: drop the man pages for libpthread functions, as they are now included in manpages-dev. Closes: #1068188." This reverts commit c75bae912ab3b138687060df3701a888388e3d09.
* Import pthread_*.3 link pages' git history from debian/glibc.gitAlejandro Colomar2024-04-10-0/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are the link pages, which I forgot to import in 87183bb8e9ec ("Import debian/local/manpages/pthread_*.3 git history from debian/glibc") They aren't files in the debian repository, but they were generated at build time, which is the reason I missed them. Here's the process: $ git clone git@salsa.debian.org:glibc-team/glibc.git $ cd glibc/ $ git filter-repo --path debian/debhelper.in/glibc-doc.links $ git tag | xargs git tag -d $ git branch | xargs git branch -D $ git remote add man file:///home/alx/src/linux/man-pages/man-pages/.bare.git $ git fetch man $ git rebase man/contrib Subsequent commits will move the pages to the appropriate place. Fixes: 87183bb8e9ec ("Import debian/local/manpages/pthread_*.3 git history from debian/glibc") Link: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068188> Link: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068166> Link: <https://lore.kernel.org/linux-man/703ec07e-dd2b-bbc6-f1bc-f495e53b764f@gmail.com/T/> Cc: Marcos Fouces <marcos@debian.org> Cc: Sven Joachim <svenjoac@gmx.de> Cc: Bas Couwenberg <sebastic@xs4all.nl> Cc: Andreas Beckmann <anbe@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
| * debian/debhelper.in/glibc-doc.{links,manpages}, ↵Aurelien Jarno2024-04-10-17/+0
| | | | | | | | debian/local/manpages/pthread_*: drop the man pages for libpthread functions, as they are now included in manpages-dev. Closes: #1068188.
| * * Remove manpages now provided by manpages-dev (closes: bug#595194):Aurelien Jarno2024-04-10-2/+0
| | | | | | | | | | | | | | | | - pthread_kill_other_threads_np (3) - pthread_sigmask (3) svn path=/glibc-package/trunk/; revision=4409
| * * Remove manpage that will be provided by manpages-dev. Closes: bug#506515,Aurelien Jarno2024-04-10-18/+0
| | | | | | | | | | | | | | bug#505784. svn path=/glibc-package/branches/glibc-2.9/; revision=3223
| * * debian/debhelper.in/glibc-doc.links: add missing manpages links forAurelien Jarno2024-04-10-10/+28
| | | | | | | | | | | | | | functions documented with others. Closes: #413989. svn path=/glibc-package/trunk/; revision=2114
| * update trunk to 2.5-1Clint Adams2024-04-10-0/+3
| | | | | | | | svn path=/glibc-package/trunk/; revision=2040
| * * Backport from experimental (thanks Denis):Aurelien Jarno2024-04-10-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the GNU Libc Reference manual from glibc-doc because it is not DFSG-free. (Closes: #181494) The whole glibc-2.3.6/manual directory is removed from glibc-2.3.6.ds1.tar.bz2. - debian/control: Drop Build-Depends: texinfo, texi2html. - debian/control: Drop references to the antique libc-doc package. - all/cvs-manual-memory.diff: removed. - all/cvs-manual-string.diff: removed. svn path=/glibc-package/trunk/; revision=1742
| * Remove sem_*.3 manual pages from glibc-doc, these manual pages are updatedDenis Barbier2024-04-10-6/+0
| | | | | | | | | | | | and maintained in the manpages-dev package. (Closes: #365547) svn path=/glibc-package/trunk/; revision=1475
| * - debian/debhelper.in/glibc-doc.links: add manpages links for sem_*.GOTO Masanori2024-04-10-0/+5
| | | | | | | | svn path=/trunk/; revision=649
| * - debian/debhelper.in/glibc-doc.links: add missing links forGOTO Masanori2024-04-10-0/+13
| | | | | | | | | | | | | | pthread_mutex_*(), pthread_mutexattr_*(), pthread_cond_*(), and pthread_condattr_*(). svn path=/trunk/; revision=603
| * Files missed in merge. Clean *.doc-base.Daniel Jacobowitz2024-04-10-0/+5
|/ | | | svn path=/trunk/; revision=564
* share/mk/: Remove support for installing compressed pagesAlejandro Colomar2024-04-09-51/+4
| | | | | | | | | | | | | | | | I don't like compressed pages: they make it more difficult/slow to grep them. This was added to make it easier for users to install compressed pages even when installing from source, but probably nobody cares at all these days about a few KiB per page; drive space got cheap. Also, some of the algorithms were added just for benchmarking (for demonstrating that they were bad in this case), and not for real use. This reduces a use of compression tools, which seem to be dangerous these days. Link: <https://tukaani.org/xz-backdoor/> Link: <https://cmpct.info/~sam/blog/posts/automatic-manpage-compression/> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* S_ISBLK.3, S_ISCHR.3, S_ISDIR.3, S_ISFIFO.3, S_ISLNK.3, S_ISREG.3, ↵Alejandro Colomar2024-04-09-0/+7
| | | | | | | | S_ISSOCK.3: Add link pages to inode(7) These function-like macros are described in inode(7). Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build: Add exceptionsAlejandro Colomar2024-04-08-0/+4
| | | | | | With the larger font size, these pages have warnings. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $TROFFFLAGS: Use a larger font sizeAlejandro Colomar2024-04-08-1/+3
| | | | | | | | Link: <https://journals.uc.edu/index.php/vl/article/view/5765> Reported-by: Paul Eggert <eggert@cs.ucla.edu> Suggested-by: "G. Branden Robinson" <branden@debian.org> Cc: "Thomas E. Dickey" dickey@his.com Signed-off-by: Alejandro Colomar <alx@kernel.org>
* init_module.2: Document MODULE_INIT_COMPRESS_FILE flagMichael Weiß2024-04-04-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | finit_module() supports the MODULE_INIT_COMPRESS_FILE flag since Linux 5.17. See commit b1ae6dc41eaaa ("module: add in-kernel support for decompressing") During implementation of a secure module loader in GyroidOS, we wanted to filter unsafe module parameters. To verify that only the two documented flags which are disabling sanity checks are unsafe, we had a look in the current kernel implementation. We discovered that this new flag MODULE_INIT_COMPRESS_FILE was added. Having a deeper look at the code, we also discovered that a new error code EOPNOTSUPP is possible within newer kernels. The inital commit only supported gzip and xz compression algorithms. Support for zstd was added in Linux 6.2 by commit 169a58ad824d8 ("module/decompress: Support zstd in-kernel decompression") Signed-off-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* sigwait.3: Note sigprocmask(2) requirement, explicitly link ↵наб2024-04-04-1/+6
| | | | | | | | | | | | sigtimedwait(2)/NOTES This comes from a real user complaint. sigwait(3) is the most obvious of the family, and it doesn't mention any of the usage details. Most of these can be crosslinked, but not mentioning the sigprocmask(2) requirement is malice. Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* getpagesize.2, syscalls.2: ModernizationElliott Hughes2024-03-31-40/+20
| | | | | | | | | | | | | | | | | | | | Remove the HP-UX portability advice, since getpagesize() is a slightly better option than sysconf() for Linux systems. Explain why this function exists, and why this man page is in the wrong section. (The previous text tried to do both at the same, which was confusing.) Also explain how the vast majority of architectures that don't have a syscall (but do support multiple page sizes) actually work. Also de-emphasize the glibc 2.0 bug, since most people don't need to worry about compatibility with versions of glibc from 1997. Finally, change "not on x86" in syscalls.2 to say where there _is_ a syscall. Co-developed-by: Elliott Hughes <enh@google.com> Co-developed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* getgrouplist.3: EXAMPLES: Fix error handling for getpwnam(3)Fedor Lapshin2024-03-30-2/+7
| | | | | | Signed-off-by: Fedor Lapshin <fe.lap.prog@gmail.com> Co-developed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Useful Use of CatAlejandro Colomar2024-03-29-5/+2
| | | | | | Simplify a pipeline, by using cat(1) to actually catenate stuff. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Reorganize files for generating the PDF bookAlejandro Colomar2024-03-26-6/+7
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Generate the fonts during the buildAlejandro Colomar2024-03-26-7862/+89
| | | | | Suggested-by: "G. Branden Robinson" <branden@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* etc/clang-tidy/config.yaml: -llvm-header-guardAlejandro Colomar2024-03-26-0/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>