/freebsd-11-stable/tools/regression/sockets/sendfile/ |
H A D | Makefile | 5 PROG= sendfile
|
H A D | sendfile.c | 49 * 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-11-stable/usr.bin/tip/tip/ |
H A D | cmdtab.c | 48 { '>', NORM, "send file to remote host", sendfile },
|
H A D | tip.h | 336 void sendfile(int);
|
H A D | cmds.c | 273 sendfile(int c) function 300 * used by sendfile() and cu_put()
|
/freebsd-11-stable/lib/libc/tests/sys/ |
H A D | sendfile_test.c | 206 * This function is a helper routine for taking data being sent by `sendfile` via 279 * NB: `nbytes` == 0 has special connotations given the sendfile(2) API 300 * Per sendfile(2), "send the whole file" (paraphrased). This means 362 error = sendfile(fd, client_sock, offset, nbytes, NULL, NULL, 364 ATF_REQUIRE_EQ_MSG(0, error, "sendfile failed: %s", strerror(errno)); 440 error = sendfile(fd, client_sock, offset, nbytes, NULL, NULL, 442 ATF_REQUIRE_EQ_MSG(0, error, "sendfile failed: %s", strerror(errno)); 489 error = sendfile(fd, client_sock, 0, 0, NULL, NULL, SF_FLAGS(0, 0)); 600 error = sendfile(fd, client_sock, offset, nbytes, NULL, NULL, 602 ATF_CHECK_EQ_MSG(error, 0, "sendfile testcas [all...] |
/freebsd-11-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_networkio.h | 80 #include <sys/sendfile.h>
|
/freebsd-11-stable/contrib/apr/network_io/unix/ |
H A D | sendrecv.c | 25 /* 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-11-stable/sys/kern/ |
H A D | capabilities.conf | 579 sendfile
|
H A D | kern_sendfile.c | 66 * Structure describing a single sendfile(2) I/O, which may consist of 119 NULL, 0, sfstat_sysctl, "I", "sendfile statistics"); 559 mtx_init(&sfs->mtx, "sendfile", NULL, MTX_DEF); 560 cv_init(&sfs->cv, "sendfile"); 738 * Get a sendfile buf. When allocating the 904 KASSERT(sfs->count == 0, ("sendfile sync still busy")); 917 sendfile(struct thread *td, struct sendfile_args *uap, int compat) function 970 * sendfile(2) can start at any offset within a file so we require 992 * sendfile(2) 994 * int sendfile(in [all...] |
H A D | init_sysent.c | 384 { compat4(AS(freebsd4_sendfile_args),sendfile), AUE_SENDFILE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 336 = freebsd4 sendfile */ 441 { AS(sendfile_args), (sy_call_t *)sys_sendfile, AUE_SENDFILE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 393 = sendfile */
|
/freebsd-11-stable/sys/amd64/linux32/ |
H A D | linux32_dummy.c | 78 DUMMY(sendfile); variable
|
/freebsd-11-stable/sys/i386/linux/ |
H A D | linux_dummy.c | 81 DUMMY(sendfile); /* different semantics */ variable
|
/freebsd-11-stable/sys/amd64/linux/ |
H A D | linux_dummy.c | 64 DUMMY(sendfile); variable
|
/freebsd-11-stable/sys/sys/ |
H A D | syscall.mk | 255 sendfile.o \
|
H A D | socket.h | 591 * sendfile(2) header/trailer struct 652 int sendfile(int, int, off_t, size_t, struct sf_hdtr *, off_t *, int);
|
/freebsd-11-stable/tools/tools/netrate/httpd/ |
H A D | httpd.c | 154 if (sendfile(fd, sock, 0, 0, &sf_hdtr, NULL, 0) < 0) 155 warn("sendfile");
|
/freebsd-11-stable/lib/libc/include/ |
H A D | un-namespace.h | 232 #undef sendfile
|
H A D | namespace.h | 259 #define sendfile _sendfile
|
/freebsd-11-stable/contrib/ofed/librdmacm/ |
H A D | preload.c | 89 ssize_t (*sendfile)(int out_fd, int in_fd, off_t *offset, size_t count); member in struct:socket_calls 410 real.sendfile = dlsym(RTLD_NEXT, "sendfile"); 1153 ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count) function 1160 return real.sendfile(fd, in_fd, offset, count);
|
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 150 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-11-stable/lib/libc/sys/ |
H A D | Makefile.inc | 278 sendfile.2 \
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | buffer.c | 66 #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);
|
/freebsd-11-stable/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | operations.cpp | 31 #include <sys/sendfile.h> 660 if ((res = ::sendfile(write_fd.fd, read_fd.fd, nullptr, count)) == -1) {
|
/freebsd-11-stable/tools/regression/security/open_to_operation/ |
H A D | open_to_operation.c | 69 * 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) {
|