]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
7 months agoman/man2/: SYNOPSIS: Use array notation
Alejandro Colomar [Sat, 14 Dec 2024 19:23:25 +0000 (20:23 +0100)] 
man/man2/: SYNOPSIS: Use array notation

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 months agosrc/bin/diffman: Silence shellcheck(1) diagnostic
Alejandro Colomar [Fri, 13 Dec 2024 13:32:35 +0000 (14:32 +0100)] 
src/bin/diffman: Silence shellcheck(1) diagnostic

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 months agosrc/bin/diffman: Add default case
Alejandro Colomar [Fri, 13 Dec 2024 13:30:46 +0000 (14:30 +0100)] 
src/bin/diffman: Add default case

SC2249 (info): Consider adding a default *) case, even if it just exits with error.

In principle, getopts(1) shouldn't return other stuff, but it doesn't
hurt to be cutious.

Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 months agoman/: SYNOPSIS: Use typeof() to improve readability of function pointer types
Alejandro Colomar [Fri, 13 Dec 2024 13:19:28 +0000 (14:19 +0100)] 
man/: SYNOPSIS: Use typeof() to improve readability of function pointer types

Suggested-by: Jorenar <dev@jorenar.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 months agoman/man3/makecontext.3: SYNOPSIS: Add ellipsis to function type
Alejandro Colomar [Fri, 13 Dec 2024 12:02:06 +0000 (13:02 +0100)] 
man/man3/makecontext.3: SYNOPSIS: Add ellipsis to function type

The old syntax with empty parentheses has been removed from the language
in C23.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
7 months agoman/man3/isalpha.3: tfix
Alejandro Colomar [Wed, 11 Dec 2024 16:36:22 +0000 (17:36 +0100)] 
man/man3/isalpha.3: tfix

Fixes: ba687b00ecb3 (2023-07-30, "man3/: srcfix")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoproc_pid_fdinfo.5: Reduce indent for most of the page
Ian Rogers [Fri, 6 Dec 2024 07:38:25 +0000 (23:38 -0800)] 
proc_pid_fdinfo.5: Reduce indent for most of the page

When /proc/pid/fdinfo was part of proc.5 man page the indentation made
sense.  As a standalone man page the indentation doesn't need to be so
far over to the right.  Remove the initial tagged pragraph, move the
"since Linux 2.6.22" to a new HISTORY subsection.

Suggested-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Message-Id: <20241206073828.1119464-1-irogers@google.com>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoscripts/bash_aliases: duffman: Pass any arguments (options) to diffman(1)
Alejandro Colomar [Fri, 6 Dec 2024 15:08:35 +0000 (16:08 +0100)] 
scripts/bash_aliases: duffman: Pass any arguments (options) to diffman(1)

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosrc/bin/diffman, diffman.1: -U: Add support for diff(1)'s -U option
Alejandro Colomar [Fri, 6 Dec 2024 15:04:46 +0000 (16:04 +0100)] 
src/bin/diffman, diffman.1: -U: Add support for diff(1)'s -U option

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosrc/bin/diffman: -w: Add support for diff(1)'s -w flag
Alejandro Colomar [Fri, 6 Dec 2024 14:32:48 +0000 (15:32 +0100)] 
src/bin/diffman: -w: Add support for diff(1)'s -w flag

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agold.so.8: tfix
Anhad Singh [Fri, 6 Dec 2024 07:18:23 +0000 (07:18 +0000)] 
ld.so.8: tfix

Signed-off-by: Anhad Singh <andypython@protonmail.com>
Message-Id: <20241206071814.55913-1-andypython@protonmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agomadvise.2: Add description of MADV_GUARD_INSTALL, MADV_GUARD_REMOVE
Lorenzo Stoakes [Thu, 5 Dec 2024 10:41:25 +0000 (10:41 +0000)] 
madvise.2: Add description of MADV_GUARD_INSTALL, MADV_GUARD_REMOVE

Lightweight guard region support has been added to Linux 6.13, which
adds MADV_GUARD_INSTALL and MADV_GUARD_REMOVE flags to the madvise()
system call.  Therefore, update the manpage for madvise() and describe
these operations.

