This list is unstable and subject to change between versions of MOROS.
pub fn exit(code: usize) -> usize
pub fn spawn(path: &str) -> isize
pub fn read(handle: usize, buf: &mut [u8]) -> isize
pub fn write(handle: usize, buf: &mut [u8]) -> isize
pub fn open(path: &str, flags: usize) -> isize
pub fn close(handle: usize)
pub fn info(path: &str, info: &mut FileInfo) -> isize
pub fn dup(old_handle: usize, new_handle: usize) -> isize
pub fn delete(path: &str) -> isize
pub fn stop(code: usize)
The system will reboot with 0xCAFE
and halt with 0xDEAD
.
pub fn sleep(seconds: f64)
pub fn poll(list: &[(usize, IO)]) -> isize
pub fn connect(handle, usize, addr: &str, port: u16) -> isize
pub fn listen(handle, usize, port: u16) -> isize
pub fn accept(handle, usize, addr: &str) -> isize
pub fn alloc(size: usize, align: usize) -> *mut u8
pub fn free(ptr: *mut u8, size: usize, align: usize)