]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
4 years agocrypt.3: Reformat FTM info (in preparation for next patch)
Michael Kerrisk [Fri, 15 Jan 2021 22:33:07 +0000 (23:33 +0100)] 
crypt.3: Reformat FTM info (in preparation for next patch)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoepoll_wait.2: Minor tweaks to Willem de Bruijn's patch
Michael Kerrisk [Tue, 12 Jan 2021 07:19:51 +0000 (08:19 +0100)] 
epoll_wait.2: Minor tweaks to Willem de Bruijn's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoepoll_wait.2: Add documentation of epoll_pwait2()
Willem de Bruijn [Tue, 12 Jan 2021 00:48:20 +0000 (19:48 -0500)] 
epoll_wait.2: Add documentation of epoll_pwait2()

Expand the epoll_wait() page with epoll_pwait2(), an epoll_wait()
variant that takes a struct timespec to enable nanosecond
resolution timeout.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: Fix types in clone_args
Valentin Kettner [Sun, 10 Jan 2021 10:18:20 +0000 (11:18 +0100)] 
clone.2: Fix types in clone_args

A file descriptor is an int so it should be stored through an int
pointer while parent_tid should have the same type as child_tid
which is pid_t pointer.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc.3: Document that realloc(p, 0) is specific to glibc and nonportable
Alejandro Colomar [Sat, 9 Jan 2021 21:15:06 +0000 (22:15 +0100)] 
malloc.3: Document that realloc(p, 0) is specific to glibc and nonportable

A more detailed notice is on realloc(3p).

......

$ man 3p realloc \
  |sed -n \
     -e '/APPLICATION USAGE/,/^$/p' \
     -e '/FUTURE DIRECTIONS/,/^$/p';
APPLICATION USAGE
       The description of realloc() has been modified from  pre‐
       vious  versions  of  this  standard  to  align  with  the
       ISO/IEC 9899:1999 standard. Previous versions  explicitly
       permitted  a  call  to  realloc(p,  0)  to free the space
       pointed to by p and return a null pointer. While this be‐
       havior  could be interpreted as permitted by this version
       of the standard, the C language committee have  indicated
       that   this  interpretation  is  incorrect.  Applications
       should assume that if realloc() returns a  null  pointer,
       the  space pointed to by p has not been freed. Since this
       could lead to double-frees, implementations  should  also
       set errno if a null pointer actually indicates a failure,
       and applications should only free the space if errno  was
       changed.

FUTURE DIRECTIONS
       This  standard  defers  to the ISO C standard. While that
       standard currently has language that might  permit  real‐
       loc(p, 0), where p is not a null pointer, to free p while
       still returning a null pointer, the committee responsible
       for  that standard is considering clarifying the language
       to explicitly prohibit that alternative.

Bug: 211039 <https://bugzilla.kernel.org/show_bug.cgi?id=211039>
Reported-by: Johannes Pfister <johannes.pfister@josttech.ch>
Cc: libc-alpha@sourceware.org
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: srcfix: Remove redundant .PP
Alejandro Colomar [Sat, 9 Jan 2021 21:45:02 +0000 (22:45 +0100)] 
Various pages: srcfix: Remove redundant .PP

.PP are redundant just after .SH or .SS.
Remove them.

$ find man? -type f \
  |xargs sed -i '/^\.S[HS]/{n;/\.PP/d}';

Plus a couple manual edits.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoRevert "stailq.3, utmp.5, time_namespaces.7: srcfix: remove redundant .PP"
Michael Kerrisk [Sun, 10 Jan 2021 08:15:12 +0000 (09:15 +0100)] 
Revert "stailq.3, utmp.5, time_namespaces.7: srcfix: remove redundant .PP"

Do this in order to apply a better patch from Alex Colomar.

This reverts commit f7fc28f97a1012631f835adcbfdcd3a048fa31b2.

4 years agoxcrypt.3: srcfix: use .PP rather than .LP
Michael Kerrisk [Sun, 10 Jan 2021 07:54:39 +0000 (08:54 +0100)] 
xcrypt.3: srcfix: use .PP rather than .LP

