summaryrefslogtreecommitdiff
path: root/usr/src/man/man3socket/socket.3socket
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2013-05-13 17:47:27 +0000
committerRichard Lowe <richlowe@richlowe.net>2013-05-14 16:48:11 -0400
commita63a4ea3c3247be4ac79182757fddde52117f119 (patch)
treecb8f6ca2771db05e7c090de9c831d3b618ab39d2 /usr/src/man/man3socket/socket.3socket
parentdea290bf370f1f35e4f96b50502bb2240d33ed7f (diff)
downloadillumos-joyent-a63a4ea3c3247be4ac79182757fddde52117f119.tar.gz
3769 Implement SOCK_NONBLOCK flag to socket()
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Theo Schlossnagle <jesus@omniti.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/man/man3socket/socket.3socket')
-rw-r--r--usr/src/man/man3socket/socket.3socket31
1 files changed, 31 insertions, 0 deletions
diff --git a/usr/src/man/man3socket/socket.3socket b/usr/src/man/man3socket/socket.3socket
index be280b082e..74c2acbc06 100644
--- a/usr/src/man/man3socket/socket.3socket
+++ b/usr/src/man/man3socket/socket.3socket
@@ -100,6 +100,28 @@ is similar in purpose to the \fBO_CLOEXEC\fR flag to \fBopen\fR(2).
.RE
.sp
+.ne 2
+.na
+\fB\fBSOCK_NDELAY\fR\fR
+.ad
+.RS 12n
+Creates the socket with the \fBO_NDELAY\fR flag set, causing the socket to
+provide nonblocking semantics as described for \fBO_NDELAY\fR in \fBopen\fR(2).
+\fBSOCK_NONBLOCK\fR should normally be used in preference to \fBSOCK_NDELAY\fR,
+and takes precedence if both are set. See \fBopen\fR(2) for further details.
+.RE
+
+.sp
+.ne 2
+.na
+\fB\fBSOCK_NONBLOCK\fR\fR
+.ad
+.RS 12n
+Creates the socket with the \fBO_NONBLOCK\fR flag set, causing the socket to
+provide nonblocking semantics as described for \fBO_NONBLOCK\fR in \fBopen\fR(2).
+.RE
+
+.sp
.LP
There must be an entry in the \fBnetconfig\fR(4) file for at least each
protocol family and type required. If a non-zero protocol has been specified
@@ -264,6 +286,15 @@ The protocol type is not supported by the address family.
The socket type is not supported by the protocol.
.RE
+.sp
+.ne 2
+.na
+\fB\fBEINVAL\fR\fR
+.ad
+.RS 19n
+One or more of the specified flags is not supported.
+.RE
+
.SH ATTRIBUTES
.sp
.LP