rustix::backend::io::errno

Function try_decode_c_int

Source
pub(in backend) fn try_decode_c_int<Num: RetNumber>(
    raw: RetReg<Num>,
) -> Result<c_int>
Expand description

Check for an error from the result of a syscall which encodes a c::c_int on success.