.LP is equivalent .PP, but the latter is what is used
throughout man-pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoshm_open.3: tfix
Michael Kerrisk [Sun, 10 Jan 2021 07:46:40 +0000 (08:46 +0100)] 
shm_open.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostailq.3, utmp.5, time_namespaces.7: srcfix: remove redundant .PP
Michael Kerrisk [Sat, 9 Jan 2021 22:35:44 +0000 (23:35 +0100)] 
stailq.3, utmp.5, time_namespaces.7: srcfix: remove redundant .PP

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetfsent.3: tfix
Michael Kerrisk [Sat, 9 Jan 2021 21:43:31 +0000 (22:43 +0100)] 
getfsent.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomprotect.2, readv.2, sigaltstack.2, sigreturn.2, ctime.3, scandir.3, random.4, pkeys...
Michael Kerrisk [Sat, 9 Jan 2021 21:08:50 +0000 (22:08 +0100)] 
mprotect.2, readv.2, sigaltstack.2, sigreturn.2, ctime.3, scandir.3, random.4, pkeys.7: ffix: s/-1/\-1/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomlock.2: CONFORMING TO: note more explicitly which APIs are in the standards
Michael Kerrisk [Sat, 9 Jan 2021 19:57:09 +0000 (20:57 +0100)] 
mlock.2: CONFORMING TO: note more explicitly which APIs are in the standards

The current wording is a little unclear...

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoalloc_hugepages.2: CONFORMING TO: reword to reflect that these system calls are long...
Michael Kerrisk [Sat, 9 Jan 2021 19:52:49 +0000 (20:52 +0100)] 
alloc_hugepages.2: CONFORMING TO: reword to reflect that these system calls are long gone

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoepoll_create.2: CONFORMING TO: mention also that epoll_create1() is Linux-specific
Michael Kerrisk [Sat, 9 Jan 2021 19:49:43 +0000 (20:49 +0100)] 
epoll_create.2: CONFORMING TO: mention also that epoll_create1() is Linux-specific

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoepoll_wait.2: CONFORMING TO: mention also that epoll_pwait() is Linux-specific
Michael Kerrisk [Sat, 9 Jan 2021 19:47:47 +0000 (20:47 +0100)] 
epoll_wait.2: CONFORMING TO: mention also that epoll_pwait() is Linux-specific

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotime.1, ioctl_console.2, daemon.3, updwtmp.3, mouse.4, smartpqi.4: tfix (Oxford comma)
Michael Kerrisk [Sat, 9 Jan 2021 11:53:15 +0000 (12:53 +0100)] 
time.1, ioctl_console.2, daemon.3, updwtmp.3, mouse.4, smartpqi.4: tfix (Oxford comma)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosmartpqi.4: tfix
Michael Kerrisk [Sat, 9 Jan 2021 11:46:55 +0000 (12:46 +0100)] 
smartpqi.4: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoopen.2: wfix
Michael Kerrisk [Sat, 9 Jan 2021 11:30:48 +0000 (12:30 +0100)] 
open.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoinode.7: wfix
Michael Kerrisk [Sat, 9 Jan 2021 10:55:03 +0000 (11:55 +0100)] 
inode.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: tfix (Oxford comma)
Michael Kerrisk [Sat, 9 Jan 2021 10:14:08 +0000 (11:14 +0100)] 
Various pages: tfix (Oxford comma)

Found using:

    git grep -lE '^[^.].*,.*,.*[^,] (and|or)\>'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosuffixes.7: tfix
Michael Kerrisk [Sat, 9 Jan 2021 10:04:41 +0000 (11:04 +0100)] 
suffixes.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agotailq.3: srcfix: remove redundant .PP
Michael Kerrisk [Sat, 9 Jan 2021 10:03:54 +0000 (11:03 +0100)] 
tailq.3: srcfix: remove redundant .PP

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: tfix (Oxford comma)
Michael Kerrisk [Sat, 9 Jan 2021 10:02:33 +0000 (11:02 +0100)] 
Various pages: tfix (Oxford comma)

Discovered using:

    git grep -lE '^[^.].*, [^ ]*[^,] (or|and)\>'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoround.3: wsfix
