aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/sendfile.2
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2008-02-03 15:54:41 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2008-02-03 15:54:41 +0000
commitb75a1171d8ba4b08c4249e3ab6ce5f0ea446fdf3 (patch)
treee8aa792bfeae3fe74b00888ee40dba346efe1d5b /lib/libc/sys/sendfile.2
parent12c5f8a8e39ac7096a5a6ef15d660ce438af6513 (diff)
Notes
Diffstat (limited to 'lib/libc/sys/sendfile.2')
-rw-r--r--lib/libc/sys/sendfile.215
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/sys/sendfile.2 b/lib/libc/sys/sendfile.2
index 93420f69e27f..322971f0080f 100644
--- a/lib/libc/sys/sendfile.2
+++ b/lib/libc/sys/sendfile.2
@@ -103,7 +103,9 @@ variable pointed to by
.Pp
The
.Fa flags
-argument has one possible value:
+argument is a bitmap of these values:
+.Bl -item -offset indent
+.It
.Dv SF_NODISKIO .
This flag causes any
.Fn sendfile
@@ -112,6 +114,17 @@ return
.Er EBUSY .
Busy servers may benefit by transferring requests that would
block to a separate I/O worker thread.
+.It
+.Dv SF_MNOWAIT .
+(description missing)
+.It
+.Dv SF_SYNC ,
+.Nm
+sleeps until the network stack no longer references the VM pages
+of the file, making subsequent modifications to it safe.
+Please note that this is not a guarantee that the data has actually
+been sent.
+.El
.Pp
When using a socket marked for non-blocking I/O,
.Fn sendfile