]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
2 years agoepoll_wait.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 18:06:34 +0000 (19:06 +0100)] 
epoll_wait.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoepoll_ctl.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 18:04:18 +0000 (19:04 +0100)] 
epoll_ctl.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agocopy_file_range.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 17:57:57 +0000 (18:57 +0100)] 
copy_file_range.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoclone.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 17:47:33 +0000 (18:47 +0100)] 
clone.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoclock_nanosleep.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 17:19:37 +0000 (18:19 +0100)] 
clock_nanosleep.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoclock_getres.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 15:44:48 +0000 (16:44 +0100)] 
clock_getres.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoacct.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 15:28:39 +0000 (16:28 +0100)] 
acct.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoaccept.2: SYNOPSIS: Add _Nullable
Alejandro Colomar [Sat, 3 Dec 2022 15:26:07 +0000 (16:26 +0100)] 
accept.2: SYNOPSIS: Add _Nullable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoselect_tut.2: tfix
Jakub Wilk [Sat, 3 Dec 2022 14:57:58 +0000 (15:57 +0100)] 
select_tut.2: tfix

Add missing comma.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years ago_Static_assert.3, static_assert.3: Add documentation for static_assert()
Alejandro Colomar [Fri, 2 Dec 2022 15:11:46 +0000 (16:11 +0100)] 
_Static_assert.3, static_assert.3: Add documentation for static_assert()

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING, README, lsm: Remove mtk as maintainer
Alejandro Colomar [Fri, 2 Dec 2022 11:25:11 +0000 (12:25 +0100)] 
CONTRIBUTING, README, lsm: Remove mtk as maintainer

He's been AWOL for more than a year.  Let's document reality.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoconfstr.3: srcfix
Jakub Wilk [Thu, 24 Nov 2022 15:10:34 +0000 (16:10 +0100)] 
confstr.3: srcfix

At least on Debian systems, there's no "confstr" in the info directory
node, so the command "info confstr" either fails with:

    info: No menu item 'confstr' in node '(dir)Top'

or shows you this very man page.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years ago.mailmap, README: Add .mailmap file
Alejandro Colomar [Tue, 22 Nov 2022 20:20:06 +0000 (21:20 +0100)] 
.mailmap, README: Add .mailmap file

See gitmailmap(5).

Map my addresses to "Alejandro Colomar <alx@kernel.org>".

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agosendfile.2, vfork.2, alloca.3, getcontext.3, tmpfs.5, ttytype.5, spufs.7: ffix
Alejandro Colomar [Thu, 10 Nov 2022 19:15:04 +0000 (20:15 +0100)] 
sendfile.2, vfork.2, alloca.3, getcontext.3, tmpfs.5, ttytype.5, spufs.7: ffix

Break lines containing two man page references into a line for each.
This is not only more consistent with our guidelines (man-pages(7));
it also helps prepare for the future adoption of the MR man(7) macro.

Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agobash_aliases: Remove grep_syscall(), grep_syscall_def(), and grep_glibc_prototype()
Alejandro Colomar [Tue, 22 Nov 2022 19:38:26 +0000 (20:38 +0100)] 
bash_aliases: Remove grep_syscall(), grep_syscall_def(), and grep_glibc_prototype()

The functionality of those shell functions is covered by the grepc(1)
program: <http://www.alejandro-colomar.es/src/alx/alx/grepc.git/>.

The program has several bug fixes that these shell functions didn't
receive.  It also has more useful features.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING, MAINTAINER_NOTES: Remove MAINTAINER_NOTES
Alejandro Colomar [Tue, 22 Nov 2022 19:33:36 +0000 (20:33 +0100)] 
CONTRIBUTING, MAINTAINER_NOTES: Remove MAINTAINER_NOTES

That file is also interesting to contributors, and fits nicely into
CONTRIBUTING.  Move the text there, and remove the file.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING: Move style guide to description
Alejandro Colomar [Tue, 22 Nov 2022 19:29:48 +0000 (20:29 +0100)] 
CONTRIBUTING: Move style guide to description

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING: tfix
Thomas Voss [Fri, 18 Nov 2022 09:17:27 +0000 (10:17 +0100)] 
CONTRIBUTING: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agosyscall.2: add loongarch
Xi Ruoyao [Sat, 5 Nov 2022 02:15:14 +0000 (10:15 +0800)] 
syscall.2: add loongarch

Link: https://lore.kernel.org/loongarch/1f353678-3398-e30b-1c87-6edb278f74db@xen0n.name/
Link: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/loongarch/sysdep.h
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoINSTALL, RELEASE, cmd.mk, lint-man.mk: Use expr(1) instead of bc(1)
Alejandro Colomar [Thu, 17 Nov 2022 15:25:48 +0000 (16:25 +0100)] 
INSTALL, RELEASE, cmd.mk, lint-man.mk: Use expr(1) instead of bc(1)

Both bc(1) and expr(1) are in POSIX.  However, expr(1) is provided by
GNU coreutils, and seems simpler to use.  This will simplify the
dependencies required to package the project.

Document the change in dependencies too.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoREADME: tfix
Alejandro Colomar [Thu, 17 Nov 2022 13:15:12 +0000 (14:15 +0100)] 
README: tfix

Reported-by: Andries E. Brouwer <aeb@cwi.nl>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoEXIT_SUCCESS.3const, EXIT_FAILURE.3const: Add page and link
Thomas Voss [Thu, 17 Nov 2022 00:53:43 +0000 (01:53 +0100)] 
EXIT_SUCCESS.3const, EXIT_FAILURE.3const: Add page and link