Michael Kerrisk [Sat, 9 Jan 2021 09:45:38 +0000 (10:45 +0100)] 
round.3: wsfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocircleq.3, list.3, slist.3, stailq.3, queue.7: tfix (Oxford comma)
Michael Kerrisk [Sat, 9 Jan 2021 09:41:55 +0000 (10:41 +0100)] 
circleq.3, list.3, slist.3, stailq.3, queue.7: tfix (Oxford comma)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoencrypt.3: wfix
Michael Kerrisk [Sat, 9 Jan 2021 09:34:27 +0000 (10:34 +0100)] 
encrypt.3: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_fslabel.2, ioctl_fideduperange.2: wfix
Michael Kerrisk [Sat, 9 Jan 2021 09:33:13 +0000 (10:33 +0100)] 
ioctl_fslabel.2, ioctl_fideduperange.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_console.2, msgctl.2, msgget.2, msgop.2, semctl.2, semget.2, semop.2, shm_open...
Michael Kerrisk [Sat, 9 Jan 2021 09:09:05 +0000 (10:09 +0100)] 
ioctl_console.2, msgctl.2, msgget.2, msgop.2, semctl.2, semget.2, semop.2, shm_open.3, shmget.2, shmop.2: ERRORS: remove redundant statement that 'errno' is set

This is implied in every other manual page. There is no need to
state it explicitly in these pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosemget.2: tfix
Michael Kerrisk [Sat, 9 Jan 2021 09:12:05 +0000 (10:12 +0100)] 
semget.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowrite.2: wfix
Michael Kerrisk [Sat, 9 Jan 2021 08:59:10 +0000 (09:59 +0100)] 
write.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetsid.2: wfix
Michael Kerrisk [Sat, 9 Jan 2021 08:57:41 +0000 (09:57 +0100)] 
getsid.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2: wfix
Michael Kerrisk [Sat, 9 Jan 2021 08:51:59 +0000 (09:51 +0100)] 
clone.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosetlocale.3: Restructure a particularly difficult sentence
Michael Kerrisk [Sat, 9 Jan 2021 08:44:09 +0000 (09:44 +0100)] 
setlocale.3: Restructure a particularly difficult sentence

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Remove redundant "\\ " to escape spaces
Michael Kerrisk [Fri, 8 Jan 2021 11:27:16 +0000 (12:27 +0100)] 
Various pages: Remove redundant "\\ " to escape spaces

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agokeyctl.2: wfix
Michael Kerrisk [Fri, 8 Jan 2021 09:06:35 +0000 (10:06 +0100)] 
keyctl.2: wfix

Fix a glitch in commit ff91beca5bec550a7a16d9dfe2fd3f9210fbb06c.

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomsr.4, veth.4, packet.7, sched.7, unicode.7: Remove redundant .PP
Alejandro Colomar [Thu, 7 Jan 2021 16:19:24 +0000 (17:19 +0100)] 
msr.4, veth.4, packet.7, sched.7, unicode.7: Remove redundant .PP

.PP and .IP are redundant just before .SH or .SS.
Remove them.

$ find man? -type f \
  |xargs sed -i '/^\.[IP]P$/{N;s/.*\n\(\.S[HS]\)/\1/}';

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: tfix: Use Oxford comma
Alejandro Colomar [Thu, 7 Jan 2021 18:38:20 +0000 (19:38 +0100)] 
Various pages: tfix: Use Oxford comma

Found using:
$ pcregrep -rnM "^\.[B|I]R .*,\n\.[B|I].*[^,]\nor" man? \
  |grep ^man \
  |sort;

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclose.2, getpriority.2, ioctl_userfaultfd.2, expm1.3, lio_listio.3, rcmd.3, lirc...
Alejandro Colomar [Thu, 7 Jan 2021 17:55:15 +0000 (18:55 +0100)] 
close.2, getpriority.2, ioctl_userfaultfd.2, expm1.3, lio_listio.3, rcmd.3, lirc.4, mount_namespaces.7: tfix: Fix punctuation

Found using:
$ pcregrep -rnM '^..[^"].*[^.]\.\n[a-z]' man?

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosemctl.2: Correct SEM_STAT_ANY description
Yang Xu [Tue, 29 Dec 2020 11:03:11 +0000 (12:03 +0100)] 
semctl.2: Correct SEM_STAT_ANY description