Reviewed-by: Jann Horn <jannh@google.com>
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Message-Id: <20241205104125.67518-1-lorenzo.stoakes@oracle.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoCONTRIBUTING.d/patches/description: Add link to history of inter-sentence space
Alejandro Colomar [Thu, 5 Dec 2024 11:50:02 +0000 (12:50 +0100)] 
CONTRIBUTING.d/patches/description: Add link to history of inter-sentence space

Cc: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agomadvise.2: MADV_SOFT_OFFLINE requests can report EBUSY
tyberry@redhat.com [Tue, 26 Nov 2024 16:12:03 +0000 (11:12 -0500)] 
madvise.2: MADV_SOFT_OFFLINE requests can report EBUSY

If the page could not be offlined madvise will report EBUSY.
This might occur if the page is currently in use or locked.

Signed-off-by: Tyonnchie Berry <tyberry@redhat.com>
Message-Id: <Z0XzU9R9Kx0RoeUG@redhat.com>
Acked-by: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
[alx: wfix, ffix, and other tweaks]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoman/: wfix
Alejandro Colomar [Wed, 4 Dec 2024 10:06:38 +0000 (11:06 +0100)] 
man/: wfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoprocess_madvise.2: Describe 6.13 behaviour permitting all madvise flags
Lorenzo Stoakes [Fri, 29 Nov 2024 16:44:22 +0000 (16:44 +0000)] 
process_madvise.2: Describe 6.13 behaviour permitting all madvise flags

Since Linux 6.13 it has become possible to use all madvise flags when
targeting the calling process.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Message-Id: <20241129164422.89837-1-lorenzo.stoakes@oracle.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoreadlink.2: SYNOPSIS: Use array notation
Alejandro Colomar [Thu, 28 Nov 2024 11:47:23 +0000 (12:47 +0100)] 
readlink.2: SYNOPSIS: Use array notation

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agolandlock_create_ruleset.2: SYNOPSIS: Add missing include
Alejandro Colomar [Sun, 24 Nov 2024 20:42:00 +0000 (21:42 +0100)] 
landlock_create_ruleset.2: SYNOPSIS: Add missing include

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoshare/mk/: $MANINTROPAGES: Remove redundant grep(1) call
Alejandro Colomar [Mon, 25 Nov 2024 16:39:17 +0000 (17:39 +0100)] 
share/mk/: $MANINTROPAGES: Remove redundant grep(1) call

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoshare/mk/: $MANEXT: Use extended regex
Alejandro Colomar [Mon, 25 Nov 2024 16:37:54 +0000 (17:37 +0100)] 
share/mk/: $MANEXT: Use extended regex

This makes the line fit in 80 columns, and also makes it simpler to
read.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoscripts/bash_aliases: duffman(): Add function to diff all modified pages
Alejandro Colomar [Mon, 25 Nov 2024 15:14:34 +0000 (16:14 +0100)] 
scripts/bash_aliases: duffman(): Add function to diff all modified pages

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosrc/bin/sortman, sortman.1, share/mk/: Move sortman script to src/bin/, and add manua...
Alejandro Colomar [Mon, 25 Nov 2024 15:03:34 +0000 (16:03 +0100)] 
src/bin/sortman, sortman.1, share/mk/: Move sortman script to src/bin/, and add manual page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoman1/: SYNOPSIS: ffix
Alejandro Colomar [Mon, 25 Nov 2024 13:16:02 +0000 (14:16 +0100)] 
man1/: SYNOPSIS: ffix

Use SY/YS, and other formatting improvements.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosrc/bin/diffman, diffman.1: Add program and its manual page
Alejandro Colomar [Mon, 25 Nov 2024 11:36:08 +0000 (12:36 +0100)] 
src/bin/diffman, diffman.1: Add program and its manual page

This program diffs manual pages.  It's useful for reviewing changes to a
manual page:

$ diffman membarrier ./man2/membarrier.2 | less -R;

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoetc/checkpatch/checkpatch.conf: Ignore MACRO_ARG_PRECEDENCE
Alejandro Colomar [Thu, 21 Nov 2024 23:54:37 +0000 (00:54 +0100)] 
etc/checkpatch/checkpatch.conf: Ignore MACRO_ARG_PRECEDENCE

