Module starnix_uapi::errors
source · Macros§
errno
returns anErrno
struct tagged with the current file name and line number.errno_from_code
returns aErr
containing anErrno
struct with the given error code and is tagged with the current file name and line number.errno_from_zxio_code
returns anErrno
struct with the given error code and is tagged with the current file name and line number.error
returns aErr
containing anErrno
struct tagged with the current file name and line number.
Structs§
Constants§
- Convert to EINTR if interrupted by a signal handler. SA_RESTART is ignored. Otherwise restart.
- Always restart, regardless of the signal handler.
- Convert to EINTR if interrupted by a signal handler without SA_RESTART enabled, otherwise restart.
- Like
ERESTARTNOHAND
, but restart by invoking a closure instead of calling the syscall implementation again.
Traits§
- An extension trait for
Result<T, Errno>
.