From 33cf6d369ba4c427e17ba3ec4739259c3c6c8d0d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 21 Nov 2010 07:10:52 +0100 Subject: [PATCH] sendfile.2: Add notes on sendfile64() Signed-off-by: Michael Kerrisk --- man2/sendfile.2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/man2/sendfile.2 b/man2/sendfile.2 index 12d4d3c7c..df6211403 100644 --- a/man2/sendfile.2 +++ b/man2/sendfile.2 @@ -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),