DoxigAlpha

init

Function parameters

Parameters

#
r:usize

Ported from /sys/include/ape/errno.h

Types

#
E
Ported from /sys/include/ape/errno.h

Gets whatever the last errstr was

Functions

#
errstr
Gets whatever the last errstr was
brk_
Brk sets the system's idea of the lowest bss location not

= 0

Values

#
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);
}