]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
5 years agogetaddrinfo.3: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:46:06 +0000 (21:46 +0200)] 
getaddrinfo.3: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocmsg.3: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:44:54 +0000 (21:44 +0200)] 
cmsg.3: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocmsg.3: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:44:41 +0000 (21:44 +0200)] 
cmsg.3: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobsearch.3: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:43:23 +0000 (21:43 +0200)] 
bsearch.3: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosignalfd.2: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:41:31 +0000 (21:41 +0200)] 
signalfd.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosysctl.2: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:39:56 +0000 (21:39 +0200)] 
sysctl.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoperf_event_open.2: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:29:33 +0000 (21:29 +0200)] 
perf_event_open.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoperf_event_open.2: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:29:02 +0000 (21:29 +0200)] 
perf_event_open.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen_by_handle_at.2: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:27:55 +0000 (21:27 +0200)] 
open_by_handle_at.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofutex.2: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 19:27:01 +0000 (21:27 +0200)] 
futex.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobind.2: Use sizeof consistently
Alejandro Colomar [Fri, 4 Sep 2020 10:19:16 +0000 (12:19 +0200)] 
bind.2: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobind.2, ioctl_ns.2, open_by_handle_at.2, duplocale.3: tfix
Michael Kerrisk [Sat, 5 Sep 2020 12:49:16 +0000 (14:49 +0200)] 
bind.2, ioctl_ns.2, open_by_handle_at.2, duplocale.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocpuset.7: tfix
Michael Kerrisk [Sat, 5 Sep 2020 12:47:55 +0000 (14:47 +0200)] 
cpuset.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomemusage.1: Use %zu rather than %zd when printing 'size_t' values
Michael Kerrisk [Fri, 4 Sep 2020 07:52:02 +0000 (09:52 +0200)] 
memusage.1: Use %zu rather than %zd when printing 'size_t' values

'size_t' is an unsigned type...

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomemusage.1: wspfix
Michael Kerrisk [Fri, 4 Sep 2020 07:51:08 +0000 (09:51 +0200)] 
memusage.1: wspfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomemusage.1: EXAMPLES: remove doubled calculations
Michael Kerrisk [Fri, 4 Sep 2020 07:49:16 +0000 (09:49 +0200)] 
memusage.1: EXAMPLES: remove doubled calculations

The same calculations are repeated in malloc() and printf() calls.
For better readability, do the calculations once.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomemusage.1: Use sizeof consistently
Alejandro Colomar [Thu, 3 Sep 2020 10:23:52 +0000 (12:23 +0200)] 
memusage.1: Use sizeof consistently

Hi Michael,

Continuing with the series, this is the first of the last set of
patches: (2).1 as numbered in previous emails.

Regards,
Alex.

------------------------------------------------------------------------
>From ad5f958ed68079791d6e35f9d70ca5ec2a72c43b Mon Sep 17 00:00:00 2001
From: Alejandro Colomar <colomar.6.4.3@gmail.com>
Date: Thu, 3 Sep 2020 12:11:18 +0200
Subject: [PATCH] memusage.1: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the following
way:

- Use the name of the variable instead of its type as argument for
  ``sizeof``.

Rationale:
https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoChanges.old: tfix
Jakub Wilk [Fri, 28 Aug 2020 15:55:37 +0000 (17:55 +0200)] 
Changes.old: tfix

Remove duplicated words.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agounix.7: wsfix
Alejandro Colomar [Thu, 3 Sep 2020 20:17:05 +0000 (22:17 +0200)] 
unix.7: wsfix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agombsinit.3: wsfix
Alejandro Colomar [Thu, 3 Sep 2020 11:05:22 +0000 (13:05 +0200)] 
mbsinit.3: wsfix

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify.7: srcfix
Michael Kerrisk [Fri, 28 Aug 2020 12:26:57 +0000 (14:26 +0200)] 
fanotify.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify_init.2, fanotify.7: Minor edits to Amir Goldstein's patches
Michael Kerrisk [Fri, 28 Aug 2020 12:26:12 +0000 (14:26 +0200)] 
fanotify_init.2, fanotify.7: Minor edits to Amir Goldstein's patches

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify_init.2, fanotify.7: srcfix: Semantic newlines
Michael Kerrisk [Fri, 28 Aug 2020 12:18:05 +0000 (14:18 +0200)] 
fanotify_init.2, fanotify.7: srcfix: Semantic newlines

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify.7, fanotify_init.2: Document FAN_REPORT_NAME
Amir Goldstein [Tue, 25 Aug 2020 11:40:56 +0000 (14:40 +0300)] 
fanotify.7, fanotify_init.2: Document FAN_REPORT_NAME

