summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/cat/cat.16
-rw-r--r--bin/chmod/chflags.16
-rw-r--r--bin/chmod/chgrp.18
-rw-r--r--bin/chmod/chmod.18
-rw-r--r--bin/chmod/chown.86
-rw-r--r--bin/cp/cp.16
-rw-r--r--bin/date/date.114
-rw-r--r--bin/dd/dd.16
-rw-r--r--bin/df/df.18
-rw-r--r--bin/echo/echo.16
-rw-r--r--bin/ed/ed.18
-rw-r--r--bin/expr/expr.18
-rw-r--r--bin/ln/ln.16
-rw-r--r--bin/ls/ls.18
-rw-r--r--bin/md5/md5.16
-rw-r--r--bin/md5/sha1.16
-rw-r--r--bin/md5/sha256.16
-rw-r--r--bin/mkdir/mkdir.16
-rw-r--r--bin/mv/mv.16
-rw-r--r--bin/pax/cpio.120
-rw-r--r--bin/pax/pax.118
-rw-r--r--bin/pax/tar.128
-rw-r--r--bin/ps/ps.18
-rw-r--r--bin/pwd/pwd.16
-rw-r--r--bin/rm/rm.16
-rw-r--r--bin/rmdir/rmdir.19
-rw-r--r--bin/sleep/sleep.130
-rw-r--r--bin/stty/stty.16
-rw-r--r--bin/test/test.18
29 files changed, 137 insertions, 136 deletions
diff --git a/bin/cat/cat.1 b/bin/cat/cat.1
index 76d56e691f8..4f179c0348a 100644
--- a/bin/cat/cat.1
+++ b/bin/cat/cat.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cat.1,v 1.29 2009/02/08 17:15:08 jmc Exp $
+.\" $OpenBSD: cat.1,v 1.30 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: cat.1,v 1.12 1995/09/27 05:38:55 cgd Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)cat.1 8.3 (Berkeley) 5/2/95
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CAT 1
.Os
.Sh NAME
@@ -101,7 +101,7 @@ characters (with the high bit set) are printed as
.Ql M-
(for meta) followed by the character for the low 7 bits.
.El
-.Pp
+.Sh EXIT STATUS
.Ex -std cat
.Sh EXAMPLES
Print the contents of
diff --git a/bin/chmod/chflags.1 b/bin/chmod/chflags.1
index 66b7c16a175..21a1f2d4605 100644
--- a/bin/chmod/chflags.1
+++ b/bin/chmod/chflags.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chflags.1,v 1.12 2009/08/20 18:26:48 martynas Exp $
+.\" $OpenBSD: chflags.1,v 1.13 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: chflags.1,v 1.4 1995/08/31 22:50:22 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)chflags.1 8.4 (Berkeley) 5/2/95
.\"
-.Dd $Mdocdate: August 20 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CHFLAGS 1
.Os
.Sh NAME
@@ -152,7 +152,7 @@ options are ignored unless the
option is specified.
In addition, these options override each other and the
command's actions are determined by the last one specified.
-.Pp
+.Sh EXIT STATUS
.Ex -std chflags
.Sh SEE ALSO
.Xr ls 1 ,
diff --git a/bin/chmod/chgrp.1 b/bin/chmod/chgrp.1
index 86ab152b846..c43f39d1447 100644
--- a/bin/chmod/chgrp.1
+++ b/bin/chmod/chgrp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chgrp.1,v 1.12 2009/02/08 17:15:08 jmc Exp $
+.\" $OpenBSD: chgrp.1,v 1.13 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 1983, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" from: @(#)chgrp.1 8.3 (Berkeley) 3/31/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CHGRP 1
.Os
.Sh NAME
@@ -102,13 +102,13 @@ The user invoking
.Nm
must belong to the specified group and be the owner of the file,
or be the superuser.
-.Pp
-.Ex -std chgrp
.Sh FILES
.Bl -tag -width /etc/group -compact
.It Pa /etc/group
group ID file
.El
+.Sh EXIT STATUS
+.Ex -std chgrp
.Sh SEE ALSO
.Xr chown 2 ,
.Xr fts 3 ,
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1
index 8fba1bc514b..a8dcb4e819e 100644
--- a/bin/chmod/chmod.1
+++ b/bin/chmod/chmod.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chmod.1,v 1.34 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: chmod.1,v 1.35 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: chmod.1,v 1.8 1995/03/21 09:02:07 cgd Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CHMOD 1
.Os
.Sh NAME
@@ -97,8 +97,6 @@ command's actions are determined by the last one specified.
.Pp
Only the file's owner or the superuser is permitted to change
the mode of a file.
-.Pp
-.Ex -std chmod
.Ss Absolute modes
Absolute modes are specified according to the following format:
.Bd -filled -offset indent
@@ -320,6 +318,8 @@ symbols
or
.Sq t ,
are ignored.
+.Sh EXIT STATUS
+.Ex -std chmod
.Sh EXAMPLES
Set file readable by anyone and writable by the owner only:
.Pp
diff --git a/bin/chmod/chown.8 b/bin/chmod/chown.8
index 2d405da66fb..3461b6e0dfa 100644
--- a/bin/chmod/chown.8
+++ b/bin/chmod/chown.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chown.8,v 1.13 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: chown.8,v 1.14 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)chown.8 8.3 (Berkeley) 3/31/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CHOWN 8
.Os
.Sh NAME
@@ -131,7 +131,7 @@ variable
to zero.
.Pp
Only the superuser is permitted to change the owner of a file.
-.Pp
+.Sh EXIT STATUS
.Ex -std chown
.Sh SEE ALSO
.Xr chgrp 1 ,
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1
index 554b17ef59d..82dd68254b0 100644
--- a/bin/cp/cp.1
+++ b/bin/cp/cp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cp.1,v 1.31 2009/02/08 17:15:08 jmc Exp $
+.\" $OpenBSD: cp.1,v 1.32 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: cp.1,v 1.9 1995/07/25 19:36:45 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CP 1
.Os
.Sh NAME
@@ -192,7 +192,7 @@ options are ignored unless the
option is specified.
In addition, these options override each other and the
command's actions are determined by the last one specified.
-.Pp
+.Sh EXIT STATUS
.Ex -std cp
.Sh EXAMPLES
Make a copy of file
diff --git a/bin/date/date.1 b/bin/date/date.1
index 5baf54307f6..7c5a6c67590 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: date.1,v 1.52 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: date.1,v 1.53 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: date.1,v 1.12 1996/03/12 04:32:37 phil Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\"
-.Dd $Mdocdate: July 22 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt DATE 1
.Os
.Sh NAME
@@ -155,11 +155,6 @@ Everything but the minute is optional.
.Pp
Time changes for Daylight Saving Time, standard time, leap seconds,
and leap years are handled automatically.
-.Pp
-The
-.Nm
-utility exits 0 on success, 1 if unable to set the date,
-and 2 if able to set the local date, but unable to set it globally.
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev TZ
@@ -182,6 +177,11 @@ record of date resets and time changes
.It Pa /var/log/messages
record of the user setting the time
.El
+.Sh EXIT STATUS
+The
+.Nm
+utility exits 0 on success, 1 if unable to set the date,
+and 2 if able to set the local date, but unable to set it globally.
.Sh EXAMPLES
Display the date using the specified format string:
.Bd -literal -offset indent
diff --git a/bin/dd/dd.1 b/bin/dd/dd.1
index 6965e51cbcf..6ff218ad045 100644
--- a/bin/dd/dd.1
+++ b/bin/dd/dd.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dd.1,v 1.23 2009/05/12 20:39:51 schwarze Exp $
+.\" $OpenBSD: dd.1,v 1.24 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: dd.1,v 1.5 1995/03/21 09:04:04 cgd Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
.\"
-.Dd $Mdocdate: May 12 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt DD 1
.Os
.Sh NAME
@@ -333,7 +333,7 @@ be written to the standard error output
in the same format as the standard completion message and
.Nm
will exit.
-.Pp
+.Sh EXIT STATUS
.Ex -std dd
.Sh EXAMPLES
Write an
diff --git a/bin/df/df.1 b/bin/df/df.1
index 36770c259ef..f725d849736 100644
--- a/bin/df/df.1
+++ b/bin/df/df.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: df.1,v 1.43 2009/06/04 14:59:26 jmc Exp $
+.\" $OpenBSD: df.1,v 1.44 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: df.1,v 1.12 1995/12/05 02:42:45 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)df.1 8.2 (Berkeley) 1/13/92
.\"
-.Dd $Mdocdate: June 4 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt DF 1
.Os
.Sh NAME
@@ -124,8 +124,6 @@ and
.Fl k .
Where more than one of these options is specified,
the last option given overrides the others.
-.Pp
-.Ex -std df
.Sh ENVIRONMENT
.Bl -tag -width BLOCKSIZE
.It Ev BLOCKSIZE
@@ -138,6 +136,8 @@ or
options are not specified, the block counts will be displayed in units of that
size block.
.El
+.Sh EXIT STATUS
+.Ex -std df
.Sh EXAMPLES
Output, in a strict format suitable for portable scripts, disk space
statistics for the
diff --git a/bin/echo/echo.1 b/bin/echo/echo.1
index d0b2a3c6396..580fc242d14 100644
--- a/bin/echo/echo.1
+++ b/bin/echo/echo.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: echo.1,v 1.19 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: echo.1,v 1.20 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: echo.1,v 1.7 1995/03/21 09:04:26 cgd Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt ECHO 1
.Os
.Sh NAME
@@ -59,7 +59,7 @@ The options are as follows:
.It Fl n
Do not print the trailing newline character.
.El
-.Pp
+.Sh EXIT STATUS
.Ex -std echo
.Sh SEE ALSO
.Xr csh 1 ,
diff --git a/bin/ed/ed.1 b/bin/ed/ed.1
index 321d19df4f7..f50d0cfbbcd 100644
--- a/bin/ed/ed.1
+++ b/bin/ed/ed.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ed.1,v 1.56 2010/07/27 09:27:35 jmc Exp $
+.\" $OpenBSD: ed.1,v 1.57 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 1993 Andrew Moore, Talke Studio.
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 27 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt ED 1
.Os
.Sh NAME
@@ -168,8 +168,6 @@ The default filename is set to
.Ar file
only if it is not prefixed with a bang.
.El
-.Pp
-.Ex -std ed
.Ss LINE ADDRESSING
An address represents the number of a line in the buffer.
.Nm
@@ -732,6 +730,8 @@ where
.Nm
attempts to write the buffer if the terminal hangs up
.El
+.Sh EXIT STATUS
+.Ex -std ed
.Sh DIAGNOSTICS
When an error occurs,
.Nm
diff --git a/bin/expr/expr.1 b/bin/expr/expr.1
index c049a730213..c1024766b47 100644
--- a/bin/expr/expr.1
+++ b/bin/expr/expr.1
@@ -1,10 +1,10 @@
-.\" $OpenBSD: expr.1,v 1.19 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: expr.1,v 1.20 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: expr.1,v 1.9 1995/04/28 23:27:13 jtc Exp $
.\"
.\" Written by J.T. Conklin <jtc@netbsd.org>.
.\" Public domain.
.\"
-.Dd $Mdocdate: July 22 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt EXPR 1
.Os
.Sh NAME
@@ -90,12 +90,12 @@ expr X'' : 'X$'
.El
.Pp
Parentheses are used for grouping in the usual manner.
-.Pp
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
-.Bl -tag -width Ds -compact
+.Bl -tag -width Ds -offset indent -compact
.It 0
The expression is neither an empty string nor 0.
.It 1
diff --git a/bin/ln/ln.1 b/bin/ln/ln.1
index fc524f8f9d7..8ff054fa782 100644
--- a/bin/ln/ln.1
+++ b/bin/ln/ln.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ln.1,v 1.27 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: ln.1,v 1.28 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: ln.1,v 1.10 1995/07/25 19:37:04 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)ln.1 8.2 (Berkeley) 12/30/93
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt LN 1
.Os
.Sh NAME
@@ -122,7 +122,7 @@ makes links in
.Ar directory
to all the named source files.
The links made will have the same name as the files being linked to.
-.Pp
+.Sh EXIT STATUS
.Ex -std ln
.Sh EXAMPLES
Create a symbolic link named
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index bce636f0e62..9cf23379b60 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ls.1,v 1.61 2009/08/21 07:11:01 jmc Exp $
+.\" $OpenBSD: ls.1,v 1.62 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: ls.1,v 1.14 1995/12/05 02:44:01 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\"
-.Dd $Mdocdate: August 21 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt LS 1
.Os
.Sh NAME
@@ -415,8 +415,6 @@ user append-only
.It uchg
user immutable
.El
-.Pp
-.Ex -std ls
.Sh ENVIRONMENT
.Bl -tag -width BLOCKSIZE
.It Ev BLOCKSIZE
@@ -439,6 +437,8 @@ See
.Xr environ 7
for more information.
.El
+.Sh EXIT STATUS
+.Ex -std ls
.Sh EXAMPLES
List the contents of the current working directory in long format:
.Pp
diff --git a/bin/md5/md5.1 b/bin/md5/md5.1
index 3ba1ba98ee4..28c764e223d 100644
--- a/bin/md5/md5.1
+++ b/bin/md5/md5.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: md5.1,v 1.31 2010/07/13 22:34:45 tedu Exp $
+.\" $OpenBSD: md5.1,v 1.32 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 2003, 2004, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -18,7 +18,7 @@
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\"
-.Dd $Mdocdate: July 13 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt MD5 1
.Os
.Sh NAME
@@ -92,7 +92,7 @@ Runs a built-in test script.
.Pp
The MD5 sum of each file listed on the command line is printed after the
options are processed.
-.Pp
+.Sh EXIT STATUS
.Ex -std md5
.Sh SEE ALSO
.Xr cksum 1 ,
diff --git a/bin/md5/sha1.1 b/bin/md5/sha1.1
index c0be7d8a921..fe05a56459a 100644
--- a/bin/md5/sha1.1
+++ b/bin/md5/sha1.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sha1.1,v 1.28 2010/07/13 06:57:37 jmc Exp $
+.\" $OpenBSD: sha1.1,v 1.29 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 2003, 2004, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -18,7 +18,7 @@
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\"
-.Dd $Mdocdate: July 13 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt SHA1 1
.Os
.Sh NAME
@@ -100,7 +100,7 @@ The
.Xr cksum 1
command can also be used to compute digests from the SHA-2 family:
sha256, sha384 and sha512.
-.Pp
+.Sh EXIT STATUS
.Ex -std sha1
.Sh SEE ALSO
.Xr cksum 1 ,
diff --git a/bin/md5/sha256.1 b/bin/md5/sha256.1
index d9b7b484556..cd9f64c3635 100644
--- a/bin/md5/sha256.1
+++ b/bin/md5/sha256.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sha256.1,v 1.2 2010/07/13 06:57:37 jmc Exp $
+.\" $OpenBSD: sha256.1,v 1.3 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 2003, 2004, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -18,7 +18,7 @@
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\"
-.Dd $Mdocdate: July 13 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt SHA1 1
.Os
.Sh NAME
@@ -95,7 +95,7 @@ command is shorthand for
.Bd -literal -offset indent
cksum -a sha256
.Ed
-.Pp
+.Sh EXIT STATUS
.Ex -std sha256
.Sh SEE ALSO
.Xr cksum 1 ,
diff --git a/bin/mkdir/mkdir.1 b/bin/mkdir/mkdir.1
index 2aa34d94233..80519119fa1 100644
--- a/bin/mkdir/mkdir.1
+++ b/bin/mkdir/mkdir.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkdir.1,v 1.26 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: mkdir.1,v 1.27 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: mkdir.1,v 1.9 1995/07/25 19:37:13 jtc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)mkdir.1 8.2 (Berkeley) 1/25/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt MKDIR 1
.Os
.Sh NAME
@@ -83,7 +83,7 @@ The user must have write permission in the parent directory.
For an explanation of the directory hierarchy,
see
.Xr hier 7 .
-.Pp
+.Sh EXIT STATUS
.Ex -std mkdir
.Sh EXAMPLES
Create a directory named
diff --git a/bin/mv/mv.1 b/bin/mv/mv.1
index 01c8b9ea858..ddce7236d8b 100644
--- a/bin/mv/mv.1
+++ b/bin/mv/mv.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mv.1,v 1.25 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: mv.1,v 1.26 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: mv.1,v 1.8 1995/03/21 09:06:51 cgd Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)mv.1 8.1 (Berkeley) 5/31/93
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt MV 1
.Os
.Sh NAME
@@ -121,7 +121,7 @@ $ rm -f destination_path && \e
cp -PRp source_file destination && \e
rm -rf source_file
.Ed
-.Pp
+.Sh EXIT STATUS
.Ex -std mv
.Sh EXAMPLES
Rename file
diff --git a/bin/pax/cpio.1 b/bin/pax/cpio.1
index a8d4eeeba6e..19e7dd69033 100644
--- a/bin/pax/cpio.1
+++ b/bin/pax/cpio.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cpio.1,v 1.29 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: cpio.1,v 1.30 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 1997 SigmaSoft, Th. Lockert
.\" All rights reserved.
@@ -23,9 +23,9 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: cpio.1,v 1.29 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: cpio.1,v 1.30 2010/09/03 09:53:20 jmc Exp $
.\"
-.Dd $Mdocdate: July 22 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt CPIO 1
.Os
.Sh NAME
@@ -240,22 +240,22 @@ Be verbose about operations.
List filenames as they are copied.
.El
.El
-.Pp
+.Sh ENVIRONMENT
+.Bl -tag -width Fl
+.It Ev TMPDIR
+Path in which to store temporary files.
+.El
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
-.Bl -tag -width Ds -compact
+.Bl -tag -width Ds -offset indent -compact
.It 0
All files were processed successfully.
.It 1
An error occurred.
.El
-.Sh ENVIRONMENT
-.Bl -tag -width Fl
-.It Ev TMPDIR
-Path in which to store temporary files.
-.El
.Sh DIAGNOSTICS
Whenever
.Nm
diff --git a/bin/pax/pax.1 b/bin/pax/pax.1
index 4f7e0b37d7e..4ace525fd74 100644
--- a/bin/pax/pax.1
+++ b/bin/pax/pax.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pax.1,v 1.59 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: pax.1,v 1.60 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: pax.1,v 1.3 1995/03/21 09:07:37 cgd Exp $
.\"
.\" Copyright (c) 1992 Keith Muller.
@@ -34,7 +34,7 @@
.\"
.\" @(#)pax.1 8.4 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: July 22 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt PAX 1
.Os
.Sh NAME
@@ -1033,22 +1033,22 @@ options are specified along with the
.Fl n
option, a file is not considered selected unless it is newer
than the file to which it is compared.
-.Pp
+.Sh ENVIRONMENT
+.Bl -tag -width Fl
+.It Ev TMPDIR
+Path in which to store temporary files.
+.El
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
-.Bl -tag -width 2n -offset indent -compact
+.Bl -tag -width Ds -offset indent -compact
.It 0
All files were processed successfully.
.It 1
An error occurred.
.El
-.Sh ENVIRONMENT
-.Bl -tag -width Fl
-.It Ev TMPDIR
-Path in which to store temporary files.
-.El
.Sh EXAMPLES
Copy the contents of the current directory to the device
.Pa /dev/rst0 :
diff --git a/bin/pax/tar.1 b/bin/pax/tar.1
index 843692c59e0..dd251fd6b74 100644
--- a/bin/pax/tar.1
+++ b/bin/pax/tar.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tar.1,v 1.52 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: tar.1,v 1.53 2010/09/03 09:53:20 jmc Exp $
.\"
.\" Copyright (c) 1996 SigmaSoft, Th. Lockert
.\" All rights reserved.
@@ -23,9 +23,9 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: tar.1,v 1.52 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: tar.1,v 1.53 2010/09/03 09:53:20 jmc Exp $
.\"
-.Dd $Mdocdate: July 22 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt TAR 1
.Os
.Sh NAME
@@ -280,17 +280,6 @@ The options
.Op Fl 014578
can be used to select one of the compiled-in backup devices,
.Pa /dev/rstN .
-.Pp
-The
-.Nm
-utility exits with one of the following values:
-.Pp
-.Bl -tag -width 2n -offset indent -compact
-.It 0
-All files were processed successfully.
-.It 1
-An error occurred.
-.El
.Sh ENVIRONMENT
.Bl -tag -width Fl
.It Ev TMPDIR
@@ -304,6 +293,17 @@ Default tape device to use instead of
.It Pa /dev/rst0
default archive name
.El
+.Sh EXIT STATUS
+The
+.Nm
+utility exits with one of the following values:
+.Pp
+.Bl -tag -width Ds -offset indent -compact
+.It 0
+All files were processed successfully.
+.It 1
+An error occurred.
+.El
.Sh EXAMPLES
Create an archive on the default tape drive, containing the files named
.Pa bonvole
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index a2c8e37fb6d..a64c176bdf8 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ps.1,v 1.70 2009/02/08 17:33:02 jmc Exp $
+.\" $OpenBSD: ps.1,v 1.71 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: ps.1,v 1.16 1996/03/21 01:36:28 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
@@ -30,7 +30,7 @@
.\"
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt PS 1
.Os
.Sh NAME
@@ -176,8 +176,6 @@ will use as many columns as necessary without regard for window size.
.It Fl x
Display information about processes without controlling terminals.
.El
-.Pp
-.Ex -std ps
.Sh KEYWORDS
The following is a complete list of the available keywords
and their meanings.
@@ -512,6 +510,8 @@ system namelist database
.Pa /dev
name database
.El
+.Sh EXIT STATUS
+.Ex -std ps
.Sh EXAMPLES
Display information on all system processes:
.Pp
diff --git a/bin/pwd/pwd.1 b/bin/pwd/pwd.1
index b75137eef71..4d84c32df53 100644
--- a/bin/pwd/pwd.1
+++ b/bin/pwd/pwd.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pwd.1,v 1.18 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: pwd.1,v 1.19 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: pwd.1,v 1.10 1995/09/07 06:47:30 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)pwd.1 8.2 (Berkeley) 4/28/95
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt PWD 1
.Os
.Sh NAME
@@ -49,7 +49,7 @@ the standard output.
For an explanation of the directory hierarchy,
see
.Xr hier 7 .
-.Pp
+.Sh EXIT STATUS
.Ex -std pwd
.Sh SEE ALSO
.Xr ksh 1 ,
diff --git a/bin/rm/rm.1 b/bin/rm/rm.1
index b388cb1e4e2..9e69379aed5 100644
--- a/bin/rm/rm.1
+++ b/bin/rm/rm.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rm.1,v 1.32 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: rm.1,v 1.33 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: rm.1,v 1.8 1995/07/25 19:37:30 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt RM 1
.Os
.Sh NAME
@@ -117,7 +117,7 @@ It is forbidden to remove the file
merely to avoid the antisocial consequences of inadvertently
doing something like
.Dq Cm rm -r .* .
-.Pp
+.Sh EXIT STATUS
The
.Nm
utility exits 0 if all of the named files or file hierarchies were removed,
diff --git a/bin/rmdir/rmdir.1 b/bin/rmdir/rmdir.1
index d87cffbe3c1..c069cc158b3 100644
--- a/bin/rmdir/rmdir.1
+++ b/bin/rmdir/rmdir.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rmdir.1,v 1.19 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: rmdir.1,v 1.20 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: rmdir.1,v 1.10 1995/07/25 19:37:35 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)rmdir.1 8.1 (Berkeley) 5/31/93
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt RMDIR 1
.Os
.Sh NAME
@@ -71,11 +71,12 @@ starting with the last most component.
.Xr rm 1
for fully non-discriminant recursive removal.)
.El
-.Pp
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
-.Bl -tag -width Ds
+.Pp
+.Bl -tag -width Ds -offset indent -compact
.It Li \&0
Each
.Ar directory
diff --git a/bin/sleep/sleep.1 b/bin/sleep/sleep.1
index 4174f32bd18..786ae182297 100644
--- a/bin/sleep/sleep.1
+++ b/bin/sleep/sleep.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sleep.1,v 1.18 2010/07/22 08:09:29 jmc Exp $
+.\" $OpenBSD: sleep.1,v 1.19 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: sleep.1,v 1.9 1995/07/25 19:37:43 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)sleep.1 8.3 (Berkeley) 4/18/94
.\"
-.Dd $Mdocdate: July 22 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt SLEEP 1
.Os
.Sh NAME
@@ -51,6 +51,19 @@ suspends execution for a minimum of the specified number of
This number must be positive and may contain a decimal fraction.
.Nm
is commonly used to schedule the execution of other commands (see below).
+.Sh EXIT STATUS
+The
+.Nm
+utility exits with one of the following values:
+.Pp
+.Bl -tag -width Ds -offset indent -compact
+.It 0
+On successful completion, or if the signal
+.Dv SIGALRM
+was received.
+.It \*(Gt0
+An error occurred.
+.El
.Sh EXAMPLES
Wait a half hour before running the script
.Pa command_file
@@ -92,19 +105,6 @@ while true; do
sleep 5
done
.Ed
-.Pp
-The
-.Nm
-utility exits with one of the following values:
-.Pp
-.Bl -tag -width flag -compact
-.It 0
-On successful completion, or if the signal
-.Dv SIGALRM
-was received.
-.It \*(Gt0
-An error occurred.
-.El
.Sh SEE ALSO
.Xr at 1 ,
.Xr nanosleep 2 ,
diff --git a/bin/stty/stty.1 b/bin/stty/stty.1
index f2e659a63c1..f6302e3ced2 100644
--- a/bin/stty/stty.1
+++ b/bin/stty/stty.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: stty.1,v 1.36 2009/02/08 17:15:09 jmc Exp $
+.\" $OpenBSD: stty.1,v 1.37 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: stty.1,v 1.10 1995/09/07 06:57:14 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)stty.1 8.5 (Berkeley) 6/1/94
.\"
-.Dd $Mdocdate: February 8 2009 $
+.Dd $Mdocdate: September 3 2010 $
.Dt STTY 1
.Os
.Sh NAME
@@ -642,7 +642,7 @@ character when
.Cm ixon
is set.
.El
-.Pp
+.Sh EXIT STATUS
.Ex -std stty
.Sh SEE ALSO
.Xr termios 4 ,
diff --git a/bin/test/test.1 b/bin/test/test.1
index de4800c455f..2733273b332 100644
--- a/bin/test/test.1
+++ b/bin/test/test.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: test.1,v 1.28 2010/07/21 19:42:20 jmc Exp $
+.\" $OpenBSD: test.1,v 1.29 2010/09/03 09:53:20 jmc Exp $
.\" $NetBSD: test.1,v 1.6 1995/03/21 07:04:03 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)test.1 8.1 (Berkeley) 5/31/93
.\"
-.Dd $Mdocdate: July 21 2010 $
+.Dd $Mdocdate: September 3 2010 $
.Dt TEST 1
.Os
.Sh NAME
@@ -290,12 +290,12 @@ True if
.Ar expression
is true.
.El
-.Pp
+.Sh EXIT STATUS
The
.Nm
utility exits with one of the following values:
.Pp
-.Bl -tag -width Ds -compact
+.Bl -tag -width Ds -offset indent -compact
.It 0
Expression evaluated to true.
.It 1