aboutsummaryrefslogtreecommitdiff
path: root/sbin
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 /sbin
parente8cde1ac6ff037d232538a4e35b007b4ece89a9a (diff)
downloadsrc-a866e170777b42fd7921eadd6e7e664f3a031d60.tar.gz
src-a866e170777b42fd7921eadd6e7e664f3a031d60.zip
Added the EXIT STATUS section where appropriate.
Notes
Notes: svn path=/head/; revision=140368
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/dump.82
-rw-r--r--sbin/fsck_ffs/fsck_ffs.84
-rw-r--r--sbin/geom/class/concat/gconcat.82
-rw-r--r--sbin/geom/class/label/glabel.82
-rw-r--r--sbin/geom/class/mirror/gmirror.82
-rw-r--r--sbin/geom/class/nop/gnop.82
-rw-r--r--sbin/geom/class/raid3/graid3.82
-rw-r--r--sbin/geom/class/shsec/gshsec.82
-rw-r--r--sbin/geom/class/stripe/gstripe.82
-rw-r--r--sbin/geom/core/geom.82
-rw-r--r--sbin/ggate/ggatec/ggatec.82
-rw-r--r--sbin/ggate/ggated/ggated.82
-rw-r--r--sbin/ggate/ggatel/ggatel.82
-rw-r--r--sbin/kldconfig/kldconfig.87
-rw-r--r--sbin/kldload/kldload.82
-rw-r--r--sbin/kldstat/kldstat.87
-rw-r--r--sbin/kldunload/kldunload.87
-rw-r--r--sbin/md5/md5.12
-rw-r--r--sbin/newfs_msdos/newfs_msdos.82
-rw-r--r--sbin/nfsiod/nfsiod.82
-rw-r--r--sbin/ping6/ping6.82
-rw-r--r--sbin/route/route.82
-rw-r--r--sbin/setkey/setkey.82
23 files changed, 27 insertions, 36 deletions
diff --git a/sbin/dump/dump.8 b/sbin/dump/dump.8
index ea35653374ae..b7be5efc8d1e 100644
--- a/sbin/dump/dump.8
+++ b/sbin/dump/dump.8
@@ -471,7 +471,7 @@ to find group
.Xr rmt 8
.Sh DIAGNOSTICS
Many, and verbose.
-.Pp
+.Sh EXIT STATUS
Dump exits with zero status on success.
Startup errors are indicated with an exit code of 1;
abnormal termination is indicated with an exit code of 3.
diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8
index 4bfa11cb45e6..26c47bfde0e0 100644
--- a/sbin/fsck_ffs/fsck_ffs.8
+++ b/sbin/fsck_ffs/fsck_ffs.8
@@ -299,9 +299,9 @@ If there is insufficient space its size is increased.
.It Pa /etc/fstab
contains default list of file systems to check.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
-.Pp
+.Sh DIAGNOSTICS
The diagnostics produced by
.Nm
are fully enumerated and explained in Appendix A of
diff --git a/sbin/geom/class/concat/gconcat.8 b/sbin/geom/class/concat/gconcat.8
index 6532e2669cc7..4e729a2fca57 100644
--- a/sbin/geom/class/concat/gconcat.8
+++ b/sbin/geom/class/concat/gconcat.8
@@ -165,7 +165,7 @@ umount /mnt
gconcat stop data
gconcat unload
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/label/glabel.8 b/sbin/geom/class/label/glabel.8
index 0b103448c72a..0fb4d95e33de 100644
--- a/sbin/geom/class/label/glabel.8
+++ b/sbin/geom/class/label/glabel.8
@@ -197,7 +197,7 @@ The next example shows how to set up a label for a UFS file system:
tunefs -L data /dev/da4s1a
mount /dev/ufs/data /mnt/data
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/mirror/gmirror.8 b/sbin/geom/class/mirror/gmirror.8
index 33212bfa2e7d..350df8e1a02c 100644
--- a/sbin/geom/class/mirror/gmirror.8
+++ b/sbin/geom/class/mirror/gmirror.8
@@ -268,7 +268,7 @@ gmirror deactivate data da1
dd if=/dev/da1 of=/backup/data.img bs=1m
gmirror activate data da1
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/nop/gnop.8 b/sbin/geom/class/nop/gnop.8
index 99b15d474d12..dfa209c4c9c9 100644
--- a/sbin/geom/class/nop/gnop.8
+++ b/sbin/geom/class/nop/gnop.8
@@ -136,7 +136,7 @@ with 50% failure probability, and how to destroy it.
gnop create -v -f 50 da0
gnop destroy -v da0.nop
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/raid3/graid3.8 b/sbin/geom/class/raid3/graid3.8
index c0b0dd4e37c6..16669fe16c58 100644
--- a/sbin/geom/class/raid3/graid3.8
+++ b/sbin/geom/class/raid3/graid3.8
@@ -217,7 +217,7 @@ Replace one data disk with a brand new one:
graid3 remove -n 0 data
graid3 insert -n 0 data da5
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/shsec/gshsec.8 b/sbin/geom/class/shsec/gshsec.8
index 092e6e8db9ba..14e8a46400c2 100644
--- a/sbin/geom/class/shsec/gshsec.8
+++ b/sbin/geom/class/shsec/gshsec.8
@@ -113,7 +113,7 @@ From now on, when USB Pen drive will be inserted, it will be automatically
detected and connected making secret available via
.Pa /dev/shsec/secret
device.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/stripe/gstripe.8 b/sbin/geom/class/stripe/gstripe.8
index 107e8ccad7af..9e6b720c39ea 100644
--- a/sbin/geom/class/stripe/gstripe.8
+++ b/sbin/geom/class/stripe/gstripe.8
@@ -204,7 +204,7 @@ umount /mnt
gstripe stop data
gstripe unload
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh COMPATIBILITY
The
diff --git a/sbin/geom/core/geom.8 b/sbin/geom/core/geom.8
index f6fda365e7df..2ac8d41374a7 100644
--- a/sbin/geom/core/geom.8
+++ b/sbin/geom/core/geom.8
@@ -112,7 +112,7 @@ Unload a kernel module which implements the MD class:
.Bd -literal -offset indent
geom md unload
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/ggate/ggatec/ggatec.8 b/sbin/ggate/ggatec/ggatec.8
index 22038e8b0ad2..52c2cd5e1c41 100644
--- a/sbin/ggate/ggatec/ggatec.8
+++ b/sbin/ggate/ggatec/ggatec.8
@@ -161,7 +161,7 @@ client# ggatec create -o ro server /dev/acd0
ggate0
client# mount_cd9660 /dev/ggate0 /cdrom
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, or 1 if the command fails.
To get details about the failure,
.Nm
diff --git a/sbin/ggate/ggated/ggated.8 b/sbin/ggate/ggated/ggated.8
index 0b774ad65507..c1fd97633134 100644
--- a/sbin/ggate/ggated/ggated.8
+++ b/sbin/ggate/ggated/ggated.8
@@ -93,7 +93,7 @@ Export CD-ROM device and a file:
# echo "client RW /image" >> /etc/gg.exports
# ggated
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, or 1 if the command fails.
To get details about the failure,
.Nm
diff --git a/sbin/ggate/ggatel/ggatel.8 b/sbin/ggate/ggatel/ggatel.8
index f08edeefcc47..b28abbb2e89b 100644
--- a/sbin/ggate/ggatel/ggatel.8
+++ b/sbin/ggate/ggatel/ggatel.8
@@ -139,7 +139,7 @@ umount /secret
gbde detach ggate5
ggatel destroy -u 5
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, or 1 if the command fails.
To get details about the failure,
.Nm
diff --git a/sbin/kldconfig/kldconfig.8 b/sbin/kldconfig/kldconfig.8
index 65766ec33ae2..191f4add9e52 100644
--- a/sbin/kldconfig/kldconfig.8
+++ b/sbin/kldconfig/kldconfig.8
@@ -93,11 +93,8 @@ flag is specified more than once, the old path is displayed as well.
.It Pa /boot/kernel , /boot/modules , /modules
The default module search path used by the kernel.
.El
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with a status of 0 on success
-and with a nonzero status if an error occurs.
+.Sh EXIT STATUS
+.Ex -std
.Sh SEE ALSO
.Xr kldload 2 ,
.Xr kldload 8 ,
diff --git a/sbin/kldload/kldload.8 b/sbin/kldload/kldload.8
index dd28d38454ba..b58207ee54ea 100644
--- a/sbin/kldload/kldload.8
+++ b/sbin/kldload/kldload.8
@@ -56,7 +56,7 @@ directory containing loadable modules.
Modules must have an extension of
.Pa .ko .
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh AUTOMATICALLY LOADING MODULES
Some modules (ipfw, ipf, etc.) may be automatically loaded at boot
diff --git a/sbin/kldstat/kldstat.8 b/sbin/kldstat/kldstat.8
index bbabb73ee3ae..77d933d7e924 100644
--- a/sbin/kldstat/kldstat.8
+++ b/sbin/kldstat/kldstat.8
@@ -51,11 +51,8 @@ Display the status of only the file with this ID.
.It Fl n Ar name
Display the status of only the file with this name.
.El
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with a status of 0 on success
-and with a nonzero status if an error occurs.
+.Sh EXIT STATUS
+.Ex -std
.Sh SEE ALSO
.Xr kldstat 2 ,
.Xr kldload 8 ,
diff --git a/sbin/kldunload/kldunload.8 b/sbin/kldunload/kldunload.8
index 4246f0b50b80..7bd7303c54dc 100644
--- a/sbin/kldunload/kldunload.8
+++ b/sbin/kldunload/kldunload.8
@@ -61,11 +61,8 @@ Unload the file with this name.
.It Ar name
Unload the file with this name.
.El
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with a status of 0 on success
-and with a nonzero status if an error occurs.
+.Sh EXIT STATUS
+.Ex -std
.Sh SEE ALSO
.Xr kldunload 2 ,
.Xr kldload 8 ,
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1
index 67daaa283adc..8b36e1f19934 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -82,7 +82,7 @@ Run a built-in time trial.
.It Fl x
Run a built-in test script.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm md5 , sha1
and
diff --git a/sbin/newfs_msdos/newfs_msdos.8 b/sbin/newfs_msdos/newfs_msdos.8
index b4189a5a9e94..9c6e0024aeed 100644
--- a/sbin/newfs_msdos/newfs_msdos.8
+++ b/sbin/newfs_msdos/newfs_msdos.8
@@ -182,7 +182,7 @@ on
.Xr disklabel 8 ,
.Xr fdisk 8 ,
.Xr newfs 8
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success and 1 on error.
.Sh HISTORY
The
diff --git a/sbin/nfsiod/nfsiod.8 b/sbin/nfsiod/nfsiod.8
index 126c5f7477e9..44bf1af28ad2 100644
--- a/sbin/nfsiod/nfsiod.8
+++ b/sbin/nfsiod/nfsiod.8
@@ -71,7 +71,7 @@ If this fails, or no
KLD was available,
.Nm
exits with an error.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr nfsstat 1 ,
diff --git a/sbin/ping6/ping6.8 b/sbin/ping6/ping6.8
index c2b24e41003a..de70c4794430 100644
--- a/sbin/ping6/ping6.8
+++ b/sbin/ping6/ping6.8
@@ -403,7 +403,7 @@ using the
.Fl p
option of
.Nm .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility returns 0 on success (the host is alive),
diff --git a/sbin/route/route.8 b/sbin/route/route.8
index 4220acb37299..45ffd195cd14 100644
--- a/sbin/route/route.8
+++ b/sbin/route/route.8
@@ -393,7 +393,7 @@ operation resulted in a route whose gateway uses the
same route as the one being changed.
The next-hop gateway should be reachable through a different route.
.El
-.Pp
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.\".Xr esis 4 ,
diff --git a/sbin/setkey/setkey.8 b/sbin/setkey/setkey.8
index 380aaa5223d7..427833fb3077 100644
--- a/sbin/setkey/setkey.8
+++ b/sbin/setkey/setkey.8
@@ -633,7 +633,7 @@ algorithm comment
deflate rfc2394
.Ed
.\"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.\"
.Sh EXAMPLES