summaryrefslogtreecommitdiff
path: root/usr/src/man/man3ext/sendfile.3ext
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3ext/sendfile.3ext')
-rw-r--r--usr/src/man/man3ext/sendfile.3ext35
1 files changed, 8 insertions, 27 deletions
diff --git a/usr/src/man/man3ext/sendfile.3ext b/usr/src/man/man3ext/sendfile.3ext
index fc984d447f..083c3e8398 100644
--- a/usr/src/man/man3ext/sendfile.3ext
+++ b/usr/src/man/man3ext/sendfile.3ext
@@ -3,7 +3,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 sendfile 3EXT "31 May 2006" "SunOS 5.11" "Extended Library Functions"
+.TH SENDFILE 3EXT "May 31, 2006"
.SH NAME
sendfile \- send files over sockets or copy files to files
.SH SYNOPSIS
@@ -47,23 +47,19 @@ set to indicate the error.
The \fBsendfile()\fR function will fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEAFNOSUPPORT\fR\fR
.ad
.RS 16n
-.rt
The implementation does not support the specified address family for socket.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEAGAIN\fR\fR
.ad
.RS 16n
-.rt
Mandatory file or record locking is set on either the file descriptor or output
file descriptor if it points at regular files. \fBO_NDELAY\fR or
\fBO_NONBLOCK\fR is set, and there is a blocking record lock. An attempt has
@@ -73,12 +69,10 @@ or the \fBO_NONBLOCK\fR flag set.
.sp
.ne 2
-.mk
.na
\fB\fBEBADF\fR\fR
.ad
.RS 16n
-.rt
The \fIout_fd\fR or \fIin_fd\fR argument is either not a valid file descriptor,
\fIout_fd\fR is not opened for writing. or \fIin_fd\fR is not opened for
reading.
@@ -86,68 +80,56 @@ reading.
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 16n
-.rt
The offset cannot be represented by the \fBoff_t\fR structure, or the length is
negative when cast to \fBssize_t\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEIO\fR\fR
.ad
.RS 16n
-.rt
An I/O error occurred while accessing the file system.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOTCONN\fR\fR
.ad
.RS 16n
-.rt
The socket is not connected.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEOPNOTSUPP\fR\fR
.ad
.RS 16n
-.rt
The socket type is not supported.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEPIPE\fR\fR
.ad
.RS 16n
-.rt
The \fIout_fd\fR argument is no longer connected to the peer endpoint.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINTR\fR\fR
.ad
.RS 16n
-.rt
A signal was caught during the write operation and no data was transferred.
.RE
@@ -175,7 +157,7 @@ struct sockaddr_in sin;
char buf[64 * 1024];
in_addr_t addr;
size_t len;
-
+
tfd = socket(AF_INET, SOCK_STREAM, 0);
if (tfd == -1) {
perror("socket");
@@ -269,15 +251,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityEvolving
+Interface Stability Evolving
_
-MT-LevelMT-Safe
+MT-Level MT-Safe
.TE
.SH SEE ALSO