Since kernel commit a280d6dc77eb
("ipc/sem: introduce semctl(SEM_STAT_ANY)"),
it only skips read access check when using SEM_STAT_ANY command.
And it should use the semid_ds struct instead of seminfo struct.
Fix this.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Acked-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agorcmd.3: wfix (errno)
Michael Kerrisk [Thu, 7 Jan 2021 09:42:25 +0000 (10:42 +0100)] 
rcmd.3: wfix (errno)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait.2: Minor wording fixes in RETURN VALUE
Michael Kerrisk [Thu, 7 Jan 2021 09:27:32 +0000 (10:27 +0100)] 
wait.2: Minor wording fixes in RETURN VALUE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosched_setaffinity.2: wfix
Michael Kerrisk [Thu, 7 Jan 2021 09:09:20 +0000 (10:09 +0100)] 
sched_setaffinity.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoepoll_wait.2: wfix
Michael Kerrisk [Thu, 7 Jan 2021 09:07:26 +0000 (10:07 +0100)] 
epoll_wait.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocacheflush.2: wfix (errno)
Michael Kerrisk [Thu, 7 Jan 2021 07:17:42 +0000 (08:17 +0100)] 
cacheflush.2: wfix (errno)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoadjtimex.2: wfix (errno)
Michael Kerrisk [Thu, 7 Jan 2021 07:15:11 +0000 (08:15 +0100)] 
adjtimex.2: wfix (errno)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Various improvements in wording in RETURN VALUE
Michael Kerrisk [Thu, 7 Jan 2021 09:35:04 +0000 (10:35 +0100)] 
Various pages: Various improvements in wording in RETURN VALUE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious System V IPC pages: Improve wording describing RETURN VALUE and setting of...
Michael Kerrisk [Thu, 7 Jan 2021 09:23:22 +0000 (10:23 +0100)] 
Various System V IPC pages: Improve wording describing RETURN VALUE and setting of 'errno'

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Standardize wording around setting of 'errno' on error
Michael Kerrisk [Thu, 7 Jan 2021 09:04:40 +0000 (10:04 +0100)] 
Various pages: Standardize wording around setting of 'errno' on error

In the RETURN VALUE sections, a number of different wordings
are used in to describe the fact that 'errno' is set on error.
There's no reason for the difference in wordings, since the same
thing is being described in each case. Switch to a standard
wording that is the same as FreeBSD and similar to the wording
used in POSIX.1.

In this change, miscellaneous descriptions of the setting
of 'errno' are reworded to the norm of "is set to indicate
the error".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Standardize wording around setting of 'errno' on error
Michael Kerrisk [Thu, 7 Jan 2021 08:22:57 +0000 (09:22 +0100)] 
Various pages: Standardize wording around setting of 'errno' on error

In the RETURN VALUE sections, a number of different wordings
are used in to describe the fact that 'errno' is set on error.
There's no reason for the difference in wordings, since the same
thing is being described in each case. Switch to a standard
wording that is the same as FreeBSD and similar to the wording
used in POSIX.1.

In this change, reword various cases saying that 'errno' is set
"appropriately" to "is set to indicate the error".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Standardize wording around setting of 'errno' on error
Michael Kerrisk [Thu, 7 Jan 2021 07:12:28 +0000 (08:12 +0100)] 
Various pages: Standardize wording around setting of 'errno' on error

In the RETURN VALUE sections, a number of different wordings
are used in to describe the fact that 'errno' is set on error.
There's no reason for the difference in wordings, since the same
thing is being described in each case. Switch to a standard
wording that is the same as FreeBSD and similar to the wording
used in POSIX.1.

In this change, fix some instances stating that 'errno' is set
"appropriately" to instead say "to indicate the error".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Standardize wording around setting of 'errno' on error
Michael Kerrisk [Thu, 7 Jan 2021 06:50:50 +0000 (07:50 +0100)] 
Various pages: Standardize wording around setting of 'errno' on error

In the RETURN VALUE sections, a number of different wordings
are used in to describe the fact that 'errno' is set on error.
There's no reason for the difference in wordings, since the same
thing is being described in each case. Switch to a standard
wording that is the same as FreeBSD and similar to the wording
used in POSIX.1.