Document fanotify_init(2) flag FAN_REPORT_NAME and the format of
the event info type FAN_EVENT_INFO_TYPE_DFID_NAME.

The fanotify_fid.c example is extended to also report the name of
the created file or subdirectory.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify.7, fanotify_init.2: Document FAN_REPORT_DIR_FID
Amir Goldstein [Tue, 25 Aug 2020 11:40:55 +0000 (14:40 +0300)] 
fanotify.7, fanotify_init.2: Document FAN_REPORT_DIR_FID

Document fanotify_init(2) flag FAN_REPORT_DIR_FID and event info
type FAN_EVENT_INFO_TYPE_DFID.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agofanotify.7, fanotify_mark.2: Generalize documentation of FAN_REPORT_FID
Amir Goldstein [Tue, 25 Aug 2020 11:40:54 +0000 (14:40 +0300)] 
fanotify.7, fanotify_mark.2: Generalize documentation of FAN_REPORT_FID

With fanotify_init(2) flag FAN_REPORT_FID, the group identifies
filesystem objects by file handles in a single event info record
of type FAN_EVENT_INFO_TYPE_FID.

We intend to add support for new fanotify_init(2) flags for which
the group identifies filesystem objects by file handles and add
more event info record types.

To that end, start by changing the language of the man page to
refer to a "group that identifies filesystem objects by file
handles" instead of referring to the FAN_REPORT_FID flag and
document the extended event format structure in a more generic
manner that allows more than a single event info record and not
only a record of type FAN_EVENT_INFO_TYPE_FID.

Clarify that the object identified by the file handle refers to
the directory in directory entry modification events.

Remove a note about directory entry modification events and
monitoring a mount point that I found to be too confusing and out
of context.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matthew Bobrowski <mbobrowski@mbobrowski.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomount.2: Minor wording improvement
Michael Kerrisk [Fri, 28 Aug 2020 11:51:06 +0000 (13:51 +0200)] 
mount.2: Minor wording improvement

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosyscalls.2: Bump kernel version number
Michael Kerrisk [Fri, 28 Aug 2020 09:35:12 +0000 (11:35 +0200)] 
syscalls.2: Bump kernel version number

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosyscalls.2: Add close_range (Linux 5.9)
Michael Kerrisk [Wed, 26 Aug 2020 09:52:13 +0000 (11:52 +0200)] 
syscalls.2: Add close_range (Linux 5.9)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf-helpers.7: Really resync against latest kernel source
Michael Kerrisk [Wed, 26 Aug 2020 18:54:13 +0000 (20:54 +0200)] 
bpf-helpers.7: Really resync against latest kernel source

Jakub points out that my last resync may accidentally have been
against an old version of the kernel source, since the resync
resulted in many deleted lines. I suspect he may be right.
Let's resync against today's current kernel.

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocmsg.3, getaddrinfo_a.3 getgrouplist.3: Use sizeof, consistently
Alejandro Colomar [Tue, 25 Aug 2020 13:00:33 +0000 (15:00 +0200)] 
cmsg.3, getaddrinfo_a.3 getgrouplist.3: Use sizeof, consistently

Use ``sizeof`` consistently through all the examples in the
following way:

- When the result of ``sizeof`` is multiplied (or otherwise
  modified), write ``sizeof`` in the first place.

Rationale:

``(sizeof(x) * INT_MAX * 2)`` doesn't overflow.

``(INT_MAX * 2 * sizeof(x))`` overflows, giving incorrect
results.

