summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2004-02-08 07:38:35 +0000
committersilby <silby@FreeBSD.org>2004-02-08 07:38:35 +0000
commit3a8a1ad8ce847f6cac4dcedf4d917b187cf5d9f9 (patch)
treede4d75b60e120b680bfceef8b74d623de9336a72 /lib
parent9428de17dec59f3de2ef6169eb732876b548dce7 (diff)
downloadFreeBSD-src-3a8a1ad8ce847f6cac4dcedf4d917b187cf5d9f9.zip
FreeBSD-src-3a8a1ad8ce847f6cac4dcedf4d917b187cf5d9f9.tar.gz
Document the SF_NODISKIO flag, and fix a small typo.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/sendfile.212
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/sendfile.2 b/lib/libc/sys/sendfile.2
index feada07..4986071 100644
--- a/lib/libc/sys/sendfile.2
+++ b/lib/libc/sys/sendfile.2
@@ -88,7 +88,11 @@ variable pointed to by
.Pp
The
.Fa flags
-argument is currently undefined and should be specified as 0.
+argument has one possible value:
+.Fa SF_NODISKIO .
+This flag causes any sendfile call which would block on disk I/O to instead
+return EBUSY. Busy servers may benefit by transferring requests that would
+block to a seperate I/O worker thread.
.Pp
When using a socket marked for non-blocking I/O,
.Fn sendfile
@@ -137,7 +141,7 @@ for details).
.Pp
The number of
.Xr sendfile 2
-buffers in use is determined at boot time by either the
+buffers available is determined at boot time by either the
.Va kern.ipc.nsfbufs
.Xr loader.conf 5
variable or the
@@ -167,6 +171,10 @@ The
.Fa s
argument
is not a valid socket descriptor.
+.It Bq Er EBUSY
+Completing the entire transfer would have required disk I/O, so
+it was aborted. Partial data may have been sent.
+(This error can only occur when SF_NODISKIO is specified.)
.It Bq Er ENOTSOCK
The
.Fa s
OpenPOWER on IntegriCloud