]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
17 months agodist.mk, version.mk: Create reproducible tarballs man-pages-6.05-a1
Alejandro Colomar [Tue, 11 Apr 2023 20:33:44 +0000 (22:33 +0200)] 
dist.mk, version.mk: Create reproducible tarballs

Anyone can create a tarball from a release tag, and it should be
identical to the release tarball, so that the PGP signature made at the
release matches.  This is useful for distributors.

Suggested-by: Marcos Fouces <marcos@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agofts.3: SYNOPSIS: Fix nullability
Alejandro Colomar [Tue, 11 Apr 2023 14:55:17 +0000 (16:55 +0200)] 
fts.3: SYNOPSIS: Fix nullability

Reported-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agofts.3: Note fts_open() behaviour with empty strings
наб [Tue, 11 Apr 2023 02:21:32 +0000 (04:21 +0200)] 
fts.3: Note fts_open() behaviour with empty strings

This is undocumented in BSD, too, and present in the original SCCS
check-in (5.1 (Berkeley) 12/30/89).

This is very surprising, since in most other cases FTS is rather quite
sane about error reporting, but /any/ empty string in the input vector
blows out the creation entirely.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agodist.mk: dist: Don't pollute stderr unnecessarily
Alejandro Colomar [Tue, 11 Apr 2023 02:30:31 +0000 (04:30 +0200)] 
dist.mk: dist: Don't pollute stderr unnecessarily

