diff options
author | 2015-01-29 01:46:30 +0000 | |
---|---|---|
committer | 2015-01-29 01:46:30 +0000 | |
commit | ee10762e100ef47e82bb9da2ebe88f56c8db1013 (patch) | |
tree | 02ab3c65edd5034ed995d7f9609ea712653c2643 /lib/libc/gen | |
parent | Radical cleanup of COMPATIBILITY sections: (diff) | |
download | wireguard-openbsd-ee10762e100ef47e82bb9da2ebe88f56c8db1013.tar.xz wireguard-openbsd-ee10762e100ef47e82bb9da2ebe88f56c8db1013.zip |
Use .Rv where appropriate, and move it to RETURN VALUES;
remove .Tn, and a few minor macro adjustments.
Patch from Kaspars at Bankovskis dot net.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/raise.3 | 9 | ||||
-rw-r--r-- | lib/libc/gen/statvfs.3 | 21 | ||||
-rw-r--r-- | lib/libc/gen/time.3 | 6 | ||||
-rw-r--r-- | lib/libc/gen/utime.3 | 13 |
4 files changed, 17 insertions, 32 deletions
diff --git a/lib/libc/gen/raise.3 b/lib/libc/gen/raise.3 index f6d3a479160..1aa2c25918d 100644 --- a/lib/libc/gen/raise.3 +++ b/lib/libc/gen/raise.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: raise.3,v 1.10 2013/06/05 03:39:22 tedu Exp $ +.\" $OpenBSD: raise.3,v 1.11 2015/01/29 01:46:30 schwarze Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: June 5 2013 $ +.Dd $Mdocdate: January 29 2015 $ .Dt RAISE 3 .Os .Sh NAME @@ -48,10 +48,7 @@ function sends the signal .Fa sig to the current thread. .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and the global variable -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn raise will fail and no signal will be sent if: diff --git a/lib/libc/gen/statvfs.3 b/lib/libc/gen/statvfs.3 index 225eee2842b..1c36d8ac645 100644 --- a/lib/libc/gen/statvfs.3 +++ b/lib/libc/gen/statvfs.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: statvfs.3,v 1.7 2015/01/19 15:54:11 millert Exp $ +.\" $OpenBSD: statvfs.3,v 1.8 2015/01/29 01:46:30 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: January 19 2015 $ +.Dd $Mdocdate: January 29 2015 $ .Dt STATVFS 3 .Os .Sh NAME @@ -72,18 +72,15 @@ struct statvfs { .Ed .Pp The fields of type -.Va fsblkcnt_t +.Vt fsblkcnt_t are reported in units of -.Va f_frsize . +.Fa f_frsize . .Pp .Fn fstatvfs returns the same information about an open file referenced by 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 statvfs fails if one or more of the following are true: @@ -115,9 +112,7 @@ or .Fa path points to an invalid address. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Pp .Fn fstatvfs @@ -130,9 +125,7 @@ is not a valid open file descriptor. .Fa buf points to an invalid address. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr df 1 , diff --git a/lib/libc/gen/time.3 b/lib/libc/gen/time.3 index 53cfaba40b3..cc1bd4314ff 100644 --- a/lib/libc/gen/time.3 +++ b/lib/libc/gen/time.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: time.3,v 1.15 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: time.3,v 1.16 2015/01/29 01:46:30 schwarze Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: January 29 2015 $ .Dt TIME 3 .Os .Sh NAME @@ -53,7 +53,7 @@ pointer If .Fa tloc is a null pointer, no value is stored. -.Pp +.Sh RETURN VALUES Upon successful completion, .Fn time returns the value of time. diff --git a/lib/libc/gen/utime.3 b/lib/libc/gen/utime.3 index 9a1c2f06add..cea13c16810 100644 --- a/lib/libc/gen/utime.3 +++ b/lib/libc/gen/utime.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: utime.3,v 1.21 2015/01/19 15:54:11 millert Exp $ +.\" $OpenBSD: utime.3,v 1.22 2015/01/29 01:46:30 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: January 19 2015 $ +.Dd $Mdocdate: January 29 2015 $ .Dt UTIME 3 .Os .Sh NAME @@ -83,10 +83,7 @@ The calling process must be the owner of the file or be the superuser. In either case, the inode change-time of the file is set to the current time. .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 utime will fail if: @@ -109,9 +106,7 @@ points outside the process's allocated address space. .It Bq Er EINVAL The pathname contains a character with the high-order bit set. .It Bq Er EIO -An -.Tn I/O -error occurred while reading or writing the affected inode. +An I/O error occurred while reading or writing the affected inode. .It Bq Er ELOOP Too many symbolic links were encountered in translating the pathname. .It Bq Er ENAMETOOLONG |