This diagnostic is useful for preventing unsafe macros, but other linter programs
provide a smaller rate of false positives, so let's turn this one off.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoetc/clang-tidy/config.yaml: -clang-diagnostic-sign-conversion
Alejandro Colomar [Thu, 21 Nov 2024 23:50:54 +0000 (00:50 +0100)] 
etc/clang-tidy/config.yaml: -clang-diagnostic-sign-conversion

This diagnostic is too noisy, and isn't very useful.  Turn it off.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agogetgroups.2: EXAMPLES: Add example program
Alejandro Colomar [Thu, 21 Nov 2024 23:52:18 +0000 (00:52 +0100)] 
getgroups.2: EXAMPLES: Add example program

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoposix_fadvise.2: POSIX_FADV_NOREUSE now supported.
Yuanchu Xie [Wed, 20 Nov 2024 04:52:14 +0000 (20:52 -0800)] 
posix_fadvise.2: POSIX_FADV_NOREUSE now supported.

POSIX_FADV_NOREUSE is now supported in Linux.  Update text regarding
former no op behavior.  Indicate the readahead policy and treatment of
file pages read with this flag.

Link: <https://lore.kernel.org/linux-mm/20221230215252.2628425-2-yuzhao@google.com/>
Signed-off-by: T.J. Alumbaugh <talumbau@google.com>
Signed-off-by: Yuanchu Xie <yuanchu@google.com>
Message-Id: <20241120045214.1294799-1-yuanchu@google.com>
Acked-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoalloca.3: Clarify that alloca(3)ted space is deallocated when the caller returns
Alejandro Colomar [Tue, 19 Nov 2024 12:17:27 +0000 (13:17 +0100)] 
alloca.3: Clarify that alloca(3)ted space is deallocated when the caller returns

Reported-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agomount_namespaces.7: Use correctly the terms "mount" and "mount point"
Alejandro Colomar [Sun, 17 Nov 2024 22:16:59 +0000 (23:16 +0100)] 
mount_namespaces.7: Use correctly the terms "mount" and "mount point"

On Sun, Nov 17, 2024 at 16:12:24 +0100, Michael Kerrisk wrote:
>
> A "mount" is a tuple consisting of:
> * a mount ID
> * a source (e.g., a device)
> * a target or "mount point" (i.e. a path name)
> * the ID of the parent of this mount
> * other stuff (e.g., options)

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: Jakub Wilk <jwilk@jwilk.net>
Acked-by: "Michael T. Kerrisk" <mtk.manpages@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agocgroups.7: grfix
Alejandro Colomar [Sun, 17 Nov 2024 22:11:13 +0000 (23:11 +0100)] 
cgroups.7: grfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoman/: Terminology consistency reforms (n, size, length)
Alejandro Colomar [Sun, 17 Nov 2024 17:47:53 +0000 (18:47 +0100)] 
man/: Terminology consistency reforms (n, size, length)

Use 'length' for the lenght of a string.
Use 'n' for the number of elements.
Use 'size' for the number of bytes.  (And in wide-character string
functions, 'size' also refers to the number of wide characters.)

