mirror of https://github.com/mkerrisk/man-pages
sendfile.2: Shift text on falling back to read()/write() to NOTES
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c8a58c6aa0
commit
bb0fed2e8a
|
@ -101,15 +101,6 @@ Since Linux 2.6.33 it can be any file.
|
|||
If it is a regular file, then
|
||||
.BR sendfile()
|
||||
changes the file offset offset appropriately.
|
||||
|
||||
Applications may wish to fall back to
|
||||
.BR read (2)/ write (2)
|
||||
in the case where
|
||||
.BR sendfile ()
|
||||
fails with
|
||||
.B EINVAL
|
||||
or
|
||||
.BR ENOSYS .
|
||||
.SH "RETURN VALUE"
|
||||
If the transfer was successful, the number of bytes written to
|
||||
.I out_fd
|
||||
|
@ -185,6 +176,15 @@ argument.
|
|||
The glibc
|
||||
.BR sendfile ()
|
||||
wrapper function transparently deals with the kernel differences.
|
||||
|
||||
Applications may wish to fall back to
|
||||
.BR read (2)/ write (2)
|
||||
in the case where
|
||||
.BR sendfile ()
|
||||
fails with
|
||||
.B EINVAL
|
||||
or
|
||||
.BR ENOSYS .
|
||||
.SH "SEE ALSO"
|
||||
.BR mmap (2),
|
||||
.BR open (2),
|
||||
|
|
Loading…
Reference in New Issue