Skip to content

sys

Functions for interacting with the underlying operating system. syscall is the magic sledgehammer, since Johann's pretty thin on wrappers.

exit

pub fn exit(int status);

Terminate the process, with the given exit status.

panic

pub fn panic(int status, char* buf, int nbytes);

Print a character buffer to STDERR and terminate processing, as if by exit.

syscall

pub fn syscall(int number);

Make an arbitrary system call, by number. All additional arguments passed will be moved forward one "slot", so the second argument passed to syscall will be the first argument passed to the kernel.