Skip to content

Sys

Source: std/sys.mw.

Process-level helpers. exec runs a command through /bin/sh -c and is only available where the platform layer supports it.

fn exit(code: i32)
fn exec(command: *u8) -> i32

Runs a shell command and returns its exit status (-1 when unsupported).

fn panic(message: *u8)
fn assert(condition: i8, message: *u8)
fn getpid() -> i64