The change is quite large, and I might have made some mistakes.
But overall, this should improve consistency in use of these terms.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agogetdents.2: ffix
Alejandro Colomar [Sun, 17 Nov 2024 15:24:05 +0000 (16:24 +0100)] 
getdents.2: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agowcwidth.3: Rename function parameter
Alejandro Colomar [Sun, 17 Nov 2024 15:13:18 +0000 (16:13 +0100)] 
wcwidth.3: Rename function parameter

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agofmod.3: ffix
Alejandro Colomar [Sun, 17 Nov 2024 15:11:13 +0000 (16:11 +0100)] 
fmod.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoremquo.3: pfix
Alejandro Colomar [Sun, 17 Nov 2024 15:09:13 +0000 (16:09 +0100)] 
remquo.3: pfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agotime.1: ffix
Alejandro Colomar [Sun, 17 Nov 2024 12:14:54 +0000 (13:14 +0100)] 
time.1: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosscanf.3: wfix
Alejandro Colomar [Sun, 17 Nov 2024 12:08:48 +0000 (13:08 +0100)] 
sscanf.3: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoattributes.7: wfix
Alejandro Colomar [Sun, 17 Nov 2024 12:07:22 +0000 (13:07 +0100)] 
attributes.7: wfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosyscalls.2: tfix
Alejandro Colomar [Sun, 17 Nov 2024 12:05:50 +0000 (13:05 +0100)] 
syscalls.2: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agotime.1: ffix
Alejandro Colomar [Sun, 17 Nov 2024 11:59:40 +0000 (12:59 +0100)] 
time.1: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosscanf.3: tfix
Alejandro Colomar [Sun, 17 Nov 2024 11:52:26 +0000 (12:52 +0100)] 
sscanf.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosched_get_priority_max.2: pfix
Alejandro Colomar [Sun, 17 Nov 2024 11:50:59 +0000 (12:50 +0100)] 
sched_get_priority_max.2: pfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agosscanf.3: ffix
Alejandro Colomar [Sun, 17 Nov 2024 11:49:01 +0000 (12:49 +0100)] 
sscanf.3: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoman/: tfix
Alejandro Colomar [Sun, 17 Nov 2024 11:45:14 +0000 (12:45 +0100)] 
man/: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoscanf.3: pfix
Alejandro Colomar [Sun, 17 Nov 2024 11:34:00 +0000 (12:34 +0100)] 
scanf.3: pfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoproc_pid_fd.5: ffix
Alejandro Colomar [Sun, 17 Nov 2024 11:23:48 +0000 (12:23 +0100)] 
proc_pid_fd.5: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agogetrpcent_r.3: tfix
Alejandro Colomar [Sun, 17 Nov 2024 11:04:04 +0000 (12:04 +0100)] 
getrpcent_r.3: tfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agomemusage.1: ffix
Alejandro Colomar [Sun, 17 Nov 2024 11:02:24 +0000 (12:02 +0100)] 
memusage.1: ffix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agolog1p.3: pfix
Alejandro Colomar [Sun, 17 Nov 2024 11:01:06 +0000 (12:01 +0100)] 
log1p.3: pfix

Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agolistmount.2: Fix off-by-one bug in description about continuing the iteration
Jeff Layton [Wed, 13 Nov 2024 14:49:02 +0000 (09:49 -0500)] 
listmount.2: Fix off-by-one bug in description about continuing the iteration

The "+1" is wrong, since the kernel already increments the last_id.

Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Josef Bacik <josef@toxicpanda.com>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Message-ID: <20241113-main-v1-1-a6b738d56e55@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoprintf.3: wfix
Ken Pizzini [Fri, 15 Nov 2024 22:11:04 +0000 (14:11 -0800)] 
printf.3: wfix

Improve description of %a format.

The description of the %a/%A specifiers in the printf(3) man page
could stand some improvement.  In particular, it is not clear from the
current document what base is used for the "p±d" part of the format.

It can be inferred from the nature of %a that the base should be a power
of two.  And it can be further inferred from the nature of hexadecimal
floating-point literals in C (as specified by C99 and later) that the
base must exactly be the number two, but it would be helpful for the
printf(3) man page to state this explicitly.  My first expectation when
reading the man page was that the exponent would be taken in base 16;
after experimentation my second thought was that it would be base
FLT_RADIX (which is 2 on IEEE 754 floating-point systems, but 16 on
S/390).  Only by going back to the standard [1] could I determine that
the exponent in p-notation must always be taken from a base of 2.

Link: [1] POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/printf.html>
Cc: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Ken Pizzini <ken@gnu.org>
Message-ID: <b932f13642502e063ef139d57b8f3c496023bf4a.1731707666.git.ken@gnu.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agoprintf.3: wfix
Ken Pizzini [Fri, 15 Nov 2024 08:23:05 +0000 (00:23 -0800)] 
printf.3: wfix

Improve terminology in %a description

The term "decimal point" does not technically apply when using bases
other than 10; the more generic term is "radix point".  Update the
description of the a/A conversion specifier (i.e., for hexadecimal
floating point output) in printf(3) to use this terminology.

I do note that POSIX.1-2024 [1] does use the term "decimal-point
character" here, but I still maintain that using "radix point" is a
better term for that object in the %a description.  (Confusingly, POSIX
does refer to "radix character" in the descriptions of %f and %e, where
reference to "decimal" instead of "radix" would actually make sense.)

