summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-01-22 12:00:41 +0000
committeraaron <aaron@openbsd.org>2000-01-22 12:00:41 +0000
commitc64650b00ddf46d4b1440ef8b547284b1121d06b (patch)
treed78cbb93b4b557526d761671cb72d0b49a0d015c /lib/libc
parentchanges to GENERIC must be matched in GENERIC_SCSI3 (diff)
downloadwireguard-openbsd-c64650b00ddf46d4b1440ef8b547284b1121d06b.tar.xz
wireguard-openbsd-c64650b00ddf46d4b1440ef8b547284b1121d06b.zip
Use .Va macro when referring to the global variable errno.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/db/man/mpool.320
-rw-r--r--lib/libc/gen/ttyname.36
-rw-r--r--lib/libc/stdio/mktemp.38
-rw-r--r--lib/libc/sys/getpeername.210
-rw-r--r--lib/libc/sys/getsid.28
-rw-r--r--lib/libc/sys/getsockname.210
-rw-r--r--lib/libc/sys/nfssvc.210
-rw-r--r--lib/libc/sys/poll.24
-rw-r--r--lib/libc/sys/sigaction.210
9 files changed, 54 insertions, 32 deletions
diff --git a/lib/libc/db/man/mpool.3 b/lib/libc/db/man/mpool.3
index f5a5dbba005..e7f767e89a0 100644
--- a/lib/libc/db/man/mpool.3
+++ b/lib/libc/db/man/mpool.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mpool.3,v 1.10 1999/07/08 09:41:43 hugh Exp $
+.\" $OpenBSD: mpool.3,v 1.11 2000/01/22 12:00:42 aaron Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -123,7 +123,9 @@ the page number is stored into the
address.
Otherwise,
.Dv NULL
-is returned and errno is set. The flags value is formed by
+is returned and
+.Va errno
+is set. The flags value is formed by
.Tn OR Ns 'ing
the following values:
.Bl -tag -width Ds
@@ -145,7 +147,9 @@ The function
takes an MPOOL pointer and a page number as arguments. If the page
exists, a pointer to the page is returned. Otherwise,
.Dv NULL
-is returned and errno is set. The flags parameter is not currently used.
+is returned and
+.Va errno
+is set. The flags parameter is not currently used.
.Pp
The function
.Fn mpool_put
@@ -187,14 +191,14 @@ returns 0 on success and \-1 if an error occurs.
The
.Fn mpool_open
function may fail and set
-.Li errno
+.Va errno
for any of the errors specified for the library routine
.Xr malloc 3 .
.Pp
The
.Fn mpool_get
function may fail and set
-.Li errno
+.Va errno
for the following:
.Bl -tag -width Er
.It Bq Er EINVAL
@@ -206,7 +210,7 @@ The
and
.Fn mpool_get
functions may fail and set
-.Li errno
+.Va errno
for any of the errors specified for the library routines
.Xr read 2 ,
.Xr write 2 ,
@@ -216,14 +220,14 @@ and
The
.Fn mpool_sync
function may fail and set
-.Li errno
+.Va errno
for any of the errors specified for the library routine
.Xr write 2 .
.Pp
The
.Fn mpool_close
function may fail and set
-.Li errno
+.Va errno
for any of the errors specified for the library routine
.Xr free 3 .
.Pp
diff --git a/lib/libc/gen/ttyname.3 b/lib/libc/gen/ttyname.3
index fc9d5f9bc48..664662519ce 100644
--- a/lib/libc/gen/ttyname.3
+++ b/lib/libc/gen/ttyname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ttyname.3,v 1.9 1999/07/09 13:35:19 aaron Exp $
+.\" $OpenBSD: ttyname.3,v 1.10 2000/01/22 12:00:42 aaron Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -112,7 +112,7 @@ name if the device is found and
.Fn isatty
is true; otherwise
a null pointer is returned and
-.Dv errno
+.Va errno
is set to indicate the error.
.Pp
The
@@ -120,7 +120,7 @@ The
function returns 1 if
.Fa fd
is associated with a terminal device; otherwise it returns 0 and
-.Dv errno
+.Va errno
is set to indicate the error.
.Pp
The
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3
index ef5cb76bacc..a187a42572d 100644
--- a/lib/libc/stdio/mktemp.3
+++ b/lib/libc/stdio/mktemp.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mktemp.3,v 1.18 1999/09/14 06:21:23 pjanzen Exp $
+.\" $OpenBSD: mktemp.3,v 1.19 2000/01/22 12:00:42 aaron Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -290,8 +290,10 @@ using the flags
.Dv O_EXCL ,
is better, as long as the code retries a new template if
.Xr open 2
-fails with an errno of
-.Dv EEXIST .
+fails with an
+.Va errno
+of
+.Er EEXIST .
.Sh SEE ALSO
.Xr chmod 2 ,
.Xr getpid 2 ,
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 1ce4b1c0d7d..fb321ca80e6 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpeername.2,v 1.12 1999/07/21 07:18:26 kjell Exp $
+.\" $OpenBSD: getpeername.2,v 1.13 2000/01/22 12:00:42 aaron Exp $
.\" $NetBSD: getpeername.2,v 1.6 1995/10/12 15:40:56 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -97,9 +97,13 @@ If the call succeeds, a 0 is returned and
.Fa namelen
is set to the actual size of the socket address returned in
.Fa name .
-Otherwise, errno is set and a value of \-1 is returned.
+Otherwise,
+.Va errno
+is set and a value of \-1 is returned.
.Sh ERRORS
-On failure, errno is set to one of the following:
+On failure,
+.Va errno
+is set to one of the following:
.Bl -tag -width Er
.It Bq Er EBADF
The argument
diff --git a/lib/libc/sys/getsid.2 b/lib/libc/sys/getsid.2
index 2986bc62904..661e9c30eaa 100644
--- a/lib/libc/sys/getsid.2
+++ b/lib/libc/sys/getsid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsid.2,v 1.5 1999/06/29 14:10:01 aaron Exp $
+.\" $OpenBSD: getsid.2,v 1.6 2000/01/22 12:00:42 aaron Exp $
.\"
.\" Copyright (c) 1997 Peter Wemm <peter@freebsd.org>
.\"
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: getsid.2,v 1.5 1999/06/29 14:10:01 aaron Exp $
+.\" $Id: getsid.2,v 1.6 2000/01/22 12:00:42 aaron Exp $
.\"
.Dd August 19, 1997
.Dt GETSID 2
@@ -50,7 +50,9 @@ Upon successful completion, the function
.Fn getsid
returns the session ID of
the specified process; otherwise, it returns a value of \-1 and
-sets errno to indicate an error.
+sets
+.Va errno
+to indicate an error.
.Sh ERRORS
.Fn getsid
will succeed unless:
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index 3d966cab30e..8251bbbd80d 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockname.2,v 1.12 1999/07/21 07:18:27 kjell Exp $
+.\" $OpenBSD: getsockname.2,v 1.13 2000/01/22 12:00:43 aaron Exp $
.\" $NetBSD: getsockname.2,v 1.6 1995/10/12 15:41:00 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -114,11 +114,15 @@ returns a 0, and
.Fa namelen
is set to the actual size of the socket address returned in
.Fa name .
-Otherwise, errno is set, and a value of \-1 is returned.
+Otherwise,
+.Va errno
+is set, and a value of \-1 is returned.
.Sh ERRORS
If
.Fn getsockname
-fails, errno is set to one of the following:
+fails,
+.Va errno
+is set to one of the following:
.Bl -tag -width Er
.It Bq Er EBADF
The argument
diff --git a/lib/libc/sys/nfssvc.2 b/lib/libc/sys/nfssvc.2
index 58658023b3a..a0e36cf2d14 100644
--- a/lib/libc/sys/nfssvc.2
+++ b/lib/libc/sys/nfssvc.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nfssvc.2,v 1.9 1999/07/04 18:59:44 aaron Exp $
+.\" $OpenBSD: nfssvc.2,v 1.10 2000/01/22 12:00:43 aaron Exp $
.\" $NetBSD: nfssvc.2,v 1.6 1995/02/27 12:35:08 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -104,7 +104,9 @@ If the mount point is using Kerberos, then the
.Xr mount_nfs 8
daemon will return from
.Fn nfssvc
-with errno set to
+with
+.Va errno
+set to
.Er ENEEDAUTH
whenever the client side requires an
.Dq rcmd
@@ -160,7 +162,9 @@ Whenever an
.Xr nfsd 8
daemon receives a Kerberos authentication ticket, it will return from
.Fn nfssvc
-with errno set to
+with
+.Va errno
+set to
.Er ENEEDAUTH .
The
.Xr nfsd 8
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2
index b96986b4454..2141f43b771 100644
--- a/lib/libc/sys/poll.2
+++ b/lib/libc/sys/poll.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: poll.2,v 1.7 1999/06/29 14:10:14 aaron Exp $
+.\" $OpenBSD: poll.2,v 1.8 2000/01/22 12:00:43 aaron Exp $
.\"
.\" Copyright (c) 1994 Jason R. Thorpe
.\" All rights reserved.
@@ -150,7 +150,7 @@ flag is only a close approximation and may not always be accurate.
Upon error,
.Fn poll
returns a \-1 and sets the global variable
-.Pa errno
+.Va errno
to indicate the error. If the timeout interval was reached before any events
occurred, a 0 is returned. Otherwise,
.Fn poll
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 9fdd5ad3e3c..a1a5d70b623 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaction.2,v 1.20 1999/06/29 14:10:21 aaron Exp $
+.\" $OpenBSD: sigaction.2,v 1.21 2000/01/22 12:00:43 aaron Exp $
.\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -207,8 +207,10 @@ the calling process exit. If the calling process subsequently issues
a
.Xr wait 2
(or equivalent), it blocks until all of the calling process's child
-processes terminate, and then returns a value of \-1 with errno set to
-.Dv ECHILD .
+processes terminate, and then returns a value of \-1 with
+.Va errno
+set to
+.Er ECHILD .
.It Dv SA_ONSTACK
If this bit is set, the system will deliver the signal to the process
on a
@@ -238,7 +240,7 @@ attributes of the signal that is being delivered.
If a signal is caught during the system calls listed below,
the call may be forced to terminate
with the error
-.Dv EINTR ,
+.Er EINTR ,
the call may return with a data transfer shorter than requested,
or the call may be restarted.
Restarting of pending calls is requested