On Wed, Dec 10, 2014 at 12:18:44AM -0700, Philip Guenther wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   guent...@cvs.openbsd.org        2014/12/10 00:18:44
> 
> Modified files:
>       lib/libc/sys   : bind.2 intro.2 kill.2 
> 
> Log message:
> Prefer .In and .Rv -std

More of this sort.
Appears there are so many ways to tell the same thing..


Index: acct.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/acct.2,v
retrieving revision 1.15
diff -u -p -r1.15 acct.2
--- acct.2      31 May 2007 19:19:32 -0000      1.15
+++ acct.2      10 Dec 2014 11:01:44 -0000
@@ -77,10 +77,7 @@ Accounting is automatically disabled whe
 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:
Index: adjfreq.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/adjfreq.2,v
retrieving revision 1.5
diff -u -p -r1.5 adjfreq.2
--- adjfreq.2   14 Aug 2013 06:32:29 -0000      1.5
+++ adjfreq.2   10 Dec 2014 11:02:55 -0000
@@ -48,10 +48,7 @@ is non-null, the current value is return
 .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:
Index: adjtime.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/adjtime.2,v
retrieving revision 1.20
diff -u -p -r1.20 adjtime.2
--- adjtime.2   14 Aug 2013 06:32:28 -0000      1.20
+++ adjtime.2   10 Dec 2014 11:03:37 -0000
@@ -80,10 +80,7 @@ Only the superuser may adjust the time u
 .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:
Index: brk.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/brk.2,v
retrieving revision 1.18
diff -u -p -r1.18 brk.2
--- brk.2       24 Apr 2008 20:43:20 -0000      1.18
+++ brk.2       10 Dec 2014 11:05:04 -0000
@@ -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;
Index: chdir.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/chdir.2,v
retrieving revision 1.11
diff -u -p -r1.11 chdir.2
--- chdir.2     31 Mar 2013 08:34:27 -0000      1.11
+++ chdir.2     10 Dec 2014 11:05:49 -0000
@@ -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
Index: chflags.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/chflags.2,v
retrieving revision 1.24
diff -u -p -r1.24 chflags.2
--- chflags.2   8 Dec 2014 20:56:11 -0000       1.24
+++ chflags.2   10 Dec 2014 11:06:35 -0000
@@ -136,10 +136,7 @@ except that the file whose flags are cha
 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:
Index: chmod.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/chmod.2,v
retrieving revision 1.25
diff -u -p -r1.25 chmod.2
--- chmod.2     13 Feb 2014 07:30:39 -0000      1.25
+++ chmod.2     10 Dec 2014 11:08:10 -0000
@@ -152,10 +152,7 @@ except that the file whose permissions a
 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
Index: chown.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/chown.2,v
retrieving revision 1.23
diff -u -p -r1.23 chown.2
--- chown.2     13 Feb 2014 07:30:39 -0000      1.23
+++ chown.2     10 Dec 2014 11:08:55 -0000
@@ -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 ,
Index: chroot.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/chroot.2,v
retrieving revision 1.18
diff -u -p -r1.18 chroot.2
--- chroot.2    17 Jul 2013 05:42:11 -0000      1.18
+++ chroot.2    10 Dec 2014 11:09:35 -0000
@@ -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 ,
Index: clock_gettime.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/clock_gettime.2,v
retrieving revision 1.25
diff -u -p -r1.25 clock_gettime.2
--- clock_gettime.2     16 Oct 2014 15:50:49 -0000      1.25
+++ clock_gettime.2     10 Dec 2014 11:10:38 -0000
@@ -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 ,
Index: close.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/close.2,v
retrieving revision 1.17
diff -u -p -r1.17 close.2
--- close.2     25 Nov 2014 15:02:13 -0000      1.17
+++ close.2     10 Dec 2014 11:11:29 -0000
@@ -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:
Index: closefrom.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/closefrom.2,v
retrieving revision 1.4
diff -u -p -r1.4 closefrom.2
--- closefrom.2 31 May 2007 19:19:32 -0000      1.4
+++ closefrom.2 10 Dec 2014 11:12:10 -0000
@@ -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:
Index: flock.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/flock.2,v
retrieving revision 1.19
diff -u -p -r1.19 flock.2
--- flock.2     30 Nov 2014 19:56:12 -0000      1.19
+++ flock.2     10 Dec 2014 11:13:30 -0000
@@ -114,10 +114,7 @@ unlocks the file, the parent will lose i
 .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