In this change, "to indicate the cause of the error"
is changed to "to indicate the error".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowordexp.3: Minor wording fixes in RETURN VALUE
Michael Kerrisk [Thu, 7 Jan 2021 06:28:26 +0000 (07:28 +0100)] 
wordexp.3: Minor wording fixes in RETURN VALUE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomemusage.1: wfix
Michael Kerrisk [Thu, 7 Jan 2021 06:23:24 +0000 (07:23 +0100)] 
memusage.1: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agochroot.2: ffix
Michael Kerrisk [Thu, 7 Jan 2021 08:13:12 +0000 (09:13 +0100)] 
chroot.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: srcfix
Michael Kerrisk [Thu, 7 Jan 2021 08:28:24 +0000 (09:28 +0100)] 
ioctl_tty.2: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoioctl_tty.2: Reformat argument type information
Michael Kerrisk [Wed, 6 Jan 2021 22:46:06 +0000 (23:46 +0100)] 
ioctl_tty.2: Reformat argument type information

The current mark-up renders poorly. To resolve this, move
the type information into a separate line.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonetlink.7: srcfix
Michael Kerrisk [Wed, 6 Jan 2021 22:17:30 +0000 (23:17 +0100)] 
netlink.7: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclone.2, ioctl_tty.2, syslog.2, setlocale.3, stdio.3, console_codes.4, inode.7, names...
Michael Kerrisk [Wed, 6 Jan 2021 22:16:03 +0000 (23:16 +0100)] 
clone.2, ioctl_tty.2, syslog.2, setlocale.3, stdio.3, console_codes.4, inode.7, namespaces.7, netlink.7, signal-safety.7, socket.7: Better table formatting

In particular, allow for rendering in widths different from
(especially less than) 80 columns.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosyscalls.2: ffix: Improve table formatting
Michael Kerrisk [Wed, 6 Jan 2021 14:28:02 +0000 (15:28 +0100)] 
syscalls.2: ffix: Improve table formatting

Allow more text wrapping in the Notes column

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoman-pages.7: ffix: don't fill text in tables
Michael Kerrisk [Wed, 6 Jan 2021 14:06:06 +0000 (15:06 +0100)] 
man-pages.7: ffix: don't fill text in tables

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoslist.3: tfix
Michael Kerrisk [Wed, 6 Jan 2021 12:53:34 +0000 (13:53 +0100)] 
slist.3: tfix

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: add missing .nf/.fi in FTM info
Michael Kerrisk [Wed, 6 Jan 2021 12:41:12 +0000 (13:41 +0100)] 
Various pages: add missing .nf/.fi in FTM info

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agorcmd.3: srcfix
Michael Kerrisk [Wed, 6 Jan 2021 12:32:39 +0000 (13:32 +0100)] 
rcmd.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Remove redundant escaping of space characters in FTM info
Michael Kerrisk [Wed, 6 Jan 2021 12:28:48 +0000 (13:28 +0100)] 
Various pages: Remove redundant escaping of space characters in FTM info

Since we are using .nf/.fi to bracket FTM info, escaping
space characters serves no space and clutters the source.

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofsync.2: srcfix: add missing ./f/.fi in FTMs
Michael Kerrisk [Wed, 6 Jan 2021 12:25:51 +0000 (13:25 +0100)] 
fsync.2: srcfix: add missing ./f/.fi in FTMs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowait4.2: ffix (Make FTM text narrower)
Michael Kerrisk [Wed, 6 Jan 2021 12:12:04 +0000 (13:12 +0100)] 
wait4.2: ffix (Make FTM text narrower)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agocircleq.3, list.3, slist.3, stailq.3, tailq.3: Improve readability, especially in...
Alejandro Colomar [Tue, 5 Jan 2021 22:39:57 +0000 (23:39 +0100)] 
circleq.3, list.3, slist.3, stailq.3, tailq.3: Improve readability, especially in SYNOPSIS

- Group macros by kinds.
- Align so that it's easiest to distinguish differences
  between related macros.
  (Align all continuations for consistency on PDF.)
- Fix minor typos.
- Remove redundant text:
    'The macro xxx() ...':
        The first paragraph already says that these are macros.
    'circular|tail|... queue':
        Don't need to repeat every time.
        Generic text makes it easier to spot the differences.
- Fit lines into 78 columns.
- Reorder descriptions to match SYNOPSIS,
  and add subsections to DESCRIPTION.
- srcfix: fix a few semantic newlines.

I noticed a bug which should be fixed next:
CIRCLEQ_LOOP_*() return a 'struct TYPE *'.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoresolv.conf.5: tfix
John Morris [Wed, 6 Jan 2021 05:30:10 +0000 (23:30 -0600)] 
resolv.conf.5: tfix

