Lines Matching refs:sendfile
4 sendfile implementations.
22 * This file handles the OS dependent sendfile implementations.
31 #include <sys/sendfile.h>
61 * Use MSG_MORE to cork the TCP output until sendfile is called.
84 nwritten = sendfile(tofd, fromfd, &offset, total);
90 * the header, but the sendfile failed. We have to
91 * emulate the sendfile at an upper layer before we
118 * won't do proper 64-bit sendfile. JRA.
121 extern int32 sendfile (int out_fd, int in_fd, int32 *offset, uint32 count);
142 * system call sendfile at all. The upper layer catches this
153 * Use MSG_MORE to cork the TCP output until sendfile is called.
172 nwritten = sendfile(tofd, fromfd, &small_offset, small_total);
177 * the header, but the sendfile failed. We have to
178 * emulate the sendfile at an upper layer before we
199 * Solaris sendfile code written by Pierre Belanger <belanger@pobox.com>.
202 #include <sys/sendfile.h>
319 * a signal interrupt then sendfile returns the number of
328 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
397 * FreeBSD sendfile returns 0 on success, -1 on error.
403 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
494 #else /* No sendfile implementation. Return error. */
500 /* No sendfile syscall. */