From 3a8a1ad8ce847f6cac4dcedf4d917b187cf5d9f9 Mon Sep 17 00:00:00 2001 From: silby Date: Sun, 8 Feb 2004 07:38:35 +0000 Subject: Document the SF_NODISKIO flag, and fix a small typo. --- lib/libc/sys/sendfile.2 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.1