Module Name: src Committed By: uwe Date: Tue Nov 29 20:50:37 UTC 2022
Modified Files: src/lib/libc/sys: socketpair.2 Log Message: socketpair(2): Formatting nits To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/sys/socketpair.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/socketpair.2 diff -u src/lib/libc/sys/socketpair.2:1.24 src/lib/libc/sys/socketpair.2:1.25 --- src/lib/libc/sys/socketpair.2:1.24 Tue Nov 29 20:26:39 2022 +++ src/lib/libc/sys/socketpair.2 Tue Nov 29 20:50:37 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: socketpair.2,v 1.24 2022/11/29 20:26:39 jschauma Exp $ +.\" $NetBSD: socketpair.2,v 1.25 2022/11/29 20:50:37 uwe Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -53,9 +53,9 @@ and using the optionally specified .Fa protocol . The descriptors used in referencing the new sockets are returned in -.Fa sv[0] +.Fa sv Ns Li [0] and -.Fa sv[1] . +.Fa sv Ns Li [1] . The two sockets are indistinguishable. .Pp Possible values for the @@ -67,25 +67,24 @@ and .Dv SOCK_SEQPACKET ; the only supported value for the .Fa protocol -is -.Ar 0 , +is 0, which will let the system select an appropriate protocol for the requested socket -.Fa type. +.Fa type . .Pp Any combination of the following flags may additionally be used in the .Fa type argument: .Pp -.Bl -tag -width "SOCK_NONBLOCKX" -offset indent -compact -.It SOCK_CLOEXEC +.Bl -tag -width Dv -offset indent -compact +.It Dv SOCK_CLOEXEC Set close-on-exec flag on both the new descriptors. -.It SOCK_NONBLOCK +.It Dv SOCK_NONBLOCK 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