Function rustix::backend::io::errno::try_decode_void

source ·
pub(in backend) unsafe fn try_decode_void<Num: RetNumber>(
    raw: RetReg<Num>,
) -> Result<()>
Expand description

Check for an error from the result of a syscall which encodes no value on success. On success, return the unconsumed raw value.

§Safety

This must only be used with syscalls which return no value on success.