As a side effect, the parentheses of ``sizeof`` are not next to
the parentheses of the whole expression, and it is visually
easier to read.

Detailed rationale:

In C, successive multiplications are evaluated left to right (*),
and therefore here is what happens (assuming x86_64):

``(sizeof(x) * INT_MAX * 2)``:

1) sizeof(x) * INT_MAX  (the type is the largest of both, which
                         is size_t (unsigned long; uint64_t)).
2) ANS * 2         (the type is again the largest: size_t)

``(INT_MAX * 2 * sizeof(x))``:

1) INT_MAX * 2         (the type is the largest of both, which is
          int as both are int (int; int32_t), so the
          result is already truncated as it doesn't fit
          an int; at this point, the intermediate result
          will be 2^32 - 2 (``INT_MAX - 1``) (if I did
          the math right)).
2) ANS * 2         (the type is again the largest of both: size_t;
          however, ANS was already incorrect, so the
          result will be an incorrect size_t value)

(*):        https://en.cppreference.com/w/c/language/operator_precedence

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoclock_getres.2: Fix type and variable name in dynamic clock code example
Michael Kerrisk [Wed, 26 Aug 2020 06:10:56 +0000 (08:10 +0200)] 
clock_getres.2: Fix type and variable name in dynamic clock code example

Use 'struct timespec', not 'struct timeval', and adjust
the variable name accordingly.

Reported-by: Tony May <tony.may@mediakind.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetgrouplist.3, inotify.7: Use sizeof consistently
Alejandro Colomar [Tue, 25 Aug 2020 12:21:57 +0000 (14:21 +0200)] 
getgrouplist.3, inotify.7: Use sizeof consistently

Use ``sizeof`` consistently through all the examples in the
following way:

- Never use a space after ``sizeof``, and always use parentheses
  around the argument.

  Rationale:
  https://www.kernel.org/doc/html/v5.8/process/coding-style.html#spaces

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoMakefile: Fix lintian.debian.org URL in comment
Michael Kerrisk [Tue, 25 Aug 2020 11:49:02 +0000 (13:49 +0200)] 
Makefile: Fix lintian.debian.org URL in comment

From the email conversation:

    From: Jakub Wilk <jwilk@jwilk.net>
    Subject: Re: [bug] Makefile: Broken link

    * Alejandro Colomar <colomar.6.4.3@gmail.com>, 2020-08-25, 12:51:
    >Line 32 on the Makefile has a broken link in a comment:
    >
    >https://lintian.debian.org/tags/manpage-has-errors-from-man.html

    This Lintian tag was renamed recently:
    https://salsa.debian.org/lintian/lintian/commit/844278682aafa1da

    The current URL is:
    https://lintian.debian.org/tags/groff-message.html

Reported-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoqueue.3: ffix
Michael Kerrisk [Mon, 24 Aug 2020 15:06:59 +0000 (17:06 +0200)] 
queue.3: ffix

Reported-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoqueue.3: Minor formatting fixes for Alejandro Colomar's patch
Michael Kerrisk [Mon, 24 Aug 2020 07:02:54 +0000 (09:02 +0200)] 
queue.3: Minor formatting fixes for Alejandro Colomar's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoqueue.3: Document CIRCLEQ_* macros
Alejandro Colomar [Mon, 24 Aug 2020 06:50:23 +0000 (08:50 +0200)] 
queue.3: Document CIRCLEQ_* macros

I run ``sudo make`` and then visualized the man page with
``man 3 queue``, and the contents looked good.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agostrtod.3: Fix return value for underflow
Jonathan Wakely [Fri, 7 Aug 2020 08:30:57 +0000 (09:30 +0100)] 
strtod.3: Fix return value for underflow

In C89 strtod returns zero on underflow, but since C99 it can return
non-zero. This means the strtod.3 page contradicts all recent C and
POSIX standards. Both C and POSIX say "smallest normalized positive
number", but for consistency with HUGE_VAL, HUGE_VALF and HUGE_VALL
this patch uses the constants for those numbers.

Also slightly improve the presentation of return values for overflow.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoprintf.3: Fix description of %a hexfloat output
Jonathan Wakely [Fri, 7 Aug 2020 08:30:06 +0000 (09:30 +0100)] 
printf.3: Fix description of %a hexfloat output

