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

Function fcntl_getfl

src/fs/fcntl.rs:30–32  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

28#[inline]
29#[doc(alias = "F_GETFL")]
30pub fn fcntl_getfl<Fd: AsFd>(fd: Fd) -> io::Result<OFlags> {
31 backend::fs::syscalls::fcntl_getfl(fd.as_fd())
32}
33
34/// `fcntl(fd, F_SETFL, flags)`—Sets a file descriptor's status.
35///

Callers 1

test_fileFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 1

test_fileFunction · 0.40