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
errno
βAn error code.
FunctionsΒ§
- try_
decode_ πc_ int - Check for an error from the result of a syscall which encodes a
c::c_int
on success. - try_
decode_ πc_ uint - 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 unconsumed
raw
value. - try_
decode_ π βraw_ fd - Check for an error from the result of a syscall which encodes a file descriptor on success.
- try_
decode_ πu64 - Check for an error from the result of a syscall which encodes a
u64
on success. - try_
decode_ πusize - 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 unconsumed
raw
value. - try_
decode_ πvoid_ star - Check for an error from the result of a syscall which encodes a
*mut c_void
on success.