Change `RES_USE_EDNSO` to `RES_USE_EDNS0`, defined in
`resolv.h`.  (This is written correctly in `man3/resolver.3` in this
same repo.)  Helps with grepping and internet searches!

Signed-off-by: John Morris <john@zultron.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Formatting tweaks after "Improve formatting in ATTRIBUTES"
Michael Kerrisk [Wed, 6 Jan 2021 10:45:26 +0000 (11:45 +0100)] 
Various pages: Formatting tweaks after "Improve formatting in ATTRIBUTES"

Various ATTRIBUTES table improvements following the previous
commit. In particular, make use of T{...T} to allow wrapping
in table cells that have a lot of text.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Improve formatting in ATTRIBUTES
Michael Kerrisk [Wed, 6 Jan 2021 09:52:04 +0000 (10:52 +0100)] 
Various pages: Improve formatting in ATTRIBUTES

Make the formatting more consistent inside the tables in the
ATTRIBUTES sections. Make the source code more uniform; in
particular, eliminate the use of custom tweaks using
'lbwNN'/'lwNN' and .br macros.  In addition, ensure that
hyphenation and text justification do not occur inside the tables.

This is a script-driven edit:

[[
PAGE_LIST=$(git grep -l 'SH ATTRIBUTES' man[23])

# Strip out any preexisting .sp/.br/.ad macros

sed -i '/SH ATTR/,/^\.SH/{/^\.sp/d; /^\.br/d; /\.ad/d}' $PAGE_LIST

# Eliminate any use of 'wNN' in tables; default first column
# to fill unused space

sed -i '/SH ATTR/,/^\.SH/s/lbw[0-9]*/lb/g' $PAGE_LIST
sed -i '/SH ATTR/,/^\.SH/s/lw[0-9]*/l/g' $PAGE_LIST
sed -i '/SH ATTR/,/^\.SH/s/^lb /lbx /' $PAGE_LIST

# Nest the tables inside ".ad l"+".nh" and ".hy"+".ad"+".sp 1"
# ".ad l" ==> no right justification of text in table cells
# ".nh" ==> No hyphenation in table cells
# ".sp 1" ==> ensure a blank line before the next section heading

sed -i '/SH ATTR/,/^\.SH/{/\.TS/i.ad l\n.nh
}'  $PAGE_LIST
sed -i '/SH ATTR/,/^\.SH/{/\.TE/a.hy\n.ad\n.sp 1
}'  $PAGE_LIST

# In a few of the tables, the third column has a lot of text, so
# make that column wide (rather than the first column)

sed -i '/^lbx/{s/lbx/lb/;s/lb$/lbx/}' \
        man3/bindresvport.3 \
        man3/fmtmsg.3 man3/gethostbyname.3 man3/getlogin.3 \
        man3/getnetent.3 man3/getprotoent.3 man3/getpwent.3 \
        man3/getservent.3 man3/getspnam.3 man3/getutent.3 man3/glob.3 \
        man3/login.3 \
        man3/setnetgrent.3 \
        man3/wordexp.3
]]

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetlogin.3: ffix
Michael Kerrisk [Wed, 6 Jan 2021 09:32:26 +0000 (10:32 +0100)] 
getlogin.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoman-pages.7: tfix
Michael Kerrisk [Wed, 6 Jan 2021 09:20:11 +0000 (10:20 +0100)] 
man-pages.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Use internally consistent continuation indents in SYNOPSIS
Michael Kerrisk [Tue, 5 Jan 2021 18:55:42 +0000 (19:55 +0100)] 
Various pages: Use internally consistent continuation indents in SYNOPSIS

In the SYNOPSIS, a long function prototype may need to be
continued over to the next line. The continuation line is
indented according to the following rules:

1. If there is a single such prototype that needs to be continued,
   then align the continuation line so that when the page is
   rendered on a fixed-width font device (e.g., on an xterm) the
   continuation line starts just below the start of the argument
   list in the line above.  (Exception: the indentation may be
   adjusted if necessary to prevent a very long continuation line
   or a further continuation line where the function prototype is
   very long.)

   Thus:

       int tcsetattr(int fd, int optional_actions,
                     const struct termios *termios_p);