When running 'make dist' from a tarball (so we don't have git), we'll
see tons of errors saying we're not in a git tree.  However, that's not
meaningful, because that command is a no-op in such a scenario: the
(date) placeholder is not there anymore to be replaced.  Let's hide the
errors, unless V=1.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agodist.mk: dist-bz2: Use a timestamp newer than the .tar
Alejandro Colomar [Tue, 11 Apr 2023 00:36:36 +0000 (02:36 +0200)] 
dist.mk: dist-bz2: Use a timestamp newer than the .tar

Otherwise, make(1) goes crazy.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoRELEASE, dist.mk: Use make(1)'s -B to force recreation of the dist files
Alejandro Colomar [Tue, 11 Apr 2023 00:31:38 +0000 (02:31 +0200)] 
RELEASE, dist.mk: Use make(1)'s -B to force recreation of the dist files

Using FORCE unnecessarily restarts the entire build, even if we _know_
nothing changed.  That's boring.  Trust ourselves, and write the
commands in the RELEASE file as using '-B', to remind ourselves.
Forgetting to use -B will result in incorrect timestamps or versioning
in the distributed pages, so don't forget it ;).

While we're at it, let's also use -j4 directly, so I don't read the
paragraph reminding me to use -j _after_ I've already run it.  Let's
write -j4 instead of -j so that we don't crash some innocent's system.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agobpf-helpers.7: Refresh page (Linux 6.2)
Alejandro Colomar [Mon, 10 Apr 2023 23:21:10 +0000 (01:21 +0200)] 
bpf-helpers.7: Refresh page (Linux 6.2)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoscanf.3: srcfix
Alejandro Colomar [Mon, 10 Apr 2023 23:07:19 +0000 (01:07 +0200)] 
scanf.3: srcfix

That extra whitespace cuased issues to the Debian packaging tool that
autodetects the licenses from the SPDX header.

Cc: Marcos Fouces <marcos@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoCONTRIBUTING: Remove old links
Alejandro Colomar [Mon, 10 Apr 2023 16:37:20 +0000 (18:37 +0200)] 
CONTRIBUTING: Remove old links

I removed those pages from the website.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoREADME: Reorganize, and add some info
Alejandro Colomar [Sun, 9 Apr 2023 23:55:02 +0000 (01:55 +0200)] 
README: Reorganize, and add some info

-  Add "History" section, with a link to aeb's website with
   man-pages-1.* tarballs.
-  Move "Maintainers" to a subsection in the new "History" section.
-  Organize "Versions" into subsections ("Tarballs", "Git", and
   "Online pages").
-  Add links to the cgit websites of the git repositories.
-  Add link to the PDF online man-pages book.
-  wsfix in mtk's entry.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoREADME: See also: Add 'Downstream packages', and 'Related projects'
Alejandro Colomar [Sun, 9 Apr 2023 23:00:01 +0000 (01:00 +0200)] 
README: See also: Add 'Downstream packages', and 'Related projects'

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoCONTRIBUTING: Add Linux API mailing list
Alejandro Colomar [Sun, 9 Apr 2023 21:58:52 +0000 (23:58 +0200)] 
CONTRIBUTING: Add Linux API mailing list

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoerofs.5: Minor tweaks to наб's patch
Alejandro Colomar [Sun, 9 Apr 2023 23:50:15 +0000 (01:50 +0200)] 
erofs.5: Minor tweaks to наб's patch

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agofilesystems.5, erofs.5: add erofs documentation
наб [Sun, 9 Apr 2023 22:27:04 +0000 (00:27 +0200)] 
filesystems.5, erofs.5: add erofs documentation

Modelled after tmpfs(5) ‒ there's a listing of mount options, and a
summary of limitations.  The feature flags are described in mkfs.erofs,
and they're versioned and maintained upstream quite well there, so no
need to duplicate those, since you only care on image creation.

The real value add is the mount options, but I cannot figure out how
device_id and fsid interact with the system at large, so I just noted
they're there.

State as of Linux 6.3-rc5.

Also, remove explicit .TP indent in filesystems.5 since we're already
touching this hunk: all entries sans iso9660 and Reiserfs fall within
the default prevailing indent, so no need to specify a wide one.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agodist.mk: dist, dist-bz2: Create tarballs compressed with bzip2(1)
Alejandro Colomar [Sun, 9 Apr 2023 11:22:52 +0000 (13:22 +0200)] 
dist.mk: dist, dist-bz2: Create tarballs compressed with bzip2(1)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoMakefile: help-variables: Document $CP command variable
Alejandro Colomar [Sun, 9 Apr 2023 11:06:27 +0000 (13:06 +0200)] 
Makefile: help-variables: Document $CP command variable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months ago*.mk: $Z: Support installing bzip2 compressed pages
Alejandro Colomar [Sun, 9 Apr 2023 11:04:48 +0000 (13:04 +0200)] 
*.mk: $Z: Support installing bzip2 compressed pages

Gentoo currently installs pages compressed with this format.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoinstall-man.mk: tfix
Alejandro Colomar [Sat, 8 Apr 2023 22:49:19 +0000 (00:49 +0200)] 
install-man.mk: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoinstall-man.mk: Fix symlink installation
Alejandro Colomar [Sat, 8 Apr 2023 22:47:22 +0000 (00:47 +0200)] 
install-man.mk: Fix symlink installation

Some pages have not only an '.so ' line, but also comments; ignore the
comments.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoioctl_pipe.2: Add page
Cyril Hrubis [Mon, 3 Apr 2023 14:08:56 +0000 (16:08 +0200)] 
ioctl_pipe.2: Add page

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoioctl_userfaultfd.2: Add UFFD_FEATURE_EXACT_ADDRESS
Nadav Amit [Mon, 7 Mar 2022 18:48:51 +0000 (18:48 +0000)] 
ioctl_userfaultfd.2: Add UFFD_FEATURE_EXACT_ADDRESS

Describe the new UFFD_FEATURE_EXACT_ADDRESS API feature.

Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agopersonality.2: review, update for Linux 6.2
наб [Sat, 8 Apr 2023 00:02:00 +0000 (02:02 +0200)] 
personality.2: review, update for Linux 6.2

Settle on "no effect", concretify vaguely-described behaviours;
both [to be documented]s replaced with documentation
(these match my 6.2 checkout, if there were subtleties in the history
 they got lost).

Added the full system names to the PER_s that lacked them.

Didn't validate or chase down the versions except for PER_RISCOS.

Having these be sorted instead of in the original enumeration order is
really more trouble than it's worth.

Cf. the UAPI definition:
  /*
   * Personality types.
   *
   * These go in the low byte.  Avoid using the top bit, it will
   * conflict with error returns.
   */
  enum {
          PER_LINUX =             0x0000,
          PER_LINUX_32BIT =       0x0000 | ADDR_LIMIT_32BIT,
          PER_LINUX_FDPIC =       0x0000 | FDPIC_FUNCPTRS,
          PER_SVR4 =              0x0001 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,
          PER_SVR3 =              0x0002 | STICKY_TIMEOUTS | SHORT_INODE,
          PER_SCOSVR3 =           0x0003 | STICKY_TIMEOUTS |
                                           WHOLE_SECONDS | SHORT_INODE,
          PER_OSR5 =              0x0003 | STICKY_TIMEOUTS | WHOLE_SECONDS,
          PER_WYSEV386 =          0x0004 | STICKY_TIMEOUTS | SHORT_INODE,
          PER_ISCR4 =             0x0005 | STICKY_TIMEOUTS,
          PER_BSD =               0x0006,
          PER_SUNOS =             0x0006 | STICKY_TIMEOUTS,
          PER_XENIX =             0x0007 | STICKY_TIMEOUTS | SHORT_INODE,
          PER_LINUX32 =           0x0008,
          PER_LINUX32_3GB =       0x0008 | ADDR_LIMIT_3GB,
          PER_IRIX32 =            0x0009 | STICKY_TIMEOUTS,/* IRIX5 32-bit */
          PER_IRIXN32 =           0x000a | STICKY_TIMEOUTS,/* IRIX6 new 32-bit */
          PER_IRIX64 =            0x000b | STICKY_TIMEOUTS,/* IRIX6 64-bit */
          PER_RISCOS =            0x000c,
          PER_SOLARIS =           0x000d | STICKY_TIMEOUTS,
          PER_UW7 =               0x000e | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,
          PER_OSF4 =              0x000f,                  /* OSF/1 v4 */
          PER_HPUX =              0x0010,
          PER_MASK =              0x00ff,
  };

PER_LINUX is a base personality, PER_LINUX_{32BIT,FDPIC} are
PER_LINUX|ADDR_LIMIT_32BIT and PER_LINUX|FDPIC_FUNCPTRS, resp.

PER_BSD is a base personality, PER_SUNOS is PER_BSD|STICKY_TIMEOUTS.

PER_LINUX32 is a base personality, PER_LINUX32_3GB is
PER_LINUX32|ADDR_LIMIT_3GB.

I updated these all to be "Same as {base personality},
but implies {...}.". PER_SCOSVR3 has an "also", since it's the only one
where the base case PER_OSR5 has a list.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agortnetlink.7: Document IFLA_PERM_ADDRESS
Linus Heckemann [Thu, 6 Apr 2023 08:44:45 +0000 (10:44 +0200)] 
rtnetlink.7: Document IFLA_PERM_ADDRESS

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agostat.3type: tfix
Daniel Verkamp [Thu, 6 Apr 2023 06:58:03 +0000 (23:58 -0700)] 
stat.3type: tfix

Signed-off-by: Daniel Verkamp <daniel@drv.nu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agomlock.2: wfix
Avinesh Kumar [Wed, 5 Apr 2023 10:44:26 +0000 (16:14 +0530)] 
mlock.2: wfix

Signed-off-by: Avinesh Kumar <akumar@suse.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoproc.5: note effective removal of /proc/execdomains in v4.1
наб [Fri, 7 Apr 2023 15:39:49 +0000 (17:39 +0200)] 
proc.5: note effective removal of /proc/execdomains in v4.1

The file was turned into a fixed string in upstream commit
973f911f55a0e510dd6db8bbb29cd82ff138d3c0 ("Remove execution domain
support"); the entire mechanism was fully removed in a patchset by
Weinberger ending at commit 720d70716d137c0cb83b9a5279c384286c02a1c0
("sparc: Fix execution domain removal").

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agomalloc_usable_size.3: The returned value should not be trusted
Alejandro Colomar [Wed, 5 Apr 2023 21:11:51 +0000 (23:11 +0200)] 
malloc_usable_size.3: The returned value should not be trusted

It might very well return a value larger than the actual usable size, so
writing to the excess bytes is Undefined Behavior.  There's absolutely
no promise about the value, except that it is no less than the size
that was once passed to malloc(3).

Link: <https://github.com/systemd/systemd/issues/22801#issuecomment-1343041481>
Link: <https://inbox.sourceware.org/libc-alpha/20221124213258.305192-1-siddhesh@gotplt.org/T/>
Reported-by: Mingye Wang <arthur200126@gmail.com>
Reported-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
Cc: DJ Delorie <dj@redhat.com>
Cc: Sam James <sam@gentoo.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Zack Weinberg <zack@owlfolio.org>
Cc: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agobash_aliases: Optimize man_section()
Alejandro Colomar [Fri, 7 Apr 2023 20:58:30 +0000 (22:58 +0200)] 
bash_aliases: Optimize man_section()

mandoc(1) renders pages much faster than groff(1), which is itself much
faster than using man(1).  This might seem irrelevant for a single page,
but this function is called in a loop in man_lsfunc() and man_lsvar(),
where this brings times down considerably.  For comparison,
`time man_lsfunc man*` took around 55 s (on my system) before this
change.  With groff(1), it would take around 14 s, and with mandoc(1)
(this patch), it takes 4 s.

Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Gavin Smith <gavinsmith0123@gmail.com>
Cc: Dirk Gouders <dirk@gouders.net>
Cc: Colin Watson <cjwatson@debian.org>
Cc: Eli Zaretskii <eliz@gnu.org>
Cc: Larry McVoy <lm@mcvoy.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoremovexattr.2: srcfix
Alejandro Colomar [Fri, 7 Apr 2023 20:51:12 +0000 (22:51 +0200)] 
removexattr.2: srcfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agofeature_test_macros.7: Document Clang fortify support
Mingye Wang [Wed, 22 Mar 2023 08:18:27 +0000 (16:18 +0800)] 
feature_test_macros.7: Document Clang fortify support

This commit lists both gcc and clang versions. It also happens to fix
the "glibc 4.0" mistake in b324e17d3208c940622ab192609b836928d5aa8d.

Fixes: b324e17d3208 ("Many pages: wfix")
Signed-off-by: Mingye Wang <arthur200126@gmail.com>
Acked-by: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoman*/: srcfix
Alejandro Colomar [Wed, 5 Apr 2023 01:15:52 +0000 (03:15 +0200)] 
man*/: srcfix

Reported-by: mandoc(1) (`make lint-man-mandoc`)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agocmd.mk, dist.mk: Keep file modes in the tarball
Alejandro Colomar [Mon, 3 Apr 2023 01:13:23 +0000 (03:13 +0200)] 
cmd.mk, dist.mk: Keep file modes in the tarball

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoStart of man-pages-NEXT: Move Changes to Changes.old
Alejandro Colomar [Mon, 3 Apr 2023 00:58:04 +0000 (02:58 +0200)] 
Start of man-pages-NEXT: Move Changes to Changes.old

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoChanges: 6.04 documented also LANDLOCK_ACCESS_FS_TRUNCATE
Alejandro Colomar [Mon, 3 Apr 2023 00:56:17 +0000 (02:56 +0200)] 
Changes: 6.04 documented also LANDLOCK_ACCESS_FS_TRUNCATE

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agolsm: Released 6.04
Alejandro Colomar [Mon, 3 Apr 2023 00:31:12 +0000 (02:31 +0200)] 
lsm: Released 6.04

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoChanges: Ready for 6.04 man-pages-6.04
Alejandro Colomar [Mon, 3 Apr 2023 00:20:31 +0000 (02:20 +0200)] 
Changes: Ready for 6.04

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agodifftime.3: Don't suggest redefining a reserved identifier
Alejandro Colomar [Sun, 2 Apr 2023 23:39:18 +0000 (01:39 +0200)] 
difftime.3: Don't suggest redefining a reserved identifier

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agogetopt.3: Remove const from argv
Alejandro Colomar [Sun, 2 Apr 2023 23:37:43 +0000 (01:37 +0200)] 
getopt.3: Remove const from argv

It is unnecessary to let readers believe it's const.  Keep it as a
detail in VERSIONS, which will only be found by those who need it.  It
is better to believe it's non-const, and rarely will one need to know
that it isn't true.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoman2/: Remove repetitive documentation of [s]size_t
Alejandro Colomar [Sun, 2 Apr 2023 23:20:30 +0000 (01:20 +0200)] 
man2/: Remove repetitive documentation of [s]size_t

We already have an entire page for the types.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoman2/, sockaddr.3type: Move text to sockaddr.3type
Alejandro Colomar [Sun, 2 Apr 2023 23:11:40 +0000 (01:11 +0200)] 
man2/, sockaddr.3type: Move text to sockaddr.3type

Move text about socklen_t to its own page, and remove repetitive
references to read accept(2) (except from the type page itself).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoepoll_ctl.2: ffix
Alejandro Colomar [Sun, 2 Apr 2023 22:57:36 +0000 (00:57 +0200)] 
epoll_ctl.2: ffix

Reported-by: `make check-catman`
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoman*/: ffix
Alejandro Colomar [Sun, 2 Apr 2023 22:52:26 +0000 (00:52 +0200)] 
man*/: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoscripts/LinuxManBook/: Make the title consistent with the name of the project
Alejandro Colomar [Sun, 2 Apr 2023 18:16:37 +0000 (20:16 +0200)] 
scripts/LinuxManBook/: Make the title consistent with the name of the project

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months ago*.mk: Simplify build tree
Alejandro Colomar [Sun, 2 Apr 2023 13:30:34 +0000 (15:30 +0200)] 
*.mk: Simplify build tree

Reuse $_MANDIR (.tmp/man/) for most stuff we build (with the exception
of `make dist`).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoverbose.mk: Fix warning from GNU Make 4.4
Alejandro Colomar [Sun, 2 Apr 2023 13:03:54 +0000 (15:03 +0200)] 
verbose.mk: Fix warning from GNU Make 4.4

While '$(V).SILENT:' is a common idiom in make, it may be more explicit
to put '.SILENT:' inside a conditional.  Since we already used the
conditional for something else, it's not a big change.  As a nice side
effect, vim now recognizes it and highlights it as a special target.

With the old code, GNU Make 4.4 reported a warning about undefined
variables:

lib/verbose.mk:18: warning: undefined variable 'V'

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agolandlock.7: Fix warnings
Alejandro Colomar [Sun, 2 Apr 2023 01:32:44 +0000 (03:32 +0200)] 
landlock.7: Fix warnings

Reported-by: `make lint check`
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agolint-man.mk: Fix previous commit
Alejandro Colomar [Sun, 2 Apr 2023 01:27:07 +0000 (03:27 +0200)] 
lint-man.mk: Fix previous commit

I should have removed this in the previous commit, but somehow I forgot,
and my initial tests didn't reveal the bug.  After trying to check a
specific page as a contributor would do, I noticed the problem.

Fixes: aa344d4ba28c ("*.mk, CONTRIBUTING, INSTALL: lint, build, check: Reorganize some targets")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months ago*.mk, CONTRIBUTING, INSTALL: lint, build, check: Reorganize some targets
Alejandro Colomar [Sun, 2 Apr 2023 00:54:16 +0000 (02:54 +0200)] 
*.mk, CONTRIBUTING, INSTALL: lint, build, check: Reorganize some targets

Some targets which were under lint-* were really building cat pages, so
let's call it build-catman, since it's what it is.  As part of the
build, it will report warnings, of course, as any other build system, so
nothing really changed, except for the target names, and the path in the
build tree where the cat pages (and intermediate files) are placed,
which is now directly under <.tmp/man/*>.

Some other targets were checking that the cat pages were correct after
the build, so those targets have been moved to check-* targets.

Document that contributors should run both the 'lint' and 'check'
targets to check the correctness of their patches.

`make all`, a.k.a. `make build`, now builds _all_ that can be built,
including cat pages, and C programs.

Implementation detail: $LINTMAN has been renamed, since now it's used
also for things that are not linters.  Call it $NONSO_MAN, since it's a
list of the non-'.so' man pages, which are the ones we want to lint,
build, and check.

Future directions:

I plan to implement 'build-html' using groff(1), which will reuse part
of the build-catman pipeline.  That will produce much higher quality
HTML manual pages.

Cc: G. Branden Robinson <g.branden.robinson@gmail.com>
Cc: Elliott Hughes <enh@google.com>
Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoproc.5: NAME: Add "system information, and sysctl"
наб [Fri, 31 Mar 2023 22:04:52 +0000 (00:04 +0200)] 
proc.5: NAME: Add "system information, and sysctl"

procfs hosts a whole host of information about the system, as well as
sysctls; proc(5) hosts a description of a lot of sysctls, and at present
there's no way to find that out.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Cc: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agouser_namespaces.7: Add note about PR_SET_DUMPABLE on nested userns
Rodrigo Campos [Sat, 1 Apr 2023 12:59:26 +0000 (14:59 +0200)] 
user_namespaces.7: Add note about PR_SET_DUMPABLE on nested userns

In order to create a nested user namespace, we need to re-set the
PR_SET_DUMPABLE attribute after switching the effective UID/GID. Clarify
this in the section about nested user namespaces.

Having this note would have saved me some time debugging.

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoprintf.3: Fix wording for the 0 flag with given precision
Vincent Lefevre [Fri, 31 Mar 2023 14:33:32 +0000 (16:33 +0200)] 
printf.3: Fix wording for the 0 flag with given precision

When a precision is given, the 0 flag is ignored only for integer
conversions, not for all numeric conversions.

Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoprctl.2: ffix
Alejandro Colomar [Sat, 1 Apr 2023 14:18:44 +0000 (16:18 +0200)] 
prctl.2: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agomount_setattr.2: ffix
Patrick Reader [Fri, 31 Mar 2023 22:51:39 +0000 (00:51 +0200)] 
mount_setattr.2: ffix

Signed-off-by: Patrick Reader <_@pxeger.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoproc.5: Fix caps needed to read map_files contents
Younes Manton [Tue, 17 Jan 2023 18:03:36 +0000 (10:03 -0800)] 
proc.5: Fix caps needed to read map_files contents

imachug@yandex.ru testing CRIU noticed that the documentation for proc's
map_files directory with respect to CAP_CHECKPOINT_RESTORE and
namespaces appears to be wrong. The text reads:

> since Linux 5.9, the reading process must have
> either CAP_SYS_ADMIN or CAP_CHECKPOINT_RESTORE in the user
> namespace where it resides.

The reporter noted that the user actually needs the capabilities in the
initial user namespace, not in the namespace the process resides in.  As
far as I can tell this appears to be the case.

The text was introduced in 167f94b707148bcd46fe39c7d4ebfada9eed88f6
and refers to kernel commit 12886f8ab10ce6a09af1d92535d49c81aaa215a8.

The code and message in the kernel commit refer to the initial user
namespace.

An example program and shell session verifying the existing behaviour
follows:

$ uname -r
5.15.0-52-generic

$ ./test.sh
+ make rmf
cc rmf.c -o rmf
+ sudo setcap cap_checkpoint_restore-eip ./rmf
+ ./rmf
19582: =
Can't read map_files/ entry: Operation not permitted
+ sudo setcap cap_checkpoint_restore+eip ./rmf
+ ./rmf
19588: cap_checkpoint_restore=ep
+ unshare --user ./rmf
19591: cap_checkpoint_restore=ep
Can't read map_files/ entry: Operation not permitted

$ cat rmf.c

int main(int argc, char **argv)
{
    DIR *mfd;
    struct dirent *mfe;
    struct stat mfstat;
    int ret;

    system("getpcaps $PPID");

    chdir("/proc/self/map_files");
    mfd = opendir(".");
    do {
        mfe = readdir(mfd);
    } while (!strcmp(mfe->d_name, ".") || !strcmp(mfe->d_name, ".."));
    if (ret = stat(mfe->d_name, &mfstat))
        perror("Can't read map_files/ entry");
    closedir(mfd);

    return ret;
}

Signed-off-by: Younes Manton <younes.m@gmail.com>
Cc: <imachug@yandex.ru>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agolandlock.7: Document Landlock ABI v3 (file truncation; Linux 6.2)
Günther Noack [Fri, 24 Mar 2023 17:24:18 +0000 (18:24 +0100)] 
landlock.7: Document Landlock ABI v3 (file truncation; Linux 6.2)

https://git.kernel.org/torvalds/c/299e2b1967578b1442128ba8b3e86ed3427d3651

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Reviewed-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agolandlock.7: Document Landlock ABI v2 (file reparenting; Linux 5.19)
Günther Noack [Fri, 24 Mar 2023 17:24:17 +0000 (18:24 +0100)] 
landlock.7: Document Landlock ABI v2 (file reparenting; Linux 5.19)

* Add the description for LANDLOCK_ACCESS_FS_REFER,
  in line with recent update to the uapi headers:
  https://lore.kernel.org/linux-security-module/20230202204623.10345-1-gnoack3000@gmail.com/T/
* VERSIONS: Add a table of Landlock versions and their changes.
  Briefly talk about how to probe ABI levels and warn users about the
  special semantics of the LANDLOCK_ACCESS_FS_REFER right.
* Add LANDLOCK_ACCESS_FS_REFER to the code example.

Code review threads for the "refer" feature:
* https://git.kernel.org/torvalds/c/cb44e4f061e16be65b8a16505e121490c66d30d0
* https://lore.kernel.org/all/20230221165205.4231-1-gnoack3000@gmail.com/ (documentation update)

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Reviewed-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agosymlink.7: cross-link to proc.5 for fs.protected_symlinks
наб [Mon, 27 Mar 2023 12:29:33 +0000 (14:29 +0200)] 
symlink.7: cross-link to proc.5 for fs.protected_symlinks

This is on by default in Debian, maybe the next reader won't spend an
hour tracing the kernel

Fixes: e8ff4f53ab9a7cbd ("Remove information migrated to inode(7) page")
Closes: https://bugs.debian.org/1033477
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Cc: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoman3type/: tfix
Wu Zhenyu [Thu, 30 Mar 2023 17:02:07 +0000 (01:02 +0800)] 
man3type/: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoclock_getres.2: tfix
Jakub Wilk [Fri, 31 Mar 2023 18:53:37 +0000 (20:53 +0200)] 
clock_getres.2: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agomknod.2: ffix
Jakub Wilk [Fri, 31 Mar 2023 18:56:45 +0000 (20:56 +0200)] 
mknod.2: ffix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoproc.5: Document KPF_PGTABLE for /proc/kpageflags
Marco Bonelli [Fri, 17 Jun 2022 12:22:44 +0000 (14:22 +0200)] 
proc.5: Document KPF_PGTABLE for /proc/kpageflags

KPG_PGTABLE (bit 26) was introduced in Linux v4.18 (commit
1d40a5ea01d53251c23c7be541d3f4a656cfc537).

Signed-off-by: Marco Bonelli <marco@mebeim.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
17 months agoman*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections
Alejandro Colomar [Fri, 17 Mar 2023 16:08:01 +0000 (17:08 +0100)] 
man*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections

-  Add a new HISTORY section that covers the history of an API, both
   regarding implementations and regarding old standards.  This was
   previously covered in VERSIONS, and in some cases in STANDARDS.

-  Repurpose VERSIONS to cover differing implementations in _current_
   systems.

-  STANDARDS is reduced to only cover current versions of standards.
   That basically means only C11 (C99 has been superseeded by C11; C17
   is just a bugfix of C11, so not really a new version), and
   POSIX.1-2008 (*-2001 was superseeded by *-2008; *-2017 was just a
   bugfix for *-2008).  The section also mentions for example 'Linux',
   'GNU' or 'BSD' when a non-standard API is Linux- or GNU-only or if
   it's (de-facto) standard in the BSDs.

-  In some cases content that should go into one of these sections was
   in NOTES.  Move it from there to where it corresponds.

-  In the SYNOPSIS, I added [[deprecated]] in some functions that I
   found are deprecated by the relevant standards.

-  A few other related changes...

Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoman*/: Replace links to <sources.redhat.com>
Yedidyah Bar David [Tue, 21 Mar 2023 10:43:06 +0000 (12:43 +0200)] 
man*/: Replace links to <sources.redhat.com>

<sources.redhat.com/bugzilla> seems broken right now.

Apparently it was replaced, quite a long time ago --based on what I can
find on the net-- with <www.sourceware.org/bugzilla>, which does work.

This patch was created with:

$ find man* -type f \
| xargs grep -l 'sources.redhat.com/bugzilla' \
| xargs sed -i 's;http://sources.redhat.com/bugzilla/;https://www.sourceware.org/bugzilla/;g'

Verified with:

$ git diff | sed -n 's;^+.*\(https://www.sourceware.org/bugzilla/show_bug.cgi?id=[0-9]*\).*;\1;p' > URLs
$ mkdir test
$ cd test
$ wget -i ../URLs

Signed-off-by: Yedidyah Bar David <didi@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoCONTRIBUTING: Recommend make(1)'s -W, rather than actually touching the file
Alejandro Colomar [Sun, 19 Mar 2023 15:41:17 +0000 (16:41 +0100)] 
CONTRIBUTING: Recommend make(1)'s -W, rather than actually touching the file

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agotimer_settime.2: SYNOPSIS: Put timer_gettime() first
Alejandro Colomar [Sat, 18 Mar 2023 13:52:36 +0000 (14:52 +0100)] 
timer_settime.2: SYNOPSIS: Put timer_gettime() first

This matches the order in getitimer(2), and so makes it easier to
compare them.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoarc4random.3: Simplify STANDARDS; add HISTORY
Alejandro Colomar [Sat, 18 Mar 2023 01:21:46 +0000 (02:21 +0100)] 
arc4random.3: Simplify STANDARDS; add HISTORY

Data copied from libbsd's page.

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agobind.2: NOTES: Remove section
Alejandro Colomar [Sat, 18 Mar 2023 00:57:32 +0000 (01:57 +0100)] 
bind.2: NOTES: Remove section

'socklen_t' now has its own manual page.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoman*/: tfix
Tom Schwindl [Fri, 17 Mar 2023 23:16:40 +0000 (23:16 +0000)] 
man*/: tfix

Signed-off-by: Tom Schwindl <schwindl@posteo.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoman2/, man3/, man-pages.7: Move VERSIONS next to STANDARDS
Alejandro Colomar [Fri, 17 Mar 2023 14:00:52 +0000 (15:00 +0100)] 
man2/, man3/, man-pages.7: Move VERSIONS next to STANDARDS

VERSIONS and STANDARDS are closely related (and often the distinction is
not so clear).  Now that we're going to add another section, HISTORY,
that is related to both, it makes sense to have the three together.

As a curiosity, the list in man-pages(7) that detailed what each section
should contain had them by accident(?) in the order that we're moving
to, instead of the order that was used elsewhere.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agofeature_test_macros.7: STANDARDS: Some ftm are specific to glibc, not Linux
Alejandro Colomar [Fri, 17 Mar 2023 14:31:02 +0000 (15:31 +0100)] 
feature_test_macros.7: STANDARDS: Some ftm are specific to glibc, not Linux

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoinode.7: STANDARDS: Remove bogus recommendation
Alejandro Colomar [Fri, 17 Mar 2023 14:14:41 +0000 (15:14 +0100)] 
inode.7: STANDARDS: Remove bogus recommendation

'blkcnt_t' is defined in <sys/types.h>, per POSIX.1-2001, as
blkcnt_t(3type) documents.  Also, it doesn't need any ftm(7) to be
defined, AFAICS:

    $ cat blkcnt_t.c
    #include <sys/types.h>

    int main(void) {
        blkcnt_t x;

        return x = 0;
    }
    $ cc -Wall -Wextra blkcnt_t.c
    $

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agocapabilities.7: ffix
Alejandro Colomar [Fri, 17 Mar 2023 14:08:33 +0000 (15:08 +0100)] 
capabilities.7: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agohier.7: ffix
Alejandro Colomar [Fri, 17 Mar 2023 14:06:02 +0000 (15:06 +0100)] 
hier.7: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoip.7: Fix IP_MULTICAST_ALL description
Christoph Lameter [Wed, 15 Mar 2023 23:43:58 +0000 (00:43 +0100)] 
ip.7: Fix IP_MULTICAST_ALL description

INADDR_ANY has nothing to do with the IP_MULTICAST_ALL option.
It does not matter if the interface is bound to all interfaces
or a particular interface for the functionality of IP_MULTICAST_ALL.

Multicast datagrams are addressed to a multicast IP address and will enter
the network stack via a particular interface. The application can choose
from which interface it will receive multicast data by binding the socket
to an IP address. It can then use the IP_MULTICAST_ALL option to
restrict the multicast groups that the IP stack will deliver via the
socket.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agosuffixes.7: ffix
Alejandro Colomar [Fri, 17 Mar 2023 13:06:03 +0000 (14:06 +0100)] 
suffixes.7: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agosuffixes.7: Add .shtml
Alejandro Colomar [Fri, 17 Mar 2023 13:05:38 +0000 (14:05 +0100)] 
suffixes.7: Add .shtml

Link: <https://stackoverflow.com/questions/519619/what-is-the-purpose-and-uniqueness-shtml>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoarc4random.3, man-pages.7: ffix
Alejandro Colomar [Wed, 15 Mar 2023 11:50:22 +0000 (12:50 +0100)] 
arc4random.3, man-pages.7: ffix

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Cc: Tom Schwindl <schwindl@posteo.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agostandards.7: ffix
Oskari Pirhonen [Mon, 13 Mar 2023 03:00:41 +0000 (22:00 -0500)] 
standards.7: ffix

Fix indentation of the LFS entry.

Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoRevert "Many pages: Remove references to C89"
Alejandro Colomar [Mon, 13 Mar 2023 12:02:26 +0000 (13:02 +0100)] 
Revert "Many pages: Remove references to C89"

This reverts commit 72b349dd8c209d7375d4d4f76e2315943d654ee9.

This removal caused inconveniences to some programmers.  We've agreed to
keep the information about C89, since there's an easy way to keep it
correct by checking against a plain-text copy of the standard itself:

    $ stdc89()
      {
          grep "[[:alpha:]] \**\b$1([[:alnum:]*,. ]*);" /path/to/c89-draft.txt;
      }
    $ stdc89 printf
         int printf(const char *format, ...);
         int printf(const char *format, ...);

We will also do a split of the information in STANDARDS, since now it's
a mix of what a proper STANDARDS section would be plus a HISTORY section
commonly-found in other manual pages.  C89 will go into HISTORY.

Link: <https://lore.kernel.org/linux-man/b73a9636-1a17-36f3-3718-d9ca3b9293ed@gmail.com/T/>
Link: <https://port70.net/~nsz/c/c89/c89-draft.txt>
Reported-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Reported-by: Matt Jolly <Matt.Jolly@footclan.ninja>
Cc: Brian Inglis <Brian.Inglis@Shaw.ca>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agosession-keyring.7: ffix
Alejandro Colomar [Sun, 12 Mar 2023 12:17:54 +0000 (13:17 +0100)] 
session-keyring.7: ffix

Add a man-page reference at the first occurence of PAM.

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agocharsets.7: „German“ quotations are not old-style, but rather standard
Alejandro Colomar [Sun, 12 Mar 2023 12:14:15 +0000 (13:14 +0100)] 
charsets.7: „German“ quotations are not old-style, but rather standard

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoman*/: Fix ISO -> ISO/IEC where appropriate
Alejandro Colomar [Sun, 12 Mar 2023 12:11:12 +0000 (13:11 +0100)] 
man*/: Fix ISO -> ISO/IEC where appropriate

Link: <https://www.iso.org>
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months ago.gitignore, *.mk, README, RELEASE: Make $builddir a hidden dir
Alejandro Colomar [Sun, 12 Mar 2023 11:35:38 +0000 (12:35 +0100)] 
.gitignore, *.mk, README, RELEASE: Make $builddir a hidden dir

Use <.tmp> instead of <tmp>.  This makes it easier to ignore it in
things like recursive searches.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoman7/: ffix
Alejandro Colomar [Sun, 12 Mar 2023 11:00:54 +0000 (12:00 +0100)] 
man7/: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months ago*.mk: Remove unnecessary '.' after directory names (but keep the '/')
Alejandro Colomar [Sat, 11 Mar 2023 23:57:00 +0000 (00:57 +0100)] 
*.mk: Remove unnecessary '.' after directory names (but keep the '/')

I used it for some reason I don't remember, probably because I did
something wrong, and didn't know how to do it right.  I've tried now
without it, and it's working, so let's just remove it.

While we don't want trailing slashes in directory variables, we want
them in targets, so we can distinguish directory targets.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoboot.7: ffix
Alejandro Colomar [Sat, 11 Mar 2023 23:40:08 +0000 (00:40 +0100)] 
boot.7: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoboot.7: wfix + ffix
Alejandro Colomar [Sat, 11 Mar 2023 23:37:23 +0000 (00:37 +0100)] 
boot.7: wfix + ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoman7/: ffix
Alejandro Colomar [Sat, 11 Mar 2023 23:18:56 +0000 (00:18 +0100)] 
man7/: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoCONTRIBUTING: Use make(1)'s '-t' to avoid linting everything
Alejandro Colomar [Sat, 11 Mar 2023 15:25:21 +0000 (16:25 +0100)] 
CONTRIBUTING: Use make(1)'s '-t' to avoid linting everything

Suggested-by: Paul Smith <psmith@gnu.org>
Cc: Dmitry Goncharov <dgoncharov@users.sf.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months ago*.mk: Prefix recipes that create directories with '+'
Alejandro Colomar [Sat, 11 Mar 2023 14:48:07 +0000 (15:48 +0100)] 
*.mk: Prefix recipes that create directories with '+'

This will allow running using make(1)'s '-t'.

Reported-by: Paul Smith <psmith@gnu.org>
Cc: Dmitry Goncharov <dgoncharov@users.sf.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoldconfig.8: tfix
Samanta Navarro [Sat, 11 Mar 2023 11:59:54 +0000 (11:59 +0000)] 
ldconfig.8: tfix

Typo found with codespell.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoINSTALL, Makefile: Document available variables.
Alejandro Colomar [Sat, 11 Mar 2023 13:30:49 +0000 (14:30 +0100)] 
INSTALL, Makefile: Document available variables.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agobuild-src.mk, cmd.mk: Use pkgconf(1) instead of pkg-config(1)
Alejandro Colomar [Sat, 11 Mar 2023 13:18:06 +0000 (14:18 +0100)] 
build-src.mk, cmd.mk: Use pkgconf(1) instead of pkg-config(1)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agobuild-html.mk: Don't ignore $(htmlext)
Alejandro Colomar [Sat, 11 Mar 2023 12:38:41 +0000 (13:38 +0100)] 
build-html.mk: Don't ignore $(htmlext)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agostandards.7: ffix
Jakub Wilk [Fri, 10 Mar 2023 13:49:59 +0000 (14:49 +0100)] 
standards.7: ffix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agolint-man.mk: lint-man-groff-eqn: Fix error detection
Alejandro Colomar [Fri, 10 Mar 2023 12:21:12 +0000 (13:21 +0100)] 
lint-man.mk: lint-man-groff-eqn: Fix error detection

eqn(1) could theoretically write _only_ newlines to standard error.
That's unlikely, but I'm still worried that someone (even me) might copy
this trick around, and use it in situations where that might actually
happen.  Let's be more precise, and fail when there's literally anything
on standard error.

Reported-by: Ralph Corderoy <ralph@inputplus.co.uk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agolint-man.mk: lint-man-groff-eqn: Fail if eqn(1) writes to stderr
Alejandro Colomar [Fri, 10 Mar 2023 11:25:57 +0000 (12:25 +0100)] 
lint-man.mk: lint-man-groff-eqn: Fail if eqn(1) writes to stderr

eqn(1) still exits with 0 after reporting errors.  Let's grep stderr,
and if there's anything, fail.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoMakefile, lint-man.mk: Delete files on error
Alejandro Colomar [Fri, 10 Mar 2023 11:18:29 +0000 (12:18 +0100)] 
Makefile, lint-man.mk: Delete files on error

Without .DELETE_ON_ERROR, if a command fails, but has written to a file
(e.g., with '>'), the file will still exist, and successive make(1)
invocations will think it previously succeeded.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoMakefile, lint-man.mk: lint-man-groff-preconv: Add preconv(1) to the groff(1) pipeline
Alejandro Colomar [Fri, 10 Mar 2023 11:18:29 +0000 (12:18 +0100)] 
Makefile, lint-man.mk: lint-man-groff-preconv: Add preconv(1) to the groff(1) pipeline

Without it, some pages fail in 'lint-man-groff-eqn', and would should
weird characters.

Suggested-by: Ralph Corderoy <ralph@inputplus.co.uk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
18 months agoposix_memalign.3: SYNOPSIS: Mark functions as [[deprecated]]
Alejandro Colomar [Fri, 10 Mar 2023 00:41:50 +0000 (01:41 +0100)] 
posix_memalign.3: SYNOPSIS: Mark functions as [[deprecated]]

These functions are declared as obsolete in the same page.

Signed-off-by: Alejandro Colomar <alx@kernel.org>