HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)

s
sendfile(2) sendfile(2)
[EAGAIN] Nonblocking I/O is enabled using the
O_NONBLOCK flag with fcntl(), and the
requested operation would block.
[EWOULDBLOCK] The socket is marked non-blocking and the requested operation would block.
[ENOMEM] No memory is available in the system to perform the operation.
[EOPNOTSUPP] The socket is not a TCP socket.
[EOVERFLOW] An application has opened a large file (see
open(2)) and is trying to use sendfile
without having been compiled with the _FILE_OFFSET_SIZE=64 and
_LARGEFILE_SOURCE/_LARGEFILE64_SOURCE compile flags. This operation is
not allowed because the return value, offset, and nbytes are not 64-bit values and may
overflow.
SEE ALSO
connect(2), send(2), sendfile64(2), shutdown(2), socket(2), write(2), thread_safety(5), tcp(7P).
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 2323