sendfile.2: Add notes on sendfile64()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-11-21 07:10:52 +01:00
parent e283e0067b
commit 33cf6d369b
1 changed files with 12 additions and 0 deletions

View File

@ -168,6 +168,18 @@ In Linux 2.4 and earlier,
could refer to a regular file, and
.BR sendfile ()
changed the current offset of that file.
The original Linux
.BR sendfile ()
system call was not designed to handle large file offsets.
Consequently, Linux 2.4 added
.BR sendfile64 (),
with a wider type for the
.I offset
argument.
The glibc
.BR sendfile ()
wrapper function transparently deals with the kernel differences.
.SH "SEE ALSO"
.BR mmap (2),
.BR open (2),