Link: [1] <https://pubs.opengroup.org/onlinepubs/9799919799/functions/printf.html>
Signed-off-by: Ken Pizzini <ken@gnu.org>
Message-ID: <db91cc6f-93cc-4e99-806c-7a8b86232848@vagg4fs7.msa.explicate.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agolsearch.3: Dereference 'nmemb' pointer
Alejandro Colomar [Thu, 14 Nov 2024 22:46:26 +0000 (23:46 +0100)] 
lsearch.3: Dereference 'nmemb' pointer

nmemb is a pointer, so it needs to be dereferenced to calculate the size
of the array.

Reported-by: Martin Uecker <uecker@tugraz.at>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agopthread_cond_init.3: tfix
Alejandro Colomar [Wed, 13 Nov 2024 11:10:04 +0000 (12:10 +0100)] 
pthread_cond_init.3: tfix

Reported-by: Antti Antinoja <antti@c1.fi>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agortnetlink.7: Document struct ifa_cacheinfo
Alex Henrie [Mon, 11 Nov 2024 06:20:06 +0000 (23:20 -0700)] 
rtnetlink.7: Document struct ifa_cacheinfo

struct ifa_cacheinfo contains the address's creation time, update time,
preferred lifetime remaining, and valid lifetime remaining.

Link: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/if_addr.h?h=v6.11#n60>
Cc: <netdev@vger.kernel.org>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Message-ID: <20241111062205.207027-1-alexhenrie24@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
8 months agomremap.2: Update information about MREMAP_DONTUNMAP restrictions
Alex Henrie [Mon, 11 Nov 2024 06:10:19 +0000 (23:10 -0700)] 
mremap.2: Update information about MREMAP_DONTUNMAP restrictions

Link: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4609387859f0281951f5e476d9f76d7fb9ab321>
Cc: Brian Geffon <bgeffon@google.com>
Cc: <linux-mm@kvack.org>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Message-ID: <20241111061139.206404-1-alexhenrie24@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/lint: 'make build' does not build everything anymore
Alejandro Colomar [Thu, 7 Nov 2024 12:59:21 +0000 (13:59 +0100)] 
CONTRIBUTING.d/lint: 'make build' does not build everything anymore

Fixes: 082547cb6fbb ("share/mk/: Reduce the work of 'make && make install'")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/patches: Patches should contain a description.
Alejandro Colomar [Wed, 6 Nov 2024 22:32:51 +0000 (23:32 +0100)] 
CONTRIBUTING.d/patches/patches: Patches should contain a description.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/patches: Minor tweaks after splitting the file
Alejandro Colomar [Wed, 6 Nov 2024 22:03:29 +0000 (23:03 +0100)] 
CONTRIBUTING.d/patches/patches: Minor tweaks after splitting the file

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/sendmail: Add file documenting how to send patches
Alejandro Colomar [Wed, 6 Nov 2024 21:41:42 +0000 (22:41 +0100)] 
CONTRIBUTING.d/patches/sendmail: Add file documenting how to send patches

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/base: Add file documenting the base commit of patch sets
Alejandro Colomar [Wed, 6 Nov 2024 21:23:42 +0000 (22:23 +0100)] 
CONTRIBUTING.d/patches/base: Add file documenting the base commit of patch sets

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/range-diff: Add file documenting the range-diff between patch...
Alejandro Colomar [Wed, 6 Nov 2024 21:20:15 +0000 (22:20 +0100)] 
CONTRIBUTING.d/patches/range-diff: Add file documenting the range-diff between patch revisions

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/diff: Add file documenting the diff of a patch
Alejandro Colomar [Wed, 6 Nov 2024 21:12:08 +0000 (22:12 +0100)] 
CONTRIBUTING.d/patches/diff: Add file documenting the diff of a patch

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/description: Add file documenting the description of a patch
Alejandro Colomar [Wed, 6 Nov 2024 20:55:46 +0000 (21:55 +0100)] 
CONTRIBUTING.d/patches/description: Add file documenting the description of a patch

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/subject: Add file documenting the subject of a patch
Alejandro Colomar [Wed, 6 Nov 2024 20:46:21 +0000 (21:46 +0100)] 
CONTRIBUTING.d/patches/subject: Add file documenting the subject of a patch

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches/patches: Move file into a subdirectory
Alejandro Colomar [Wed, 6 Nov 2024 20:31:52 +0000 (21:31 +0100)] 
CONTRIBUTING.d/patches/patches: Move file into a subdirectory