2. But, where multiple functions in the SYNOPSIS require
   continuation lines, and the function names have different
   lengths, then align all continuation lines to start in the
   same column.  This provides a nicer rendering in PDF output
   (because the SYNOPSIS uses a variable width font where
   spaces render narrower than most characters).

   Thus:

       int getopt(int argc, char * const argv[],
                  const char *optstring);
       int getopt_long(int argc, char * const argv[],
                  const char *optstring,
                  const struct option *longopts, int *longindex);

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostat.2: Move the obsolete _BSD_SOURCE FTM to the end of the FTM info
Michael Kerrisk [Tue, 5 Jan 2021 13:34:16 +0000 (14:34 +0100)] 
stat.2: Move the obsolete _BSD_SOURCE FTM to the end of the FTM info

Since _BSD_SOURCE is obsolete for quite some time now,
it should not be listed as the first FTM for lstat().

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: ffix: More layout consistency fixes for FTMs
Michael Kerrisk [Tue, 5 Jan 2021 12:21:30 +0000 (13:21 +0100)] 
Various pages: ffix: More layout consistency fixes for FTMs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofutex.2, syscalls.2, vmsplice.2, bpf-helpers.7: wfix: Write consistently 'user space...
Alejandro Colomar [Mon, 4 Jan 2021 18:55:20 +0000 (19:55 +0100)] 
futex.2, syscalls.2, vmsplice.2, bpf-helpers.7: wfix: Write consistently 'user space' instead of 'userspace'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofseeko.3: Move info about obsolete FTM from SYNOPSIS to NOTES
Michael Kerrisk [Tue, 5 Jan 2021 09:52:30 +0000 (10:52 +0100)] 
fseeko.3: Move info about obsolete FTM from SYNOPSIS to NOTES

This makes the SYNOPSIS more consistent with other pages.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoj0.3, strerror.3, y0.3: wspfix
Michael Kerrisk [Tue, 5 Jan 2021 09:33:07 +0000 (10:33 +0100)] 
j0.3, strerror.3, y0.3: wspfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobrk.2, chmod.2, gethostname.2, setpgid.2, wait4.2, atoi.3, fwide.3, getlogin.3, print...
Michael Kerrisk [Tue, 5 Jan 2021 09:21:48 +0000 (10:21 +0100)] 
brk.2, chmod.2, gethostname.2, setpgid.2, wait4.2, atoi.3, fwide.3, getlogin.3, printf.3, strtoul.3, wprintf.3: Consistency fix-up in FTMs

Generally, place '||' at start of a line, rather than the end of
the previous line.

Rationale: this placement clearly indicates that that each piece
is an alternative.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoqecvt.3: srcfix
Michael Kerrisk [Tue, 5 Jan 2021 09:20:20 +0000 (10:20 +0100)] 
qecvt.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofsync.2, gethostname.2, stat.2, getutent.3: Minor consistency clean-ups in FTMs
Michael Kerrisk [Tue, 5 Jan 2021 09:07:18 +0000 (10:07 +0100)] 
fsync.2, gethostname.2, stat.2, getutent.3: Minor consistency clean-ups in FTMs

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Simplify mark-up for Feature Test Macro requirements
Michael Kerrisk [Mon, 4 Jan 2021 22:18:08 +0000 (23:18 +0100)] 
Various pages: Simplify mark-up for Feature Test Macro requirements

Different source styles are used in different pages to achieve the
same formatted output, and in some cases the source mark-up is a
rather convoluted combination of .RS/.RE/.TP/.PD macros. Simplify
this greatly, and unify all of the pages to use more or less the
same source code style. This makes the source code rather easier
to read, and may simplify future scripted global changes.

The feature test macro info is currently bracketed by .nf/.fi
pairs. This is not strictly necessary (i.e., it makes no
difference to the rendered output), but for the moment we keep
these "brackets" in case they may be replaced with something else.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogethostid.3: srcfix
Michael Kerrisk [Mon, 4 Jan 2021 15:27:45 +0000 (16:27 +0100)] 
gethostid.3: srcfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: replace '.ad b' macro with '.ad'
Michael Kerrisk [Mon, 4 Jan 2021 15:25:50 +0000 (16:25 +0100)] 
Various pages: replace '.ad b' macro with '.ad'

