Lines Matching refs:wr
24 let (rd, wr) = pipe().unwrap(); in test_sendfile_linux()
26 let res = sendfile(wr, tmp.as_raw_fd(), Some(&mut offset), 2).unwrap(); in test_sendfile_linux()
36 close(wr).unwrap(); in test_sendfile_linux()
46 let (rd, wr) = pipe().unwrap(); in test_sendfile64_linux()
48 let res = sendfile64(wr, tmp.as_raw_fd(), Some(&mut offset), 2).unwrap(); in test_sendfile64_linux()
58 close(wr).unwrap(); in test_sendfile64_linux()
82 let (mut rd, wr) = UnixStream::pair().unwrap(); in test_sendfile_freebsd()
87 wr.as_raw_fd(), in test_sendfile_freebsd()
96 wr.shutdown(Shutdown::Both).unwrap(); in test_sendfile_freebsd()
133 let (mut rd, wr) = UnixStream::pair().unwrap(); in test_sendfile_dragonfly()
138 wr.as_raw_fd(), in test_sendfile_dragonfly()
145 wr.shutdown(Shutdown::Both).unwrap(); in test_sendfile_dragonfly()
182 let (mut rd, wr) = UnixStream::pair().unwrap(); in test_sendfile_darwin()
187 wr.as_raw_fd(), in test_sendfile_darwin()
194 wr.shutdown(Shutdown::Both).unwrap(); in test_sendfile_darwin()