This is in preparation of a split that will happen soon.

The file has grown too much, and I will split it in smaller ones that
cover different aspects of patches.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agobind.2: move EADDRNOTAVAIL to general errors
Philipp Takacs [Wed, 6 Nov 2024 09:53:47 +0000 (10:53 +0100)] 
bind.2: move EADDRNOTAVAIL to general errors

EADDRNOTAVAIL is not a socket specific error
Message-ID: <eee2fe5c6c3d6203e1e528a998b0de2c.philipp@bureaucracy.de>

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agofanotify_mark.2, fanotify.7: Update documentation of fanotify w.r.t fsid
Amir Goldstein [Tue, 5 Nov 2024 14:49:39 +0000 (15:49 +0100)] 
fanotify_mark.2, fanotify.7: Update documentation of fanotify w.r.t fsid

Clarify the conditions for getting the -EXDEV and -ENODEV errors.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-ID: <20241105144939.181820-1-amir73il@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agopthread_cancel.3: tfix
Alejandro Colomar [Mon, 4 Nov 2024 23:19:10 +0000 (00:19 +0100)] 
pthread_cancel.3: tfix

Reported-by: Jona Christopher Sahnwaldt <jcsahnwaldt@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoscripts/bash_aliases: man_gitstaged(): Trim the dirname(1) only for files within...
Alejandro Colomar [Mon, 4 Nov 2024 01:01:08 +0000 (02:01 +0100)] 
scripts/bash_aliases: man_gitstaged(): Trim the dirname(1) only for files within man/

I changed the behavior at some point to trim the dirname(1) for every
file.  However, that was mainly due to the inconvenience of not having a
man/ directory.  Also, I haven't been consistent with that behavior, and
have been manually adding back the dirname(1), so let's bring back the
old behavior --which is BTW still what the comment says it does--.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/git: Specify format.thread=shallow
Alejandro Colomar [Sun, 3 Nov 2024 23:52:12 +0000 (00:52 +0100)] 
CONTRIBUTING.d/git: Specify format.thread=shallow

Setting it to true is equivalent to "shallow", but set it explicitly.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/git: Recommend merge.verifySignatures=true
Alejandro Colomar [Sun, 3 Nov 2024 22:11:27 +0000 (23:11 +0100)] 
CONTRIBUTING.d/git: Recommend merge.verifySignatures=true

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/git: Sort alphabetically
Alejandro Colomar [Sun, 3 Nov 2024 22:05:55 +0000 (23:05 +0100)] 
CONTRIBUTING.d/git: Sort alphabetically

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoshare/mk/: wsfix
Alejandro Colomar [Sun, 3 Nov 2024 17:41:27 +0000 (18:41 +0100)] 
share/mk/: wsfix

Add some spaces for readability and consistency.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoLICENSES/GPL-3.0-or-later.txt: Add license text
Alejandro Colomar [Sun, 3 Nov 2024 17:30:33 +0000 (18:30 +0100)] 
LICENSES/GPL-3.0-or-later.txt: Add license text

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoshare/mk/: lint-c: Skip some false positives
Alejandro Colomar [Sun, 3 Nov 2024 15:25:40 +0000 (16:25 +0100)] 
share/mk/: lint-c: Skip some false positives

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoetc/clang-tidy/config.yaml: -misc-include-cleaner
Alejandro Colomar [Sun, 3 Nov 2024 15:25:10 +0000 (16:25 +0100)] 
etc/clang-tidy/config.yaml: -misc-include-cleaner

We want to enable this warning again in the future, but for now it has
too many false positives.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoetc/clang-tidy/config.yaml: -cppcoreguidelines-macro-to-enum, -readability-avoid...
Alejandro Colomar [Sun, 3 Nov 2024 15:19:53 +0000 (16:19 +0100)] 
etc/clang-tidy/config.yaml: -cppcoreguidelines-macro-to-enum, -readability-avoid-nested-conditional-operator

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoman/: EXAMPLES: Fix includes
Alejandro Colomar [Sun, 3 Nov 2024 14:58:01 +0000 (15:58 +0100)] 
man/: EXAMPLES: Fix includes

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agopdfman.1: srcfix
Alejandro Colomar [Sun, 3 Nov 2024 15:19:01 +0000 (16:19 +0100)] 
pdfman.1: srcfix

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoshare/mk/: [un]install-bin: Add target to [un]install shell scripts
Alejandro Colomar [Sun, 3 Nov 2024 14:16:26 +0000 (15:16 +0100)] 
share/mk/: [un]install-bin: Add target to [un]install shell scripts

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoetc/shellcheck/shellcheckrc: disable=SC2250
Alejandro Colomar [Sun, 3 Nov 2024 13:20:21 +0000 (14:20 +0100)] 
etc/shellcheck/shellcheckrc: disable=SC2250

