Give details on what will happen if the `offset' argument
to sendfile(2) falls beyond the end of file. Touch .Dd. PR: bin/72649 (in the audit trail) MFC after: 1 week
This commit is contained in:
parent
7c5efe3671
commit
fc5cfaae79
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd November 5, 1998
|
.Dd October 16, 2004
|
||||||
.Dt SENDFILE 2
|
.Dt SENDFILE 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -51,6 +51,10 @@ out a stream socket specified by descriptor
|
|||||||
The
|
The
|
||||||
.Fa offset
|
.Fa offset
|
||||||
argument specifies where to begin in the file.
|
argument specifies where to begin in the file.
|
||||||
|
Should
|
||||||
|
.Fa offset
|
||||||
|
fall beyond the end of file, the system will return
|
||||||
|
success and report 0 bytes sent as described below.
|
||||||
The
|
The
|
||||||
.Fa nbytes
|
.Fa nbytes
|
||||||
argument specifies how many bytes of the file should be sent, with 0 having the special
|
argument specifies how many bytes of the file should be sent, with 0 having the special
|
||||||
@ -209,7 +213,7 @@ is not a SOCK_STREAM type socket.
|
|||||||
The
|
The
|
||||||
.Fa offset
|
.Fa offset
|
||||||
argument
|
argument
|
||||||
is negative or out of range.
|
is invalid, i.e. negative.
|
||||||
.It Bq Er ENOTCONN
|
.It Bq Er ENOTCONN
|
||||||
The
|
The
|
||||||
.Fa s
|
.Fa s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user