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

Function ret_discarded_fd

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

Source from the content-addressed store, hash-verified

1025/// returns a file descriptor.
1026#[inline]
1027pub(super) unsafe fn ret_discarded_fd(raw: RetReg<R0>) -> io::Result<()> {
1028 let _raw_fd = try_decode_raw_fd(raw)?;
1029 Ok(())
1030}
1031
1032/// Convert a `usize` returned from a syscall that effectively returns a
1033/// `*mut c_void` on success.

Callers 2

dup2Function · 0.50
dup3Function · 0.50

Calls 1

try_decode_raw_fdFunction · 0.85

Tested by

no test coverage detected