]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
23 months agoMakefile, lint-c.mk: lint-c: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 13:48:53 +0000 (15:48 +0200)] 
Makefile, lint-c.mk: lint-c: split into helper Makefile

Also renamed part of the files s/lint.c/lint-c/

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoMakefile: rename targets that build examples
Alejandro Colomar [Sun, 10 Jul 2022 13:32:19 +0000 (15:32 +0200)] 
Makefile: rename targets that build examples

Use 'build-src' as a prefix, to improve the organization.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoMakefile: subdivide 'lint' into 'lint-c' and 'lint-man'
Alejandro Colomar [Sun, 10 Jul 2022 13:01:43 +0000 (15:01 +0200)] 
Makefile: subdivide 'lint' into 'lint-c' and 'lint-man'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agostatx.2: correctly document STATX_ALL
Eric Biggers [Tue, 5 Jul 2022 18:36:14 +0000 (11:36 -0700)] 
statx.2: correctly document STATX_ALL

Since kernel commit 581701b7efd6 ("uapi: deprecate STATX_ALL"),
STATX_ALL is deprecated.  It doesn't include STATX_MNT_ID, and it won't
include any future flags.  Update the man page accordingly.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[alx: wfix, ffix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofts.3: tfix
наб [Tue, 5 Jul 2022 16:22:08 +0000 (18:22 +0200)] 
fts.3: tfix

statp -> fts_statp

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofts.3: list primary modes first
наб [Tue, 5 Jul 2022 16:22:03 +0000 (18:22 +0200)] 
fts.3: list primary modes first

FTS_LOGICAL sorts before FTS_PHYSICAL,
FTS_COMFOLLOW modifies FTS_PHYSICAL,
the remaining flags follow in sorted order

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofts.3: clarify FTS_COMFOLLOW behaviour
наб [Tue, 5 Jul 2022 16:21:57 +0000 (18:21 +0200)] 
fts.3: clarify FTS_COMFOLLOW behaviour

FTS_COMFOLLOW is equivalent to FTS_LOGICAL for fts_level == 0:
define it as such

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofts.3: remove triplicate requirement spiel
наб [Tue, 5 Jul 2022 16:21:48 +0000 (18:21 +0200)] 
fts.3: remove triplicate requirement spiel

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofts.3: note that lstat(2) may also provide fts_statp
наб [Tue, 5 Jul 2022 16:21:41 +0000 (18:21 +0200)] 
fts.3: note that lstat(2) may also provide fts_statp

In FTS_PHYSICAL                 mode, it's always lstat()
In FTS_LOGICAL                  mode, it's stat() unless it ENOENTs
                                      in which case it's lstat()
In FTS_PHYSICAL | FTS_COMFOLLOW mode, it's FTS_LOGICAL  for path_argv
                                      and  FTS_PHYSICAL for children

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofts.3: wfix
наб [Sun, 3 Jul 2022 22:23:52 +0000 (00:23 +0200)] 
fts.3: wfix

This list consistently uses "this option", force that for FTS_NOCHDIR
too

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofanotify.7, fanotify_init.2, fanotify_mark.2: Document FAN_RENAME
Amir Goldstein [Thu, 30 Jun 2022 19:06:10 +0000 (22:06 +0300)] 
fanotify.7, fanotify_init.2, fanotify_mark.2: Document FAN_RENAME

FAN_RENAME is a new event type that includes information about
both old and new directory entries.

It is a successor of the two separate FAN_MOVED_TO/FROM events,
but those event types are still supported.

Reviewed-by: Matthew Bobrowski <repnop@google.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agofanotify.7, fanotify_init.2: Document FAN_REPORT_TARGET_FID
Amir Goldstein [Thu, 30 Jun 2022 19:06:09 +0000 (22:06 +0300)] 
fanotify.7, fanotify_init.2: Document FAN_REPORT_TARGET_FID

FAN_REPORT_TARGET_FID adds an information record about the child
to directory entry modification events (create/delete/move).

This flag also adds sanity checks that directory modification events
(create,delete,moved) cannot be set in mask of a non-dir inode mark.

Note that while FAN_REPORT_TARGET_FID was merged to v5.17, the sanity
checks resulting in ENOTDIR were merged as fix commits ceaf69f8eadc
("fanotify: do not allow setting dirent events in mask of non-dir")
and 8698e3bab4dd ("fanotify: refine the validation checks on non-dir
inode mask") in later kernel releases.

Reviewed-by: Matthew Bobrowski <repnop@google.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
[alx: ffix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agogetdate.3: EXAMPLES: Fix comment.
Alejandro Colomar [Sun, 3 Jul 2022 19:08:15 +0000 (21:08 +0200)] 
getdate.3: EXAMPLES: Fix comment.

The comments were misplaced (interchanged).

strptime(3):
       %a or %A
              The  name  of the day of the week according to the
              current locale, in abbreviated form  or  the  full
              name.

       %T     Equivalent to %H:%M:%S.

       %F     Equivalent to %Y-%m-%d, the ISO 8601 date format.

Reported-by: <pellucida@tutanota.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agogetmntent.3: wfix
Alejandro Colomar [Sun, 3 Jul 2022 18:49:54 +0000 (20:49 +0200)] 
getmntent.3: wfix

Reported-by: Lucien Gentis <lucien.gentis@waika9.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoupdwtmp.3: Add #define GNU_SOURCE for updwtmpx
Sam James [Fri, 24 Jun 2022 02:59:11 +0000 (03:59 +0100)] 
updwtmp.3: Add #define GNU_SOURCE for updwtmpx

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=216168
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoenviron.7: align PWD with the standard
наб [Mon, 20 Jun 2022 15:25:17 +0000 (17:25 +0200)] 
environ.7: align PWD with the standard

Issue 7, 8.3:
    PWD
    This variable shall represent an absolute pathname of the current
    working directory. It shall not contain any components that are dot
    or dot-dot. The value is set by the cd utility, and by the sh
    utility during initialization.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoepoll_event.3type: NAME: Add epoll_data and epoll_data_t
Alejandro Colomar [Mon, 20 Jun 2022 07:16:28 +0000 (09:16 +0200)] 
epoll_event.3type: NAME: Add epoll_data and epoll_data_t

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoepoll_ctl.2, epoll_wait.2: Defer definition of epoll_event to epoll_event(3type)
Alejandro Colomar [Sun, 19 Jun 2022 23:01:59 +0000 (01:01 +0200)] 
epoll_ctl.2, epoll_wait.2: Defer definition of epoll_event to epoll_event(3type)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoepoll_data.3type, epoll_data_t.3type: Add links to epoll_event.3type
Alejandro Colomar [Sun, 19 Jun 2022 22:58:59 +0000 (00:58 +0200)] 
epoll_data.3type, epoll_data_t.3type: Add links to epoll_event.3type

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoepoll_event.3type: Add new page documenting 'struct epoll_event'
Alejandro Colomar [Sun, 19 Jun 2022 22:57:58 +0000 (00:57 +0200)] 
epoll_event.3type: Add new page documenting 'struct epoll_event'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoaiocb.3type, lconv.3type: NAME: Remove 'struct' keyword
Alejandro Colomar [Sun, 19 Jun 2022 22:42:31 +0000 (00:42 +0200)] 
aiocb.3type, lconv.3type: NAME: Remove 'struct' keyword

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoaiocb.3type, lconv.3type: .TH: tfix
Alejandro Colomar [Sun, 19 Jun 2022 22:38:27 +0000 (00:38 +0200)] 
aiocb.3type, lconv.3type: .TH: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoMakefile, README: Fix make all
Alejandro Colomar [Sun, 19 Jun 2022 22:32:49 +0000 (00:32 +0200)] 
Makefile, README: Fix make all

`make all` should not install and even less uninstall.  That's
unintuitive, and might break stuff that we don't want to break.

Instead, make it build all useful things that we can build, which
right now is only the HTML pages, but in the future might include
PDF pages.

Reported-by: Ingo Schwarze <schwarze@usta.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agoMakefile: SHELL: Use a portable bash
Alejandro Colomar [Sun, 19 Jun 2022 17:55:58 +0000 (19:55 +0200)] 
Makefile: SHELL: Use a portable bash

Reported-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
23 months agostandards.7: tfix
Alejandro Colomar [Sun, 19 Jun 2022 12:16:12 +0000 (14:16 +0200)] 
standards.7: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agossize_t.3type: tfix
Alejandro Colomar [Fri, 17 Jun 2022 15:12:11 +0000 (17:12 +0200)] 
ssize_t.3type: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agossize_t.3type, system_data_types.7: Move ssize_t to a separate page
Alejandro Colomar [Fri, 17 Jun 2022 15:01:44 +0000 (17:01 +0200)] 
ssize_t.3type, system_data_types.7: Move ssize_t to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agotm.3type: wfix
Alejandro Colomar [Fri, 17 Jun 2022 14:50:55 +0000 (16:50 +0200)] 
tm.3type: wfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agointN_t.3type: ffix
Alejandro Colomar [Fri, 17 Jun 2022 14:49:54 +0000 (16:49 +0200)] 
intN_t.3type: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agofanotify.7, fanotify_mark.2: Document FAN_FS_ERROR
Gabriel Krisman Bertazi [Fri, 17 Jun 2022 13:00:14 +0000 (16:00 +0300)] 
fanotify.7, fanotify_mark.2: Document FAN_FS_ERROR

FAN_FS_ERROR is a new event for fanotify to report filesystem errors
that might lead to some corruption.
This documents how to use the feature and specific caveats.

Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Matthew Bobrowski <repnop@google.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoprocess_madvise.2: wfix
Alejandro Colomar [Fri, 17 Jun 2022 10:59:17 +0000 (12:59 +0200)] 
process_madvise.2: wfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: Defer definition of iovec to iovec(3type)
Alejandro Colomar [Fri, 17 Jun 2022 10:58:42 +0000 (12:58 +0200)] 
Various pages: Defer definition of iovec to iovec(3type)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoiovec.3type: Add new page documenting 'struct iovec'
Alejandro Colomar [Fri, 17 Jun 2022 10:53:28 +0000 (12:53 +0200)] 
iovec.3type: Add new page documenting 'struct iovec'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoopenat2.2, open_how.2type, Makefile: Add new page documenting 'struct open_how'
Alejandro Colomar [Thu, 16 Jun 2022 09:20:12 +0000 (11:20 +0200)] 
openat2.2, open_how.2type, Makefile: Add new page documenting 'struct open_how'

Simplify openat2(2) a little bit, but without removing information
that is crucial to openat2(2).

Adapt the Makefile to accept the 2type section.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoctime.3, strptime.3, time.7: Refer to tm(3type)
Alejandro Colomar [Wed, 15 Jun 2022 20:06:34 +0000 (22:06 +0200)] 
ctime.3, strptime.3, time.7: Refer to tm(3type)

Instead of repeating the documentation of tm(3type) in pages that
use it, just refer to it.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agotm.3type: Add new page documenting 'struct tm'
Alejandro Colomar [Wed, 15 Jun 2022 19:53:29 +0000 (21:53 +0200)] 
tm.3type: Add new page documenting 'struct tm'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agouname.2: deweirdify
наб [Wed, 15 Jun 2022 16:39:14 +0000 (18:39 +0200)] 
uname.2: deweirdify

The NOTES were not only weirdly reductionist, but also highly
opinionated in the wrong direction.

Yes, it's a syscall in SysIII; not in 4.4BSD.
Well, in general, it exists in 4.4BSD for obvious conformace reasons.
No, it doesn't "know" (and if it does, that's not relevant),
historically and practically this is the broad CPU/machine type
(compare uname -p on SysVr4 (=> SunOS 5 => NetBSD),
 which is the actual CPU model (usually)).
Everywhere, ex. def., the nodename is what the BSD calls the hostname.
"No standard" also speaks of sethostname(), so.
Historical precedent (i.e. all implementations, save *maybe* for weirdo
XENIX, who cares about weirdo XENIX) defines the hostname to be uname -n
(indeed, SVr3 uname -S sets /both/ nodename /and/ sysname!
 that's not relevant here;
 SunOS gets it from the network (unless configured manually)).
Someone clearly cited SysVr4's "Internet hostnames" comment w/o credit;
fix that.
8-byte truncation is really quite secondary here (indeed, that's what
 SysVr4 does for pre-SysVr4 uname() callers that haven't been rebuilt.
 you will never encounter it).
The hostname is not meaningless, obviously??
Also fix machine to say "hardware type", like the standard;
"hardware identifier" would be hostid. I wrote six seething pages about
hostid, and machine is /not/ hostid.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agouname.2: fix standard reference wording
наб [Wed, 15 Jun 2022 16:39:09 +0000 (18:39 +0200)] 
uname.2: fix standard reference wording

Issue 6:
    IEEE Std 1003.1-2001/Cor 2-2004, item XBD/TC2/D6/27 is applied,
changing the description of nodename within the utsname structure from
``an implementation-defined communications network'' to
``the communications network to which this node is attached, if any''.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoMany pages: Move type pages to subsection 3type
Alejandro Colomar [Wed, 15 Jun 2022 13:51:26 +0000 (15:51 +0200)] 
Many pages: Move type pages to subsection 3type

These pages are not exactly what man3 typically contains, which is
library functions.  Instead, types fit better in a subsection of
man3, and some UNIX systems have already a section 3type, so let's
use the same name.

Adapt the Makefile to work with this subsection.  Except for the
Makefile, these changes are scripted.

Scripted changes:

$ find man3 -type f \
  | grep '_t\.3$' \
  | while read f; do
mv $f ${f}type;
  done;

$ find man? -type f \
  | xargs grep -l '^\.so.*_t\.3' \
  | xargs sed -i '/^\.so/s/\.3$/\.3type/';

$ find man? -type f \
  | xargs grep -l '^\.BR .*_t (3)' \
  | xargs sed -i '/^\.BR .*_t (3)/s/3)/3type)/';

$ find man? -type f \
  | grep -- '-struct\.[23]$' \
  | while read f; do
g="$(echo $f | sed 's/-struct//')"type;

mv $f $g;
  done;

$ find man? -type f \
  | xargs grep -l '^\.so.*-struct\.[23]' \
  | xargs sed -i -e '/^\.so/s/-struct//' -e '/^\.so/s/$/type/';

$ find man? -type f \
  | xargs grep -l '^\.BR .*-struct (.)' \
  | xargs sed -i -e '/^\.BR .*-struct (.)/s/\([23]\)/\1type/' \
                 -e '/^\.BR .*-struct /s/-struct//';

$ find man? -type f \
  | grep -- '-union\.[23]$' \
  | while read f; do
g="$(echo $f | sed 's/-union//')"type;

mv $f $g;
  done;

$ find man? -type f \
  | grep '3type' \
  | xargs sed -i '/^\.TH/s/ 3 / 3type /';

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agouserfaultfd.2: Minor tweaks to Peter's patches
Alejandro Colomar [Wed, 15 Jun 2022 13:29:07 +0000 (15:29 +0200)] 
userfaultfd.2: Minor tweaks to Peter's patches

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Cc: Peter Xu <peterx@redhat.com>
2 years agouserfaultfd.2: Update on write-protection support
Peter Xu [Fri, 3 Jun 2022 17:37:36 +0000 (13:37 -0400)] 
userfaultfd.2: Update on write-protection support

The shmem/hugetlbfs memory types are supported for write-protection
messages very lately.  Update the man page to reflect that.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agouserfaultfd.2: Add section for UFFD_USER_MODE_ONLY
Peter Xu [Fri, 3 Jun 2022 17:37:35 +0000 (13:37 -0400)] 
userfaultfd.2: Add section for UFFD_USER_MODE_ONLY

Add a paragraph for UFFD_USER_MODE_ONLY flag that was introduced in
Linux 5.11.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomadvise.2: Clarify addr/length and update hugetlb support
Mike Kravetz [Thu, 9 Jun 2022 18:52:01 +0000 (11:52 -0700)] 
madvise.2: Clarify addr/length and update hugetlb support

Clarify that madvise only works on full pages, and remove references
to 'bytes'.

Update MADV_DONTNEED and MADV_REMOVE sections to remove notes that
HugeTLB mappings are not supported.  Indicate the releases when they
were first supported as well as alignment restrictions.

Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Acked-by: Peter Xu <peterx@redhat.com>
[alx: wsfix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agostatx.2: Add #define _GNU_SOURCE to synopsis
Jakub Wilk [Wed, 8 Jun 2022 22:43:36 +0000 (00:43 +0200)] 
statx.2: Add #define _GNU_SOURCE to synopsis

The original text hinted that you need _GNU_SOURCE only for a few of the
AT_* constants; but actually you need it to get the statx() declaration.

[alx:]
You can check yourself:

$ grepc -tfp statx
./io/bits/statx-generic.h:60:
int statx (int __dirfd, const char *__restrict __path, int __flags,
           unsigned int __mask, struct statx *__restrict __buf)
  __THROW __nonnull ((2, 5));

$ grep -rnC1 '<bits/statx-generic.h>' io/
io/bits/statx-generic.h-21-#ifndef _SYS_STAT_H
io/bits/statx-generic.h:22:# error Never include <bits/statx-generic.h> directly, include <sys/stat.h> instead.
io/bits/statx-generic.h-23-#endif
--
io/bits/statx.h-25-/* Use the generic definitions.  */
io/bits/statx.h:26:#include <bits/statx-generic.h>

$ grep -rnC1 '<bits/statx.h>' io/
io/bits/statx.h-21-#ifndef _SYS_STAT_H
io/bits/statx.h:22:# error Never include <bits/statx.h> directly, include <sys/stat.h> instead.
io/bits/statx.h-23-#endif
--
io/sys/stat.h-371-#ifdef __USE_GNU
io/sys/stat.h:372:# include <bits/statx.h>
io/sys/stat.h-373-#endif

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoChanges.old: tfix
Jakub Wilk [Wed, 8 Jun 2022 22:43:13 +0000 (00:43 +0200)] 
Changes.old: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomount_setattr.2: Minor tweaks to Christian's patch set
Alejandro Colomar [Wed, 8 Jun 2022 15:30:12 +0000 (17:30 +0200)] 
mount_setattr.2: Minor tweaks to Christian's patch set

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomount_setattr.2: ffix
Christian Brauner [Tue, 7 Jun 2022 13:38:20 +0000 (15:38 +0200)] 
mount_setattr.2: ffix

Fix a typo in my name.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomount_setattr.2: update list of supported filesystems
Christian Brauner [Tue, 7 Jun 2022 13:38:19 +0000 (15:38 +0200)] 
mount_setattr.2: update list of supported filesystems

Update list of filesystems that support ID-mapped mounts.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomount_setattr.2: update conditions to create ID-mapped mounts
Christian Brauner [Tue, 7 Jun 2022 13:38:18 +0000 (15:38 +0200)] 
mount_setattr.2: update conditions to create ID-mapped mounts

Newer kernels in principle support the creation of ID-mapped mounts for
filesystems mountable in non-initial user namespaces. Currently, no such
filesystem has been ported to support this though. But we should
nonetheless update the conditions.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomount_setattr.2: add and explain missing EBUSY error
Christian Brauner [Tue, 7 Jun 2022 13:38:17 +0000 (15:38 +0200)] 
mount_setattr.2: add and explain missing EBUSY error

In order to ID-map a mount it must not have any writers. If the mount
has writers and the caller tries to ID-map the mount EBUSY will be
returned.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoproc.5: Document bit 57 for /proc/[pid]/pagemap
Marco Bonelli [Tue, 7 Jun 2022 19:04:38 +0000 (21:04 +0200)] 
proc.5: Document bit 57 for /proc/[pid]/pagemap

Bit 57 was introduced in Linux v5.14 to reflect the userfaultfd
write-protect bit (commit fb8e37f35a2fe1f983ac21850e856e2c7498d469).

Signed-off-by: Marco Bonelli <marco@mebeim.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agopipe.2: Add mention of O_NOTIFICATION_PIPE flag
Cyril Hrubis [Wed, 8 Jun 2022 12:46:45 +0000 (14:46 +0200)] 
pipe.2: Add mention of O_NOTIFICATION_PIPE flag

This adds very basic information about the notification pipe that have
been added into Linux 5.8.

There is some description about the interface at:

https://www.kernel.org/doc/html/latest/core-api/watch_queue.html

(I think that there is at least on bug in that page, since the
notification pipe has to be opened with O_NOTIFICATION_PIPE which is
defined to O_EXCL not O_TMPFILE)

The ENOPKG error should be clear from this header (see
watch_queue_init() at the end):

https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/include/linux/watch_queue.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Cc: David Howells <dhowells@redhat.com>
[alx: wsfix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoupdate_timestamps.sh: Add script to update the pages' timestamps
Alejandro Colomar [Wed, 8 Jun 2022 12:12:43 +0000 (14:12 +0200)] 
update_timestamps.sh: Add script to update the pages' timestamps

This differs from what was being done until now.  Before, we were
updating the timestamp with the date of the release, but that's
unnecessarily unprecise.  With this, we have the actual date of
when the last change was committed.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agopoll.2: Set fd to its bitwise complement to ignore
David Ward [Mon, 6 Jun 2022 03:31:39 +0000 (23:31 -0400)] 
poll.2: Set fd to its bitwise complement to ignore

A valid file descriptor will be non-negative, i.e., 0 <= fd <= INT_MAX.
When all of the bits of a valid file descriptor are flipped, the result
is a negative value: ~0 = -1, ~1 = -2, ..., ~INT_MAX = INT_MIN. If all
of these bits are flipped again, then the file descriptor is recovered.

Negating the file descriptor does not quite achieve this, because there
will be no change for fd 0. (Likewise, negating INT_MIN would not cause
any change in value, but it is never a valid file descriptor.)

Link: https://bugzilla.kernel.org/show_bug.cgi?id=79411
Signed-off-by: David Ward <david.ward@gatech.edu>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agommap.2: wfix man-pages-5.19-rc1
Jesse Rosenstock [Fri, 3 Jun 2022 14:45:13 +0000 (16:45 +0200)] 
mmap.2: wfix

Change "supported only since" to "support was added in".

Previously, this said, "MAP_POPULATE is supported for private mappings only
since Linux 2.6.23."  This could be parsed as "MAP_POPULATE is supported
for private mappings only [not shared mappings] since Linux 2.6.23."
Someone (a native English speaker) tried to tell me this.

Change to "Support for MAP_POPULATE in conjunction with private mappings
was added in Linux 2.6.23."  This is unambiguous, and "support was
added" is more common in other man pages.

There are more instances of "supported only since", but they seem
clearer.  I could send a separate patch for them if desired.

Signed-off-by: Jesse Rosenstock <jmr@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoremove_COLOPHON.sh: srcfix
Alejandro Colomar [Mon, 30 May 2022 20:14:58 +0000 (22:14 +0200)] 
remove_COLOPHON.sh: srcfix

SC2068 (error): Double quote array expansions to avoid
                re-splitting elements.

Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoexecve.2: point to exec(3) early
наб [Wed, 25 May 2022 19:30:04 +0000 (21:30 +0200)] 
execve.2: point to exec(3) early

Most people actually want exec(3) (or one of its aliases);
the minutiae are a separate, rarer, concern, and execve(2) hijacks
man execve from all the other exec(3) aliases
(similarly to exec(1posix), but it's at least obvious in that case that
 you got the wrong page)

Reported-in: https://twitter.com/NireBryce/status/1529538043039850499
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agofanotify: Document FAN_REPORT_PIDFD Feature
Matthew Bobrowski [Tue, 24 May 2022 06:03:37 +0000 (16:03 +1000)] 
fanotify: Document FAN_REPORT_PIDFD Feature

Update the fanotify API documentation to include details on the new
FAN_REPORT_PIDFD feature. This patch also includes a generic section
describing the concept of information records which are supported by
the fanotify API.

Signed-off-by: Matthew Bobrowski <repnop@google.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
[alx: wsfix, ffix]
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agobash_aliases: srcfix
Alejandro Colomar [Sun, 22 May 2022 13:36:33 +0000 (15:36 +0200)] 
bash_aliases: srcfix

SC2034 (warning): EX_OK appears unused.
SC2035 (info):    Use ./*glob* or -- *glob* so names with dashes
                  won't become options.
SC2068 (error):   Double quote array expansions to avoid
                  re-splitting elements.
SC2086 (info):    Double quote to prevent globbing and word
                  splitting.
SC2112 (warning): 'function' keyword is non-standard. Delete it.
SC2124 (warning): Assigning an array to a string!  Assign as
                  array, or use * instead of @ to concatenate.
SC3001 (warning): In POSIX sh, process substitution is undefined.
SC3006 (warning): In POSIX sh, standalone ((..)) is undefined.

Also, remove unnecessary braces, and update copyright.

Reported-by: shellcheck(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agobash_aliases: Add reference to grepc(1)
Alejandro Colomar [Sat, 21 May 2022 22:20:16 +0000 (00:20 +0200)] 
bash_aliases: Add reference to grepc(1)

grepc(1) has some of the features implemented in our bash_aliases,
and then some.  It also is shorter to type, and has a rich set of
command line options.

Link: <http://www.alejandro-colomar.es/src/alx/alx/grepc.git/>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoprintf.3: Document 'l' length modifier for a, A, e, E, f, F, g, and G
Vincent Lefevre [Fri, 20 May 2022 17:30:43 +0000 (19:30 +0200)] 
printf.3: Document 'l' length modifier for a, A, e, E, f, F, g, and G

Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agocheckstyle.tmac: Put all groff -rCHECKSTYLE stuff in a single file
Alejandro Colomar [Sat, 21 May 2022 14:09:51 +0000 (16:09 +0200)] 
checkstyle.tmac: Put all groff -rCHECKSTYLE stuff in a single file

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agofseek.3: mention seek-past-the-end semantics, defer to lseek(2)
наб [Mon, 16 May 2022 19:51:43 +0000 (21:51 +0200)] 
fseek.3: mention seek-past-the-end semantics, defer to lseek(2)

If the user is unfamiliar with seeking semantics, they may sensibly
assume that seeking past the end is invalid

Reported-in: https://twitter.com/eatijr/status/1526264195808911361
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agogetpriority.2: Minor tweaks to Theodore's patch
Alejandro Colomar [Sat, 14 May 2022 21:25:42 +0000 (23:25 +0200)] 
getpriority.2: Minor tweaks to Theodore's patch

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agogetpriority: Only getpriority translates the priority values
Theodore Dubois [Tue, 10 May 2022 22:08:21 +0000 (15:08 -0700)] 
getpriority: Only getpriority translates the priority values

The translation is needed to avoid returning a negative number from a
successful syscall, and this requirement doesn't apply to setpriority.
See the implementation of getpriority in kernel/sys.c.

Signed-off-by: Theodore Dubois <tbodt@google.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agosignal.2: tfix
Andrew Persons [Thu, 5 May 2022 02:06:12 +0000 (21:06 -0500)] 
signal.2: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agofopen.3: tfix
Alejandro Colomar [Sat, 14 May 2022 12:30:41 +0000 (14:30 +0200)] 
fopen.3: tfix

Reported-by: Avinash Sonawane <rootkea@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoMakefile: silence spurious error message
Alejandro Colomar [Mon, 9 May 2022 21:11:37 +0000 (23:11 +0200)] 
Makefile: silence spurious error message

The following error is harmless and normal.  Ignore it.

$ sudo make install
fatal: unsafe repository ('/home/alx/src/linux/man-pages/man-pages' is owned by someone else)
To add an exception for this directory, call:

git config --global --add safe.directory /home/alx/src/linux/man-pages/man-pages

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agouserfaultfd.2: EXAMPLES: Use __func__
Alejandro Colomar [Tue, 3 May 2022 20:37:49 +0000 (22:37 +0200)] 
userfaultfd.2: EXAMPLES: Use __func__

Instead of hardcoding the function name, use %s and __func__,
which is standard ISO C.

Reported-by: checkpatch(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agotimerfd_create.2: EXAMPLES: Remove unnecessary parentheses
Alejandro Colomar [Tue, 3 May 2022 20:36:38 +0000 (22:36 +0200)] 
timerfd_create.2: EXAMPLES: Remove unnecessary parentheses

Reported-by: checkpatch(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoseccomp_unotify.2, sysctl.2: EXAMPLES: Use ARRAY_SIZE() instead of sizeof division
Alejandro Colomar [Tue, 3 May 2022 20:35:39 +0000 (22:35 +0200)] 
seccomp_unotify.2, sysctl.2: EXAMPLES: Use ARRAY_SIZE() instead of sizeof division

Using sizeof divisions manually is bad style.  Use ARRAY_SIZE(arr)
to promote good style.

Reported-by: checkpatch(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agokcmp.2: EXAMPLES: Use octal permissions instead of S_I* macros
Alejandro Colomar [Tue, 3 May 2022 20:32:30 +0000 (22:32 +0200)] 
kcmp.2: EXAMPLES: Use octal permissions instead of S_I* macros

Octal is much more readable.

Reported-by: checkpatch(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoexecve.2: EXAMPLES: Add 'static'
Alejandro Colomar [Tue, 3 May 2022 20:30:51 +0000 (22:30 +0200)] 
execve.2: EXAMPLES: Add 'static'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: Separate declarations from code
Alejandro Colomar [Tue, 3 May 2022 20:29:53 +0000 (22:29 +0200)] 
Various pages: EXAMPLES: Separate declarations from code

Reported-by: checkpatch(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: ffix
Alejandro Colomar [Mon, 2 May 2022 23:38:25 +0000 (01:38 +0200)] 
Various pages: EXAMPLES: ffix

Mostly reported by checkpatch(1).  Fixed according to a mix of the
NGINX, git, and kernel coding styles.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years ago.checkpatch.conf, Makefile, etc/checkpatch/config: lint-checkpatch: Add new target...
Alejandro Colomar [Mon, 2 May 2022 23:33:10 +0000 (01:33 +0200)] 
.checkpatch.conf, Makefile, etc/checkpatch/config: lint-checkpatch: Add new target to run checkpatch(1)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoCPPLINT.cfg, Makefile, etc/cpplint/CPPLINT.cfg: lint-cpplint: Add new target to run...
Alejandro Colomar [Mon, 2 May 2022 22:16:56 +0000 (00:16 +0200)] 
CPPLINT.cfg, Makefile, etc/cpplint/CPPLINT.cfg: lint-cpplint: Add new target to run cpplint(1)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agolistxattr.2, msgop.2: EXAMPLES: ffix
Alejandro Colomar [Mon, 2 May 2022 21:58:23 +0000 (23:58 +0200)] 
listxattr.2, msgop.2: EXAMPLES: ffix

If an else has a brace on one side, it should have it on both.

Reported-by: cpplint(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoioctl_fat.2, select_tut.2, sysctl.2: wsfix
Alejandro Colomar [Mon, 2 May 2022 21:55:57 +0000 (23:55 +0200)] 
ioctl_fat.2, select_tut.2, sysctl.2: wsfix

Reported-by: cpplint(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agotimegm.3: Remove recommendation against their use
Alejandro Colomar [Mon, 11 Oct 2021 11:04:02 +0000 (13:04 +0200)] 
timegm.3: Remove recommendation against their use

It was straight after a note that they are nonstandard functions,
which already tells the user that if portability is in mind, they
shouldn't be used, so this recommendation adds nothing in that
sense.

Also, there's a note that timelocal() should _never_ be used, due
to mktime() being identical and in the POSIX standard (it is also
in C99), so this note would also add nothing in that sense.

So the only uses not covered by those other notes are non-portable
uses of timegm(3).  In that scenario, it is an excellent function.

Cc: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agocopy_file_range.2: Update cross-filesystem support for 5.12
Alejandro Colomar [Sat, 27 Feb 2021 13:37:59 +0000 (14:37 +0100)] 
copy_file_range.2: Update cross-filesystem support for 5.12

Linux 5.12 fixes a regression.

Cross-filesystem (introduced in 5.3) copies were buggy.

Move the statements documenting cross-fs to BUGS.
Kernels 5.3..5.11 should be patched soon.

State version information for some errors related to this.

Reported-by: Luis Henriques <lhenriques@suse.de>
Reported-by: Amir Goldstein <amir73il@gmail.com>
Related: <https://lwn.net/Articles/846403/>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Anna Schumaker <anna.schumaker@netapp.com>
Cc: Jeff Layton <jlayton@kernel.org>
Cc: Steve French <sfrench@samba.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Dave Chinner <dchinner@redhat.com>
Cc: Nicolas Boichat <drinkcat@chromium.org>
Cc: Ian Lance Taylor <iant@google.com>
Cc: Luis Lozano <llozano@chromium.org>
Cc: Andreas Dilger <adilger@dilger.ca>
Cc: Olga Kornievskaia <aglo@umich.edu>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: ceph-devel <ceph-devel@vger.kernel.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Cc: CIFS <linux-cifs@vger.kernel.org>
Cc: samba-technical <samba-technical@lists.samba.org>
Cc: linux-fsdevel <linux-fsdevel@vger.kernel.org>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Cc: Walter Harms <wharms@bfs.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoMakefile: dist: Add target to create distribution archives
Alejandro Colomar [Fri, 15 Apr 2022 22:16:24 +0000 (00:16 +0200)] 
Makefile: dist: Add target to create distribution archives

Other subtargets are also created, with the obvious results:
dist-tar, dist-gz, and dist-xz.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoscripts/append_COLOPHON.sh: Add script to append the COLOPHON section
Alejandro Colomar [Fri, 15 Apr 2022 20:21:11 +0000 (22:21 +0200)] 
scripts/append_COLOPHON.sh: Add script to append the COLOPHON section

I first implemented it using cat <<-, but sed(1) is around 5 times
faster, so even if it's a bit more complex and slightly less
readable, let's use sed(1).

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoscripts/remove_COLOPHON.sh: Allow passing directories to the script
Alejandro Colomar [Fri, 15 Apr 2022 19:55:13 +0000 (21:55 +0200)] 
scripts/remove_COLOPHON.sh: Allow passing directories to the script

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoprocess_vm_readv.2: EXAMPLES: Use exit(3) instead of return
Alejandro Colomar [Mon, 2 May 2022 21:25:51 +0000 (23:25 +0200)] 
process_vm_readv.2: EXAMPLES: Use exit(3) instead of return

For consistency.  Also, remove unnecessary else.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: Fix includes
Alejandro Colomar [Mon, 2 May 2022 21:25:03 +0000 (23:25 +0200)] 
Various pages: EXAMPLES: Fix includes

Reported-by: iwyu(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoclone.2, pivot_root.2: EXAMPLES: Add #include <signal.h>
Alejandro Colomar [Mon, 2 May 2022 21:23:52 +0000 (23:23 +0200)] 
clone.2, pivot_root.2: EXAMPLES: Add #include <signal.h>

To provide SIGCHLD.

Reported-by: iwyu(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agokeyctl.2: EXAMPLES: Parenthesize macro definition
Alejandro Colomar [Mon, 2 May 2022 21:21:27 +0000 (23:21 +0200)] 
keyctl.2: EXAMPLES: Parenthesize macro definition

Reported-by: clang-tidy(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: Remove unused includes
Alejandro Colomar [Mon, 2 May 2022 21:20:37 +0000 (23:20 +0200)] 
Various pages: EXAMPLES: Remove unused includes

Reported-by: iwyu(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: Use SYS_xxx syscall macros instead of __NR_xxx
Alejandro Colomar [Mon, 2 May 2022 21:14:30 +0000 (23:14 +0200)] 
Various pages: EXAMPLES: Use SYS_xxx syscall macros instead of __NR_xxx

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: sort includes alphabetically
Alejandro Colomar [Mon, 2 May 2022 21:11:20 +0000 (23:11 +0200)] 
Various pages: EXAMPLES: sort includes alphabetically

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoetc/clang-tidy/config.yaml: Suppress some warnings/errors
Alejandro Colomar [Mon, 2 May 2022 21:04:41 +0000 (23:04 +0200)] 
etc/clang-tidy/config.yaml: Suppress some warnings/errors

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agointN_t.3: <arpa/inet.h> also provides some fixed-width types
Alejandro Colomar [Mon, 2 May 2022 18:44:52 +0000 (20:44 +0200)] 
intN_t.3: <arpa/inet.h> also provides some fixed-width types

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoMakefile: lint-iwyu: Be silent if there are no problems
Alejandro Colomar [Sun, 1 May 2022 23:35:58 +0000 (01:35 +0200)] 
Makefile: lint-iwyu: Be silent if there are no problems

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoMakefile: CFLAGS: Don't trigger errors for some warnings
Alejandro Colomar [Sun, 1 May 2022 20:59:08 +0000 (22:59 +0200)] 
Makefile: CFLAGS: Don't trigger errors for some warnings

These warnings are due to imperfect APIs.  We'll have to assume them.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agospu_run.2: Use syscall(SYS_...) for system calls without a wrapper
Alejandro Colomar [Sat, 12 Jun 2021 08:31:23 +0000 (10:31 +0200)] 
spu_run.2: Use syscall(SYS_...) for system calls without a wrapper

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoseccomp.2: EXAMPLES: Fix signedness
Alejandro Colomar [Sat, 30 Apr 2022 22:58:57 +0000 (00:58 +0200)] 
seccomp.2: EXAMPLES: Fix signedness

AUDIT_ARCH_X86_64 is an unsigned integer.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agomemfd_create.2: EXAMPLES: Remove unused variable
Alejandro Colomar [Sat, 30 Apr 2022 22:58:01 +0000 (00:58 +0200)] 
memfd_create.2: EXAMPLES: Remove unused variable

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agogetdents.2, sysctl.2: EXAMPLES: Fix bugs related to printf(3)
Alejandro Colomar [Sat, 30 Apr 2022 22:56:52 +0000 (00:56 +0200)] 
getdents.2, sysctl.2: EXAMPLES: Fix bugs related to printf(3)

The first argument to %*s must be an int.
Use %ld for long.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2 years agoVarious pages: EXAMPLES: Fix usage of argc and argv
Alejandro Colomar [Sat, 30 Apr 2022 22:54:19 +0000 (00:54 +0200)] 
Various pages: EXAMPLES: Fix usage of argc and argv

If they are unused, use the more appropriate signature:

    int main(void);

If they are used, check that the number of arguments is correct.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>