Signed-off-by: Thomas Voss <mail@thomasvoss.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years ago_Generic.3: EXAMPLES: Add sockaddr_cast() macro
Alejandro Colomar [Fri, 11 Nov 2022 22:59:23 +0000 (23:59 +0100)] 
_Generic.3: EXAMPLES: Add sockaddr_cast() macro

This macro is an example of how C++-style casts can be implemented in C.
They are better than C's casts because they only allow certain
conversions, while disallowing most.  This adds considerable type
safety.  They also make code more greppable.

A macro similar to const_cast() can also be implemented in a similar
manner:

 /* This code is in the public domain. */

 #define qual_cast(t, p)                               \
    _Generic(typeof_unqual(&*(p)),                     \
    typeof_unqual(t):                                  \
        _Generic(&*(p),                                \
        const t:          (t) (p),                     \
        volatile t:       (t) (p),                     \
        const volatile t: (t) (p),                     \
        default:              (p))                     \
    default:                                           \
        (p)                                            \
    )

Note that typeof_unqual() is yet unsupported by GCC and Clang, and will
be added to C23.  Similar behavior can be achieved by combining GNU
builtins.

Cc: Andrew Clayton <andrew@digital-domain.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agomemmem.3: Add list of known systems where this is available
Andrew Clayton [Fri, 11 Nov 2022 01:27:24 +0000 (01:27 +0000)] 
memmem.3: Add list of known systems where this is available

While looking at which systems provide memmem(3) I have been able to
discern the following:

  musl libc since v0.9.7 (2012)
  bionic since Android 9 (2018)

  FreeBSD since 6.0 (2005)
  OpenBSD since 5.4 (2013)
  NetBSD
  macOS
  Illumos

For macOS and Illumos I checked the memmem(3) man page on those systems.
For the rest there are links below to on-line man pages or commit logs.

Where I could determine what version memmem(3) was introduced, I've
noted that in the man page.

Link: <http://git.musl-libc.org/cgit/musl/commit/src/string/memmem.c?id=c86f2974e2acd330be2d587173dd4dd56db82e22>
Link: <https://android.googlesource.com/platform/bionic/+/android-9.0.0_r3/libc/bionic/memmem.cpp>
Link: <https://www.freebsd.org/cgi/man.cgi?query=memmem&sektion=3&format=html>
Link: <https://man.openbsd.org/memmem.3>
Link: <https://anonhg.netbsd.org/src/diff/96a37d536271/common/lib/libc/string/memmem.c>
Suggested-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Andrew Clayton <andrew@digital-domain.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoVarious pages: SYNOPSIS: Use VLA syntax in 'void *' function parameters
Alex Colomar [Sat, 17 Sep 2022 23:09:59 +0000 (01:09 +0200)] 
Various pages: SYNOPSIS: Use VLA syntax in 'void *' function parameters

Use VLA syntax also for void *, even if it's a bit more weird.

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: JeanHeyd Meneide <wg14@soasis.org>
Cc: Martin Uecker <uecker@tugraz.at>
Cc: <gcc@gcc.gnu.org>
Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
2 years agoget_mempolicy.2, mbind.2: SYNOPSIS: Use VLA syntax in function parameters
Alex Colomar [Sun, 18 Sep 2022 11:31:38 +0000 (13:31 +0200)] 
get_mempolicy.2, mbind.2: SYNOPSIS: Use VLA syntax in function parameters

Use it also with more complex expressions.

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: JeanHeyd Meneide <wg14@soasis.org>
Cc: Martin Uecker <uecker@tugraz.at>
Cc: <gcc@gcc.gnu.org>
Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: SYNOPSIS: Use VLA syntax in function parameters
Alejandro Colomar [Fri, 26 Aug 2022 20:48:26 +0000 (22:48 +0200)] 
Various pages: SYNOPSIS: Use VLA syntax in function parameters

The WG14 charter for C23 added one principle to the ones in
previous standards:

[
15.  Application Programming Interfaces (APIs) should be
self-documenting when possible.  In particular, the order of
parameters in function declarations should be arranged such that
the size of an array appears before the array.  The purpose is to
allow Variable-Length Array (VLA) notation to be used. This not
only makes the code's purpose clearer to human readers, but also
makes static analysis easier.  Any new APIs added to the Standard
should take this into consideration.
]

ISO C doesn't allow using VLA syntax when the parameter used for
the size of the array is declared _after_ the parameter that is a
VLa.  That's a minor issue that could be easily changed in the
language without backwards-compatibility issues, and in fact it
seems to have been proposed, and not yet discarded, even if it's
not going to change in C23.

Since the manual pages SYNOPSIS are not bounded by strict C legal
syntax, but we already use some "tricks" to try to convey the most
information to the reader even if it might not be the most legal
syntax, we can also make a small compromise in this case, using
illegal syntax (at least not yet legalized) to add important
information to the function prototypes.

If we're lucky, compiler authors, and maybe even WG14 members, may
be satisfied by the syntax used in these manual pages, and may
decide to implement this feature to the language.

It seems to me a sound syntax that isn't ambiguous, even if it
deviates from the common pattern in C that declarations _always_
come before use.  But it's a reasonable tradeoff.

This change will make the contract between the programmer and the
implementation clearer just by reading a prototype.  For example,

  size_t strlcpy(char *restrict dst, const char *restrict src,
                 size_t size);

    vs

  size_t strlcpy(char dst[restrict .size], const char *restrict src,
                 size_t size);

