Lines Matching refs:peerfd

616 static int copyfd_io_poll(int infd, int peerfd, int outfd,  in copyfd_io_poll()  argument
620 .fd = peerfd, in copyfd_io_poll()
625 set_nonblock(peerfd, true); in copyfd_io_poll()
654 len = read(peerfd, rbuf, rb); in copyfd_io_poll()
656 len = do_rnd_read(peerfd, rbuf, sizeof(rbuf)); in copyfd_io_poll()
695 bw = do_rnd_write(peerfd, winfo->buf + winfo->off, winfo->len); in copyfd_io_poll()
714 shut_wr(peerfd); in copyfd_io_poll()
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()
873 err = do_mmap(infd, peerfd, size, winfo); in copyfd_io_mmap()
875 err = do_mmap(infd, peerfd, size, winfo); in copyfd_io_mmap()
879 shut_wr(peerfd); 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()
898 err = do_sendfile(infd, peerfd, size, winfo); in copyfd_io_sendfile()
900 err = do_sendfile(infd, peerfd, size, winfo); in copyfd_io_sendfile()
904 shut_wr(peerfd); 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()
956 close(peerfd); in copyfd_io()