diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-01-22 12:00:44 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-01-22 12:00:44 +0000 |
commit | 0af7dd8231bef67e47c220a7bacf8f1eedabba47 (patch) | |
tree | ebee5d9abfa6081337b2c756b2b394aea04b85ae /lib/libc/sys | |
parent | 987ea750df0c9c8c98007c079bbbb7a7092e3989 (diff) |
Use .Va macro when referring to the global variable errno.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/getpeername.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/getsid.2 | 8 | ||||
-rw-r--r-- | lib/libc/sys/getsockname.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/nfssvc.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/poll.2 | 4 | ||||
-rw-r--r-- | lib/libc/sys/sigaction.2 | 10 |
6 files changed, 34 insertions, 18 deletions
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 |