MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / fcntl_getpipe_size

Function fcntl_getpipe_size

src/backend/linux_raw/pipe/syscalls.rs:102–111  ·  view source on GitHub ↗
(fd: BorrowedFd<'_>)

Source from the content-addressed store, hash-verified

100
101#[inline]
102pub(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]
114pub(crate) fn fcntl_setpipe_size(fd: BorrowedFd<'_>, size: usize) -> io::Result<usize> {

Callers

nothing calls this directly

Calls 1

ret_usizeFunction · 0.50

Tested by

no test coverage detected