Lines Matching refs:sendfile
4 sendfile implementations.
21 * This file handles the OS dependent sendfile implementations.
30 #include <sys/sendfile.h>
44 * Use MSG_MORE to cork the TCP output until sendfile is called.
64 nwritten = sendfile(tofd, fromfd, &offset, total);
70 * the header, but the sendfile failed. We have to
71 * emulate the sendfile at an upper layer before we
96 * won't do proper 64-bit sendfile. JRA.
99 extern int32 sendfile (int out_fd, int in_fd, int32 *offset, uint32 count);
117 * system call sendfile at all. The upper layer catches this
128 * Use MSG_MORE to cork the TCP output until sendfile is called.
147 nwritten = sendfile(tofd, fromfd, &small_offset, small_total);
152 * the header, but the sendfile failed. We have to
153 * emulate the sendfile at an upper layer before we
178 * Solaris sendfile code written by Pierre Belanger <belanger@pobox.com>.
181 #include <sys/sendfile.h>
292 * a signal interrupt then sendfile returns the number of
301 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
367 * FreeBSD sendfile returns 0 on success, -1 on error.
373 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
461 #else /* No sendfile implementation. Return error. */
465 /* No sendfile syscall. */