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:
Michael Kerrisk 2011-09-11 19:29:04 +02:00
parent c8a58c6aa0
commit bb0fed2e8a
1 changed files with 9 additions and 9 deletions

View File

@ -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),