summaryrefslogtreecommitdiff
path: root/usr/src/man/man3xnet/send.3xnet
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3xnet/send.3xnet')
-rw-r--r--usr/src/man/man3xnet/send.3xnet13
1 files changed, 4 insertions, 9 deletions
diff --git a/usr/src/man/man3xnet/send.3xnet b/usr/src/man/man3xnet/send.3xnet
index c2a697d0f2..c518b11ddd 100644
--- a/usr/src/man/man3xnet/send.3xnet
+++ b/usr/src/man/man3xnet/send.3xnet
@@ -7,7 +7,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH SEND 3XNET "Nov 1, 2003"
+.TH SEND 3XNET "Dec 3, 2014"
.SH NAME
send \- send a message on a socket
.SH SYNOPSIS
@@ -20,7 +20,6 @@ send \- send a message on a socket
.fi
.SH PARAMETERS
-.sp
.ne 2
.na
\fB\fIsocket\fR\fR
@@ -77,7 +76,6 @@ significance and semantics of out-of-band data are protocol-specific.
.RE
.SH DESCRIPTION
-.sp
.LP
The \fBsend()\fR function initiates transmission of a message from the
specified socket to its peer. The \fBsend()\fR function sends a message only
@@ -106,17 +104,14 @@ is possible to send more data.
The socket in use may require the process to have appropriate privileges to use
the \fBsend()\fR function.
.SH USAGE
-.sp
.LP
The \fBsend()\fR function is identical to \fBsendto\fR(3XNET) with a null
pointer \fIdest_len\fR argument, and to \fBwrite()\fR if no flags are used.
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBsend()\fR returns the number of bytes sent.
Otherwise, \(mi1 is returned and \fBerrno\fR is set to indicate the error.
.SH ERRORS
-.sp
.LP
The \fBsend()\fR function will fail if:
.sp
@@ -148,7 +143,9 @@ The \fIsocket\fR argument is not a valid file descriptor.
\fB\fBECONNRESET\fR\fR
.ad
.RS 16n
-A connection was forcibly closed by a peer.
+The \fIsocket\fR argument refers to a connection oriented socket and the
+connection was forcibly closed by the peer and is no longer valid. I/O can no
+longer be performed to \fIfiledes\fR.
.RE
.sp
@@ -285,7 +282,6 @@ complete.
.RE
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -303,7 +299,6 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
.LP
\fBconnect\fR(3XNET), \fBgetsockopt\fR(3XNET), \fBpoll\fR(2),
\fBrecv\fR(3XNET), \fBrecvfrom\fR(3XNET), \fBrecvmsg\fR(3XNET),