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

Function ret_error

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

Source from the content-addressed store, hash-verified

895#[cfg(any(feature = "event", feature = "runtime", feature = "system"))]
896#[inline]
897pub(super) unsafe fn ret_error(raw: RetReg<R0>) -> io::Errno {
898 try_decode_error(raw)
899}
900
901/// Convert a `usize` returned from a syscall that effectively always returns
902/// `()`.

Callers 3

execveatFunction · 0.85
execveFunction · 0.85
pauseFunction · 0.85

Calls 1

try_decode_errorFunction · 0.85

Tested by

no test coverage detected