(fd: BorrowedFd<'_>)
| 100 | |
| 101 | #[inline] |
| 102 | pub(crate) fn fcntl_getpipe_size(fd: BorrowedFd<'_>) -> io::Result<usize> { |
| 103 | #[cfg(target_pointer_width = "32")] |
| 104 | unsafe { |
| 105 | ret_usize(syscall_readonly!(__NR_fcntl64, fd, c_uint(F_GETPIPE_SZ))) |
| 106 | } |
| 107 | #[cfg(target_pointer_width = "64")] |
| 108 | unsafe { |
| 109 | ret_usize(syscall_readonly!(__NR_fcntl, fd, c_uint(F_GETPIPE_SZ))) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | #[inline] |
| 114 | pub(crate) fn fcntl_setpipe_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<usize> { |
nothing calls this directly
no test coverage detected