Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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"
)]
40
pub 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_stdin
Function · 0.50
dup2_stdout_stdout
Function · 0.50
dup2_stderr_stderr
Function · 0.50
Calls
1
as_fd
Method · 0.45
Tested by
3
dup2_stdin_stdin
Function · 0.40
dup2_stdout_stdout
Function · 0.40
dup2_stderr_stderr
Function · 0.40