DoxigAlpha

exit

Function parameters

Parameters

#
status:u8

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 exit(status: u8) noreturn {
    if (status == 0) {
        exits(null);
    } else {
        // TODO plan9 does not have exit codes. You either exit with 0 or a string
        const arr: [1:0]u8 = .{status};
        exits(&arr);
    }
}