]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
3 years agoioctl_ns.2: EXAMPLES: Add missing include
Alejandro Colomar [Mon, 1 Aug 2022 20:04:49 +0000 (22:04 +0200)] 
ioctl_ns.2: EXAMPLES: Add missing include

Instead of redefining stuff, add the necessary header.

Reported-by: 'make lint-c'
Reported-by: iwyu(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agobyteorder.3: STANDARDS: Simplify
Alejandro Colomar [Mon, 1 Aug 2022 19:45:30 +0000 (21:45 +0200)] 
byteorder.3: STANDARDS: Simplify

No current systems require the inclusion of <netinet/in.h>
anymore.  POSIX.1-2001 has been around for more than 20 years, so
let's simplify.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agobind.2, process_vm_readv.2: EXAMPLES: Add necessary includes and ftm(7)
Alejandro Colomar [Mon, 1 Aug 2022 14:59:39 +0000 (16:59 +0200)] 
bind.2, process_vm_readv.2: EXAMPLES: Add necessary includes and ftm(7)

Reported-by: 'make lint-c'
Reported-by: clang(1)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years ago.checkpatch.conf, CPPLINT.cfg: Ignore some warnings from 'make lint-c'
Alejandro Colomar [Mon, 1 Aug 2022 14:57:53 +0000 (16:57 +0200)] 
.checkpatch.conf, CPPLINT.cfg: Ignore some warnings from 'make lint-c'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoVarious pages: EXAMPLES: tfix
Alejandro Colomar [Mon, 1 Aug 2022 14:55:55 +0000 (16:55 +0200)] 
Various pages: EXAMPLES: tfix

Use escape sequences that produce the correct output, suitable for
copy&paste into real C programs.

Reported-by: 'make lint-c'
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoxattr.7: wfix
Štěpán Němec [Fri, 29 Jul 2022 11:45:04 +0000 (13:45 +0200)] 
xattr.7: wfix

(My original intention was to just fix the grammar ("an attribute names
is"), but, on second thought, the whole sentence didn't read very well.)

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agopoll.2: tfix
Štěpán Němec [Fri, 29 Jul 2022 11:45:06 +0000 (13:45 +0200)] 
poll.2: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosigaction.2: tfix
Štěpán Němec [Fri, 29 Jul 2022 11:45:05 +0000 (13:45 +0200)] 
sigaction.2: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosyslog.2: tfix
Štěpán Němec [Fri, 29 Jul 2022 11:45:03 +0000 (13:45 +0200)] 
syslog.2: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agomremap.2: wfix
Štěpán Němec [Fri, 29 Jul 2022 11:45:02 +0000 (13:45 +0200)] 
mremap.2: wfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agogetrlimit.2: tfix
Štěpán Němec [Fri, 29 Jul 2022 11:45:01 +0000 (13:45 +0200)] 
getrlimit.2: tfix

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile: Disable builtin rules and variables
Alejandro Colomar [Sun, 31 Jul 2022 12:19:26 +0000 (14:19 +0200)] 
Makefile: Disable builtin rules and variables

We don't use them at all, so by disabling them, the debug output
of make(1) will be smaller.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, src.mk, *.mk: Move some definitions to a helper Makefile
Alejandro Colomar [Sat, 30 Jul 2022 19:06:53 +0000 (21:06 +0200)] 
Makefile, src.mk, *.mk: Move some definitions to a helper Makefile

To be able to explicitly include the file with the definitions,
wherever it is needed.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, cmd.mk, *.mk: Allow using different names for basic commands
Alejandro Colomar [Sat, 30 Jul 2022 18:57:13 +0000 (20:57 +0200)] 
Makefile, cmd.mk, *.mk: Allow using different names for basic commands

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agodist.mk: Create tarballs with a top-level directory
Alejandro Colomar [Sat, 30 Jul 2022 18:31:40 +0000 (20:31 +0200)] 
dist.mk: Create tarballs with a top-level directory

Need to use a trick with sed(1) to avoid tar(1) modifying the
symlinks.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoREADME: man0 is not used anymore
Alejandro Colomar [Sun, 31 Jul 2022 11:20:18 +0000 (13:20 +0200)] 
README: man0 is not used anymore

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosa_family_t.3type, sockaddr.3type: Document sa_family_t
Alejandro Colomar [Fri, 29 Jul 2022 22:29:31 +0000 (00:29 +0200)] 
sa_family_t.3type, sockaddr.3type: Document sa_family_t

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosockaddr.3type, timer_t.3type, void.3type: wfix
Alejandro Colomar [Fri, 29 Jul 2022 22:19:27 +0000 (00:19 +0200)] 
sockaddr.3type, timer_t.3type, void.3type: wfix

Replace "shall" wordings by simpler text, to not resemble a
standards document.

When saying something like "According to POSIX/ISO C, ...", if
the mentioned standard is the same one described in STANDARDS,
remove that text (it is redundant).  However, if ISO C is the
main standard that describes a type, but POSIX applies further
restrictions, keep that text.

Remove pedantic notes that may only be interesting to compiler
writers.

Reported-by: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoptrdiff_t.3type, size_t.3type, time_t.3type, va_list.3type, void.3type: ffix
Alejandro Colomar [Fri, 29 Jul 2022 22:12:34 +0000 (00:12 +0200)] 
ptrdiff_t.3type, size_t.3type, time_t.3type, va_list.3type, void.3type: ffix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoVarious pages: wfix
Alejandro Colomar [Fri, 29 Jul 2022 15:50:35 +0000 (17:50 +0200)] 
Various pages: wfix

Replace "shall" wordings by simpler text, to not resemble a
standards document.

When saying something like "According to POSIX/ISO C, ...", if
the mentioned standard is the same one described in STANDARDS,
remove that text (it is redundant).  However, if ISO C is the
main standard that describes a type, but POSIX applies further
restrictions, keep that text.

Remove pedantic notes that may only be interesting to compiler
writers.

Reported-by: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosysexits.h.3head: Add LIBRARY section
Alejandro Colomar [Fri, 29 Jul 2022 13:32:31 +0000 (15:32 +0200)] 
sysexits.h.3head: Add LIBRARY section

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, install-man.mk: Support man3head, and remove support for man0
Alejandro Colomar [Fri, 29 Jul 2022 13:11:00 +0000 (15:11 +0200)] 
Makefile, install-man.mk: Support man3head, and remove support for man0

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosysexits.h.3head: Move header page to a new man3head section
Alejandro Colomar [Fri, 29 Jul 2022 12:56:36 +0000 (14:56 +0200)] 
sysexits.h.3head: Move header page to a new man3head section

Use man3head, as other Unix systems already use.
As Ingo said, man0 is not the right place for header files.

Also, this patch does some changes to the page itself:

Expand the SYNOPSIS to have together all of the values.  Also, add
a small comment about the constant (taken from the header file).

Link: <https://lore.kernel.org/linux-man/11110a04-f96b-0d32-53e3-adcce618c543@gmail.com/>
Cc: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agogetrlimit.2: RLIMIT_NPROC also ignored for ruid 0
Robert Schneider [Thu, 28 Jul 2022 07:40:56 +0000 (07:40 +0000)] 
getrlimit.2: RLIMIT_NPROC also ignored for ruid 0

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMany pages: Use STANDARDS instead of CONFORMING TO
Alejandro Colomar [Thu, 28 Jul 2022 23:15:17 +0000 (01:15 +0200)] 
Many pages: Use STANDARDS instead of CONFORMING TO

STANDARDS seems to be much more extended than CONFORMING TO.  For
consistency across the whole manual pages corpus, let's try to
unify, by following the most commonly used section name.

On 7/27/22 12:49, Ingo Schwarze wrote:
> Alejandro Colomar wrote on Tue, Jul 26, 2022 at 02:02:56PM +0200:
> > We use CONFORMING TO in Linux.  Don't know why; just history, I guess.
> > See man-pages(7).
>
> Weird.
>
> I failed to find a single instance of "CONFORMING TO" in AT&T UNIX
> (including v6, PWB, v7, 32v, v8, v10, System III, SVR1, SVR2) nor in
> any version of UCB CSRG BSD.  So considering that System V and BSD are
> widely considered the two main original branches of the development
> of Unix-like operating systems and Linux is often considered to have
> drawn inspiration from both, the section name "CONFORMING TO" does
> not appear to be a UNIX thing.  For example, Aeleen Frisch, "Essential
> System Administration", O'Reilly, Cambridge 1995, considers Linux
> as slightly more influenced by 4.3BSD than by System V Release 3.
>
> STANDARDS, on the other hand, is present since 4.3BSD-Reno (June 1990).
>
> 4.3BSD-Reno predates the first version of the Linux kernel by more than
> a year, and the first Linux manual pages probably for longer than that.
>
> So i have no idea where "CONFORMING TO" may have come from.

Scripted change:

$ find man* -type f | xargs sed -i 's/CONFORMING TO/STANDARDS/'

plus a few manual fixes to the following files:

- man2/getrlimit.2
- man3/syslog.3
- scripts/bash_aliases

Reported-by: Ingo Schwarze <schwarze@openbsd.org>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agogetsid.2: deduplicate getsid(0) case
наб [Thu, 28 Jul 2022 17:57:51 +0000 (19:57 +0200)] 
getsid.2: deduplicate getsid(0) case

The first sentence in
  getsid(0) returns the session ID of the calling process.
  getsid() returns the session ID of the process with process ID pid.
  If pid is 0, getsid() returns the session ID of the calling process.
blames to beginning of git, duplicates the third one,
and doesn't stylistically match current formatting

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman-pages.7: Document CAVEATS section
Alejandro Colomar [Tue, 26 Jul 2022 11:06:59 +0000 (13:06 +0200)] 
man-pages.7: Document CAVEATS section

CAVEATS is an interesting section.  There's a slight difference
between CAVEATS and BUGS.  We usually have a hard time fitting
what would go into CAVEATS into other sections (usually BUGS and
NOTES); it would be easier if we had the section.  Let's add it.

This section has been used in manual pages by authors from a wide
range of projects including AT&T, Korn shell, Perl, GNU and BSD
since the early 1980s.  Using the section was first officially
recommended in 2002 by the file </usr/share/misc/mdoc.template> in
NetBSD and OpenBSD.

Reported-by: Ingo Schwarze <schwarze@usta.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agostrsignal.3: fix str(d)abbrev typo
наб [Tue, 26 Jul 2022 17:53:38 +0000 (19:53 +0200)] 
strsignal.3: fix str(d)abbrev typo

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman-pages.7: The linker flag is not always necessary
Alejandro Colomar [Fri, 22 Jul 2022 18:39:48 +0000 (20:39 +0200)] 
man-pages.7: The linker flag is not always necessary

See for example pages for types

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman-pages.7: Document LIBRARY section
Alejandro Colomar [Fri, 22 Jul 2022 14:58:06 +0000 (16:58 +0200)] 
man-pages.7: Document LIBRARY section

Reported-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosize_t.3type: tfix
Alejandro Colomar [Fri, 22 Jul 2022 00:49:13 +0000 (02:49 +0200)] 
size_t.3type: tfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoregex_t.3type, regmatch_t.3type, regoff_t.3type, system_data_types.7: Move regex_t...
Alejandro Colomar [Fri, 22 Jul 2022 00:44:20 +0000 (02:44 +0200)] 
regex_t.3type, regmatch_t.3type, regoff_t.3type, system_data_types.7: Move regex_t, regmatch_t, and regoff_t to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agostat.3type, system_data_types.7: Move stat to a separate page
Alejandro Colomar [Fri, 22 Jul 2022 00:26:15 +0000 (02:26 +0200)] 
stat.3type, system_data_types.7: Move stat to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agobash_aliases: man_gitstaged(): Never show dirs
Alejandro Colomar [Thu, 21 Jul 2022 23:44:05 +0000 (01:44 +0200)] 
bash_aliases: man_gitstaged(): Never show dirs

Directories are obvious also for scripts, or other non-man(7)
files.  Also, this adds support for man3type and man2type pages.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotimer_t.3type, system_data_types.7: Move timer_t to a separate page
Alejandro Colomar [Thu, 21 Jul 2022 23:41:47 +0000 (01:41 +0200)] 
timer_t.3type, system_data_types.7: Move timer_t to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile: Remove unused variables
Alejandro Colomar [Thu, 21 Jul 2022 14:11:54 +0000 (16:11 +0200)] 
Makefile: Remove unused variables

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMany pages: Use man3type/ and man2type/ for type pages
Alejandro Colomar [Thu, 21 Jul 2022 13:45:12 +0000 (15:45 +0200)] 
Many pages: Use man3type/ and man2type/ for type pages

Quoting Ingo:

[
The mandoc(1) program is also able to handle paths like
"man3/id_t.3type".  It will consider that page to be *both* in section
"3" (as specified by the directory name) and in section "3type" (as
specified by the file name and by the .TH macro).  I would consider
it better style to keep section names consistent, i.e. to use either
"man3/id_t.3" .TH id_t 3 or "man3type/id_t.3type" .TH id_t 3type,
but it's not a big deal: since many systems (in particular various
Linux distros) suffer from such inconsistencies, handling such
inconsistencies gracefully is an important feature that certainly
won't get removed.
]

Let's be nice, and do things right here, in the hope that others
may follow the example.

===

Most of this patch has been scripted:

$ mkdir man2type man3type
$ find man2 | grep type$ | while read f; do mv -t man2type $f; done
$ find man3 | grep type$ | while read f; do mv -t man3type $f; done
$ grep -rl man3/.*type man* | xargs sed -i 's,man3/,man3type/,'

Apart from that, I adapted the Makefiles, and moved va_list into
the man3type subsection (it was accidentally placed in the main 3
section).

Link: <https://lore.kernel.org/linux-man/YrB66rgFZqryrmpt@asta-kit.de/T/#u>
Reported-by: Ingo Schwarze <schwarze@usta.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotimespec.3type, system_data_types.7: Move timespec to a separate page
Alejandro Colomar [Thu, 21 Jul 2022 13:33:38 +0000 (15:33 +0200)] 
timespec.3type, system_data_types.7: Move timespec to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotimeval.3type, system_data_types.7: Move timeval to a separate page
Alejandro Colomar [Thu, 21 Jul 2022 13:19:31 +0000 (15:19 +0200)] 
timeval.3type, system_data_types.7: Move timeval to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agova_list.3, system_data_types.7: Move va_list to a separate page
Alejandro Colomar [Thu, 21 Jul 2022 12:51:41 +0000 (14:51 +0200)] 
va_list.3, system_data_types.7: Move va_list to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMAINTAINER_NOTES: Update references about generation of bpf-helpers.7
Alejandro Colomar [Thu, 21 Jul 2022 11:26:49 +0000 (13:26 +0200)] 
MAINTAINER_NOTES: Update references about generation of bpf-helpers.7

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agobpf-helpers.7: Refresh page
Alejandro Colomar [Thu, 21 Jul 2022 11:15:09 +0000 (13:15 +0200)] 
bpf-helpers.7: Refresh page

The script for generating this page is hosted in the Linux kernel
repository, as <scripts/bpf_doc.py>.  Run it as:

    $ /path/to/linux//scripts/bpf_doc.py | rst2man > man7/bpf-helpers.7

Link: <https://lore.kernel.org/linux-man/CA+FoirA-FeYeA5ZPgCvo55Hg_dfe7dT54Co8CkU9wW8yemFcJA@mail.gmail.com/T/>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Quentin Monnet <quentin.monnet@netronome.com>
Cc: Rumen Telbizov <rumen.telbizov@menlosecurity.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agovoid.3, void.3type, system_data_types.7: Move void* to a separate page
Alejandro Colomar [Wed, 20 Jul 2022 22:35:07 +0000 (00:35 +0200)] 
void.3, void.3type, system_data_types.7: Move void* to a separate page

Also fix the page to be in man3type, not in man3.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosuseconds_t.3type, time_t.3type, useconds_t.3type, system_data_types.7: Move time_t...
Alejandro Colomar [Wed, 20 Jul 2022 22:06:38 +0000 (00:06 +0200)] 
suseconds_t.3type, time_t.3type, useconds_t.3type, system_data_types.7: Move time_t, suseconds_t, and useconds_t to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoptrdiff_t.3type, size_t.3type, ssize_t.3type: Merge size_t and ssize_t into a single...
Alejandro Colomar [Wed, 20 Jul 2022 21:38:59 +0000 (23:38 +0200)] 
ptrdiff_t.3type, size_t.3type, ssize_t.3type: Merge size_t and ssize_t into a single page

Since ssize_t is just the signed version of size_t,
it makes sense to document them together.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoptrdiff_t.3type, system_data_types.7: Move ptrdiff_t to a separate page
Alejandro Colomar [Wed, 20 Jul 2022 21:14:14 +0000 (23:14 +0200)] 
ptrdiff_t.3type, system_data_types.7: Move ptrdiff_t to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agosize_t.3type, system_data_types.7: Move size_t to a separate page
Alejandro Colomar [Wed, 20 Jul 2022 20:33:56 +0000 (22:33 +0200)] 
size_t.3type, system_data_types.7: Move size_t to a separate page

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoid_t.3type: wfix
Alejandro Colomar [Wed, 20 Jul 2022 12:46:21 +0000 (14:46 +0200)] 
id_t.3type: wfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoloff_t.3type, off64_t.3type, off_t.3type, system_data_types.7: Move off_t and off64_t...
Alejandro Colomar [Wed, 20 Jul 2022 12:42:00 +0000 (14:42 +0200)] 
loff_t.3type, off64_t.3type, off_t.3type, system_data_types.7: Move off_t and off64_t to separate page, and document loff_t

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agostrftime.3, strftime_l.3: mention strftime_l() with .so link
наб [Tue, 19 Jul 2022 22:28:10 +0000 (00:28 +0200)] 
strftime.3, strftime_l.3: mention strftime_l() with .so link

POSIX.1-2008 TC2:
> [CX] The strftime_l() function shall be equivalent to the strftime()
  function, except that the locale data used is from the locale
  represented by locale.
> [CX] The behavior is undefined if the locale argument to strftime_l()
  is the special locale object LC_GLOBAL_LOCALE or is not a valid locale
  object handle.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoctime.3: remove struct tm vestigia
наб [Tue, 19 Jul 2022 22:36:04 +0000 (00:36 +0200)] 
ctime.3: remove struct tm vestigia

struct tm now lives in tm.3type, and we describe both of these fields,
in detail and correctly, therein

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotm.3type: describe tm_zone, tm_gmtoff
наб [Tue, 19 Jul 2022 22:35:57 +0000 (00:35 +0200)] 
tm.3type: describe tm_zone, tm_gmtoff

FreeBSD timezone(3) is V7 char *timezone(int zone, int dst),
our documentation would imply it's impossible to service this type of
system portably

Indeed, glibc defines them both, and they make more sense for most
use-cases than trying to use the globals

glibc cited for __USE_MISC, tm_zone invalidation is Debian 2.33-7
POSIX cited for XSI marking is Issue 7 TC2
CSRG CD #2 contains 4.3BSD-Tahoe with both members

We currently ship an outdated (and factually misleading) version
of this description in ctime.3

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotm.3type: srcfix
Alejandro Colomar [Tue, 19 Jul 2022 20:29:38 +0000 (22:29 +0200)] 
tm.3type: srcfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotm.3type: widen member alignment to take up to const char *
наб [Tue, 19 Jul 2022 15:35:10 +0000 (17:35 +0200)] 
tm.3type: widen member alignment to take up to const char *

This lets us take const char *tm_zone.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotm.3type: align ranges
наб [Tue, 19 Jul 2022 15:35:04 +0000 (17:35 +0200)] 
tm.3type: align ranges

This, to me, makes these much more readable

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoprintf.3: Note about thousands grouping and the C locale
Dr. Jürgen Sauermann [Tue, 19 Jul 2022 14:54:46 +0000 (16:54 +0200)] 
printf.3: Note about thousands grouping and the C locale

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotm.3type: tm_year is year minus 1900, not since
наб [Tue, 19 Jul 2022 01:56:17 +0000 (03:56 +0200)] 
tm.3type: tm_year is year minus 1900, not since

Since only makes sense if the year represented is after 1900:
how many years have passed since 1900 in... 1410?

Also \fB the constant like elsewhere in the hunk

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agotm.3type: tfix
наб [Tue, 19 Jul 2022 01:56:00 +0000 (03:56 +0200)] 
tm.3type: tfix

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agobind.2: EXAMPLES: Add cleanup code
Alejandro Colomar [Mon, 18 Jul 2022 14:57:27 +0000 (16:57 +0200)] 
bind.2: EXAMPLES: Add cleanup code

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoman-pages-5.14.lsm: Update format and maintainers
Alejandro Colomar [Sun, 10 Jul 2022 21:17:09 +0000 (23:17 +0200)] 
man-pages-5.14.lsm: Update format and maintainers

The file is compatible with the newer Begin4 format, so specify it.

Add myself to 'Maintained-by:'.

Link: <https://lsm.qqx.org/>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoCONTRIBUTING, README: Move info from the README to CONTRIBUTING
Alejandro Colomar [Sun, 10 Jul 2022 21:00:43 +0000 (23:00 +0200)] 
CONTRIBUTING, README: Move info from the README to CONTRIBUTING

Also, write file name in <>.

Also, update the README, to say sections 0 through 8.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, README, INSTALL: Improve INSTALL documentation
Alejandro Colomar [Sun, 10 Jul 2022 20:27:50 +0000 (22:27 +0200)] 
Makefile, README, INSTALL: Improve INSTALL documentation

Add a 'make help' target to document the features of our Makefile.

Move all documentation about installing from the README to a new
INSTALL file, following GNU coding standards.  See
<https://www.gnu.org/prep/standards/html_node/Releases.html#Releases>.

INSTALL contains minimal information, and defers to 'make help'
for the rest.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoinstall.mk, lint.mk: Add comment to endif
Alejandro Colomar [Sun, 10 Jul 2022 17:58:54 +0000 (19:58 +0200)] 
install.mk, lint.mk: Add comment to endif

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile: srcfix
Alejandro Colomar [Sun, 10 Jul 2022 16:44:28 +0000 (18:44 +0200)] 
Makefile: srcfix

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, install.mk, install-html.mk, install-man.mk: install: split into helper...
Alejandro Colomar [Sun, 10 Jul 2022 16:41:51 +0000 (18:41 +0200)] 
Makefile, install.mk, install-html.mk, install-man.mk: install: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, build.mk, build-html.mk, build-src.mk, dist.mk, lint.mk, lint-man.mk: build...
Alejandro Colomar [Sun, 10 Jul 2022 16:19:15 +0000 (18:19 +0200)] 
Makefile, build.mk, build-html.mk, build-src.mk, dist.mk, lint.mk, lint-man.mk: build, clean: split into helper Makefile

Add a new 'build' target (alias for 'all'), for consistency.

Also, use MKDIR instead of INSTALL_DIR to create directories in $(builddir).

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, lint.mk, build-src.mk, lint-c.mk, lint-man.mk: lint: split into helper...
Alejandro Colomar [Sun, 10 Jul 2022 15:39:45 +0000 (17:39 +0200)] 
Makefile, lint.mk, build-src.mk, lint-c.mk, lint-man.mk: lint: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, install-man.mk: install-man: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 15:24:11 +0000 (17:24 +0200)] 
Makefile, install-man.mk: install-man: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, build-html.mk, install-html.mk: build-html: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 15:03:22 +0000 (17:03 +0200)] 
Makefile, build-html.mk, install-html.mk: build-html: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, install-html.mk: install-html: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 14:58:51 +0000 (16:58 +0200)] 
Makefile, install-html.mk: install-html: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, dist.mk: dist: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 14:49:46 +0000 (16:49 +0200)] 
Makefile, dist.mk: dist: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, build-src.mk, lint-c.mk: build-src: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 14:34:57 +0000 (16:34 +0200)] 
Makefile, build-src.mk, lint-c.mk: build-src: split into helper Makefile

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years agoMakefile, lint-man.mk: lint-man: split into helper Makefile
Alejandro Colomar [Sun, 10 Jul 2022 14:19:25 +0000 (16:19 +0200)] 
Makefile, lint-man.mk: lint-man: split into helper Makefile

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

Also updated copyright year.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 years 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>
3 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>
3 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>