]> git.ipfire.org Git - thirdparty/man-pages.git/log
thirdparty/man-pages.git
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>
4 years agowait.2, getaddrinfo.3, getnameinfo.3: ffix: Bring greater consistency to FTM layout
Michael Kerrisk [Mon, 4 Jan 2021 09:10:05 +0000 (10:10 +0100)] 
wait.2, getaddrinfo.3, getnameinfo.3: ffix: Bring greater consistency to FTM layout

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoqecvt.3: Update feature test macro requirements
Michael Kerrisk [Mon, 4 Jan 2021 08:33:01 +0000 (09:33 +0100)] 
qecvt.3: Update feature test macro requirements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Use .nf/.fi in SYNOPSIS
Michael Kerrisk [Mon, 4 Jan 2021 08:08:47 +0000 (09:08 +0100)] 
Various pages: Use .nf/.fi in SYNOPSIS

Fix various pages missed in commit
c7db92b96a3f88dc146a35d6851453e3b354f4fc.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetutent.3: ffix
Michael Kerrisk [Mon, 4 Jan 2021 07:54:44 +0000 (08:54 +0100)] 
getutent.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobsd_signal.3: ffix
Michael Kerrisk [Mon, 4 Jan 2021 07:53:50 +0000 (08:53 +0100)] 
bsd_signal.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoscandir.3: ffix
Michael Kerrisk [Mon, 4 Jan 2021 07:48:01 +0000 (08:48 +0100)] 
scandir.3: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostring.3: tfix
Michael Kerrisk [Sun, 3 Jan 2021 19:50:04 +0000 (20:50 +0100)] 
string.3: tfix

Reported-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agostring.3: SEE ALSO: add bstring(3)
Michael Kerrisk [Sun, 3 Jan 2021 12:04:17 +0000 (13:04 +0100)] 
string.3: SEE ALSO: add bstring(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agobstring.3: SEE ALSO: add string(3)
Michael Kerrisk [Sun, 3 Jan 2021 12:03:47 +0000 (13:03 +0100)] 
bstring.3: SEE ALSO: add string(3)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Use .nf/.fi in SYNOPSIS
Michael Kerrisk [Sun, 3 Jan 2021 11:49:03 +0000 (12:49 +0100)] 
Various pages: Use .nf/.fi in SYNOPSIS

The majority of pages use .nf/.fi in SYNOPSIS, but there are
still many that don't and use .br to achieve newlines. Fix many
of those. This brings greater consistency to the pages, which
eases editing and may ease future scripted edits to the pages.

Many of these changes were script-assisted, with some additional
manual edits.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Further clean-ups after "bring more whitespace consistency in SYNOPSIS"
Michael Kerrisk [Sun, 3 Jan 2021 09:58:23 +0000 (10:58 +0100)] 
Various pages: Further clean-ups after "bring more whitespace consistency in SYNOPSIS"

Yet more clean-ups after commit
15d6565317dad749ef57e69023139bc405caab88.

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agowordexp.3: ffix
Michael Kerrisk [Sat, 2 Jan 2021 19:57:59 +0000 (20:57 +0100)] 
wordexp.3: ffix

Reported-by: "Alejandro Colomar" <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogetcpu.2: Rewrite page to describe glibc wrapper function
Michael Kerrisk [Sat, 2 Jan 2021 08:33:10 +0000 (09:33 +0100)] 
getcpu.2: Rewrite page to describe glibc wrapper function

Since glibc 2.29, there is a wrapper for getcpu(2).
The wrapper has only 2 arguments, omitting the unused
third system call argument. Rework the manual page
to reflect this.

Reported-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: Consistently use 'unsigned int'
Alejandro Colomar [Sat, 2 Jan 2021 07:31:43 +0000 (08:31 +0100)] 
Various pages: Consistently use 'unsigned int'

Most pages use 'unsigned int' (and the kernel too).
Make them all do so.

$ find man? -type f \
  | xargs sed -i \
-e 's/unsigned \*/unsigned int */g'
-e 's/unsigned "/unsigned int "/g';

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoget_phys_pages.3: Minor relocation of text
Michael Kerrisk [Fri, 1 Jan 2021 22:38:00 +0000 (23:38 +0100)] 
get_phys_pages.3: Minor relocation of text

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agooff64_t.3: New link to system_data_types(7)
Alejandro Colomar [Thu, 31 Dec 2020 19:14:58 +0000 (20:14 +0100)] 
off64_t.3: New link to system_data_types(7)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agosystem_data_types.7: Add off64_t to system_data_types(7)
Alejandro Colomar [Thu, 31 Dec 2020 19:14:57 +0000 (20:14 +0100)] 
system_data_types.7: Add off64_t to system_data_types(7)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: clean-ups after "bring more whitespace consistency in SYNOPSIS"
Michael Kerrisk [Fri, 1 Jan 2021 21:24:55 +0000 (22:24 +0100)] 
Various pages: clean-ups after "bring more whitespace consistency in SYNOPSIS"

Cleann-ups after commit 15d6565317dad749ef57e69023139bc405caab88.

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoVarious pages: bring more whitespace consistency in SYNOPSIS
Michael Kerrisk [Fri, 1 Jan 2021 11:35:16 +0000 (12:35 +0100)] 
Various pages: bring more whitespace consistency in SYNOPSIS

The use of vertical white space in the SYNOPSIS sections
is rather inconsistent. Make it more consistent, subject to the
following heuristics:

* Prefer no blank lines between function signatures by default.
* Where many functions are defined in the SYNOPSIS, add blank
  lines where needed to improve readability, possibly by using
  blank lines to separate logical groups of functions.

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agogethostbyname.3: Move mention of <sys/socket.h> from SYNOPSIS to DESCRIPTION
Michael Kerrisk [Fri, 1 Jan 2021 11:23:57 +0000 (12:23 +0100)] 
gethostbyname.3: Move mention of <sys/socket.h> from SYNOPSIS to DESCRIPTION

The functions are all declared in <netdb.h>. <sys/socket.h> is only
needed for the AF_* constants.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
4 years agoputs.3: Reorder functions more logically (group related fuinctions together)
Michael Kerrisk [Thu, 31 Dec 2020 22:38:02 +0000 (23:38 +0100)] 
puts.3: Reorder functions more logically (group related fuinctions together)

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