the second prototype above makes it clear that the 'dst' buffer
will be safe from overflow, but the 'src' one clearly needs to be
NUL-terminated, or it might cause UB, since nothing tells the
function how long it is.

Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: JeanHeyd Meneide <wg14@soasis.org>
Cc: Martin Uecker <uecker@tugraz.at>
Cc: <gcc@gcc.gnu.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agolint-man.mk: lint-man-mandoc: Silence warnings about unsupported tbl(1) features
Alejandro Colomar [Wed, 9 Nov 2022 23:11:59 +0000 (00:11 +0100)] 
lint-man.mk: lint-man-mandoc: Silence warnings about unsupported tbl(1) features

It's bad that the features are not supported, but we can do nothing
about it but wait.  Let's silence the warnings.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolint-man.mk: lint-man-mandoc: Silence warnings about empty UR blocks
Alejandro Colomar [Wed, 9 Nov 2022 23:10:26 +0000 (00:10 +0100)] 
lint-man.mk: lint-man-mandoc: Silence warnings about empty UR blocks

That's a perfectly fine man(7) construct.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolint-man.mk: lint-man-mandoc: Silence warnings about lowercase in TH
Alejandro Colomar [Wed, 9 Nov 2022 23:05:55 +0000 (00:05 +0100)] 
lint-man.mk: lint-man-mandoc: Silence warnings about lowercase in TH

The warning will be removed soon, since Ingo, Branden, and I agreed to
move forward to a better letter case in the page title.  Let's just
ignore it while it still exists.

Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolint-man.mk: lint-man-mandoc: Silence warnings about the date
Alejandro Colomar [Wed, 9 Nov 2022 23:03:27 +0000 (00:03 +0100)] 
lint-man.mk: lint-man-mandoc: Silence warnings about the date

Yes, mandoc(1), I know the date is not a date, it's a placeholder to be
filled at 'make dist' time.  Let's be friends :)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolint-man.mk: lint-man-groff: Prefix error message with file name
Alejandro Colomar [Wed, 9 Nov 2022 22:53:02 +0000 (23:53 +0100)] 
lint-man.mk: lint-man-groff: Prefix error message with file name

Otherwise, it's a bit unreadable, and sometimes looks like an error in
the linter.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoioctl_tty.2: ffix
Alejandro Colomar [Wed, 9 Nov 2022 23:13:53 +0000 (00:13 +0100)] 
ioctl_tty.2: ffix

Reported-by: lint-man-mandoc - mandoc(1)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoerrno.3: srcfix
Alejandro Colomar [Wed, 9 Nov 2022 22:48:31 +0000 (23:48 +0100)] 
errno.3: srcfix

Reported-by: lint-man-groff - groff(1)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoVarious pages: Replace noreturn by [[noreturn]]
Alejandro Colomar [Sat, 5 Nov 2022 00:01:25 +0000 (01:01 +0100)] 
Various pages: Replace noreturn by [[noreturn]]

ISO C23 will declare the noreturn macro and the _Noreturn function
specifier as obsolescent features.  They are replaced by the
C++-compatible [[noreturn]] attribute.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agonsswitch.conf.5: Current glibc reloads this configuration file
Florian Weimer [Fri, 4 Nov 2022 17:51:36 +0000 (18:51 +0100)] 
nsswitch.conf.5: Current glibc reloads this configuration file

The implementation happened across multiple glibc commits, but the work
was completed for glibc 2.33.

Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agomadvise.2: add documentation for MADV_COLLAPSE
Zach O'Keefe [Tue, 1 Nov 2022 15:03:23 +0000 (08:03 -0700)] 
madvise.2: add documentation for MADV_COLLAPSE

