Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105974885
D19150.id53806.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19150.id53806.diff
View Options
Index: lib/libc/sys/sendfile.2
===================================================================
--- lib/libc/sys/sendfile.2
+++ lib/libc/sys/sendfile.2
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 7, 2016
+.Dd January 25, 2019
.Dt SENDFILE 2
.Os
.Sh NAME
@@ -104,7 +104,7 @@
The least significant 16 bits of
.Fa flags
argument is a bitmap of these values:
-.Bl -tag -offset indent
+.Bl -tag -offset indent -width "SF_USER_READAHEAD"
.It Dv SF_NODISKIO
This flag causes
.Nm
@@ -314,6 +314,12 @@
.It Bq Er EIO
An error occurred while reading from
.Fa fd .
+.It Bq Er ENOTCAPABLE
+The
+.Fa fd
+or the
+.Fa s
+argument has insufficient rights.
.It Bq Er ENOBUFS
The system was unable to allocate an internal buffer.
.It Bq Er ENOTCONN
@@ -375,3 +381,14 @@
.Fx 11
implementation was written by
.An Gleb Smirnoff Aq Mt glebius@FreeBSD.org .
+.Sh BUGS
+The
+.Fn sendfile
+system call will not fail, i.e., return
+.Dv -1
+and set
+.Va errno
+to
+.Er EFAULT ,
+if provided an invalid address for
+.Fa sbytes .
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 8:12 AM (15 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15587310
Default Alt Text
D19150.id53806.diff (1 KB)
Attached To
Mode
D19150: MFC r339343,r343444:
Attached
Detach File
Event Timeline
Log In to Comment