Index: getentropy.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/getentropy.2,v
retrieving revision 1.6
diff -u -p -r1.6 getentropy.2
--- getentropy.2        18 Jul 2014 18:20:17 -0000      1.6
+++ getentropy.2        10 Dec 2014 11:15:04 -0000
@@ -42,10 +42,7 @@ is not intended for regular code; please
 .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:
Index: getfh.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/getfh.2,v
retrieving revision 1.15
diff -u -p -r1.15 getfh.2
--- getfh.2     8 Apr 2013 19:35:00 -0000       1.15
+++ getfh.2     10 Dec 2014 11:15:50 -0000
@@ -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:
Index: getitimer.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/getitimer.2,v
retrieving revision 1.26
diff -u -p -r1.26 getitimer.2
--- getitimer.2 13 Jul 2014 23:12:02 -0000      1.26
+++ getitimer.2 10 Dec 2014 11:16:14 -0000
@@ -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
Index: getsockopt.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/getsockopt.2,v
retrieving revision 1.46
diff -u -p -r1.46 getsockopt.2
--- getsockopt.2        7 Apr 2014 10:04:17 -0000       1.46
+++ getsockopt.2        10 Dec 2014 11:17:00 -0000
@@ -452,7 +452,7 @@ returns any pending error on the socket 
 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
Index: gettimeofday.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/gettimeofday.2,v
retrieving revision 1.27
diff -u -p -r1.27 gettimeofday.2
--- gettimeofday.2      21 Jan 2014 03:15:45 -0000      1.27
+++ gettimeofday.2      10 Dec 2014 11:17:37 -0000
@@ -105,10 +105,7 @@ The system time can still be adjusted ba
 .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
Index: ktrace.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/ktrace.2,v
retrieving revision 1.24
diff -u -p -r1.24 ktrace.2
--- ktrace.2    21 Jan 2014 03:15:45 -0000      1.24
+++ ktrace.2    10 Dec 2014 11:18:18 -0000
@@ -162,10 +162,7 @@ The type specific records are defined in
 .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:
Index: link.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/link.2,v
retrieving revision 1.26
diff -u -p -r1.26 link.2
--- link.2      4 Dec 2014 20:10:16 -0000       1.26
+++ link.2      10 Dec 2014 11:18:45 -0000
@@ -127,10 +127,7 @@ names a symbolic link, a new link is cre
 .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
Index: listen.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/listen.2,v
retrieving revision 1.13
diff -u -p -r1.13 listen.2
--- listen.2    17 Jul 2013 05:42:11 -0000      1.13
+++ listen.2    10 Dec 2014 11:19:13 -0000
@@ -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:
Index: mkdir.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/mkdir.2,v
retrieving revision 1.14
diff -u -p -r1.14 mkdir.2
--- mkdir.2     17 Jul 2013 05:42:11 -0000      1.14
+++ mkdir.2     10 Dec 2014 11:19:52 -0000
@@ -82,9 +82,7 @@ parameter, the current working directory
 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
Index: mkfifo.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/mkfifo.2,v
retrieving revision 1.11
diff -u -p -r1.11 mkfifo.2
--- mkfifo.2    1 Apr 2013 20:16:31 -0000       1.11
+++ mkfifo.2    10 Dec 2014 11:20:31 -0000
@@ -84,9 +84,7 @@ parameter, the current working directory
 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
Index: mount.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/mount.2,v
retrieving revision 1.41
diff -u -p -r1.41 mount.2
--- mount.2     21 Jan 2014 03:15:45 -0000      1.41
+++ mount.2     10 Dec 2014 11:21:54 -0000
@@ -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:
Index: msgctl.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/msgctl.2,v
retrieving revision 1.16
diff -u -p -r1.16 msgctl.2
--- msgctl.2    15 Nov 2014 22:19:53 -0000      1.16
+++ msgctl.2    10 Dec 2014 11:22:30 -0000
@@ -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:
Index: msgsnd.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/msgsnd.2,v
retrieving revision 1.18
diff -u -p -r1.18 msgsnd.2
--- msgsnd.2    15 Nov 2014 22:19:53 -0000      1.18
+++ msgsnd.2    10 Dec 2014 11:23:02 -0000
@@ -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:
Index: quotactl.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/quotactl.2,v
retrieving revision 1.12
diff -u -p -r1.12 quotactl.2
--- quotactl.2  11 Feb 2014 21:59:51 -0000      1.12
+++ quotactl.2  10 Dec 2014 11:23:30 -0000
@@ -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
Index: rename.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/rename.2,v
retrieving revision 1.19
diff -u -p -r1.19 rename.2
--- rename.2    8 May 2013 16:13:12 -0000       1.19
+++ rename.2    10 Dec 2014 11:24:12 -0000
@@ -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
Index: revoke.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/revoke.2,v
retrieving revision 1.9
diff -u -p -r1.9 revoke.2
--- revoke.2    31 May 2007 19:19:33 -0000      1.9
+++ revoke.2    10 Dec 2014 11:24:56 -0000
@@ -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
Index: semop.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/semop.2,v
retrieving revision 1.17
diff -u -p -r1.17 semop.2
--- semop.2     15 Nov 2014 22:19:53 -0000      1.17
+++ semop.2     10 Dec 2014 11:25:32 -0000
@@ -114,10 +114,7 @@ block forever, should the process that h
 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:
Index: sendsyslog.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/sendsyslog.2,v
retrieving revision 1.2
diff -u -p -r1.2 sendsyslog.2
--- sendsyslog.2        12 Jul 2014 17:06:06 -0000      1.2
+++ sendsyslog.2        10 Dec 2014 11:26:02 -0000
@@ -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:
Index: setgroups.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/setgroups.2,v
retrieving revision 1.11
diff -u -p -r1.11 setgroups.2
--- setgroups.2 17 Jul 2013 05:42:11 -0000      1.11
+++ setgroups.2 10 Dec 2014 11:27:09 -0000
@@ -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
Index: setpgid.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/setpgid.2,v
retrieving revision 1.15
diff -u -p -r1.15 setpgid.2
--- setpgid.2   24 May 2014 12:15:43 -0000      1.15
+++ setpgid.2   10 Dec 2014 11:28:38 -0000
@@ -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:
Index: setregid.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/setregid.2,v
retrieving revision 1.9
diff -u -p -r1.9 setregid.2
--- setregid.2  30 Nov 2014 22:42:57 -0000      1.9
+++ setregid.2  10 Dec 2014 11:32:45 -0000
@@ -69,10 +69,7 @@ When setting the real and effective grou
 .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
Index: setresuid.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/setresuid.2,v
retrieving revision 1.7
diff -u -p -r1.7 setresuid.2
--- setresuid.2 14 Aug 2013 06:32:29 -0000      1.7
+++ setresuid.2 10 Dec 2014 11:33:12 -0000
@@ -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
Index: setreuid.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/setreuid.2,v
retrieving revision 1.10
diff -u -p -r1.10 setreuid.2
--- setreuid.2  30 Nov 2014 22:42:57 -0000      1.10
+++ setreuid.2  10 Dec 2014 11:33:52 -0000
@@ -69,10 +69,7 @@ When setting the real and effective user
 .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
Index: shmctl.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/shmctl.2,v
retrieving revision 1.16
diff -u -p -r1.16 shmctl.2
--- shmctl.2    15 Nov 2014 22:19:53 -0000      1.16
+++ shmctl.2    10 Dec 2014 11:34:40 -0000
@@ -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:
Index: socketpair.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/socketpair.2,v
retrieving revision 1.16
diff -u -p -r1.16 socketpair.2
--- socketpair.2        31 Aug 2014 01:42:36 -0000      1.16
+++ socketpair.2        10 Dec 2014 11:35:11 -0000
@@ -68,7 +68,7 @@ Set close-on-exec flag on both the new d
 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
Index: stat.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/stat.2,v
retrieving revision 1.42
diff -u -p -r1.42 stat.2
--- stat.2      20 Nov 2014 18:44:10 -0000      1.42
+++ stat.2      10 Dec 2014 11:35:43 -0000
@@ -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 ,
Index: statfs.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/statfs.2,v
retrieving revision 1.22
diff -u -p -r1.22 statfs.2
--- statfs.2    20 Jul 2013 19:33:34 -0000      1.22
+++ statfs.2    10 Dec 2014 11:37:05 -0000
@@ -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:
Index: symlink.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/symlink.2,v
retrieving revision 1.17
diff -u -p -r1.17 symlink.2
--- symlink.2   4 Dec 2014 20:10:16 -0000       1.17
+++ symlink.2   10 Dec 2014 11:37:54 -0000
@@ -85,10 +85,7 @@ parameter, the current working directory
 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
Index: truncate.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/truncate.2,v
retrieving revision 1.15
diff -u -p -r1.15 truncate.2
--- truncate.2  17 Jul 2013 05:42:11 -0000      1.15
+++ truncate.2  10 Dec 2014 11:38:28 -0000
@@ -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
Index: utimes.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/utimes.2,v
retrieving revision 1.21
diff -u -p -r1.21 utimes.2
--- utimes.2    13 Feb 2014 07:30:39 -0000      1.21
+++ utimes.2    10 Dec 2014 11:39:03 -0000
@@ -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

Reply via email to