Verified no change in rendered output

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoclock_getres.2, atan2.3, ctime.3, getcwd.3, isgreater.3, iswblank.3, scalbln.3: ffix
Michael Kerrisk [Mon, 4 Jan 2021 14:50:33 +0000 (15:50 +0100)] 
clock_getres.2, atan2.3, ctime.3, getcwd.3, isgreater.3, iswblank.3, scalbln.3: ffix

Consistently use 4-space indents for FTMs.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agochroot.2, rename.2, getgrent.3, nextafter.3, ttyslot.3, wprintf.3: ffix
Michael Kerrisk [Mon, 4 Jan 2021 14:23:05 +0000 (15:23 +0100)] 
chroot.2, rename.2, getgrent.3, nextafter.3, ttyslot.3, wprintf.3: ffix

Bring a bit more consistency to the layout of FTMs.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agograntpt.3, ptsname.3, unlockpt.3: Remove mention of _XOPEN_SOURCE_EXTENDED FTM
Michael Kerrisk [Mon, 4 Jan 2021 14:37:07 +0000 (15:37 +0100)] 
grantpt.3, ptsname.3, unlockpt.3: Remove mention of _XOPEN_SOURCE_EXTENDED FTM

This rather ancient FTM is not mentioned in other pages for
reasons discussed in feature_test_macros(7).  Remove this FTM
from the three pages where it does appear.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agonice.2, putenv.3, strtok.3, toascii.3, tzset.3: ffix
Michael Kerrisk [Mon, 4 Jan 2021 14:12:48 +0000 (15:12 +0100)] 
nice.2, putenv.3, strtok.3, toascii.3, tzset.3: ffix

Where FTM requirements span multiple lines, start the FTMs on
a new line.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetpagesize.2, getdtablesize.3: tfix
Michael Kerrisk [Mon, 4 Jan 2021 14:10:10 +0000 (15:10 +0100)] 
getpagesize.2, getdtablesize.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofanotify_init.2, fanotify.7: Minor edits to Jan Kara's patch
Michael Kerrisk [Mon, 4 Jan 2021 13:26:08 +0000 (14:26 +0100)] 
fanotify_init.2, fanotify.7: Minor edits to Jan Kara's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofanotify_init.2, fanotify.7: Document FAN_AUDIT flag and FAN_ENABLE_AUDIT
Jan Kara [Wed, 2 Dec 2020 15:43:54 +0000 (16:43 +0100)] 
fanotify_init.2, fanotify.7: Document FAN_AUDIT flag and FAN_ENABLE_AUDIT

Acked-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoexec.3: tfix
Michael Kerrisk [Mon, 4 Jan 2021 13:17:45 +0000 (14:17 +0100)] 
exec.3: tfix

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agomalloc_hook.3: tfix
Michael Kerrisk [Mon, 4 Jan 2021 13:15:42 +0000 (14:15 +0100)] 
malloc_hook.3: tfix

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoecvt.3, gcvt.3: Update FTM requirements
Michael Kerrisk [Mon, 4 Jan 2021 13:10:59 +0000 (14:10 +0100)] 
ecvt.3, gcvt.3: Update FTM requirements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetpagesize.2, getdtablesize.3: Update/correct FTM requirements
Michael Kerrisk [Mon, 4 Jan 2021 11:13:37 +0000 (12:13 +0100)] 
getpagesize.2, getdtablesize.3: Update/correct FTM requirements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogethostid.3: Update FTM requirements for gethostid()
Michael Kerrisk [Mon, 4 Jan 2021 10:55:58 +0000 (11:55 +0100)] 
gethostid.3: Update FTM requirements for gethostid()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogethostname.2: Update FTM requirements for gethostname()
Michael Kerrisk [Mon, 4 Jan 2021 10:50:30 +0000 (11:50 +0100)] 
gethostname.2: Update FTM requirements for gethostname()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofeature_test_macros.7: wfix
Michael Kerrisk [Mon, 4 Jan 2021 10:02:32 +0000 (11:02 +0100)] 
feature_test_macros.7: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agofeature_test_macros.7: tfix
Michael Kerrisk [Mon, 4 Jan 2021 09:47:12 +0000 (10:47 +0100)] 
feature_test_macros.7: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>