Function check_errno
pub const fn check_errno(ret: usize) -> Result<usize, i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Check return value is error or not.
Returning from the syscall, a value in the range between -4095 and -1 indicates an error, it is -errno.
§Errors
Returns errno if system call fails.