diff options
author | 2014-12-10 19:19:00 +0000 | |
---|---|---|
committer | 2014-12-10 19:19:00 +0000 | |
commit | 33fc4b466c7166c282a8b38ebd324afe46647519 (patch) | |
tree | 7801b2b8d59e8c52912c03b70800c1084466fa93 /lib/libc/sys | |
parent | ssl3_init_finished_mac() calls BIO_new() which can fail since it in turn (diff) | |
download | wireguard-openbsd-33fc4b466c7166c282a8b38ebd324afe46647519.tar.xz wireguard-openbsd-33fc4b466c7166c282a8b38ebd324afe46647519.zip |
use .Rv; no change of meaning; from Kaspars at Bankovskis dot net
Diffstat (limited to 'lib/libc/sys')
43 files changed, 130 insertions, 254 deletions
diff --git a/lib/libc/sys/acct.2 b/lib/libc/sys/acct.2 index f289b519f7d..0ca5b754229 100644 --- a/lib/libc/sys/acct.2 +++ b/lib/libc/sys/acct.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: acct.2,v 1.15 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: acct.2,v 1.16 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: acct.2,v 1.6 1995/02/27 12:31:47 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)acct.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: December 10 2014 $ .Dt ACCT 2 .Os .Sh NAME @@ -77,10 +77,7 @@ Accounting is automatically disabled when the file system the accounting file resides on runs out of space; it is enabled when space once again becomes available. .Sh RETURN VALUES -On success, zero is returned. -Otherwise, \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn acct will fail if one of the following is true: diff --git a/lib/libc/sys/adjfreq.2 b/lib/libc/sys/adjfreq.2 index f13400e14e6..4a786f4be6e 100644 --- a/lib/libc/sys/adjfreq.2 +++ b/lib/libc/sys/adjfreq.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: adjfreq.2,v 1.5 2013/08/14 06:32:29 jmc Exp $ +.\" $OpenBSD: adjfreq.2,v 1.6 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 2006 Otto Moerbeek .\" @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: August 14 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt ADJFREQ 2 .Os .Sh NAME @@ -48,10 +48,7 @@ is non-null, the current value is returned. .Pp Only the superuser may adjust the frequency. .Sh RETURN VALUES -A return value of 0 indicates that the call succeeded. -A return value of \-1 indicates that an error occurred, and in this -case an error code is stored in the global variable -.Va errno . +.Rv -std .Sh ERRORS .Fn adjfreq will fail if: diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2 index 2b0f01ca58c..6d05ce6d650 100644 --- a/lib/libc/sys/adjtime.2 +++ b/lib/libc/sys/adjtime.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: adjtime.2,v 1.20 2013/08/14 06:32:28 jmc Exp $ +.\" $OpenBSD: adjtime.2,v 1.21 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: adjtime.2,v 1.5 1995/10/12 15:40:44 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)adjtime.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: August 14 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt ADJTIME 2 .Os .Sh NAME @@ -80,10 +80,7 @@ Only the superuser may adjust the time using the .Fn adjtime function. .Sh RETURN VALUES -A return value of 0 indicates that the call succeeded. -A return value of \-1 indicates that an error occurred, and in this -case an error code is stored in the global variable -.Va errno . +.Rv -std .Sh ERRORS .Fn adjtime will fail if: diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2 index c6b85aa5681..3f1521a0525 100644 --- a/lib/libc/sys/brk.2 +++ b/lib/libc/sys/brk.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: brk.2,v 1.18 2008/04/24 20:43:20 kurt Exp $ +.\" $OpenBSD: brk.2,v 1.19 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: brk.2,v 1.7 1995/02/27 12:31:57 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)brk.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: April 24 2008 $ +.Dd $Mdocdate: December 10 2014 $ .Dt BRK 2 .Os .Sh NAME @@ -104,11 +104,8 @@ e.g., for the definition of .Em etext ) . .Sh RETURN VALUES -.Fn brk -returns 0 if successful; -otherwise \-1 with -.Va errno -set to indicate why the allocation failed. +.Rv -std brk +.Pp The .Fn sbrk function returns a pointer to the base of the new storage if successful; diff --git a/lib/libc/sys/chdir.2 b/lib/libc/sys/chdir.2 index aad1fe8fd34..e07f7d87db8 100644 --- a/lib/libc/sys/chdir.2 +++ b/lib/libc/sys/chdir.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chdir.2,v 1.11 2013/03/31 08:34:27 guenther Exp $ +.\" $OpenBSD: chdir.2,v 1.12 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: chdir.2,v 1.7 1995/02/27 12:32:00 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chdir.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CHDIR 2 .Os .Sh NAME @@ -66,10 +66,7 @@ a slash In order for a directory to become the current directory, a process must have execute (search) access to the directory. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn chdir will fail and the current working directory will be unchanged if diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2 index d65e7d9a863..050c6a77214 100644 --- a/lib/libc/sys/chflags.2 +++ b/lib/libc/sys/chflags.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chflags.2,v 1.24 2014/12/08 20:56:11 guenther Exp $ +.\" $OpenBSD: chflags.2,v 1.25 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: chflags.2,v 1.6 1995/02/27 12:32:03 cgd Exp $ .\" .\" Copyright (c) 1989, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chflags.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: December 8 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CHFLAGS 2 .Os .Sh NAME @@ -136,10 +136,7 @@ except that the file whose flags are changed is specified by the file descriptor .Fa fd . .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn chflags will fail if: diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2 index 7aadd8ecfcd..c450f98cf57 100644 --- a/lib/libc/sys/chmod.2 +++ b/lib/libc/sys/chmod.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chmod.2,v 1.25 2014/02/13 07:30:39 guenther Exp $ +.\" $OpenBSD: chmod.2,v 1.26 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: chmod.2,v 1.7 1995/02/27 12:32:06 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CHMOD 2 .Os .Sh NAME @@ -152,10 +152,7 @@ except that the file whose permissions are changed is specified by the file descriptor .Fa fd . .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS The .Fn chmod diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2 index 00d0416379d..7eec007d8e8 100644 --- a/lib/libc/sys/chown.2 +++ b/lib/libc/sys/chown.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chown.2,v 1.23 2014/02/13 07:30:39 guenther Exp $ +.\" $OpenBSD: chown.2,v 1.24 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: chown.2,v 1.10 1995/10/12 15:40:47 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)chown.2 8.4 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CHOWN 2 .Os .Sh NAME @@ -136,10 +136,7 @@ with the file locking primitives (see One of the owner or group IDs may be left unchanged by specifying it as \-1. .Sh RETURN VALUES -Zero is returned if the operation was successful; -\-1 is returned if an error occurs, with a more specific -error code being placed in the global variable -.Va errno . +.Rv -std .Sh ERRORS .Fn chown , .Fn lchown , diff --git a/lib/libc/sys/chroot.2 b/lib/libc/sys/chroot.2 index a93626adbbf..f99f9a36551 100644 --- a/lib/libc/sys/chroot.2 +++ b/lib/libc/sys/chroot.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chroot.2,v 1.18 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: chroot.2,v 1.19 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: chroot.2,v 1.7 1995/02/27 12:32:12 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chroot.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CHROOT 2 .Os .Sh NAME @@ -67,10 +67,7 @@ tree than the altered root directory. .Pp This call is restricted to the superuser. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate an error. +.Rv -std .Sh EXAMPLES The following example changes the root directory to .Va newroot , diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2 index f90d3a8a675..abd0fffb563 100644 --- a/lib/libc/sys/clock_gettime.2 +++ b/lib/libc/sys/clock_gettime.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: clock_gettime.2,v 1.25 2014/10/16 15:50:49 millert Exp $ +.\" $OpenBSD: clock_gettime.2,v 1.26 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: October 16 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CLOCK_GETTIME 2 .Os .Sh NAME @@ -109,10 +109,7 @@ call. This value is placed in a (non-null) .Fa *tp . .Sh RETURN VALUES -A 0 return value indicates that the call succeeded. -A \-1 return value indicates an error occurred, and in this -case an error code is stored into the global variable -.Va errno . +.Rv -std .Sh ERRORS .Fn clock_gettime , .Fn clock_settime , diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2 index d13ff53f7c1..0be284c67a9 100644 --- a/lib/libc/sys/close.2 +++ b/lib/libc/sys/close.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: close.2,v 1.17 2014/11/25 15:02:13 schwarze Exp $ +.\" $OpenBSD: close.2,v 1.18 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: close.2,v 1.5 1995/02/27 12:32:14 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)close.2 8.2 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: November 25 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CLOSE 2 .Os .Sh NAME @@ -105,10 +105,7 @@ the call restores the default, which is to not close the descriptor. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and the global integer variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn close will fail if: diff --git a/lib/libc/sys/closefrom.2 b/lib/libc/sys/closefrom.2 index 624202ff41b..85406d019c7 100644 --- a/lib/libc/sys/closefrom.2 +++ b/lib/libc/sys/closefrom.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: closefrom.2,v 1.4 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: closefrom.2,v 1.5 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 2004 Ted Unangst. All rights reserved. .\" @@ -22,7 +22,7 @@ .\" LIABILITY, OR TORT (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: May 31 2007 $ +.Dd $Mdocdate: December 10 2014 $ .Dt CLOSEFROM 2 .Os .Sh NAME @@ -42,10 +42,7 @@ It is effectively the same as calling .Xr close 2 on each descriptor. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and the global integer variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn closefrom will fail if: diff --git a/lib/libc/sys/flock.2 b/lib/libc/sys/flock.2 index 497444df477..3b1470752b3 100644 --- a/lib/libc/sys/flock.2 +++ b/lib/libc/sys/flock.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: flock.2,v 1.19 2014/11/30 19:56:12 schwarze Exp $ +.\" $OpenBSD: flock.2,v 1.20 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: flock.2,v 1.5 1995/02/27 12:32:32 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)flock.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: November 30 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt FLOCK 2 .Os .Sh NAME @@ -114,10 +114,7 @@ unlocks the file, the parent will lose its lock. .Pp Processes blocked awaiting a lock may be awakened by signals. .Sh RETURN VALUES -Zero is returned if the operation was successful; -on an error a \-1 is returned and an error code is left in -the global location -.Va errno . +.Rv -std .Sh ERRORS The .Fn flock diff --git a/lib/libc/sys/getentropy.2 b/lib/libc/sys/getentropy.2 index 27f0a63413c..649289f20e5 100644 --- a/lib/libc/sys/getentropy.2 +++ b/lib/libc/sys/getentropy.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getentropy.2,v 1.6 2014/07/18 18:20:17 deraadt Exp $ +.\" $OpenBSD: getentropy.2,v 1.7 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 2014 Theo de Raadt .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 18 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt GETENTROPY 2 .Os .Sh NAME @@ -42,10 +42,7 @@ is not intended for regular code; please use the .Xr arc4random 3 family of functions instead. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn getentropy will succeed unless: diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2 index 8e7301e0ed2..94943cd05be 100644 --- a/lib/libc/sys/getfh.2 +++ b/lib/libc/sys/getfh.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getfh.2,v 1.15 2013/04/08 19:35:00 guenther Exp $ +.\" $OpenBSD: getfh.2,v 1.16 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: getfh.2,v 1.7 1995/10/12 15:40:53 jtc Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getfh.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: April 8 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt GETFH 2 .Os .Sh NAME @@ -49,10 +49,7 @@ in the file handle pointed to by .Fa fhp . This system call is restricted to the superuser. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn getfh fails if one or more of the following are true: diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2 index ba235c9f85c..eb36f904359 100644 --- a/lib/libc/sys/getitimer.2 +++ b/lib/libc/sys/getitimer.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getitimer.2,v 1.26 2014/07/13 23:12:02 schwarze Exp $ +.\" $OpenBSD: getitimer.2,v 1.27 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: getitimer.2,v 1.6 1995/10/12 15:40:54 jtc Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getitimer.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: July 13 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt GETITIMER 2 .Os .Sh NAME @@ -172,10 +172,7 @@ and stores the result in adds two timers and stores the result in .Fa res . .Sh RETURN VALUES -If the calls succeed, a value of 0 is returned. -If an error occurs, the value \-1 is returned, and a more precise -error code is placed in the global variable -.Va errno . +.Rv -std .Sh ERRORS .Fn getitimer and diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index 5cb646f5479..7b1244e46a1 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getsockopt.2,v 1.46 2014/04/07 10:04:17 mpi Exp $ +.\" $OpenBSD: getsockopt.2,v 1.47 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: getsockopt.2,v 1.7 1995/02/27 12:33:29 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: April 7 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt GETSOCKOPT 2 .Os .Sh NAME @@ -452,7 +452,7 @@ returns any pending error on the socket and clears the error status. It may be used to check for asynchronous errors on connected datagram sockets or for other asynchronous errors. .Sh RETURN VALUES -A 0 is returned if the call succeeds, \-1 if it fails. +.Rv -std .Sh ERRORS The call succeeds unless: .Bl -tag -width Er diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index 6558e919fe6..22e10521692 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gettimeofday.2,v 1.27 2014/01/21 03:15:45 schwarze Exp $ +.\" $OpenBSD: gettimeofday.2,v 1.28 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95 .\" -.Dd $Mdocdate: January 21 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt GETTIMEOFDAY 2 .Os .Sh NAME @@ -105,10 +105,7 @@ The system time can still be adjusted backwards using the .Xr adjtime 2 system call even when the system is secure. .Sh RETURN VALUES -A 0 return value indicates that the call succeeded. -A \-1 return value indicates an error occurred, and in this -case an error code is stored into the global variable -.Va errno . +.Rv -std .Sh ERRORS .Fn gettimeofday and diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2 index 5baa17e9860..14129c0bd5d 100644 --- a/lib/libc/sys/ktrace.2 +++ b/lib/libc/sys/ktrace.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ktrace.2,v 1.24 2014/01/21 03:15:45 schwarze Exp $ +.\" $OpenBSD: ktrace.2,v 1.25 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: ktrace.2,v 1.2 1995/02/27 12:33:58 cgd Exp $ .\" .\" Copyright (c) 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: January 21 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt KTRACE 2 .Os .Sh NAME @@ -162,10 +162,7 @@ The type specific records are defined in the .In sys/ktrace.h include file. .Sh RETURN VALUES -On successful completion a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to show the error. +.Rv -std .Sh ERRORS .Fn ktrace will fail if: diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2 index e17dfbfd6aa..128a3dbb9fd 100644 --- a/lib/libc/sys/link.2 +++ b/lib/libc/sys/link.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: link.2,v 1.26 2014/12/04 20:10:16 schwarze Exp $ +.\" $OpenBSD: link.2,v 1.27 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: link.2,v 1.7 1995/02/27 12:34:01 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)link.2 8.3 (Berkeley) 1/12/94 .\" -.Dd $Mdocdate: December 4 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt LINK 2 .Os .Sh NAME @@ -127,10 +127,7 @@ names a symbolic link, a new link is created for the symbolic link .Fa name1 and not its target. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn link and diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2 index 856d7a8fcda..9ad00f31399 100644 --- a/lib/libc/sys/listen.2 +++ b/lib/libc/sys/listen.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: listen.2,v 1.13 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: listen.2,v 1.14 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: listen.2,v 1.7 1996/02/16 20:38:45 phil Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)listen.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt LISTEN 2 .Os .Sh NAME @@ -68,7 +68,7 @@ receive an error with an indication of or, if the underlying protocol supports retransmission, the request may be ignored so that retries may succeed. .Sh RETURN VALUES -A 0 return value indicates success; \-1 indicates an error. +.Rv -std .Sh ERRORS .Fn listen will fail if: diff --git a/lib/libc/sys/mkdir.2 b/lib/libc/sys/mkdir.2 index b41a830f26e..2a6dd7ce924 100644 --- a/lib/libc/sys/mkdir.2 +++ b/lib/libc/sys/mkdir.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mkdir.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: mkdir.2,v 1.15 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: mkdir.2,v 1.8 1995/02/27 12:34:22 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mkdir.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt MKDIR 2 .Os .Sh NAME @@ -82,9 +82,7 @@ parameter, the current working directory is used and the behavior is identical to a call to .Fn mkdir . .Sh RETURN VALUES -A 0 return value indicates success. -A \-1 return value indicates an error, and an error code is stored in -.Va errno . +.Rv -std .Sh ERRORS .Fn mkdir and diff --git a/lib/libc/sys/mkfifo.2 b/lib/libc/sys/mkfifo.2 index 7fa8fe95b16..104507f4fe9 100644 --- a/lib/libc/sys/mkfifo.2 +++ b/lib/libc/sys/mkfifo.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mkfifo.2,v 1.11 2013/04/01 20:16:31 guenther Exp $ +.\" $OpenBSD: mkfifo.2,v 1.12 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: mkfifo.2,v 1.8 1995/02/27 12:34:27 cgd Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mkfifo.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: April 1 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt MKFIFO 2 .Os .Sh NAME @@ -84,9 +84,7 @@ parameter, the current working directory is used and the behavior is identical to a call to .Fn mkfifo . .Sh RETURN VALUES -A 0 return value indicates success. -A \-1 return value indicates an error, and an error code is stored in -.Va errno . +.Rv -std .Sh ERRORS .Fn mkfifo and diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2 index e308bbdfbea..f51b5070f63 100644 --- a/lib/libc/sys/mount.2 +++ b/lib/libc/sys/mount.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mount.2,v 1.41 2014/01/21 03:15:45 schwarze Exp $ +.\" $OpenBSD: mount.2,v 1.42 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: mount.2,v 1.12 1996/02/29 23:47:48 jtc Exp $ .\" .\" Copyright (c) 1980, 1989, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mount.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: January 21 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt MOUNT 2 .Os .Sh NAME @@ -243,17 +243,7 @@ Active special devices continue to work, but any further accesses to any other active files result in errors even if the filesystem is later remounted. .Sh RETURN VALUES -.Fn mount -returns the value 0 if the mount was successful; otherwise, \-1 is returned -and the variable -.Va errno -is set to indicate the error. -.Pp -.Fn unmount -returns the value 0 if the unmount was successful; otherwise, \-1 is returned -and the variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn mount will fail when one of the following occurs: diff --git a/lib/libc/sys/msgctl.2 b/lib/libc/sys/msgctl.2 index f9c20baf511..ed40da3cde2 100644 --- a/lib/libc/sys/msgctl.2 +++ b/lib/libc/sys/msgctl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: msgctl.2,v 1.16 2014/11/15 22:19:53 guenther Exp $ +.\" $OpenBSD: msgctl.2,v 1.17 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: msgctl.2,v 1.2 1997/03/27 08:20:35 mikel Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -30,7 +30,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 15 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt MSGCTL 2 .Os .Sh NAME @@ -156,10 +156,7 @@ effective GID can match either or .Va msg_perm.gid . .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn msgctl will fail if: diff --git a/lib/libc/sys/msgsnd.2 b/lib/libc/sys/msgsnd.2 index dbaa4b6feb7..82523cd22a9 100644 --- a/lib/libc/sys/msgsnd.2 +++ b/lib/libc/sys/msgsnd.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: msgsnd.2,v 1.18 2014/11/15 22:19:53 guenther Exp $ +.\" $OpenBSD: msgsnd.2,v 1.19 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: msgsnd.2,v 1.2 1997/03/27 08:20:36 mikel Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -30,7 +30,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 15 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt MSGSND 2 .Os .Sh NAME @@ -118,10 +118,7 @@ is set to the pid of the calling process. is set to the current time. .El .Sh RETURN VALUES -Upon successful completion, 0 is returned. -Otherwise, \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn msgsnd will fail if: diff --git a/lib/libc/sys/quotactl.2 b/lib/libc/sys/quotactl.2 index 002b3332312..ff99f79dbdf 100644 --- a/lib/libc/sys/quotactl.2 +++ b/lib/libc/sys/quotactl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: quotactl.2,v 1.12 2014/02/11 21:59:51 schwarze Exp $ +.\" $OpenBSD: quotactl.2,v 1.13 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: quotactl.2,v 1.8 1995/02/27 12:35:43 cgd Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -33,7 +33,7 @@ .\" .\" @(#)quotactl.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: February 11 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt QUOTACTL 2 .Os .Sh NAME @@ -140,10 +140,7 @@ and parameters are ignored. .El .Sh RETURN VALUES -A successful call returns 0, -otherwise the value \-1 is returned and the global variable -.Va errno -indicates the reason for the failure. +.Rv -std .Sh ERRORS A .Fn quotactl diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2 index 1421b4428e6..a589430736a 100644 --- a/lib/libc/sys/rename.2 +++ b/lib/libc/sys/rename.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rename.2,v 1.19 2013/05/08 16:13:12 tedu Exp $ +.\" $OpenBSD: rename.2,v 1.20 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: rename.2,v 1.7 1995/02/27 12:36:15 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)rename.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 8 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt RENAME 2 .Os .Sh NAME @@ -108,11 +108,7 @@ or .Fa to argument. .Sh RETURN VALUES -A 0 value is returned if the operation succeeds, otherwise -.Fn rename -returns \-1 and the global variable -.Va errno -indicates the reason for the failure. +.Rv -std .Sh ERRORS .Fn rename and diff --git a/lib/libc/sys/revoke.2 b/lib/libc/sys/revoke.2 index b7cb8d0ae1a..6f98990e6c4 100644 --- a/lib/libc/sys/revoke.2 +++ b/lib/libc/sys/revoke.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: revoke.2,v 1.9 2007/05/31 19:19:33 jmc Exp $ +.\" $OpenBSD: revoke.2,v 1.10 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: revoke.2,v 1.3 1995/10/12 15:41:11 jtc Exp $ .\" .\" Copyright (c) 1993 @@ -33,7 +33,7 @@ .\" .\" @(#)revoke.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: December 10 2014 $ .Dt REVOKE 2 .Os .Sh NAME @@ -67,10 +67,7 @@ The function is normally used to prepare a terminal device for a new login session, preventing any access by a previous user of the terminal. .Sh RETURN VALUES -A 0 value indicated that the call succeeded. -A \-1 return value indicates an error occurred and -.Va errno -is set to indicated the reason. +.Rv -std .Sh ERRORS Access to the named file is revoked unless one of the following: .Bl -tag -width Er diff --git a/lib/libc/sys/semop.2 b/lib/libc/sys/semop.2 index 3f27b1e8f2c..01ec7380e13 100644 --- a/lib/libc/sys/semop.2 +++ b/lib/libc/sys/semop.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: semop.2,v 1.17 2014/11/15 22:19:53 guenther Exp $ +.\" $OpenBSD: semop.2,v 1.18 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: semop.2,v 1.1 1995/10/16 23:49:28 jtc Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -30,7 +30,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 15 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SEMOP 2 .Os .Sh NAME @@ -114,10 +114,7 @@ block forever, should the process that has the semaphore locked terminate in a critical section. .El .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn semop will fail if: diff --git a/lib/libc/sys/sendsyslog.2 b/lib/libc/sys/sendsyslog.2 index 9d8c4c88c6f..c796d59a17f 100644 --- a/lib/libc/sys/sendsyslog.2 +++ b/lib/libc/sys/sendsyslog.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sendsyslog.2,v 1.2 2014/07/12 17:06:06 jmc Exp $ +.\" $OpenBSD: sendsyslog.2,v 1.3 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 2014 Theo de Raadt .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 12 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SENDSYSLOG 2 .Os .Sh NAME @@ -35,8 +35,7 @@ This is used internally by .Xr syslog_r 3 , so that messages can be sent during difficult situations. .Sh RETURN VALUES -The call returns 0 on success, or \-1 -if an error occurred. +.Rv -std .Sh ERRORS .Fn sendsyslog can fail if: diff --git a/lib/libc/sys/setgroups.2 b/lib/libc/sys/setgroups.2 index c6d7f37e622..1be45e5d483 100644 --- a/lib/libc/sys/setgroups.2 +++ b/lib/libc/sys/setgroups.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setgroups.2,v 1.11 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: setgroups.2,v 1.12 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: setgroups.2,v 1.7 1995/02/27 12:36:49 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)setgroups.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SETGROUPS 2 .Os .Sh NAME @@ -54,9 +54,7 @@ more than .Pp Only the superuser may set new groups. .Sh RETURN VALUES -A 0 value is returned on success, \-1 on error, with -an error code stored in -.Va errno . +.Rv -std .Sh ERRORS The .Fn setgroups diff --git a/lib/libc/sys/setpgid.2 b/lib/libc/sys/setpgid.2 index 7f0a53010c4..141e6c945dd 100644 --- a/lib/libc/sys/setpgid.2 +++ b/lib/libc/sys/setpgid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setpgid.2,v 1.15 2014/05/24 12:15:43 millert Exp $ +.\" $OpenBSD: setpgid.2,v 1.16 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: setpgid.2,v 1.8 1995/02/27 12:36:55 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)setpgid.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: May 24 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SETPGID 2 .Os .Sh NAME @@ -56,11 +56,7 @@ If .Ar pgrp is zero, the process ID of the specified process is used. .Sh RETURN VALUES -.Fn setpgid -returns 0 when the operation was successful. -If the request failed, \-1 is returned and the global variable -.Va errno -indicates the reason. +.Rv -std .Sh ERRORS .Fn setpgid will fail and the process group will not be altered if: diff --git a/lib/libc/sys/setregid.2 b/lib/libc/sys/setregid.2 index 9df9e17b405..38b550532b5 100644 --- a/lib/libc/sys/setregid.2 +++ b/lib/libc/sys/setregid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setregid.2,v 1.9 2014/11/30 22:42:57 schwarze Exp $ +.\" $OpenBSD: setregid.2,v 1.10 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)setregid.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: November 30 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SETREGID 2 .Os .Sh NAME @@ -69,10 +69,7 @@ When setting the real and effective group IDs to the same value, the .Xr setgid 2 function is preferred. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of -1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Bl -tag -width Er .It Bq Er EPERM diff --git a/lib/libc/sys/setresuid.2 b/lib/libc/sys/setresuid.2 index 074463be507..a20ad7f9a9c 100644 --- a/lib/libc/sys/setresuid.2 +++ b/lib/libc/sys/setresuid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setresuid.2,v 1.7 2013/08/14 06:32:29 jmc Exp $ +.\" $OpenBSD: setresuid.2,v 1.8 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 2000 .\" Sheldon Hearn. All rights reserved. @@ -21,7 +21,7 @@ .\" .\" $FreeBSD: src/lib/libc/sys/setresuid.2,v 1.12 2001/10/01 16:09:02 ru Exp $ .\" -.Dd $Mdocdate: August 14 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SETRESUID 2 .Os .Sh NAME @@ -64,10 +64,7 @@ and calls retrieve the real, effective, and saved group and user IDs of the current process, respectively. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Bl -tag -width Er .It Bq Er EPERM diff --git a/lib/libc/sys/setreuid.2 b/lib/libc/sys/setreuid.2 index 8497ce847fb..533f20958ed 100644 --- a/lib/libc/sys/setreuid.2 +++ b/lib/libc/sys/setreuid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setreuid.2,v 1.10 2014/11/30 22:42:57 schwarze Exp $ +.\" $OpenBSD: setreuid.2,v 1.11 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)setreuid.2 8.2 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: November 30 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SETREUID 2 .Os .Sh NAME @@ -69,10 +69,7 @@ When setting the real and effective user IDs to the same value, the .Xr setuid 2 function is preferred. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of -1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Bl -tag -width Er .It Bq Er EPERM diff --git a/lib/libc/sys/shmctl.2 b/lib/libc/sys/shmctl.2 index d857cd5ac81..801c7cecbda 100644 --- a/lib/libc/sys/shmctl.2 +++ b/lib/libc/sys/shmctl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: shmctl.2,v 1.16 2014/11/15 22:19:53 guenther Exp $ +.\" $OpenBSD: shmctl.2,v 1.17 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: shmctl.2,v 1.3 1997/03/27 08:20:39 mikel Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -30,7 +30,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 15 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SHMCTL 2 .Os .Sh NAME @@ -147,10 +147,7 @@ effective GID can match either or .Va shm_perm.gid . .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn shmctl will fail if: diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2 index bd02dfe4c91..8f15cba4f90 100644 --- a/lib/libc/sys/socketpair.2 +++ b/lib/libc/sys/socketpair.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: socketpair.2,v 1.16 2014/08/31 01:42:36 guenther Exp $ +.\" $OpenBSD: socketpair.2,v 1.17 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: socketpair.2,v 1.5 1995/02/27 12:38:00 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)socketpair.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: August 31 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SOCKETPAIR 2 .Os .Sh NAME @@ -68,7 +68,7 @@ Set close-on-exec flag on both the new descriptors. Set non-blocking I/O mode on both the new sockets. .El .Sh RETURN VALUES -A 0 is returned if the call succeeds, \-1 if it fails. +.Rv -std .Sh ERRORS The call succeeds unless: .Bl -tag -width Er diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2 index ba973017fe1..7fa0f68d525 100644 --- a/lib/libc/sys/stat.2 +++ b/lib/libc/sys/stat.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stat.2,v 1.42 2014/11/20 18:44:10 krw Exp $ +.\" $OpenBSD: stat.2,v 1.43 2014/12/10 19:19:00 schwarze Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)stat.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: November 20 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt STAT 2 .Os .Sh NAME @@ -283,10 +283,7 @@ For a list of access modes, see and .Xr chmod 2 . .Sh RETURN VALUES -Upon successful completion a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn stat , .Fn lstat , diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2 index bc7f64bf8d9..334f76b2de6 100644 --- a/lib/libc/sys/statfs.2 +++ b/lib/libc/sys/statfs.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: statfs.2,v 1.22 2013/07/20 19:33:34 naddy Exp $ +.\" $OpenBSD: statfs.2,v 1.23 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: statfs.2,v 1.10 1995/06/29 11:40:48 cgd Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)statfs.2 8.3 (Berkeley) 2/11/94 .\" -.Dd $Mdocdate: July 20 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt STATFS 2 .Os .Sh NAME @@ -99,10 +99,7 @@ Note that .Fa f_fsid will be empty unless the user is the superuser. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn statfs fails if one or more of the following are true: diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2 index 89293c83c2d..8b5d60eeabb 100644 --- a/lib/libc/sys/symlink.2 +++ b/lib/libc/sys/symlink.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: symlink.2,v 1.17 2014/12/04 20:10:16 schwarze Exp $ +.\" $OpenBSD: symlink.2,v 1.18 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: symlink.2,v 1.7 1995/02/27 12:38:34 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)symlink.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 4 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt SYMLINK 2 .Os .Sh NAME @@ -85,10 +85,7 @@ parameter, the current working directory is used and the behavior is identical to a call to .Fn symlink . .Sh RETURN VALUES -Upon successful completion, a zero value is returned. -If an error occurs, the error code is stored in -.Va errno -and a \-1 value is returned. +.Rv -std .Sh ERRORS The symbolic link succeeds unless: .Bl -tag -width Er diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2 index cea2136752b..11b375beb84 100644 --- a/lib/libc/sys/truncate.2 +++ b/lib/libc/sys/truncate.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: truncate.2,v 1.15 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: truncate.2,v 1.16 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: truncate.2,v 1.7 1995/02/27 12:39:00 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt TRUNCATE 2 .Os .Sh NAME @@ -59,10 +59,7 @@ With .Fn ftruncate , the file must be open for writing. .Sh RETURN VALUES -A value of 0 is returned if the call succeeds. -If the call fails a \-1 is returned, and the global variable -.Va errno -specifies the error. +.Rv -std .Sh ERRORS .Fn truncate and diff --git a/lib/libc/sys/utimes.2 b/lib/libc/sys/utimes.2 index 90a15ad80e7..61ded7b53d6 100644 --- a/lib/libc/sys/utimes.2 +++ b/lib/libc/sys/utimes.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: utimes.2,v 1.21 2014/02/13 07:30:39 guenther Exp $ +.\" $OpenBSD: utimes.2,v 1.22 2014/12/10 19:19:00 schwarze Exp $ .\" $NetBSD: utimes.2,v 1.9 1996/04/23 10:34:16 mycroft Exp $ .\" .\" Copyright (c) 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)utimes.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt UTIMES 2 .Os .Sh NAME @@ -137,10 +137,7 @@ If names a symbolic link, then the timestamps of the symbolic link are changed. .El .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn utimes and |