The description of hexadecimal floating-point output is missing a
character describing the exponent. The guarantee of at least one digit
in the exponent is present in both C99 and POSIX.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoseccomp.2: EXAMPLES: use SECCOMP_RET_KILL_PROCESS rather than SECCOMP_RET_KILL
Michael Kerrisk [Sun, 23 Aug 2020 17:13:03 +0000 (19:13 +0200)] 
seccomp.2: EXAMPLES: use SECCOMP_RET_KILL_PROCESS rather than SECCOMP_RET_KILL

See previous commit.

Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoseccomp.2: Warn against the use of SECCOMP_RET_KILL_THREAD
Michael Kerrisk [Sun, 23 Aug 2020 17:21:28 +0000 (19:21 +0200)] 
seccomp.2: Warn against the use of SECCOMP_RET_KILL_THREAD

Killing a thread with SECCOMP_RET_KILL_THREAD is very likely
to leave the rest of the process in a broken state.

Wording pretty much taken from Rick Felker's suggestion.

Reported-by: Rich Felker <dalias@libc.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocapabilities.7: tfix
Steve Hilder [Sat, 22 Aug 2020 20:23:15 +0000 (22:23 +0200)] 
capabilities.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agobpf-helpers.7: Resync with current kernel source
Michael Kerrisk [Sat, 22 Aug 2020 11:28:09 +0000 (13:28 +0200)] 
bpf-helpers.7: Resync with current kernel source

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agocgroups.7: wfix
Thomas Piekarski [Wed, 19 Aug 2020 15:19:33 +0000 (17:19 +0200)] 
cgroups.7: wfix

Removing repeated word "the"

Signed-off-by: Thomas Piekarski <t.piekarski@deloquencia.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agotime_namespaces.7: wfix
Thomas Piekarski [Wed, 19 Aug 2020 15:20:02 +0000 (17:20 +0200)] 
time_namespaces.7: wfix

Removing repeated word "the"

Signed-off-by: Thomas Piekarski <t.piekarski@deloquencia.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoStart of man-pages-5.09: updating Changes and Changes.old
Michael Kerrisk [Thu, 13 Aug 2020 11:49:52 +0000 (13:49 +0200)] 
Start of man-pages-5.09: updating Changes and Changes.old

5 years agoStart of man-pages-5.09: updating .Announce and .lsm files
Michael Kerrisk [Thu, 13 Aug 2020 11:49:52 +0000 (13:49 +0200)] 
Start of man-pages-5.09: updating .Announce and .lsm files

5 years agoStart of man-pages-5.09: renaming .Announce and .lsm files
Michael Kerrisk [Thu, 13 Aug 2020 11:49:52 +0000 (13:49 +0200)] 
Start of man-pages-5.09: renaming .Announce and .lsm files

5 years agoReady for 5.08 man-pages-5.08
Michael Kerrisk [Thu, 13 Aug 2020 08:03:54 +0000 (10:03 +0200)] 
Ready for 5.08

