Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys socketpair(2): Formatting nits



details:   https://anonhg.NetBSD.org/src/rev/6a1196403ec6
branches:  trunk
changeset: 372447:6a1196403ec6
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Nov 29 20:50:37 2022 +0000

description:
socketpair(2): Formatting nits

diffstat:

 lib/libc/sys/socketpair.2 |  19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diffs (53 lines):

diff -r b79e1582c585 -r 6a1196403ec6 lib/libc/sys/socketpair.2
--- a/lib/libc/sys/socketpair.2 Tue Nov 29 20:26:39 2022 +0000
+++ b/lib/libc/sys/socketpair.2 Tue Nov 29 20:50:37 2022 +0000
@@ -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 @@
 .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 @@
 .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



Home | Main Index | Thread Index | Old Index