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

Function fcntl_getfd

src/io/fcntl.rs:40–42  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

38#[inline]
39#[doc(alias = "F_GETFD")]
40pub fn fcntl_getfd<Fd: AsFd>(fd: Fd) -> io::Result<FdFlags> {
41 backend::io::syscalls::fcntl_getfd(fd.as_fd())
42}
43
44/// `fcntl(fd, F_SETFD, flags)`—Sets a file descriptor's flags.
45///

Callers 3

dup2_stdin_stdinFunction · 0.50
dup2_stdout_stdoutFunction · 0.50
dup2_stderr_stderrFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 3

dup2_stdin_stdinFunction · 0.40
dup2_stdout_stdoutFunction · 0.40
dup2_stderr_stderrFunction · 0.40