summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-10-31 04:00:20 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-10-31 04:00:20 +0000
commit8ec6c5c60f2c90e5aee1fc323ff35c490eda6120 (patch)
treef29399499e69fa469a3a0db61b8157789b2a1aab /lib
parent29214ebf275512793df4d761340d9842504e726d (diff)
downloadFreeBSD-src-8ec6c5c60f2c90e5aee1fc323ff35c490eda6120.zip
FreeBSD-src-8ec6c5c60f2c90e5aee1fc323ff35c490eda6120.tar.gz
Sort error list.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/sendfile.243
1 files changed, 22 insertions, 21 deletions
diff --git a/lib/libc/sys/sendfile.2 b/lib/libc/sys/sendfile.2
index ef824ef..f04e405 100644
--- a/lib/libc/sys/sendfile.2
+++ b/lib/libc/sys/sendfile.2
@@ -188,6 +188,11 @@ These values may also be viewed through
.Rv -std sendfile
.Sh ERRORS
.Bl -tag -width Er
+.It Bq Er EAGAIN
+The socket is marked for non-blocking I/O and not all data was sent due to
+the socket buffer being filled.
+If specified, the number of bytes successfully sent will be returned in
+.Fa *sbytes .
.It Bq Er EBADF
The
.Fa fd
@@ -205,11 +210,15 @@ Partial data may have been sent.
(This error can only occur when
.Dv SF_NODISKIO
is specified.)
-.It Bq Er ENOTSOCK
-The
-.Fa s
-argument
-is not a socket.
+.It Bq Er EFAULT
+An invalid address was specified for an argument.
+.It Bq Er EINTR
+A signal interrupted
+.Fn sendfile
+before it could be completed.
+If specified, the number
+of bytes successfully sent will be returned in
+.Fa *sbytes .
.It Bq Er EINVAL
The
.Fa fd
@@ -225,29 +234,21 @@ The
.Fa offset
argument
is negative.
+.It Bq Er EIO
+An error occurred while reading from
+.Fa fd .
.It Bq Er ENOTCONN
The
.Fa s
argument
points to an unconnected socket.
+.It Bq Er ENOTSOCK
+The
+.Fa s
+argument
+is not a socket.
.It Bq Er EPIPE
The socket peer has closed the connection.
-.It Bq Er EIO
-An error occurred while reading from
-.Fa fd .
-.It Bq Er EFAULT
-An invalid address was specified for an argument.
-.It Bq Er EINTR
-A signal interrupted
-.Fn sendfile
-before it could be completed.
-If specified, the number
-of bytes successfully sent will be returned in
-.Fa *sbytes .
-.It Bq Er EAGAIN
-The socket is marked for non-blocking I/O and not all data was sent due to the socket buffer being filled.
-If specified, the number of bytes successfully sent will be returned in
-.Fa *sbytes .
.El
.Sh SEE ALSO
.Xr netstat 1 ,
OpenPOWER on IntegriCloud