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

Function ret_owned_fd

src/backend/linux_raw/conv.rs:1012–1015  ·  view source on GitHub ↗
(raw: RetReg<R0>)

Source from the content-addressed store, hash-verified

1010/// returns an owned file descriptor.
1011#[inline]
1012pub(super) unsafe fn ret_owned_fd(raw: RetReg<R0>) -> io::Result<OwnedFd> {
1013 let raw_fd = try_decode_raw_fd(raw)?;
1014 Ok(crate::backend::fd::OwnedFd::from_raw_fd(raw_fd))
1015}
1016
1017/// Convert the return value of `dup2` and `dup3`.
1018///

Callers 15

fsopenFunction · 0.50
fsmountFunction · 0.50
open_treeFunction · 0.50
fspickFunction · 0.50
dupFunction · 0.50
fcntl_dupfd_cloexecFunction · 0.50
socketFunction · 0.50
socket_withFunction · 0.50
acceptFunction · 0.50
accept_withFunction · 0.50
acceptfromFunction · 0.50
acceptfrom_withFunction · 0.50

Calls 1

try_decode_raw_fdFunction · 0.85

Tested by

no test coverage detected