Linux 6.1 introduced MADV_COLLAPSE in upstream commit 7d8faaf15545
("mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse") and
upstream commit 34488399fa08 ("mm/madvise: add file and shmem support to
MADV_COLLAPSE").  Update the man-pages for madvise(2) and
process_madvise(2).

Link: https://lore.kernel.org/linux-mm/20220922224046.1143204-1-zokeefe@google.com/
Link: https://lore.kernel.org/linux-mm/20220706235936.2197195-1-zokeefe@google.com/
Signed-off-by: Zach O'Keefe <zokeefe@google.com>
[ alx: Change use of hyphens in 3-word compound adjective ]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agokeyrings.7: tfix hexadecimal number prefix
Grzegorz Szymaszek [Tue, 1 Nov 2022 08:57:30 +0000 (09:57 +0100)] 
keyrings.7: tfix hexadecimal number prefix

In the DESCRIPTION, where the Permissions column of /proc/keys is
explained, the 0x02 value was written as Ox02. In case one cannot spot
the difference: the first character was letter o (U+004F), while it
should be digit zero (U+0030).

It seems the source tree does not contain any other "Ox" instances
except at the beginning of "Oxford".

Signed-off-by: Grzegorz Szymaszek <gszymaszek@short.pl>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING: tfix
Alejandro Colomar [Mon, 31 Oct 2022 20:26:14 +0000 (21:26 +0100)] 
CONTRIBUTING: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agomadvise.2: srcfix
Alejandro Colomar [Mon, 31 Oct 2022 20:21:53 +0000 (21:21 +0100)] 
madvise.2: srcfix

Reported-by: 'make lint-man-groff'
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoprocess_madvise.2: fix capability and ptrace requirements
Zach O'Keefe [Fri, 21 Oct 2022 22:32:59 +0000 (15:32 -0700)] 
process_madvise.2: fix capability and ptrace requirements

The initial commit of process_madvise(2) to Linux, commit ecb8ac8b1f14
("mm/madvise: introduce process_madvise() syscall: an external memory
hinting API"), relied on PTRACE_MODE_ATTACH_FSCREDS (see ptrace(2)),
but was amended by commit 96cfe2c0fd23 ("mm/madvise: replace ptrace
attach requirement for process_madvise") which replaced this with a
combination of PTRACE_MODE_READ and CAP_SYS_NICE (PTRACE_MODE_READ to
prevent leaking ASLR metadata and CAP_SYS_NICE for influencing process
performance).

The initial commit of process_madvise(2) to man-pages project, made
after the second patch, included two errors:

1) CAP_SYS_ADMIN instead of CAP_SYS_NICE
2) PTRACE_MODE_READ_REALCREDS instead of PTRACE_MODE_READ_FSCREDS

Correct this in the man-page for process_madvise(2).

Fixes: a144f458b ("process_madvise.2: Document process_madvise(2)")
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Zach O'Keefe <zokeefe@google.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agobuild-src.mk: Fix use of variable containing a regex
Alejandro Colomar [Mon, 31 Oct 2022 13:26:21 +0000 (14:26 +0100)] 
build-src.mk: Fix use of variable containing a regex

The variable already contains the $ anchor.  Don't repeat it.

Fixes: 15c80a5081ea "src.mk: Fix regex for manual page files"
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING: Add Lint subsection
Alejandro Colomar [Mon, 31 Oct 2022 13:06:30 +0000 (14:06 +0100)] 
CONTRIBUTING: Add Lint subsection

Detail how linters can be run effectively by contributors.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoerrno.3: tfix
Alejandro Colomar [Mon, 31 Oct 2022 09:31:34 +0000 (10:31 +0100)] 
errno.3: tfix

Reported-by: Jun Ishiguro <algon.0320@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoChanges: Use a placeholder for the location
Alejandro Colomar [Mon, 31 Oct 2022 00:40:47 +0000 (01:40 +0100)] 
Changes: Use a placeholder for the location

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoINSTALL: Rewrite and expand
Alejandro Colomar [Mon, 31 Oct 2022 00:11:17 +0000 (01:11 +0100)] 
INSTALL: Rewrite and expand

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE: Add Files, Versions, Caveats, and Description::Dependencies
Alejandro Colomar [Sun, 30 Oct 2022 22:48:57 +0000 (23:48 +0100)] 
RELEASE: Add Files, Versions, Caveats, and Description::Dependencies

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE: Reformat like a manual page
Alejandro Colomar [Sun, 30 Oct 2022 22:25:19 +0000 (23:25 +0100)] 
RELEASE: Reformat like a manual page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoget_nprocs.3, get_nprocs_conf.3, program_invocation_name.3, sysvipc.7: Match page...
Alejandro Colomar [Sun, 30 Oct 2022 18:14:58 +0000 (19:14 +0100)] 
get_nprocs.3, get_nprocs_conf.3, program_invocation_name.3, sysvipc.7: Match page title with file name and NAME section

Manually tweak a few pages that weren't covered by the scripts
used in the 2 previous commits.

On 10/30/22 23:00, G. Branden Robinson wrote:
> For those to whom this change is coming as an unpleasant surprise, the
> forthcoming groff 1.23.0 features an option that will reverse this
> change at rendering time.
>
>  From groff_man(7):
>
>     -rCT=1 Capitalize titles, setting the man page title (the first
>            argument to .TH) in full capitals in headers and footers.
>            This transformation is off by default because it discards
>            case distinction information.
>
> This register can also be set in a site-local "man.local" file to force
> it on for all pages.  On Debian-based systems, this file is in
> /etc/groff.  The following line will do the trick.
>
> .nr CT 1
>
> The groff_man_style(7) man page offers further examples of such
> rendering customization.
>
>     /usr/local/share/groff/site-tmac/man.local
>            Put site‐local changes and customizations into this file.
>
>                   .\" Use narrower indentation on terminals and similar.
>                   .if n .nr IN 4n
>                   .\" Put only one space after the end of a sentence.
>                   .ss 12 0 \" See groff(7).
>                   .\" Keep pages narrow even on wide terminals.
>                   .if n .if \n[LL]>78n .nr LL 78n
>                   .\" Ensure hyperlinks are enabled for terminals.
>                   .nr U 1
>
>            On multi‐user systems, it is more considerate to users whose
>            preferences may differ from the administrator’s to be less
>            aggressive with such settings, or to permit their override
>            with a user‐specific man.local file.  This can be achieved by
>            placing one or both of following requests at the end of the
>            site‐local file.
>                   .soquiet \V[XDG_CONFIG_HOME]/man.local
>                   .soquiet \V[HOME]/.man.local
>            However, a security‐sandboxed man(1) program may lack
>            permission to open such files.

Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoVarious pages: Use correct letter case in page titles (TH)
Alejandro Colomar [Sun, 30 Oct 2022 17:59:09 +0000 (18:59 +0100)] 
Various pages: Use correct letter case in page titles (TH)

Semi-scripted change:

$ find man* -type f \
  | xargs grep -L '\.so' \
  | while read f; do
      P=$(basename $f);
      T=$(grep '\.TH ' $f | cut -f2,3 -d' ' | sed 's/ /./');
      p=$(echo $P | tr '[:upper:]' '[:lower:]');
      t=$(echo $T | tr '[:upper:]' '[:lower:]');
      Tn=$(echo $T | sed 's/\.[^.]\+$//')
      Pn=$(echo $P | sed 's/\.[^.]\+$//')

      N=$(man_section $f NAME \
      | sed -n '/NAME/,/ - /p' \
      | sed 's/ - .*//' \
      | grep -v '^NAME$' \
      | tr ', ' '\n' \
      | grep -i "^$Pn$" \
      | head -n1)

      test $P = $T \
      && test -n $N \
      && continue;

      if test "x$p" != "x$t"; then
          echo 1 $P $T $N;
      elif test -z "$N"; then
          sed -i "/\.TH /s/$Tn/$Pn/" $f;
      fi;
  done;

Most of the changes produced by this script needed to be reverted,
but the some of them were good.

On 10/30/22 23:00, G. Branden Robinson wrote:
> For those to whom this change is coming as an unpleasant surprise, the
> forthcoming groff 1.23.0 features an option that will reverse this
> change at rendering time.
>
>  From groff_man(7):
>
>     -rCT=1 Capitalize titles, setting the man page title (the first
>            argument to .TH) in full capitals in headers and footers.
>            This transformation is off by default because it discards
>            case distinction information.
>
> This register can also be set in a site-local "man.local" file to force
> it on for all pages.  On Debian-based systems, this file is in
> /etc/groff.  The following line will do the trick.
>
> .nr CT 1
>
> The groff_man_style(7) man page offers further examples of such
> rendering customization.
>
>     /usr/local/share/groff/site-tmac/man.local
>            Put site‐local changes and customizations into this file.
>
>                   .\" Use narrower indentation on terminals and similar.
>                   .if n .nr IN 4n
>                   .\" Put only one space after the end of a sentence.
>                   .ss 12 0 \" See groff(7).
>                   .\" Keep pages narrow even on wide terminals.
>                   .if n .if \n[LL]>78n .nr LL 78n
>                   .\" Ensure hyperlinks are enabled for terminals.
>                   .nr U 1
>
>            On multi‐user systems, it is more considerate to users whose
>            preferences may differ from the administrator’s to be less
>            aggressive with such settings, or to permit their override
>            with a user‐specific man.local file.  This can be achieved by
>            placing one or both of following requests at the end of the
>            site‐local file.
>                   .soquiet \V[XDG_CONFIG_HOME]/man.local
>                   .soquiet \V[HOME]/.man.local
>            However, a security‐sandboxed man(1) program may lack
>            permission to open such files.

Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMany pages: Use correct letter case in page titles (TH)
Alejandro Colomar [Sun, 30 Oct 2022 17:59:09 +0000 (18:59 +0100)] 
Many pages: Use correct letter case in page titles (TH)

Scripted change:

$ find man* -type f \
  | xargs grep -L '\.so' \
  | while read f; do
      P=$(basename $f);
      T=$(grep '\.TH ' $f | cut -f2,3 -d' ' | sed 's/ /./');
      p=$(echo $P | tr '[:upper:]' '[:lower:]');
      t=$(echo $T | tr '[:upper:]' '[:lower:]');
      Tn=$(echo $T | sed 's/\.[^.]\+$//')
      Pn=$(echo $P | sed 's/\.[^.]\+$//')

      N=$(man_section $f NAME \
      | sed -n '/NAME/,/ - /p' \
      | sed 's/ - .*//' \
      | grep -v '^NAME$' \
      | tr ', ' '\n' \
      | grep -i "^$Pn$" \
      | head -n1)

      test $P = $T \
      && test -n $N \
      && continue;

      if test "x$p" != "x$t"; then
          echo 1 $P $T $N;
      elif test -z "$N"; then
          echo 2 $P $T $N;
      else
          sed -i "/\.TH /s/$Tn/$N/" $f;
      fi;
  done;

On 10/30/22 23:00, G. Branden Robinson wrote:
> For those to whom this change is coming as an unpleasant surprise, the
> forthcoming groff 1.23.0 features an option that will reverse this
> change at rendering time.
>
>  From groff_man(7):
>
>     -rCT=1 Capitalize titles, setting the man page title (the first
>            argument to .TH) in full capitals in headers and footers.
>            This transformation is off by default because it discards
>            case distinction information.
>
> This register can also be set in a site-local "man.local" file to force
> it on for all pages.  On Debian-based systems, this file is in
> /etc/groff.  The following line will do the trick.
>
> .nr CT 1
>
> The groff_man_style(7) man page offers further examples of such
> rendering customization.
>
>     /usr/local/share/groff/site-tmac/man.local
>            Put site‐local changes and customizations into this file.
>
>                   .\" Use narrower indentation on terminals and similar.
>                   .if n .nr IN 4n
>                   .\" Put only one space after the end of a sentence.
>                   .ss 12 0 \" See groff(7).
>                   .\" Keep pages narrow even on wide terminals.
>                   .if n .if \n[LL]>78n .nr LL 78n
>                   .\" Ensure hyperlinks are enabled for terminals.
>                   .nr U 1
>
>            On multi‐user systems, it is more considerate to users whose
>            preferences may differ from the administrator’s to be less
>            aggressive with such settings, or to permit their override
>            with a user‐specific man.local file.  This can be achieved by
>            placing one or both of following requests at the end of the
>            site‐local file.
>                   .soquiet \V[XDG_CONFIG_HOME]/man.local
>                   .soquiet \V[HOME]/.man.local
>            However, a security‐sandboxed man(1) program may lack
>            permission to open such files.

Cc: Ingo Schwarze <schwarze@openbsd.org>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agomadvise.2: document reliable probe for advice support
Zach O'Keefe [Fri, 21 Oct 2022 22:32:58 +0000 (15:32 -0700)] 
madvise.2: document reliable probe for advice support

EINVAL is an overloaded error code for madvise(2) and it's not clear
under what context it means "advice is not valid" vs another error.

Explicitly document that madvise(0, 0, advice) can reliably be used to
probe for kernel support for "advice", returning zero iff "advice" is
supported by the kernel.

Signed-off-by: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agomadvise.2: update THP file/shmem documentation for +5.4
Zach O'Keefe [Fri, 21 Oct 2022 22:32:57 +0000 (15:32 -0700)] 
madvise.2: update THP file/shmem documentation for +5.4

Since Linux 5.4, Transparent Huge Pages now support both file-backed
memory and shmem memory. Update MADV_HUGEPAGE advice description to
reflect this.

Additionally, expand the description of requirements for memory to be
considered eligible for THP: alignment / mapping requirements, VMA
flags, prctl(2) settings, inode status, etc.

Signed-off-by: Zach O'Keefe <zokeefe@google.com>
[ alx: ffix ]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoFILE.3type: Move page to correct subsection
Alejandro Colomar [Sat, 29 Oct 2022 22:16:15 +0000 (00:16 +0200)] 
FILE.3type: Move page to correct subsection

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoChange alx's email address
Alejandro Colomar [Sat, 29 Oct 2022 22:11:54 +0000 (00:11 +0200)] 
Change alx's email address

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT
Pali Rohár [Wed, 26 Oct 2022 19:12:02 +0000 (21:12 +0200)] 
ioctl_tty.2: Document TIOCSERGETLSR/TIOCSER_TEMT

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoman-pages.7: Document how to write lists
Alejandro Colomar [Sat, 29 Oct 2022 21:50:33 +0000 (23:50 +0200)] 
man-pages.7: Document how to write lists

Reported-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Douglas McIlroy <douglas.mcilroy@dartmouth.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMany pages: Use a consistent style for lists
Alejandro Colomar [Tue, 25 Oct 2022 23:01:32 +0000 (01:01 +0200)] 
Many pages: Use a consistent style for lists

There are different kinds of lists:

Tagged paragraphs
These are fixed in a separate commit (the previous one).
They are used for a list of tags and their descriptions.
An example is this commit message itself.

Ordered lists
Elements are preceeded by a number in parentheses.
These represent a set of steps that have an order.

When there are substeps, they will be numbered like (4.2).

Positional lists
Elements are preceeded by a number in square brackets
(index).  These represent fields in a set.  The index will
start at:

0 fields of a C data structure, to be consistent
with arrays.
1 fields of a file, to be consistent with tools like
cut(1).

Alternatives list
Elements are preceeded by a letter in parentheses.
These represent a set of (normally) exclusive
alternatives.

Bullet lists
Elements are preceeded by bullet symbols.  Anything that
doesn't fit elsewhere usually is covered by this type of
list.

Notes
Not really a list, but the syntax is identical to
"positional lists".

There should always be 2 spaces between the list symbol and the
elements.  This doesn't apply to "tagged paragraphs", which use
the default indentation rules.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Cc: <groff@gnu.org>
Acked-by: Douglas McIlroy <douglas.mcilroy@dartmouth.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMany pages: Use .TP for tagged paragraphs
Alejandro Colomar [Sun, 23 Oct 2022 15:43:43 +0000 (17:43 +0200)] 
Many pages: Use .TP for tagged paragraphs

Reported-by: Mike Frysinger <vapier@gentoo.org>
Cc: <groff@gnu.org>
Acked-by: Douglas McIlroy <douglas.mcilroy@dartmouth.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoascii.7: Chase down History to earliest
наб [Mon, 17 Oct 2022 01:22:57 +0000 (03:22 +0200)] 
ascii.7: Chase down History to earliest

Cf., well, the UNIX Programmer's Manual:
  https://www.tuhs.org/Archive/Distributions/Research/Dennis_v1/UNIX_ProgrammersManual_Nov71.pdf
PDF page 191; yes, the typographical convention here is insane, and
the contemprary-correct way to refer to this page from within the manual
would be /just/ "/etc/ascii", but, given the context, "/etc/ascii (VII)"
makes the most sense to me

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agost.4: srcfix
Alejandro Colomar [Tue, 25 Oct 2022 13:10:15 +0000 (15:10 +0200)] 
st.4: srcfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agocapabilities.7: ffix
Alejandro Colomar [Sun, 23 Oct 2022 19:58:54 +0000 (21:58 +0200)] 
capabilities.7: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agocpuset.7: tfix
Alejandro Colomar [Sun, 23 Oct 2022 19:30:50 +0000 (21:30 +0200)] 
cpuset.7: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolocale.7: srcfix
Alejandro Colomar [Sun, 23 Oct 2022 18:43:39 +0000 (20:43 +0200)] 
locale.7: srcfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoman-pages.7: ffix
Alejandro Colomar [Sun, 23 Oct 2022 18:37:58 +0000 (20:37 +0200)] 
man-pages.7: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agosrc.mk: Fix regex for manual page files
Alejandro Colomar [Sun, 23 Oct 2022 15:38:03 +0000 (17:38 +0200)] 
src.mk: Fix regex for manual page files

Without the $, vim(1) temporary files are also found.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoman-pages.7: Use . consistently in bulleted list
Mike Frysinger [Sat, 22 Oct 2022 17:43:01 +0000 (23:28 +0545)] 
man-pages.7: Use . consistently in bulleted list

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoman-pages.7: Add missing . before macro
Mike Frysinger [Sat, 22 Oct 2022 17:36:23 +0000 (23:21 +0545)] 
man-pages.7: Add missing . before macro

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoCONTRIBUTING: Rewrite and expand
Alejandro Colomar [Fri, 21 Oct 2022 00:10:17 +0000 (02:10 +0200)] 
CONTRIBUTING: Rewrite and expand

Put most of the relevant information from the website in the repo.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agodist.mk: Force adding version to tarball man pagesat 'make dist'
Alejandro Colomar [Thu, 20 Oct 2022 22:49:01 +0000 (00:49 +0200)] 
dist.mk: Force adding version to tarball man pagesat 'make dist'

When creating a tarball with 'make dist', force the addition of
the date and version to the pages.  Otherwise, if a tarball had
already been created from a previous commit, and the page hasn't
been touched, make will consider the one in the tarball
up-to-date, and will keep the old version.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE: tfix
Alejandro Colomar [Thu, 20 Oct 2022 22:38:13 +0000 (00:38 +0200)] 
RELEASE: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMakefile: Remove unnecessary include
Alejandro Colomar [Thu, 20 Oct 2022 22:35:05 +0000 (00:35 +0200)] 
Makefile: Remove unnecessary include

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMakefile: Remove installdirs* and builddirs* targets
Alejandro Colomar [Thu, 20 Oct 2022 22:27:46 +0000 (00:27 +0200)] 
Makefile: Remove installdirs* and builddirs* targets

Since our makefiles correctly state the dependencies of all
targets, and allow fully-parallel builds and installs, there's no
reason at all to allow creating the directories separately.  That
was an old recommendation for when makefiles were buggy, and you
couldn't fully trust in them not having races or incorrect
dependencies.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoREADME: tfix
Alejandro Colomar [Thu, 20 Oct 2022 16:52:13 +0000 (18:52 +0200)] 
README: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE: ffix
Alejandro Colomar [Thu, 20 Oct 2022 16:45:07 +0000 (18:45 +0200)] 
RELEASE: ffix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoREADME, RELEASE, lsm: Rename man-pages.lsm to lsm
Alejandro Colomar [Thu, 20 Oct 2022 16:43:31 +0000 (18:43 +0200)] 
README, RELEASE, lsm: Rename man-pages.lsm to lsm

It's obvious that it belongs to man-pages, since it's inside the
repository tree.  Also, since the file is emailed to the LSM
project, it doesn't matter what name we give to it.  Let's
simplify the name.

Now only MANDIRS start with 'man*', which is a good thing.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoREADME: Remove version from LSM file name
Alejandro Colomar [Thu, 20 Oct 2022 16:34:43 +0000 (18:34 +0200)] 
README: Remove version from LSM file name

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE, man-pages.lsm: Remove version from LSM file name
Alejandro Colomar [Thu, 20 Oct 2022 16:32:49 +0000 (18:32 +0200)] 
RELEASE, man-pages.lsm: Remove version from LSM file name

It's not necessary, and removing it simplifies maintenance.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE, man-pages-6.01.Announce: Remove .Announce file
Alejandro Colomar [Thu, 20 Oct 2022 16:27:43 +0000 (18:27 +0200)] 
RELEASE, man-pages-6.01.Announce: Remove .Announce file

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoREADME: Rewrite and expand
Alejandro Colomar [Thu, 20 Oct 2022 16:20:13 +0000 (18:20 +0200)] 
README: Rewrite and expand

Let's start making the repository self-contained.  The README
should be enough to guide a user into everything that has to do
with the project.  The website should be a secondary source, for
those who don't know about the repository yet.

I merged some of the information found in the .Announce file,
which I'll remove.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolsm: Fix Title and Description
Alejandro Colomar [Wed, 19 Oct 2022 14:07:09 +0000 (16:07 +0200)] 
lsm: Fix Title and Description

Use the project name for the Title, and a descriptive Description.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agolsm: Author: Remove field
Alejandro Colomar [Wed, 19 Oct 2022 14:00:58 +0000 (16:00 +0200)] 
lsm: Author: Remove field

The parser failed to understand several.  Since there's nothing
useful we can put there that the parser would accept, just remove
the field.

Acked-by: Aaron Schrab <aaron@schrab.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE: Remind to push the git tag
Alejandro Colomar [Wed, 19 Oct 2022 13:06:28 +0000 (15:06 +0200)] 
RELEASE: Remind to push the git tag

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRELEASE: Add missing cd(1)
Alejandro Colomar [Wed, 19 Oct 2022 13:01:59 +0000 (15:01 +0200)] 
RELEASE: Add missing cd(1)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoINSTALL, RELEASE: Add RELEASE file with instructions for releasing
Alejandro Colomar [Wed, 19 Oct 2022 12:45:29 +0000 (14:45 +0200)] 
INSTALL, RELEASE: Add RELEASE file with instructions for releasing

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoChanges.old: tfix
Alejandro Colomar [Wed, 19 Oct 2022 11:08:24 +0000 (13:08 +0200)] 
Changes.old: tfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoRevert "cmd.mk, install.mk: Avoid modifying existing directories at 'make install'"
Alejandro Colomar [Tue, 18 Oct 2022 19:29:11 +0000 (21:29 +0200)] 
Revert "cmd.mk, install.mk: Avoid modifying existing directories at 'make install'"

This reverts commit 12b6045567037e783d0c3a79f276a15fd748d3a6.

There was no bug, since make(1) only tries to install the
directory if there was no directory at all.  I was confused.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agocmd.mk, install.mk: Avoid modifying existing directories at 'make install'
Alejandro Colomar [Tue, 18 Oct 2022 19:15:02 +0000 (21:15 +0200)] 
cmd.mk, install.mk: Avoid modifying existing directories at 'make install'

'install -d' has an issue compared to 'mkdir -p':  it doesn't
respect existing directories.  It will set the ownership, file
mode, and SELinux contexts (and any other property that would be
set by install(1) to a newly-created directory), overwriting any
existing properties of the existing directory.

'mkdir -p' doesn't have this issue:  it is a no-op if the
directory exists.  However, it's not an ideal solution either,
since it can't be used to set the properties (owner, mode, ...) of
a newly-created directory.

Therefore, the best solution is to use install(1), but only after
making sure that the directory doesn't exist with test(1).

Reported-by: Andrew Clayton <a.clayton@nginx.com>
Reported-by: Alejandro Colomar <alx@nginx.com>
Link: <https://github.com/nginx/unit/issues/769>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
2 years agocmd.mk, install.mk: Move command definitions to cmd.mk
Alejandro Colomar [Tue, 18 Oct 2022 19:13:01 +0000 (21:13 +0200)] 
cmd.mk, install.mk: Move command definitions to cmd.mk

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoStart of man-pages-NEXT: Move Changes to Changes.old
Alejandro Colomar [Tue, 18 Oct 2022 18:34:13 +0000 (20:34 +0200)] 
Start of man-pages-NEXT: Move Changes to Changes.old

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoReady for 6.01 man-pages-6.01
Alejandro Colomar [Tue, 18 Oct 2022 18:20:11 +0000 (20:20 +0200)] 
Ready for 6.01

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoChanges: Ready for 6.01
Alejandro Colomar [Tue, 18 Oct 2022 18:13:31 +0000 (20:13 +0200)] 
Changes: Ready for 6.01

A few useful commands:

List of contributors:

$ git log man-pages-6.00..HEAD \
  | grep '<.*@.*>' \
  | sed 's/^ *//' \
  | sed 's/[^:]*: //' \
  | sort \
  | uniq;

List of new pages:

$ git diff man-pages-6.00..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.00..HEAD \
  | grep -A1 '^--- /dev/null' \
  | grep -v -e '\--' -e '\--- /dev/null' \
  | sed 's,+++ b/,,' \
  | grep '^man' \
  | xargs grep -L '^\.so ' \
  | sed 's,.*/,,';

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoferror.3: CAVEATS: Need to get EOF before calling these functions
Alejandro Colomar [Tue, 18 Oct 2022 17:43:50 +0000 (19:43 +0200)] 
ferror.3: CAVEATS: Need to get EOF before calling these functions

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoEOF.3const: Add documentation for EOF
Alejandro Colomar [Fri, 14 Oct 2022 19:15:28 +0000 (21:15 +0200)] 
EOF.3const: Add documentation for EOF

Reported-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMakefile: Document the V verbose variable
Alejandro Colomar [Tue, 18 Oct 2022 17:27:44 +0000 (19:27 +0200)] 
Makefile: Document the V verbose variable

Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agoMakefile, build-src.mk, dist.mk, verbose.mk, version.mk: Hide errors unless V is...
Alejandro Colomar [Tue, 18 Oct 2022 17:20:44 +0000 (19:20 +0200)] 
Makefile, build-src.mk, dist.mk, verbose.mk, version.mk: Hide errors unless V is defined

Some commands run by the makefiles are not strictly needed by most
users or packagers.  Do not print errors if those fail spuriously.

However, since we still want to see those errors in some cases,
use the V variable to conditionally print those errors.

Reported-by: Pierre Labastie <pierre.labastie@neuf.fr>
Cc: Agostino Sarubbo <ago@gentoo.org>
Cc: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agosystem_data_types.7: fix typo in regmatch_t description
Michael Tokarev [Tue, 18 Oct 2022 08:24:45 +0000 (11:24 +0300)] 
system_data_types.7: fix typo in regmatch_t description

The description of rm_eo in regmatch_t structure has a typo
which makes it difficult to understand. Fix this.

Reported-By: Nicolás A. Ortega Froysa <nicolas@ortegas.org>
Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agofeature_test_macros.7: document _TIME_BITS (time64)
Sam James [Thu, 13 Oct 2022 20:58:52 +0000 (21:58 +0100)] 
feature_test_macros.7: document _TIME_BITS (time64)

Some notes:
* glibc is the only libc I'm aware of implementing _TIME_BITS for time64
compatibility. It was introduced in glibc-2.34;

* musl libc made a hard switch in 1.2.0, see https://musl.libc.org/time64.html;

* Using _TIME_BITS=64 with glibc requires _FILE_OFFSET_BITS=64 (which is used
for Large File Support)! Extraordinary claims require (some) evidence, so see
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/features-time64.h;h=84d56ee3ff2ecfa0d2499385623f30606f84a1bf.

Reference: https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
Reference: https://sourceware.org/pipermail/libc-alpha/2022-January/134985.html
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agotime_t.3type: reference _TIME_BITS (time64)
Sam James [Thu, 13 Oct 2022 20:58:51 +0000 (21:58 +0100)] 
time_t.3type: reference _TIME_BITS (time64)

Just like we do with _FILE_OFFSET_BITS in off_t.3type.

Reference: https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
Reference: https://sourceware.org/pipermail/libc-alpha/2022-January/134985.html
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2 years agofeature_test_macros.7: document -D_FORTIFY_SOURCE=3
Sam James [Thu, 13 Oct 2022 21:06:26 +0000 (22:06 +0100)] 
feature_test_macros.7: document -D_FORTIFY_SOURCE=3

Reference: https://developers.redhat.com/blog/2021/04/16/broadening-compiler-checks-for-buffer-overflows-in-_fortify_source
Reference: https://developers.redhat.com/articles/2022/09/17/gccs-new-fortification-level
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>