diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2018-06-07 11:37:22 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2018-06-07 11:37:22 +0000 |
commit | fad718c914c60261c1c08c7123d69239f348d8ae (patch) | |
tree | 81ae95ac44e4400358cb8b29d12e6d499566c329 /usr.sbin | |
parent | e18229f9d8c8993ef466f938766a02eeb9e65887 (diff) |
add some EXIT STATUS sections; from matthew martin
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/fdformat/fdformat.1 | 16 | ||||
-rw-r--r-- | usr.sbin/netgroup_mkdb/netgroup_mkdb.8 | 9 |
2 files changed, 12 insertions, 13 deletions
diff --git a/usr.sbin/fdformat/fdformat.1 b/usr.sbin/fdformat/fdformat.1 index ebad8a540c1..35220ac6c21 100644 --- a/usr.sbin/fdformat/fdformat.1 +++ b/usr.sbin/fdformat/fdformat.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fdformat.1,v 1.19 2017/01/08 01:32:02 schwarze Exp $ +.\" $OpenBSD: fdformat.1,v 1.20 2018/06/07 11:37:21 jmc Exp $ .\" .\" Copyright (C) 1993, 1994 by Joerg Wunsch, Dresden .\" All rights reserved. @@ -24,7 +24,7 @@ .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: January 8 2017 $ +.Dd $Mdocdate: June 7 2018 $ .Dt FDFORMAT 1 .Os .Sh NAME @@ -93,6 +93,12 @@ of the intended formatting process. In order to continue, an answer of .Dq y must be given. +.Sh EXIT STATUS +An exit status of 0 is returned upon successful operation. +Exit status +1 is returned on any errors during floppy formatting, and an exit status +of 2 reflects invalid arguments given to the program (along with +appropriate information written to diagnostic output). .Sh DIAGNOSTICS Unless .Fl q @@ -105,12 +111,6 @@ is printed when the track(s) is being formatted, then a while it's being verified, and if an error has been detected, it will finally change to .Dq E . -.Pp -An exit status of 0 is returned upon successful operation. -Exit status -1 is returned on any errors during floppy formatting, and an exit status -of 2 reflects invalid arguments given to the program (along with -appropriate information written to diagnostic output). .Sh SEE ALSO .Xr fdc 4 .Sh HISTORY diff --git a/usr.sbin/netgroup_mkdb/netgroup_mkdb.8 b/usr.sbin/netgroup_mkdb/netgroup_mkdb.8 index bb9b2ac531a..69ebb9def08 100644 --- a/usr.sbin/netgroup_mkdb/netgroup_mkdb.8 +++ b/usr.sbin/netgroup_mkdb/netgroup_mkdb.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: netgroup_mkdb.8,v 1.8 2015/11/30 17:03:05 jmc Exp $ +.\" $OpenBSD: netgroup_mkdb.8,v 1.9 2018/06/07 11:37:21 jmc Exp $ .\" .\" Copyright (c) 1994 Christos Zoulas .\" All rights reserved. @@ -28,7 +28,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: November 30 2015 $ +.Dd $Mdocdate: June 7 2018 $ .Dt NETGROUP_MKDB 8 .Os .Sh NAME @@ -58,9 +58,6 @@ Put the output databases in the named file. .Pp The databases are used by the C library netgroup routines (see .Xr getnetgrent 3 ) . -.Pp -.Nm netgroup_mkdb -exits zero on success, non-zero on failure. .Sh FILES .Bl -tag -width 24n -compact .It Pa /etc/netgroup.db @@ -70,6 +67,8 @@ a temporary file .It Pa /etc/netgroup current netgroup file .El +.Sh EXIT STATUS +.Ex -std netgroup_mkdb .Sh SEE ALSO .Xr dbopen 3 , .Xr getnetgrent 3 , |