Lines Matching refs:outfd
574 static int copyfd_io_poll(int infd, int peerfd, int outfd, bool *in_closed_after_out) in copyfd_io_poll() argument
637 do_write(outfd, rbuf, len); in copyfd_io_poll()
701 static int do_recvfile(int infd, int outfd) in do_recvfile() argument
710 if (write(outfd, buf, r) != r) in do_recvfile()
720 static int do_mmap(int infd, int outfd, unsigned int size) in do_mmap() argument
734 ret = write(outfd, inbuf + off, rem); in do_mmap()
775 static int do_sendfile(int infd, int outfd, unsigned int count) in do_sendfile() argument
780 r = sendfile(outfd, infd, NULL, count); in do_sendfile()
792 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument
798 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
810 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
817 static int copyfd_io_sendfile(int infd, int peerfd, int outfd, in copyfd_io_sendfile() argument
823 err = do_recvfile(peerfd, outfd); in copyfd_io_sendfile()
835 err = do_recvfile(peerfd, outfd); in copyfd_io_sendfile()
842 static int copyfd_io(int infd, int peerfd, int outfd, bool close_peerfd) in copyfd_io() argument
854 ret = copyfd_io_poll(infd, peerfd, outfd, &in_closed_after_out); in copyfd_io()
861 ret = copyfd_io_mmap(infd, peerfd, outfd, file_size, &in_closed_after_out); in copyfd_io()
868 ret = copyfd_io_sendfile(infd, peerfd, outfd, file_size, &in_closed_after_out); in copyfd_io()