5 years agointro.1, clock_getres.2, execve.2, fcntl.2, iopl.2, lseek.2, mknod.2, mmap.2, mount...
Michael Kerrisk [Thu, 13 Aug 2020 08:01:14 +0000 (10:01 +0200)] 
intro.1, clock_getres.2, execve.2, fcntl.2, iopl.2, lseek.2, mknod.2, mmap.2, mount.2, mq_getsetattr.2, pidfd_open.2, prctl.2, setns.2, sgetmask.2, sigaction.2, stat.2, statx.2, sync.2, syscalls.2, syslog.2, timerfd_create.2, umask.2, a64l.3, aio_init.3, atoi.3, dladdr.3, fread.3, getpt.3, isfdtype.3, malloc_stats.3, malloc_trim.3, mkfifo.3, mq_close.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, posix_memalign.3, posix_openpt.3, pthread_atfork.3, pthread_rwlockattr_setkind_np.3, regex.3, scanf.3, sem_close.3, sem_destroy.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sigset.3, sigvec.3, strftime.3, termios.3, console_codes.4, dsp56k.4, fd.4, lp.4, mouse.4, pts.4, sk98lin.4, dir_colors.5, proc.5, resolv.conf.5, termcap.5, utmp.5, aio.7, armscii-8.7, arp.7, capabilities.7, cgroups.7, charsets.7, cp1251.7, cp1252.7, environ.7, glob.7, inode.7, iso_8859-1.7, iso_8859-10.7, iso_8859-11.7, iso_8859-13.7, iso_8859-14.7, iso_8859-15.7, iso_8859-16.7, iso_8859-2.7, iso_8859-3.7, iso_8859-4.7, iso_8859-5.7, iso_8859-6.7, iso_8859-7.7, iso_8859-8.7, iso_8859-9.7, keyrings.7, koi8-r.7, koi8-u.7, mailaddr.7, man-pages.7, netdevice.7, operator.7, persistent-keyring.7, process-keyring.7, pthreads.7, pty.7, raw.7, regex.7, session-keyring.7, shm_overview.7, signal.7, socket.7, suffixes.7, thread-keyring.7, unicode.7, units.7, uri.7, user-keyring.7, user-session-keyring.7, iconvconfig.8, ld.so.8, zic.8: tstamp

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoChanges: Ready for 5.08
Michael Kerrisk [Thu, 13 Aug 2020 07:55:59 +0000 (09:55 +0200)] 
Changes: Ready for 5.08

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agodrop "coding: UTF-8" header
Mike Frysinger [Sun, 26 Jul 2020 06:23:40 +0000 (02:23 -0400)] 
drop "coding: UTF-8" header

This header is used inconsistently -- man pages are UTF-8 encoded
but not setting this marker.  It's only respected by the man-db
package, and seems a bit anachronistic at this point when UTF-8
is the standard default nowadays.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoqueue.3: Remove wrong code from example
Alejandro Colomar [Wed, 12 Aug 2020 07:43:11 +0000 (09:43 +0200)] 
queue.3: Remove wrong code from example

There was code containing ``CIRCLEQ_*`` in the examples for ``TAILQ_*``.  It was introduced by accident in commit ``041abbe``.

From 0c9dfbe9b1ce1130e9a92d1a16fbecd4a08bbe29 Mon Sep 17 00:00:00 2001
From: Alejandro Colomar <colomar.6.4.3@gmail.com>
Date: Wed, 12 Aug 2020 09:11:27 +0200
Subject: [PATCH] queue.3: Remove wrong code from example

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: wfix
Michael Kerrisk [Sun, 9 Aug 2020 10:35:22 +0000 (12:35 +0200)] 
man-pages.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: ffix
Michael Kerrisk [Sun, 9 Aug 2020 10:34:42 +0000 (12:34 +0200)] 
man-pages.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: ffix
Michael Kerrisk [Sun, 9 Aug 2020 10:33:20 +0000 (12:33 +0200)] 
man-pages.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: srcfix
Michael Kerrisk [Sun, 9 Aug 2020 08:26:51 +0000 (10:26 +0200)] 
man-pages.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoman-pages.7: Add some notes on generating optimal glyphs
Michael Kerrisk [Sun, 9 Aug 2020 08:20:38 +0000 (10:20 +0200)] 
man-pages.7: Add some notes on generating optimal glyphs

Getting nice renderings of ^ ` and ~ requires special
steps in the page source.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopldd.1, bpf.2, execve.2, futex.2, ioctl_fat.2, ioctl_tty.2, keyctl.2, signalfd.2...
Michael Kerrisk [Thu, 6 Aug 2020 20:22:39 +0000 (22:22 +0200)] 
pldd.1, bpf.2, execve.2, futex.2, ioctl_fat.2, ioctl_tty.2, keyctl.2, signalfd.2, timerfd_create.2, __ppc_get_timebase.3, a64l.3, frexp.3, pthread_setname_np.3, regex.3, rpmatch.3, scanf.3, strfmon.3, strftime.3, termios.3, console_codes.4, vcs.4, veth.4, core.5, dir_colors.5, termcap.5, ascii.7, charsets.7, glob.7, man-pages.7, operator.7, regex.7, user_namespaces.7, zic.8: Use "\(ha" rather than "^" in code

This renders better in PDF.

Reported-by: Geoff Clare <gwc@opengroup.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoglob.7, zic.8: Use \` rather than `
Michael Kerrisk [Thu, 6 Aug 2020 20:02:25 +0000 (22:02 +0200)] 
glob.7, zic.8: Use \` rather than `

