diff --git a/man2/sendfile.2 b/man2/sendfile.2 index 93cf7e1ba..5b1e7db8e 100644 --- a/man2/sendfile.2 +++ b/man2/sendfile.2 @@ -136,7 +136,10 @@ Bad address. Descriptor is not valid or locked, or an .BR mmap (2)-like operation is not available for -.IR in_fd . +.IR in_fd , +or +.I count +is negative. .TP .B EINVAL .I out_fd @@ -153,6 +156,16 @@ Unspecified error while reading from .B ENOMEM Insufficient memory to read from .IR in_fd . +.TP +.B EOVERFLOW +.I count +is too large, the operation would result in exceeding the maximum size of either +the input file or the output file. +.TP +.B ESPIPE +.I offset +is not NULL but the input file is not +.BR seek (2)-able. .SH VERSIONS .BR sendfile () first appeared in Linux 2.2.