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

12

/freebsd-11-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-11-stable/usr.bin/tip/tip/
H A Dcmdtab.c48 { '>', NORM, "send file to remote host", sendfile },
H A Dtip.h336 void sendfile(int);
H A Dcmds.c273 sendfile(int c) function
300 * used by sendfile() and cu_put()
/freebsd-11-stable/lib/libc/tests/sys/
H A Dsendfile_test.c206 * 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 Dapr_arch_networkio.h80 #include <sys/sendfile.h>
/freebsd-11-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-11-stable/sys/kern/
H A Dcapabilities.conf579 sendfile
H A Dkern_sendfile.c66 * 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 Dinit_sysent.c384 { 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 Dlinux32_dummy.c78 DUMMY(sendfile); variable
/freebsd-11-stable/sys/i386/linux/
H A Dlinux_dummy.c81 DUMMY(sendfile); /* different semantics */ variable
/freebsd-11-stable/sys/amd64/linux/
H A Dlinux_dummy.c64 DUMMY(sendfile); variable
/freebsd-11-stable/sys/sys/
H A Dsyscall.mk255 sendfile.o \
H A Dsocket.h591 * 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 Dhttpd.c154 if (sendfile(fd, sock, 0, 0, &sf_hdtr, NULL, 0) < 0)
155 warn("sendfile");
/freebsd-11-stable/lib/libc/include/
H A Dun-namespace.h232 #undef sendfile
H A Dnamespace.h259 #define sendfile _sendfile
/freebsd-11-stable/contrib/ofed/librdmacm/
H A Dpreload.c89 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 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-11-stable/lib/libc/sys/
H A DMakefile.inc278 sendfile.2 \
/freebsd-11-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);
/freebsd-11-stable/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp31 #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 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) {

Completed in 409 milliseconds

12