pub fn errno(r: usize) E
Get the errno from a syscall return value. SUCCESS means no error.
r: usize
100 101 102 103 104
pub fn errno(r: usize) E { const signed_r: isize = @bitCast(r); const int = if (signed_r > -4096 and signed_r < 0) -signed_r else 0; return @fromBackingInt(@intCast(int)); }
Get the errno from a syscall return value. SUCCESS means no error.