Lines Matching refs:outfd
616 static int copyfd_io_poll(int infd, int peerfd, int outfd, in copyfd_io_poll() argument
679 do_write(outfd, rbuf, len); in copyfd_io_poll()
743 static int do_recvfile(int infd, int outfd) in do_recvfile() argument
752 if (write(outfd, buf, r) != r) in do_recvfile()
777 static int do_mmap(int infd, int outfd, unsigned int size, in do_mmap() argument
789 ret = spool_buf(outfd, winfo); in do_mmap()
796 ret = write(outfd, inbuf + off, rem); in do_mmap()
837 static int do_sendfile(int infd, int outfd, unsigned int count, in do_sendfile() argument
840 int ret = spool_buf(outfd, winfo); in do_sendfile()
850 r = sendfile(outfd, infd, NULL, count); in do_sendfile()
862 static int copyfd_io_mmap(int infd, int peerfd, int outfd, in copyfd_io_mmap() argument
869 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
881 err = do_recvfile(peerfd, outfd); in copyfd_io_mmap()
888 static int copyfd_io_sendfile(int infd, int peerfd, int outfd, in copyfd_io_sendfile() argument
894 err = do_recvfile(peerfd, outfd); in copyfd_io_sendfile()
906 err = do_recvfile(peerfd, outfd); in copyfd_io_sendfile()
913 static int copyfd_io(int infd, int peerfd, int outfd, bool close_peerfd, struct wstate *winfo) in copyfd_io() argument
925 ret = copyfd_io_poll(infd, peerfd, outfd, &in_closed_after_out, in copyfd_io()
933 ret = copyfd_io_mmap(infd, peerfd, outfd, file_size, in copyfd_io()
941 ret = copyfd_io_sendfile(infd, peerfd, outfd, file_size, in copyfd_io()