\` produces better rendering in PDF.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agostrftime.3: ffix
Michael Kerrisk [Thu, 6 Aug 2020 19:59:28 +0000 (21:59 +0200)] 
strftime.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoassert.3: ffix
Michael Kerrisk [Thu, 6 Aug 2020 19:58:07 +0000 (21:58 +0200)] 
assert.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agointro.1, clock_getres.2, clone.2, futex.2, ioctl_fat.2, mkdir.2, mknod.2, mmap.2...
Michael Kerrisk [Thu, 6 Aug 2020 19:43:46 +0000 (21:43 +0200)] 
intro.1, clock_getres.2, clone.2, futex.2, ioctl_fat.2, mkdir.2, mknod.2, mmap.2, open.2, statx.2, umask.2, userfaultfd.2, glob.3, mkfifo.3, termios.3, wordexp.3, console_codes.4, sk98lin.4, vcs.4, dir_colors.5, hosts.equiv.5, proc.5, termcap.5, utmp.5, ascii.7, bpf-helpers.7, charsets.7, environ.7, glob.7, mailaddr.7, netlink.7, operator.7, suffixes.7, tcp.7, unicode.7, uri.7, zic.8: Use "\(ti" instead of "~"

A naked tilde ("~") renders poorly in PDF. Instead use "\(ti",
which renders better in a PDF, and produces the same glyph
when rendering on a terminal.

Reported-by: Geoff Clare <gwc@opengroup.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agomath_error.7: tfix
Michael Kerrisk [Tue, 4 Aug 2020 19:08:06 +0000 (21:08 +0200)] 
math_error.7: tfix

Reported-by: John Scott <jscott@posteo.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoqueue.3: Comment out text for functions not in glibc (related: 6559169cac)
Alejandro Colomar [Tue, 4 Aug 2020 09:40:41 +0000 (11:40 +0200)] 
queue.3: Comment out text for functions not in glibc (related: 6559169cac)

===========
DESCRIPTION
===========

I'm documenting ``CIRCLEQ_*`` macros in queue.3.  While writing
this, I noticed that the documentation for some types of
queues/lists talked about swapping contents of two lists, but only
for some of them.  I then found that those macros (``*_SWAP``)
don't exist in my system (Debian), but exist in BSD, and I also
found that a previous commit (6559169cac) commented out a lot of
the *_SWAP macros documentation, but not all, and the reason was
that they were not present on glibc.

I checked that I didn't have any of the *_SWAP macros on my glibc,
so I think this is probably that the commit simply forgot to
comment some of
them.

=======
TESTING
=======

I did ``sudo make`` and then visualized the man page with
``man 3 queue``, and the changes looked good.

I also noticed that the subsection ``Tail queue example`` contents
were wrong, as they contained calls to CIRCLEQ_* macros.  I will
address that in a future patch, before I submit the patch
documenting CIRCLEQ_*.

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2, proc.5: tfix
Michael Kerrisk [Fri, 31 Jul 2020 20:32:59 +0000 (22:32 +0200)] 
open.2, proc.5: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_tty.2: tfix
Michael Kerrisk [Thu, 30 Jul 2020 10:11:21 +0000 (12:11 +0200)] 
ioctl_tty.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_tty.2: ffix
Michael Kerrisk [Thu, 30 Jul 2020 10:06:11 +0000 (12:06 +0200)] 
ioctl_tty.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agosocket.2, address_families.7: wfix: multiplexor ==> multiplexer
Michael Kerrisk [Thu, 30 Jul 2020 06:03:02 +0000 (08:03 +0200)] 
socket.2, address_families.7: wfix: multiplexor ==> multiplexer

Both are used, but "multiplexer" seems to be majority usage in
English.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopts.4: Remove NOTES on BSD pseuodterminals
Michael Kerrisk [Wed, 29 Jul 2020 09:12:59 +0000 (11:12 +0200)] 
pts.4: Remove NOTES on BSD pseuodterminals

This information is already covered better in pty(7). No need to
mention it again here.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopts.4: wfix
Michael Kerrisk [Wed, 29 Jul 2020 09:08:14 +0000 (11:08 +0200)] 
pts.4: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopenpty.3: Minor wording fixes
Michael Kerrisk [Wed, 29 Jul 2020 08:10:14 +0000 (10:10 +0200)] 
openpty.3: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopty.7: Explicitly mention CONFIG_LEGACY_PTYS
Michael Kerrisk [Wed, 29 Jul 2020 07:15:27 +0000 (09:15 +0200)] 
pty.7: Explicitly mention CONFIG_LEGACY_PTYS

Explicitly mention CONFIG_LEGACY_PTYS, and note that it is disabled
by default since Linux 2.6.30.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agopty.7: Relocate a paragraph to NOTES
Michael Kerrisk [Wed, 29 Jul 2020 06:42:49 +0000 (08:42 +0200)] 
pty.7: Relocate a paragraph to NOTES

The paragraph noting applications that use pseudoterminals is better
placed in NOTES than in the DESCRTIPTION.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agounlockpt.3: wfix
Michael Kerrisk [Tue, 28 Jul 2020 21:27:11 +0000 (23:27 +0200)] 
unlockpt.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agottyname.3: wfix
Michael Kerrisk [Tue, 28 Jul 2020 21:18:43 +0000 (23:18 +0200)] 
ttyname.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoptsname.3: wfix
Michael Kerrisk [Tue, 28 Jul 2020 21:05:11 +0000 (23:05 +0200)] 
ptsname.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agograntpt.3: Minor wording fix
Michael Kerrisk [Tue, 28 Jul 2020 20:56:50 +0000 (22:56 +0200)] 
grantpt.3: Minor wording fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetpt.3, posix_openpt.3, pts.4: Use the term "pseudoterminal multiplexor device"...
Michael Kerrisk [Tue, 28 Jul 2020 20:42:56 +0000 (22:42 +0200)] 
getpt.3, posix_openpt.3, pts.4: Use the term "pseudoterminal multiplexor device" for /dev/ptmx

Let's use some consistent terminology for this device.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetpt.3: Minor wording fixes
Michael Kerrisk [Tue, 28 Jul 2020 20:40:04 +0000 (22:40 +0200)] 
getpt.3: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agogetpt.3, pts.4: Minor wording fixes
Michael Kerrisk [Tue, 28 Jul 2020 20:35:42 +0000 (22:35 +0200)] 
getpt.3, pts.4: Minor wording fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_tty.2: tfix
Michael Kerrisk [Wed, 29 Jul 2020 07:52:08 +0000 (09:52 +0200)] 
ioctl_tty.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_tty.2: Minor wording and formatting fixes
Michael Kerrisk [Wed, 29 Jul 2020 07:49:14 +0000 (09:49 +0200)] 
ioctl_tty.2: Minor wording and formatting fixes

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_tty.2: Fix a confusing wording error in description of TIOCSPTLCK
Michael Kerrisk [Tue, 28 Jul 2020 20:13:52 +0000 (22:13 +0200)] 
ioctl_tty.2: Fix a confusing wording error in description of TIOCSPTLCK

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoVarious pages: Drop t comment header
Mike Frysinger [Thu, 23 Jul 2020 21:53:33 +0000 (17:53 -0400)] 
Various pages: Drop t comment header

Historically, a comment of the following form at the top of a
manual page was used to indicate too man(1) that the use of tbl(1)
was required in order to process tables:

    '\" t

However, at least as far back as 2001 (according to Branden),
man-db's man(1) automatically uses tbl(1) as needed, rendering
this comment unnecessary. And indeed many existing pages in
man-pages that have tables don't have this comment at the top of
the file.  So, drop the comment from those files where it is
present.

[mtk: completely rewrote commit message]

Reported-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoseccomp.2: Minor tweaks to Andy Lutomirski's patch
Michael Kerrisk [Fri, 24 Jul 2020 12:15:00 +0000 (14:15 +0200)] 
seccomp.2: Minor tweaks to Andy Lutomirski's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoseccomp.2: Improve x32 and nr truncation notes
Andy Lutomirski [Fri, 10 Jul 2020 18:04:51 +0000 (11:04 -0700)] 
seccomp.2: Improve x32 and nr truncation notes

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: Say a bit more about what happens when 'mode' is wrongly omitted
Michael Kerrisk [Fri, 24 Jul 2020 11:26:38 +0000 (13:26 +0200)] 
open.2: Say a bit more about what happens when 'mode' is wrongly omitted

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: Minor wording fixes
Michael Kerrisk [Fri, 24 Jul 2020 11:16:16 +0000 (13:16 +0200)] 
open.2: Minor wording fixes

Add some paragraph breaks to the discussion of 'mode' to make
the details a bit easier to read.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoopen.2: srcfix: use saner macros to achieve same formatting effect
Michael Kerrisk [Fri, 24 Jul 2020 11:14:41 +0000 (13:14 +0200)] 
open.2: srcfix: use saner macros to achieve same formatting effect

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoVarious pages: Trim leading blank comment line
Mike Frysinger [Thu, 23 Jul 2020 21:53:40 +0000 (17:53 -0400)] 
Various pages: Trim leading blank comment line

Very few pages do this, so trim them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoVarious pages: Use standard .\" comment style
Mike Frysinger [Thu, 23 Jul 2020 21:53:37 +0000 (17:53 -0400)] 
Various pages: Use standard .\" comment style

The \" comment produces blank lines.  Use the .\" that the vast
majority of the codebase uses instead.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoposix_memalign.3: Clarify how to free the result of posix_memalign
Bruno Haible [Mon, 20 Jul 2020 23:33:55 +0000 (01:33 +0200)] 
posix_memalign.3: Clarify how to free the result of posix_memalign

The man page did not tell how a memory block obtained through
posix_memalign() can be freed. POSIX:2018 says it.
https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html
I verified using a test program that this is true for glibc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agowctob.3: tfix
Bruno Haible [Mon, 20 Jul 2020 23:33:33 +0000 (01:33 +0200)] 
wctob.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoioctl_fat.2, dladdr.3: tfix
Michael Kerrisk [Mon, 20 Jul 2020 11:46:38 +0000 (13:46 +0200)] 
ioctl_fat.2, dladdr.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agold.so.8: Clean up page internal cross references after Florian Weimer's patch
Michael Kerrisk [Mon, 20 Jul 2020 11:44:37 +0000 (13:44 +0200)] 
ld.so.8: Clean up page internal cross references after Florian Weimer's patch

The subsection named "Rpath token expansion" was renamed to
"Dynamic string tokens". Update the cross-references inside
the page accordingly.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agold.so.8: Minor tweaks to Florian Weimer's patch
Michael Kerrisk [Mon, 20 Jul 2020 11:43:12 +0000 (13:43 +0200)] 
ld.so.8: Minor tweaks to Florian Weimer's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agold.so.8: List more places in which dynamic string tokens are expanded
Florian Weimer [Mon, 20 Jul 2020 10:00:23 +0000 (12:00 +0200)] 
ld.so.8: List more places in which dynamic string tokens are expanded

This happens for more than just DT_RPATH/DT_RUNPATH.

Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: Use "pwd -P" for printing cwd
Jakub Wilk [Mon, 20 Jul 2020 06:12:00 +0000 (08:12 +0200)] 
proc.5: Use "pwd -P" for printing cwd

"/bin/pwd" happens to work with the GNU coreutils implementation,
which has -P as the default, contrary to POSIX requirements.

Use "pwd -P" instead, which is shorter, easier to type, and should
work everywhere.

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
5 years agoproc.5: tfix
Jakub Wilk [Mon, 20 Jul 2020 05:59:27 +0000 (07:59 +0200)] 
proc.5: tfix

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>