Adding braces unnecessarily adds noise and thus hurts readability.
Ignore advice.

===
In src/bin/mansect line 23:
-e '(?s)^\.SH ('"$s"')$(?:(?!^\.(lf 1|TH|SH) ).)*';
                         ^-- SC2250 (style): Prefer putting braces around variable references even when not strictly required.
===

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoetc/shellcheck/shellcheckrc: disable=SC2016
Alejandro Colomar [Sun, 3 Nov 2024 13:17:22 +0000 (14:17 +0100)] 
etc/shellcheck/shellcheckrc: disable=SC2016

This triggers false positives with trivial PCRE2 regexes.

===
In src/bin/mansect line 23:
-e '(?s)^\.SH ('"$s"')$(?:(?!^\.(lf 1|TH|SH) ).)*';
                            ^----------------------------^ SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
===

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoetc/shellcheck/shellcheckrc: disable=SC2038
Alejandro Colomar [Sun, 3 Nov 2024 13:15:36 +0000 (14:15 +0100)] 
etc/shellcheck/shellcheckrc: disable=SC2038

We don't want to support arbitrary manual-page file names.

===
In src/bin/mansect line 17:
find -H "$@" -not -type d \
        ^-----------------------^ SC2038 (warning): Use -print0/-0 or -exec + to allow for non-alphanumeric filenames.
===

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoshare/mk/, etc/shellcheck/: lint-sh: Add target to lint shell scripts
Alejandro Colomar [Sun, 3 Nov 2024 13:11:35 +0000 (14:11 +0100)] 
share/mk/, etc/shellcheck/: lint-sh: Add target to lint shell scripts

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agosrc/bin/pdfman: Pipe to read(1) with lastpipe
Alejandro Colomar [Sun, 3 Nov 2024 12:40:36 +0000 (13:40 +0100)] 
src/bin/pdfman: Pipe to read(1) with lastpipe

