Lines Matching refs:in_fd

12 /// Copy up to `count` bytes to `out_fd` from `in_fd` starting at `offset`.
16 /// If `offset` is `None`, `sendfile` will begin reading at the current offset of `in_fd`and will
17 /// update the offset of `in_fd`. If `offset` is `Some`, `sendfile` will begin at the specified
18 /// offset and will not update the offset of `in_fd`. Instead, it will mutate `offset` to point to
21 /// `in_fd` must support `mmap`-like operations and therefore cannot be a socket.
28 in_fd: RawFd,
35 let ret = unsafe { libc::sendfile(out_fd, in_fd, offset, count) };
39 /// Copy up to `count` bytes to `out_fd` from `in_fd` starting at `offset`.
43 /// If `offset` is `None`, `sendfile` will begin reading at the current offset of `in_fd`and will
44 /// update the offset of `in_fd`. If `offset` is `Some`, `sendfile` will begin at the specified
45 /// offset and will not update the offset of `in_fd`. Instead, it will mutate `offset` to point to
48 /// `in_fd` must support `mmap`-like operations and therefore cannot be a socket.
55 in_fd: RawFd,
62 let ret = unsafe { libc::sendfile64(out_fd, in_fd, offset, count) };
134 /// Read up to `count` bytes from `in_fd` starting at `offset` and write to `out_sock`.
139 /// `in_fd` must describe a regular file or shared memory object. `out_sock` must describe a
145 /// If `count` is `None` or 0, bytes will be read from `in_fd` until reaching the end of
149 /// after the data read from `in_fd`, respectively. The length of headers and trailers sent
160 in_fd: RawFd,
178 libc::sendfile(in_fd,
189 /// Read up to `count` bytes from `in_fd` starting at `offset` and write to `out_sock`.
194 /// `in_fd` must describe a regular file. `out_sock` must describe a stream socket.
199 /// If `count` is `None` or 0, bytes will be read from `in_fd` until reaching the end of
203 /// after the data read from `in_fd`, respectively. The length of headers and trailers sent
210 in_fd: RawFd,
221 libc::sendfile(in_fd,
232 /// Read bytes from `in_fd` starting at `offset` and write up to `count` bytes to
238 /// `in_fd` must describe a regular file. `out_sock` must describe a stream socket.
243 /// If `count` is `None` or 0, bytes will be read from `in_fd` until reaching the end of
247 /// the data read from `in_fd`, respectively. The length of headers and trailers sent is
256 in_fd: RawFd,
267 libc::sendfile(in_fd,