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

Function ret_infallible

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

Source from the content-addressed store, hash-verified

907/// always returns `()`.
908#[inline]
909pub(super) unsafe fn ret_infallible(raw: RetReg<R0>) {
910 #[cfg(debug_assertions)]
911 {
912 try_decode_void(raw).unwrap()
913 }
914 #[cfg(not(debug_assertions))]
915 drop(raw);
916}
917
918/// Convert a `usize` returned from a syscall that effectively returns a
919/// `c_int` on success.

Callers 8

unameFunction · 0.50
sysinfoFunction · 0.50
set_fsFunction · 0.50
kernel_sigpendingFunction · 0.50
getrlimitFunction · 0.50
clock_getresFunction · 0.50
clock_getres_oldFunction · 0.50
syncFunction · 0.50

Calls 1

try_decode_voidFunction · 0.85

Tested by

no test coverage detected