PollDescription :: struct {
fd: u64
in_events: PollEvent
out_events: PollEvent
}
DirectoryData :: #distinct u64
FileData :: #distinct i64
ProcessData :: #distinct u64
SocketData :: #distinct i32
__args :: (allocator: Allocator) -> [] [&] u8
__args_get :: (argv: &&u8, arg_buf: &u8) -> void
__args_sizes_get :: (argc: &i32, arg_buf_size: &i32) -> void
__chdir :: (path: [] u8) -> bool
__exit :: (status: i32) -> void
__file_get_standard :: (fd: i32, out: &FileData) -> bool
__file_open :: (path: [] u8, mode: OpenMode) -> (FileData, FileError)
__futex_wait :: (addr: rawptr, expected: i32, timeout: i32) -> i32
__futex_wake :: (addr: rawptr, maximum: i32) -> i32
__get_all_env :: () -> [] Pair([] u8, [] u8)
__get_env :: (key: [] u8) -> ? [] u8
__kill_thread :: (id: i32) -> i32
__lookup_env :: (key: [] u8, buf: [] u8) -> i32
__net_resolve :: (host: [] u8, port: u16, out_addrs: [] ResolveResult) -> i32
__net_sock_accept :: (s: SocketData, out: &SocketAddress) -> Result(SocketData, Error)
__net_sock_bind :: (s: SocketData, addr: &SocketAddress) -> bool
__net_sock_close :: (s: SocketData) -> void
__net_sock_connect :: (s: SocketData, addr: &SocketAddress) -> Error
__net_sock_create :: (af: SocketFamily, type: SocketType, proto: SocketProto) -> Result(SocketData, Error)
__net_sock_listen :: (s: SocketData, backlog: i32) -> bool
__net_sock_opt_flag :: (s: SocketData, sockopt: SocketOption, flag: bool) -> bool
__net_sock_opt_size :: (s: SocketData, sockopt: SocketOption, size: i64) -> bool
__net_sock_opt_time :: (s: SocketData, sockopt: SocketOption, time: ? u64) -> bool
__net_sock_recv :: (s: SocketData, buf: [] u8) -> Result(i32, Error)
__net_sock_recv_from :: (s: SocketData, buf: [] u8, out: &SocketAddress) -> Result(i32, Error)
__net_sock_send :: (s: SocketData, buf: [] u8) -> Result(i32, Error)
__net_sock_send_to :: (s: SocketData, buf: [] u8, addr: &SocketAddress) -> Result(i32, Error)
__net_sock_shutdown :: (s: SocketData, how: SocketShutdown) -> Error
__net_sock_status :: (s: SocketData) -> SocketStatus
__output_error :: (s: [] u8) -> u32
__output_string :: (s: [] u8) -> u32
__poll :: (fds: [] PollDescription, timeout: i32) -> void
__process_destroy :: (handle: ProcessData) -> void
__process_kill :: (handle: ProcessData) -> bool
__process_read :: (handle: ProcessData, buffer: [] u8) -> i32
__process_spawn :: (path: [] u8, args: [] [] u8, env: [&] cptr(u8), opts: &ProcessSpawnOpts) -> ProcessData
__process_wait :: (handle: ProcessData) -> ProcessResult
__process_write :: (handle: ProcessData, buffer: [] u8) -> i32
__random_get :: (buf: [] u8) -> void
__sleep :: (milliseconds: i32) -> void
__spawn_thread :: (id: i32, tls_base: rawptr, stack_base: rawptr, func: (rawptr) -> void, data: rawptr) -> bool
__tty_get :: (state: &TTY_State) -> void
__tty_set :: (state: &TTY_State) -> bool