summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-01-17 07:44:44 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-01-17 07:44:44 +0000
commita866e170777b42fd7921eadd6e7e664f3a031d60 (patch)
treef5a5fbfda9358c31fa2746d0671fe366bb17d243 /usr.bin
parente8cde1ac6ff037d232538a4e35b007b4ece89a9a (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/asa/asa.12
-rw-r--r--usr.bin/basename/basename.12
-rw-r--r--usr.bin/biff/biff.12
-rw-r--r--usr.bin/bluetooth/bthost/bthost.12
-rw-r--r--usr.bin/bluetooth/btsockstat/btsockstat.12
-rw-r--r--usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.12
-rw-r--r--usr.bin/brandelf/brandelf.12
-rw-r--r--usr.bin/cap_mkdb/cap_mkdb.12
-rw-r--r--usr.bin/catman/catman.12
-rw-r--r--usr.bin/cksum/cksum.12
-rw-r--r--usr.bin/col/col.12
-rw-r--r--usr.bin/colcrt/colcrt.12
-rw-r--r--usr.bin/colldef/colldef.12
-rw-r--r--usr.bin/colrm/colrm.12
-rw-r--r--usr.bin/column/column.12
-rw-r--r--usr.bin/comm/comm.12
-rw-r--r--usr.bin/compress/compress.12
-rw-r--r--usr.bin/csplit/csplit.12
-rw-r--r--usr.bin/ctags/ctags.12
-rw-r--r--usr.bin/cut/cut.12
-rw-r--r--usr.bin/elfdump/elfdump.12
-rw-r--r--usr.bin/env/env.12
-rw-r--r--usr.bin/expand/expand.12
-rw-r--r--usr.bin/fetch/fetch.12
-rw-r--r--usr.bin/gencat/gencat.12
-rw-r--r--usr.bin/getconf/getconf.13
-rw-r--r--usr.bin/getopt/getopt.12
-rw-r--r--usr.bin/head/head.12
-rw-r--r--usr.bin/hexdump/hexdump.12
-rw-r--r--usr.bin/hexdump/od.12
-rw-r--r--usr.bin/id/groups.12
-rw-r--r--usr.bin/id/id.12
-rw-r--r--usr.bin/id/whoami.12
-rw-r--r--usr.bin/join/join.12
-rw-r--r--usr.bin/jot/jot.13
-rw-r--r--usr.bin/killall/killall.14
-rw-r--r--usr.bin/limits/limits.12
-rw-r--r--usr.bin/locale/locale.12
-rw-r--r--usr.bin/lockf/lockf.12
-rw-r--r--usr.bin/logger/logger.12
-rw-r--r--usr.bin/logname/logname.12
-rw-r--r--usr.bin/look/look.12
-rw-r--r--usr.bin/m4/m4.12
-rw-r--r--usr.bin/makewhatis/makewhatis.12
-rw-r--r--usr.bin/mesg/mesg.12
-rw-r--r--usr.bin/mkfifo/mkfifo.12
-rw-r--r--usr.bin/mktemp/mktemp.12
-rw-r--r--usr.bin/mkuzip/mkuzip.82
-rw-r--r--usr.bin/newgrp/newgrp.12
-rw-r--r--usr.bin/nice/nice.12
-rw-r--r--usr.bin/nl/nl.12
-rw-r--r--usr.bin/nohup/nohup.12
-rw-r--r--usr.bin/paste/paste.12
-rw-r--r--usr.bin/pathchk/pathchk.12
-rw-r--r--usr.bin/pr/pr.14
-rw-r--r--usr.bin/printenv/printenv.12
-rw-r--r--usr.bin/printf/printf.12
-rw-r--r--usr.bin/sed/sed.12
-rw-r--r--usr.bin/split/split.12
-rw-r--r--usr.bin/tabs/tabs.12
-rw-r--r--usr.bin/tail/tail.12
-rw-r--r--usr.bin/tar/bsdtar.12
-rw-r--r--usr.bin/tee/tee.12
-rw-r--r--usr.bin/time/time.12
-rw-r--r--usr.bin/touch/touch.12
-rw-r--r--usr.bin/tput/tput.12
-rw-r--r--usr.bin/tr/tr.12
-rw-r--r--usr.bin/truncate/truncate.12
-rw-r--r--usr.bin/uac/uac.12
-rw-r--r--usr.bin/ul/ul.12
-rw-r--r--usr.bin/uname/uname.12
-rw-r--r--usr.bin/unifdef/unifdef.12
-rw-r--r--usr.bin/uniq/uniq.12
-rw-r--r--usr.bin/uuidgen/uuidgen.12
-rw-r--r--usr.bin/wc/wc.12
-rw-r--r--usr.bin/what/what.12
-rw-r--r--usr.bin/who/who.12
-rw-r--r--usr.bin/xargs/xargs.12
-rw-r--r--usr.bin/xinstall/install.12
79 files changed, 83 insertions, 81 deletions
diff --git a/usr.bin/asa/asa.1 b/usr.bin/asa/asa.1
index c526b5e3d9b59..5f5c236a67e8a 100644
--- a/usr.bin/asa/asa.1
+++ b/usr.bin/asa/asa.1
@@ -72,7 +72,7 @@ before printing the rest of the line.
Lines beginning with characters other than the above are treated as if they
begin with
.Aq space .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
To view a file containing the output of a
diff --git a/usr.bin/basename/basename.1 b/usr.bin/basename/basename.1
index 856a6d6d45ce4..015ed3d8b0a5d 100644
--- a/usr.bin/basename/basename.1
+++ b/usr.bin/basename/basename.1
@@ -99,7 +99,7 @@ to
.Pa /usr/bin .
.Pp
.Dl FOO=`dirname /usr/bin/trail`
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std basename dirname
.Sh SEE ALSO
.Xr csh 1 ,
diff --git a/usr.bin/biff/biff.1 b/usr.bin/biff/biff.1
index 11947705eeeaf..9f71fd6018fda 100644
--- a/usr.bin/biff/biff.1
+++ b/usr.bin/biff/biff.1
@@ -95,7 +95,7 @@ or the
.Ev mail
variable of
.Xr csh 1 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
diff --git a/usr.bin/bluetooth/bthost/bthost.1 b/usr.bin/bluetooth/bthost/bthost.1
index d475f924e9b56..e4a4abc45ecb5 100644
--- a/usr.bin/bluetooth/bthost/bthost.1
+++ b/usr.bin/bluetooth/bthost/bthost.1
@@ -105,7 +105,7 @@ foo: Unknown Protocol/Service Multiplexor
.It Pa /etc/bluetooth/hosts
.It Pa /etc/bluetooth/protocols
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr bluetooth 3 ,
diff --git a/usr.bin/bluetooth/btsockstat/btsockstat.1 b/usr.bin/bluetooth/btsockstat/btsockstat.1
index b4127aeb470f3..e82684d508182 100644
--- a/usr.bin/bluetooth/btsockstat/btsockstat.1
+++ b/usr.bin/bluetooth/btsockstat/btsockstat.1
@@ -75,7 +75,7 @@ Display a list of active routing entries (if any) for specified protocol.
.Sh BUGS
Most likely.
Please report if found.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr ng_btsocket 4
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
index d4810ef846ebf..06c133c76fe8d 100644
--- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
+++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
@@ -114,7 +114,7 @@ master pseudo terminals
.It Pa /dev/tty[p-sP-S][0-9a-v]
slave pseudo terminals
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh BUGS
Please report if found.
diff --git a/usr.bin/brandelf/brandelf.1 b/usr.bin/brandelf/brandelf.1
index bc6b1772958b2..4dfc906731631 100644
--- a/usr.bin/brandelf/brandelf.1
+++ b/usr.bin/brandelf/brandelf.1
@@ -82,7 +82,7 @@ command:
.Pp
.Dl % brandelf file
.Dl % brandelf -t Linux file
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command
fails if a file does not exist, is too short, fails to brand properly,
or the brand requested is not one of the known types and the
diff --git a/usr.bin/cap_mkdb/cap_mkdb.1 b/usr.bin/cap_mkdb/cap_mkdb.1
index 27c2a0c19ec24..0775997dd203e 100644
--- a/usr.bin/cap_mkdb/cap_mkdb.1
+++ b/usr.bin/cap_mkdb/cap_mkdb.1
@@ -90,7 +90,7 @@ in a key/data pair of the second type.
The data field of this key/data pair is used to look up a key/data
pair of the first type which has the real data associated with the
name.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr dbopen 3 ,
diff --git a/usr.bin/catman/catman.1 b/usr.bin/catman/catman.1
index ea7e5e4498d7f..8fc77803a7723 100644
--- a/usr.bin/catman/catman.1
+++ b/usr.bin/catman/catman.1
@@ -91,7 +91,7 @@ Default directory to process if the
.Ev MANPATH
environment variable is not set.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr makewhatis 1 ,
diff --git a/usr.bin/cksum/cksum.1 b/usr.bin/cksum/cksum.1
index 27c4c0ba0de90..d4a0ee7d3ed28 100644
--- a/usr.bin/cksum/cksum.1
+++ b/usr.bin/cksum/cksum.1
@@ -155,7 +155,7 @@ The coefficients of R(x) are considered to be a 32-bit sequence.
.Pp
The bit sequence is complemented and the result is the CRC.
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std cksum sum
.Sh SEE ALSO
.Xr md5 1
diff --git a/usr.bin/col/col.1 b/usr.bin/col/col.1
index ded40233e70c6..affb306045489 100644
--- a/usr.bin/col/col.1
+++ b/usr.bin/col/col.1
@@ -136,7 +136,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr colcrt 1 ,
diff --git a/usr.bin/colcrt/colcrt.1 b/usr.bin/colcrt/colcrt.1
index 33c3e192129e4..7c0292c8185f4 100644
--- a/usr.bin/colcrt/colcrt.1
+++ b/usr.bin/colcrt/colcrt.1
@@ -86,7 +86,7 @@ would be
.Bd -literal
tbl exum2.n \&| nroff \-ms \&| colcrt \- \&| more
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr col 1 ,
diff --git a/usr.bin/colldef/colldef.1 b/usr.bin/colldef/colldef.1
index 6aa5b3efcea45..38bb090e33f3a 100644
--- a/usr.bin/colldef/colldef.1
+++ b/usr.bin/colldef/colldef.1
@@ -250,7 +250,7 @@ The backslash character
is used for continuation.
In this case, no characters are permitted
after the backslash character.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits with the following values:
diff --git a/usr.bin/colrm/colrm.1 b/usr.bin/colrm/colrm.1
index 126c07d1399ee..ceb04558e6dc6 100644
--- a/usr.bin/colrm/colrm.1
+++ b/usr.bin/colrm/colrm.1
@@ -77,7 +77,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr awk 1 ,
diff --git a/usr.bin/column/column.1 b/usr.bin/column/column.1
index a3c9ff15cbdcf..b9a649ee3d39b 100644
--- a/usr.bin/column/column.1
+++ b/usr.bin/column/column.1
@@ -74,7 +74,7 @@ Useful for pretty-printing displays.
.It Fl x
Fill columns before filling rows.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh ENVIRONMENT
The
diff --git a/usr.bin/comm/comm.1 b/usr.bin/comm/comm.1
index fb1a11e7470c9..ecc75722f2d24 100644
--- a/usr.bin/comm/comm.1
+++ b/usr.bin/comm/comm.1
@@ -95,7 +95,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr cmp 1 ,
diff --git a/usr.bin/compress/compress.1 b/usr.bin/compress/compress.1
index c74f17ac67e6e..016078d42b09e 100644
--- a/usr.bin/compress/compress.1
+++ b/usr.bin/compress/compress.1
@@ -152,7 +152,7 @@ Compression is generally much better than that achieved by Huffman
coding (as used in the historical command pack), or adaptive Huffman
coding (as used in the historical command compact), and takes less
time to compute.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std compress uncompress
.Pp
The
diff --git a/usr.bin/csplit/csplit.1 b/usr.bin/csplit/csplit.1
index e40981376e3fc..0ce19a8c6c8c8 100644
--- a/usr.bin/csplit/csplit.1
+++ b/usr.bin/csplit/csplit.1
@@ -136,7 +136,7 @@ into one file for each section (up to 20):
Split standard input after the first 99 lines and every 100 lines thereafter:
.Pp
.Dl "csplit -k - 100 '{19}'"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr sed 1 ,
diff --git a/usr.bin/ctags/ctags.1 b/usr.bin/ctags/ctags.1
index 665a24ead6671..d1f0d5a616324 100644
--- a/usr.bin/ctags/ctags.1
+++ b/usr.bin/ctags/ctags.1
@@ -196,7 +196,7 @@ file.
.It Pa tags
default output tags file
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits with a value of 1 if an error occurred, 0 otherwise.
diff --git a/usr.bin/cut/cut.1 b/usr.bin/cut/cut.1
index 2138d7681b8ce..a4368e924728e 100644
--- a/usr.bin/cut/cut.1
+++ b/usr.bin/cut/cut.1
@@ -146,7 +146,7 @@ pairs:
Show the names and login times of the currently logged in users:
.Pp
.Dl "who | cut -c 1-16,26-38"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr colrm 1 ,
diff --git a/usr.bin/elfdump/elfdump.1 b/usr.bin/elfdump/elfdump.1
index c159c7db79486..1708bd79bca92 100644
--- a/usr.bin/elfdump/elfdump.1
+++ b/usr.bin/elfdump/elfdump.1
@@ -81,7 +81,7 @@ of the
command:
.Pp
.Dl "elfdump -a -w output /bin/ls"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr objdump 1 ,
diff --git a/usr.bin/env/env.1 b/usr.bin/env/env.1
index 7e25eceef699e..e6530e280cbe4 100644
--- a/usr.bin/env/env.1
+++ b/usr.bin/env/env.1
@@ -109,7 +109,7 @@ environment variable to locate the requested
if the name contains no
.Ql /
characters.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
An exit status of 126 indicates that
.Ar utility
diff --git a/usr.bin/expand/expand.1 b/usr.bin/expand/expand.1
index c6ffcd15d494a..263017cc26d35 100644
--- a/usr.bin/expand/expand.1
+++ b/usr.bin/expand/expand.1
@@ -103,7 +103,7 @@ and
.Nm unexpand
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std expand unexpand
.Sh STANDARDS
The
diff --git a/usr.bin/fetch/fetch.1 b/usr.bin/fetch/fetch.1
index 68ed094b587a5..c25284bae2d34 100644
--- a/usr.bin/fetch/fetch.1
+++ b/usr.bin/fetch/fetch.1
@@ -209,7 +209,7 @@ argument for
the current transfer rate statistics will be written to the
standard error output, in the same format as the standard completion
message.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
command returns zero on success, or one on failure.
diff --git a/usr.bin/gencat/gencat.1 b/usr.bin/gencat/gencat.1
index 70c0e9c86795c..eed6764284877 100644
--- a/usr.bin/gencat/gencat.1
+++ b/usr.bin/gencat/gencat.1
@@ -169,7 +169,7 @@ is used to continue the line onto the next line, e.g.:
.Pp
If the character following the backslash is not one of those specified,
the backslash is ignored.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr catclose 3 ,
diff --git a/usr.bin/getconf/getconf.1 b/usr.bin/getconf/getconf.1
index e0a9e869abe5f..62758c15235b1 100644
--- a/usr.bin/getconf/getconf.1
+++ b/usr.bin/getconf/getconf.1
@@ -145,8 +145,9 @@ Several of the
.Xr confstr 3
variables provide information on the necessary compiler and linker flags
to use the standard programming environments described above.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
+.Sh DIAGNOSTICS
Use of a
.Ar system_var
or
diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1
index f0a42474d76ba..7d34e4e6f3ad0 100644
--- a/usr.bin/getopt/getopt.1
+++ b/usr.bin/getopt/getopt.1
@@ -88,7 +88,7 @@ cmd \-a \-oarg \-\- file file
.Xr getopts 1 ,
.Xr sh 1 ,
.Xr getopt 3
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility prints an error message on the standard error output and exits with
diff --git a/usr.bin/head/head.1 b/usr.bin/head/head.1
index 262ad20cd1936..81346182e650d 100644
--- a/usr.bin/head/head.1
+++ b/usr.bin/head/head.1
@@ -59,7 +59,7 @@ header consisting of the string
where
.Dq XXX
is the name of the file.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr tail 1
diff --git a/usr.bin/hexdump/hexdump.1 b/usr.bin/hexdump/hexdump.1
index cddc910d0c5e9..4d8c2daefecc9 100644
--- a/usr.bin/hexdump/hexdump.1
+++ b/usr.bin/hexdump/hexdump.1
@@ -331,7 +331,7 @@ If no format strings are specified, the default display is equivalent
to specifying the
.Fl x
option.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std hexdump hd
.Sh EXAMPLES
Display the input in perusal format:
diff --git a/usr.bin/hexdump/od.1 b/usr.bin/hexdump/od.1
index 7bdad3a0a3571..647fca030bd00 100644
--- a/usr.bin/hexdump/od.1
+++ b/usr.bin/hexdump/od.1
@@ -245,7 +245,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh COMPATIBILITY
The traditional
diff --git a/usr.bin/id/groups.1 b/usr.bin/id/groups.1
index 59174426d6dbe..0654f41f3fc99 100644
--- a/usr.bin/id/groups.1
+++ b/usr.bin/id/groups.1
@@ -56,7 +56,7 @@ The
.Nm
utility displays the groups to which you (or the optionally specified user)
belong.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr id 1
diff --git a/usr.bin/id/id.1 b/usr.bin/id/id.1
index cf53f44309f56..f0305f18f8ef0 100644
--- a/usr.bin/id/id.1
+++ b/usr.bin/id/id.1
@@ -125,7 +125,7 @@ options instead of the effective ID.
.It Fl u
Display the effective user ID as a number.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr who 1
diff --git a/usr.bin/id/whoami.1 b/usr.bin/id/whoami.1
index 4f7cb533291af..958570df5fccf 100644
--- a/usr.bin/id/whoami.1
+++ b/usr.bin/id/whoami.1
@@ -54,7 +54,7 @@ is suggested for normal interactive use.
The
.Nm
utility displays your effective user ID as a name.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr id 1
diff --git a/usr.bin/join/join.1 b/usr.bin/join/join.1
index aa6f73903a9c9..c5323bf800af2 100644
--- a/usr.bin/join/join.1
+++ b/usr.bin/join/join.1
@@ -166,7 +166,7 @@ or
is
.Dq - ,
the standard input is used.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh COMPATIBILITY
For compatibility with historic versions of
diff --git a/usr.bin/jot/jot.1 b/usr.bin/jot/jot.1
index 09f64296e62a2..7642f478b9827 100644
--- a/usr.bin/jot/jot.1
+++ b/usr.bin/jot/jot.1
@@ -186,8 +186,9 @@ from column 10 and ending in column 132, use
.Pp
and to print all lines 80 characters or longer,
.Dl grep `jot -s \&"\&" -b \&. 80`
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
+.Sh DIAGNOSTICS
The following diagnostic messages deserve special explanation:
.Bl -diag
.It "illegal or unsupported format '%s'"
diff --git a/usr.bin/killall/killall.1 b/usr.bin/killall/killall.1
index 9580d05c09710..bfac13f7e7e1e 100644
--- a/usr.bin/killall/killall.1
+++ b/usr.bin/killall/killall.1
@@ -124,7 +124,7 @@ So use
.Xr kill 1
for this job (e.g.\& $ kill -TERM -1 or
as root $ echo kill -TERM -1 | su -m <user>)
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
command will respond with a short usage message and exit with a status
@@ -134,7 +134,7 @@ either no matching process has been found or not all processes have
been signalled successfully.
Otherwise, a status of 0 will be
returned.
-.Pp
+.Sh DIAGNOSTICS
Diagnostic messages will only be printed if requested by
.Fl d
options.
diff --git a/usr.bin/limits/limits.1 b/usr.bin/limits/limits.1
index 75efca3dff2cc..62efb85fe57ac 100644
--- a/usr.bin/limits/limits.1
+++ b/usr.bin/limits/limits.1
@@ -340,7 +340,7 @@ When invoked to execute a program, the failure of
.Nm
to raise a hard limit is considered a fatal error.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility
diff --git a/usr.bin/locale/locale.1 b/usr.bin/locale/locale.1
index 52d997426a12a..058c06d2f0cf3 100644
--- a/usr.bin/locale/locale.1
+++ b/usr.bin/locale/locale.1
@@ -79,7 +79,7 @@ The special
specific) keyword
.Cm list
can be used to retrieve the human readable list of all available keywords.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh BUGS
Since
diff --git a/usr.bin/lockf/lockf.1 b/usr.bin/lockf/lockf.1
index 1b9b6ea8b2841..01270cd047262 100644
--- a/usr.bin/lockf/lockf.1
+++ b/usr.bin/lockf/lockf.1
@@ -91,7 +91,7 @@ will fail unless it can acquire the lock immediately.
In no event will
.Nm
break a lock that is held by another process.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
If
.Nm
successfully acquires the lock, it returns the exit status produced by
diff --git a/usr.bin/logger/logger.1 b/usr.bin/logger/logger.1
index c5c7dff19763f..cc952ea11b215 100644
--- a/usr.bin/logger/logger.1
+++ b/usr.bin/logger/logger.1
@@ -101,7 +101,7 @@ Write the message to log; if not specified, and the
flag is not
provided, standard input is logged.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
.Bd -literal -offset indent -compact
diff --git a/usr.bin/logname/logname.1 b/usr.bin/logname/logname.1
index 2f187e99e46f5..99ebee510b33b 100644
--- a/usr.bin/logname/logname.1
+++ b/usr.bin/logname/logname.1
@@ -57,7 +57,7 @@ and
.Ev USER
environment variables
because the environment cannot be trusted.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr who 1 ,
diff --git a/usr.bin/look/look.1 b/usr.bin/look/look.1
index 7a9980e597539..ecc19a62cd249 100644
--- a/usr.bin/look/look.1
+++ b/usr.bin/look/look.1
@@ -95,7 +95,7 @@ Their effect is described in
.It Pa /usr/share/dict/words
the dictionary
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits 0 if one or more lines were found and displayed,
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1
index 91fd9da26706a..0c492a98ca3cb 100644
--- a/usr.bin/m4/m4.1
+++ b/usr.bin/m4/m4.1
@@ -350,7 +350,7 @@ Returns the current file's line number.
.It Ic __file__
Returns the current file's name.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Pp
The
diff --git a/usr.bin/makewhatis/makewhatis.1 b/usr.bin/makewhatis/makewhatis.1
index 9e2921f9be974..4e20cebf8d932 100644
--- a/usr.bin/makewhatis/makewhatis.1
+++ b/usr.bin/makewhatis/makewhatis.1
@@ -111,7 +111,7 @@ environment variable is not set.
.It Pa */man/whatis
The default output file.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr apropos 1 ,
diff --git a/usr.bin/mesg/mesg.1 b/usr.bin/mesg/mesg.1
index d62b6bb102329..87e800739c41c 100644
--- a/usr.bin/mesg/mesg.1
+++ b/usr.bin/mesg/mesg.1
@@ -76,7 +76,7 @@ Allow messages from other users to
(assuming you are also logged in on that terminal):
.Pp
.Dl "mesg y </dev/ttyp1"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
diff --git a/usr.bin/mkfifo/mkfifo.1 b/usr.bin/mkfifo/mkfifo.1
index 6d7a33731ae51..a39251a39e67f 100644
--- a/usr.bin/mkfifo/mkfifo.1
+++ b/usr.bin/mkfifo/mkfifo.1
@@ -79,7 +79,7 @@ of the calling process.
The
.Nm
utility requires write permission in the parent directory.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh STANDARDS
The
diff --git a/usr.bin/mktemp/mktemp.1 b/usr.bin/mktemp/mktemp.1
index 354331de8b655..e923f9be0936e 100644
--- a/usr.bin/mktemp/mktemp.1
+++ b/usr.bin/mktemp/mktemp.1
@@ -153,7 +153,7 @@ but still introduces a race condition.
Use of this
option is not encouraged.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility
diff --git a/usr.bin/mkuzip/mkuzip.8 b/usr.bin/mkuzip/mkuzip.8
index aa0fcfc294fd3..adce3d5d56b0a 100644
--- a/usr.bin/mkuzip/mkuzip.8
+++ b/usr.bin/mkuzip/mkuzip.8
@@ -97,7 +97,7 @@ utility to the mount point provided as a first argument.
.Xr md 4 ,
.Xr mdconfig 8 ,
.Xr mount_cd9660 8
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh AUTHORS
.An Maxim Sobolev Aq sobomax@FreeBSD.org
diff --git a/usr.bin/newgrp/newgrp.1 b/usr.bin/newgrp/newgrp.1
index 1b3564c58dfc1..44ab9fd565839 100644
--- a/usr.bin/newgrp/newgrp.1
+++ b/usr.bin/newgrp/newgrp.1
@@ -57,7 +57,7 @@ specified group.
.Pp
Otherwise, the real, effective and supplementary group IDs are restored to
those from the current user's password database entry.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility attempts to start the shell regardless of whether group IDs
diff --git a/usr.bin/nice/nice.1 b/usr.bin/nice/nice.1
index b55a9fc938eca..ff4eed21efd27 100644
--- a/usr.bin/nice/nice.1
+++ b/usr.bin/nice/nice.1
@@ -86,7 +86,7 @@ at priority -19 assuming the priority of the
shell is 0 and you are the super-user:
.Pp
.Dl "nice -n 16 nice -n -35 date"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
If
.Ar utility
is invoked, the exit status of
diff --git a/usr.bin/nl/nl.1 b/usr.bin/nl/nl.1
index 8ea7705ea5ef4..f3d9c03080c0a 100644
--- a/usr.bin/nl/nl.1
+++ b/usr.bin/nl/nl.1
@@ -232,7 +232,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr jot 1 ,
diff --git a/usr.bin/nohup/nohup.1 b/usr.bin/nohup/nohup.1
index 63f0751b4568a..bf74dd65bf39f 100644
--- a/usr.bin/nohup/nohup.1
+++ b/usr.bin/nohup/nohup.1
@@ -88,7 +88,7 @@ if the name contains no
.Ql /
characters.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
diff --git a/usr.bin/paste/paste.1 b/usr.bin/paste/paste.1
index c9a8f845a3379..f906fa435adde 100644
--- a/usr.bin/paste/paste.1
+++ b/usr.bin/paste/paste.1
@@ -132,7 +132,7 @@ for use in the
environment variable:
.Pp
.Dl "find / -name bin -type d | paste -s -d : -"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr cut 1 ,
diff --git a/usr.bin/pathchk/pathchk.1 b/usr.bin/pathchk/pathchk.1
index d9476526db77d..70c3eb1957abd 100644
--- a/usr.bin/pathchk/pathchk.1
+++ b/usr.bin/pathchk/pathchk.1
@@ -103,7 +103,7 @@ other
systems:
.Pp
.Dl "find . -print | xargs pathchk -p"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr getconf 1 ,
diff --git a/usr.bin/pr/pr.1 b/usr.bin/pr/pr.1
index 2634cf0c5890e..eb74a1c137d44 100644
--- a/usr.bin/pr/pr.1
+++ b/usr.bin/pr/pr.1
@@ -366,11 +366,11 @@ If
receives an interrupt while printing to a terminal, it
flushes all accumulated error messages to the screen before
terminating.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits 0 on success, and 1 if an error occurs.
-.Pp
+.Sh DIAGNOSTICS
Error messages are written to standard error during the printing
process (if output is redirected) or after all successful
file printing is complete (when printing to a terminal).
diff --git a/usr.bin/printenv/printenv.1 b/usr.bin/printenv/printenv.1
index 7c058780c6ad9..c30d81cd948fb 100644
--- a/usr.bin/printenv/printenv.1
+++ b/usr.bin/printenv/printenv.1
@@ -59,7 +59,7 @@ command which is similar or identical to this utility.
Consult the
.Xr builtin 1
manual page.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std printenv
.Sh SEE ALSO
.Xr csh 1 ,
diff --git a/usr.bin/printf/printf.1 b/usr.bin/printf/printf.1
index f1a2eebaf2225..445c7aaf4ecd0 100644
--- a/usr.bin/printf/printf.1
+++ b/usr.bin/printf/printf.1
@@ -295,7 +295,7 @@ character is defined in the program's locale (category
In no case does a non-existent or small field width cause truncation of
a field; padding takes place only if the specified field width exceeds
the actual width.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh COMPATIBILITY
The traditional
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1
index 5a22b9fd405fa..ca170ee17ae2e 100644
--- a/usr.bin/sed/sed.1
+++ b/usr.bin/sed/sed.1
@@ -515,7 +515,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr awk 1 ,
diff --git a/usr.bin/split/split.1 b/usr.bin/split/split.1
index cbeee6f4a3ec8..70ed146cc5a15 100644
--- a/usr.bin/split/split.1
+++ b/usr.bin/split/split.1
@@ -123,7 +123,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr csplit 1 ,
diff --git a/usr.bin/tabs/tabs.1 b/usr.bin/tabs/tabs.1
index c0c4f4d2736a4..9075de5fa7ff7 100644
--- a/usr.bin/tabs/tabs.1
+++ b/usr.bin/tabs/tabs.1
@@ -133,7 +133,7 @@ nor the
option are present,
.Nm
will fail.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr expand 1 ,
diff --git a/usr.bin/tail/tail.1 b/usr.bin/tail/tail.1
index 0791e74334ba0..9b8cabe8534eb 100644
--- a/usr.bin/tail/tail.1
+++ b/usr.bin/tail/tail.1
@@ -140,7 +140,7 @@ header consisting of the string
where
.Dq XXX
is the name of the file.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr cat 1 ,
diff --git a/usr.bin/tar/bsdtar.1 b/usr.bin/tar/bsdtar.1
index 98b916266f3e2..2c96114fb6d09 100644
--- a/usr.bin/tar/bsdtar.1
+++ b/usr.bin/tar/bsdtar.1
@@ -389,7 +389,7 @@ Finally, it will switch to the
directory and add
.Pa foo2
to the output archive.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh ENVIRONMENT
The following environment variables affect the execution of
diff --git a/usr.bin/tee/tee.1 b/usr.bin/tee/tee.1
index 4da4347d17755..0f492c0981af3 100644
--- a/usr.bin/tee/tee.1
+++ b/usr.bin/tee/tee.1
@@ -76,7 +76,7 @@ utility takes the default action for all signals,
except in the event of the
.Fl i
option.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh STANDARDS
The
diff --git a/usr.bin/time/time.1 b/usr.bin/time/time.1
index 0aea7045067cb..199b2a85e84bc 100644
--- a/usr.bin/time/time.1
+++ b/usr.bin/time/time.1
@@ -107,7 +107,7 @@ environment variable is used to locate the requested
if the name contains no
.Ql /
characters.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
If
.Ar utility
could be timed successfully, its exit status is returned.
diff --git a/usr.bin/touch/touch.1 b/usr.bin/touch/touch.1
index 5612e54c3b046..7bc74b8e45842 100644
--- a/usr.bin/touch/touch.1
+++ b/usr.bin/touch/touch.1
@@ -131,7 +131,7 @@ If the
.Dq SS
letter pair is not specified, the value defaults to 0.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr utimes 2
diff --git a/usr.bin/tput/tput.1 b/usr.bin/tput/tput.1
index 6e5f41e4ab3a0..d29e27625cef8 100644
--- a/usr.bin/tput/tput.1
+++ b/usr.bin/tput/tput.1
@@ -110,7 +110,7 @@ Reset the terminal (the
.Dq rs
sequence).
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The exit status of
.Nm
is as follows:
diff --git a/usr.bin/tr/tr.1 b/usr.bin/tr/tr.1
index 1c81615d18132..d56255edb04f7 100644
--- a/usr.bin/tr/tr.1
+++ b/usr.bin/tr/tr.1
@@ -305,7 +305,7 @@ Remove diacritical marks from all accented variants of the letter
.Ql e :
.Pp
.Dl "tr \*q[=e=]\*q \*qe\*q"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh COMPATIBILITY
Previous
diff --git a/usr.bin/truncate/truncate.1 b/usr.bin/truncate/truncate.1
index 9449939ec67d9..c79e64a92a705 100644
--- a/usr.bin/truncate/truncate.1
+++ b/usr.bin/truncate/truncate.1
@@ -125,7 +125,7 @@ using (for example) the shell's
.Ql >>
redirection syntax, or
.Xr dd 1 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
If the operation fails for an argument,
.Nm
diff --git a/usr.bin/uac/uac.1 b/usr.bin/uac/uac.1
index 4256417676f90..987cdff81f75b 100644
--- a/usr.bin/uac/uac.1
+++ b/usr.bin/uac/uac.1
@@ -79,7 +79,7 @@ Unaligned access errors result in a
being delivered to the parent and its future descendants.
This aids in pinpointing the faulting access so it can be debugged.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command
fails for any reason.
.Sh COMPATIBILITY
diff --git a/usr.bin/ul/ul.1 b/usr.bin/ul/ul.1
index 771c3dad983a4..5d41d253e43a5 100644
--- a/usr.bin/ul/ul.1
+++ b/usr.bin/ul/ul.1
@@ -84,7 +84,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr colcrt 1 ,
diff --git a/usr.bin/uname/uname.1 b/usr.bin/uname/uname.1
index b9b93ffea9e1b..23ce8d0ada1ae 100644
--- a/usr.bin/uname/uname.1
+++ b/usr.bin/uname/uname.1
@@ -79,7 +79,7 @@ If the
.Fl a
flag is specified, or multiple flags are specified, all
output is written on a single line, separated by spaces.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh ENVIRONMENT
An environment variable composed of the string
diff --git a/usr.bin/unifdef/unifdef.1 b/usr.bin/unifdef/unifdef.1
index ff703707bb916..e129c5486c387 100644
--- a/usr.bin/unifdef/unifdef.1
+++ b/usr.bin/unifdef/unifdef.1
@@ -294,7 +294,7 @@ Premature
.Tn EOF
in comment.
.El
-.Pp
+.Sh EXIT STATUS
The
.Nm
utility exits 0 if the output is an exact copy of the input,
diff --git a/usr.bin/uniq/uniq.1 b/usr.bin/uniq/uniq.1
index 4654104fd5fae..79be0a40a5dd5 100644
--- a/usr.bin/uniq/uniq.1
+++ b/usr.bin/uniq/uniq.1
@@ -132,7 +132,7 @@ environment variables affect the execution of
.Nm
as described in
.Xr environ 7 .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh COMPATIBILITY
The historic
diff --git a/usr.bin/uuidgen/uuidgen.1 b/usr.bin/uuidgen/uuidgen.1
index 5e974755e0c5f..e685369e5b5c7 100644
--- a/usr.bin/uuidgen/uuidgen.1
+++ b/usr.bin/uuidgen/uuidgen.1
@@ -67,7 +67,7 @@ set.
When generating the identifiers one at a time, the identifiers will be close
to each other, but operating system latency and processing time will be
reflected in the distance between two successive identifiers.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr uuidgen 2 ,
diff --git a/usr.bin/wc/wc.1 b/usr.bin/wc/wc.1
index e9369d5b55961..d8ef9353f9add 100644
--- a/usr.bin/wc/wc.1
+++ b/usr.bin/wc/wc.1
@@ -110,7 +110,7 @@ and
as well as the totals for both:
.Pp
.Dl "wc -mlw report1 report2"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr iswspace 3
diff --git a/usr.bin/what/what.1 b/usr.bin/what/what.1
index 027debf94e9b7..59cb2815cf668 100644
--- a/usr.bin/what/what.1
+++ b/usr.bin/what/what.1
@@ -62,7 +62,7 @@ The following option is available:
.It Fl s
Stop searching each file after the first match.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 if any matches were found, otherwise 1.
.Sh SEE ALSO
.Xr ident 1 ,
diff --git a/usr.bin/who/who.1 b/usr.bin/who/who.1
index ceb4f2ce1f6f0..e36b07cde550b 100644
--- a/usr.bin/who/who.1
+++ b/usr.bin/who/who.1
@@ -135,7 +135,7 @@ as described in
.It Pa /var/log/wtmp
.It Pa /var/log/wtmp.[0-6]
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr last 1 ,
diff --git a/usr.bin/xargs/xargs.1 b/usr.bin/xargs/xargs.1
index 57f2c031d4433..609db3ff5f756 100644
--- a/usr.bin/xargs/xargs.1
+++ b/usr.bin/xargs/xargs.1
@@ -267,7 +267,7 @@ is terminated by a signal,
or an invocation of
.Ar utility
exits with a value of 255.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility exits with a value of 0 if no error occurs.
diff --git a/usr.bin/xinstall/install.1 b/usr.bin/xinstall/install.1
index e8033d0ffc978..2a865791f2709 100644
--- a/usr.bin/xinstall/install.1
+++ b/usr.bin/xinstall/install.1
@@ -180,7 +180,7 @@ utility attempts to prevent moving a file onto itself.
Installing
.Pa /dev/null
creates an empty file.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh ENVIRONMENT
The