This is more readable than nested command substitution.  We already
require bash(1) for ${!#}, so we can abuse it a little bit more.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agosrc/bin/pdfman: Use command substitution instead of shell magic
Alejandro Colomar [Sun, 3 Nov 2024 11:40:19 +0000 (12:40 +0100)] 
src/bin/pdfman: Use command substitution instead of shell magic

This is significantly more readable.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agosrc/bin/pdfman, scripts/bash_aliases, pdfman.1: Make pdfman a standalone program...
Alejandro Colomar [Sun, 3 Nov 2024 11:23:01 +0000 (12:23 +0100)] 
src/bin/pdfman, scripts/bash_aliases, pdfman.1: Make pdfman a standalone program, and add a manual page

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoscripts/bash_aliases: pdfman(): Don't have custom error message
Alejandro Colomar [Sun, 3 Nov 2024 11:04:47 +0000 (12:04 +0100)] 
scripts/bash_aliases: pdfman(): Don't have custom error message

Run man(1) transparently, and let it report the error.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoscripts/bash_aliases: pdfman(): Use -Tpdf directly
Alejandro Colomar [Sun, 3 Nov 2024 05:40:55 +0000 (06:40 +0100)] 
scripts/bash_aliases: pdfman(): Use -Tpdf directly

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoscripts/bash_aliases: man_lsfunc(), man_lsvar(): Use pcre2grep(1) instead of pcregrep(1)
Alejandro Colomar [Sat, 2 Nov 2024 23:26:28 +0000 (00:26 +0100)] 
scripts/bash_aliases: man_lsfunc(), man_lsvar(): Use pcre2grep(1) instead of pcregrep(1)

pcregrep(1) is obsolete.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoscripts/bash_aliases: man_lsfunc(), man_lsvar(): Use mansect(1)
Alejandro Colomar [Sat, 2 Nov 2024 22:35:06 +0000 (23:35 +0100)] 
scripts/bash_aliases: man_lsfunc(), man_lsvar(): Use mansect(1)

Remove the man_section() function, and call the mansect(1) program
instead.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agosrc/bin/mansect, mansect.1: Add program and its manual page
Alejandro Colomar [Sat, 2 Nov 2024 22:27:13 +0000 (23:27 +0100)] 
src/bin/mansect, mansect.1: Add program and its manual page

Preprocess with preconv(1).  This doesn't process the pages in a
significant way, and has the benefit that it writes the name of the
pages in the output.

Cc: "G. Branden Robinson" <branden@debian.org>
Cc: Colin Watson <cjwatson@debian.org>
Cc: <groff@gnu.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agosignal.7: Better description for SIGFPE
Vincent Lefevre [Tue, 24 Sep 2024 11:54:46 +0000 (13:54 +0200)] 
signal.7: Better description for SIGFPE

SIGFPE has comment "Floating-point exception", which corresponds to
the FPE acronym.  But this is misleading as this signal may also be
generated by an integer division by 0.

Change it to "Erroneous arithmetic operation" from POSIX.
Note: the GNU C Library manual says "fatal arithmetic error".

Link: <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>
Link: <https://www.gnu.org/software/libc/manual/html_node/Program-Error-Signals.html>
Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/git: Recommend am.messageid=true
Alejandro Colomar [Fri, 27 Sep 2024 07:16:41 +0000 (09:16 +0200)] 
CONTRIBUTING.d/git: Recommend am.messageid=true

This is useful for maintainers.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agoCONTRIBUTING.d/patches: Documentation patches should be sent alongside the features
Alejandro Colomar [Sun, 22 Sep 2024 19:42:47 +0000 (21:42 +0200)] 
CONTRIBUTING.d/patches: Documentation patches should be sent alongside the features

Link: <https://lwn.net/Articles/989380/>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Günther Noack <gnoack@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agodup.2: ERRORS: Add ENOMEM
Levi Zim [Fri, 27 Sep 2024 06:52:29 +0000 (14:52 +0800)] 
dup.2: ERRORS: Add ENOMEM

dup2(2) could return ENOMEM under extreme condition.  For example, when
sysctl fs.nr_open=2147483584, and RLIMIT_NOFILE is also 2147483584.
The following program fails with ENOMEM:

int
main(void)
{
if (dup2(0, 2000000000) == -1)
err(1, "dup2");
return 0;
}

This ENOMEM comes from an allocation error here:
<https://elixir.bootlin.com/linux/v6.1/source/mm/util.c#L596>

ENOMEM is already documented for open(2).

Signed-off-by: Levi Zim <rsworktech@outlook.com>
[alx: tweak commit message]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
9 months agobind.2: ERRORS: Document possible errors from protocol
Lucas Culverhouse [Sun, 22 Sep 2024 02:12:20 +0000 (19:12 -0700)] 
bind.2: ERRORS: Document possible errors from protocol

When looking through the errors of socket(2) I noticed that it specifies
the selected underlying protocol may extend the potential errors
returned.  For example, using AF_PACKET and SOCK_RAW can return EPERM if
the user does not have CAP_NET_RAW or uid 0 (this is all fully
documented).

However, AF_PACKET and SOCK_RAW extend the potential errors returned
from bind(2) as well.  For example, calling bind(2) with an invalid
sll_ifindex set on the sock_addr passed in will return ENODEV.

While this possibility is documented in the raw(7) manual page, the
bind(2) manual page does not mention that its potential set of errors
can be extended by the underlying protocol.  This patch simply
duplicates the relevant language from the socket(2) manual page to the
bind(2) manual page.

It is possible further extensions for send(2), recv(2), setsockopt(2),
etc. are also undocumented, but I have not yet verified this.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
11 months agotimespec_get.3, timespec_getres.3: Add page and link page
наб [Sun, 8 Sep 2024 14:51:49 +0000 (16:51 +0200)] 
timespec_get.3, timespec_getres.3: Add page and link page

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Message-ID: <lacitlat2jwybavkgkmmsxfbzcbz532uihejn5k2boe2x5eyyy@tarta.nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx@kernel.org>