Expand description
The rustix
Errno
type.
This type holds an OS error code, which conceptually corresponds to an
errno
value.
§Safety
Linux uses error codes in -4095..0
; we use rustc attributes to describe
this restricted range of values.
Structs§
errno
—An error code.
Functions§
- Check for an error from the result of a syscall which encodes a
c::c_int
on success. - Check for an error from the result of a syscall which encodes a
c::c_uint
on success. - try_
decode_ 🔒 ⚠error Check for an error from the result of a syscall which does not return on success. On success, return the unconsumedraw
value. - Check for an error from the result of a syscall which encodes a file descriptor on success.
- Check for an error from the result of a syscall which encodes a
u64
on success. - Check for an error from the result of a syscall which encodes a
usize
on success. - try_
decode_ 🔒 ⚠void Check for an error from the result of a syscall which encodes no value on success. On success, return the unconsumedraw
value. - Check for an error from the result of a syscall which encodes a
*mut c_void
on success.