There's not even any such syscall as "seek". (There is an "lseek", but it's not correct here either.) The do_sendfile function in fs/read_write.c tests for FMODE_PREAD before erroring with -ESPIPE, so it's actually pread() that's required to work to use an offset. --- man2/sendfile.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/sendfile.2 b/man2/sendfile.2 index 4f85fdb..f316319 100644 --- a/man2/sendfile.2 +++ b/man2/sendfile.2 @@ -165,7 +165,7 @@ the input file or the output file. .B ESPIPE .I offset is not NULL but the input file is not -.BR seek (2)-able. +.BR pread (2)-able. .SH VERSIONS .BR sendfile () first appeared in Linux 2.2. -- 2.7.4