Searched refs:sendfile (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-10-stable/tools/regression/sockets/sendfile/
H A DMakefile5 PROG= sendfile
H A Dsendfile.c49 * Simple regression test for sendfile. Creates a file sized at four pages
315 if (sendfile(file_fd, connect_socket, test.offset, test.length,
319 FAIL_ERR("sendfile")
466 snprintf(path, sizeof(path), "sendfile.XXXXXXXXXXXX");
476 FAIL("usage: sendfile [path]");
/freebsd-10-stable/usr.bin/tip/tip/
H A Dcmdtab.c48 { '>', NORM, "send file to remote host", sendfile },
H A Dtip.h332 void sendfile(int);
H A Dcmds.c273 sendfile(int c) function
300 * used by sendfile() and cu_put()
/freebsd-10-stable/contrib/apr/include/arch/unix/
H A Dapr_arch_networkio.h80 #include <sys/sendfile.h>
/freebsd-10-stable/contrib/apr/network_io/unix/
H A Dsendrecv.c25 /* osreldate.h is only needed on FreeBSD for sendfile detection */
266 #define sendfile sendfile64 macro
282 /* Multiple reports have shown sendfile failing with EINVAL if
333 rv = sendfile(sock->socketdes, /* socket */
349 rv = sendfile(sock->socketdes, /* socket */
472 rv = sendfile(file->filedes, /* file to be sent */
484 /* BSD's sendfile can return -1/EAGAIN even if it
553 /* On early versions of FreeBSD sendfile, the number of bytes to send
556 * src/sys/kern/uipc_syscalls::sendfile().
583 /* We won't dare call sendfile() i
679 #define sendfile macro
[all...]
/freebsd-10-stable/sys/amd64/linux/
H A Dlinux_dummy.c48 DUMMY(sendfile); variable
/freebsd-10-stable/sys/i386/linux/
H A Dlinux_dummy.c68 DUMMY(sendfile); /* different semantics */ variable
/freebsd-10-stable/sys/amd64/linux32/
H A Dlinux32_dummy.c65 DUMMY(sendfile); variable
/freebsd-10-stable/sys/kern/
H A Dcapabilities.conf577 sendfile
H A Dinit_sysent.c372 { compat4(AS(freebsd4_sendfile_args),sendfile), AUE_SENDFILE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 336 = freebsd4 sendfile */
429 { AS(sendfile_args), (sy_call_t *)sys_sendfile, AUE_SENDFILE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 393 = sendfile */
H A Duipc_syscalls.c5 * sendfile(2) and related extensions:
118 * sendfile(2)-related variables and associated sysctls
120 static SYSCTL_NODE(_kern_ipc, OID_AUTO, sendfile, CTLFLAG_RW, 0,
121 "sendfile(2) tunables");
124 &sfreadahead, 0, "Number of sendfile(2) read-ahead MAXBSIZE blocks");
147 NULL, 0, sfstat_sysctl, "I", "sendfile statistics");
1889 * sendfile(2)
1891 * int sendfile(int fd, int s, off_t offset, size_t nbytes,
1944 * sendfile(2) can start at any offset within a file so we require
2228 mtx_init(&sfs->mtx, "sendfile", NUL
[all...]
/freebsd-10-stable/sys/sys/
H A Dsyscall.mk273 sendfile.o \
H A Dsocket.h570 * sendfile(2) header/trailer struct
616 int sendfile(int, int, off_t, size_t, struct sf_hdtr *, off_t *, int);
/freebsd-10-stable/lib/libc/include/
H A Dnamespace.h254 #define sendfile _sendfile
H A Dun-namespace.h227 #undef sendfile
/freebsd-10-stable/tools/tools/netrate/httpd/
H A Dhttpd.c154 if (sendfile(fd, sock, 0, 0, &sf_hdtr, NULL, 0) < 0)
155 warn("sendfile");
/freebsd-10-stable/usr.sbin/lpr/lpd/
H A Dprintjob.c150 static int sendfile(struct printer *_pp, int _type, char *_file,
962 switch (sendfile(pp, '\3', last+1, *last, dfcopies)) {
978 if (err == OK && sendfile(pp, '\2', file, '\0', 1) > 0) {
1002 sendfile(struct printer *pp, int type, char *file, char format, int copyreq) function
1785 * filter processing is handled in sendfile(), and that
/freebsd-10-stable/contrib/apr/include/
H A Dapr.h.in269 #define APR_HAS_SENDFILE @sendfile@
/freebsd-10-stable/lib/libc/sys/
H A DMakefile.inc287 sendfile.2 \
/freebsd-10-stable/contrib/ntp/sntp/libevent/
H A Dbuffer.c66 #include <sys/sendfile.h>
1183 /*XXX fails badly on sendfile case. */
1255 /*XXX can fail badly on sendfile case. */
1407 /* TODO(niels): deal with buffers that point to NULL like sendfile */
2466 res = sendfile(source_fd, dest_fd, chain->misalign, &len, NULL, 0);
2472 res = sendfile(source_fd, dest_fd, chain->misalign, chain->off, NULL, &len, 0);
2479 res = sendfile(dest_fd, source_fd, &offset, chain->off);
2488 res = sendfile(dest_fd, source_fd, &offset, chain->off);
H A Dconfigure12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12968 $as_echo_n "checking for library containing sendfile... " >&6; }
12982 char sendfile ();
12986 return sendfile ();
12991 for ac_lib in '' sendfile; do
13629 sys/sendfile.h \
14129 sendfile \
/freebsd-10-stable/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c69 * sendfile(2) O_RDONLY or O_RDWR on file yes
683 * sendfile() should work only on files, and only when the access mode
697 if (sendfile(fd, sv[0], 0, 1, NULL, &sent, 0) == 0) {
/freebsd-10-stable/libexec/ftpd/
H A Dftpd.c2133 err = sendfile(filefd, netfd, offset, 0,

Completed in 207 milliseconds

12