init
Function parameters
Parameters
- r:usize
Ported from /sys/include/ape/errno.h
Types
Gets whatever the last errstr was
Functions
= 0
Values
- STDIN_FILENO
- = 0
- PATH_MAX
- = 1023
- ERRMAX
- = 128
Source
Implementation
pub fn init(r: usize) E {
const signed_r: isize = @bitCast(r);
const int = if (signed_r > -4096 and signed_r < 0) -signed_r else 0;
return @enumFromInt(int);
}