Packages

builtin
cbindgen
core
core.alloc
core.alloc.arena
core.alloc.atomic
core.alloc.debug
core.alloc.fixed
core.alloc.gc
core.alloc.heap
core.alloc.log
core.alloc.memwatch
core.alloc.pool
core.alloc.ring
core.arg_parse
core.array
core.avl_tree
core.bucket_array
core.conv
core.crypto
core.crypto.keys
core.doc
core.encoding
core.encoding.base64
core.encoding.csv
core.encoding.hex
core.encoding.json
core.encoding.kdl
core.encoding.osad
core.encoding.utf8
core.encoding.xml
core.hash
core.hash.md5
core.hash.sha1
core.hash.sha256
core.heap
core.intrinsics
core.intrinsics.atomics
core.intrinsics.onyx
core.intrinsics.types
core.intrinsics.wasm
core.io
core.io.binary
core.iter
core.js
core.list
core.map
core.math
core.memory
core.misc
core.net
core.os
core.random
core.set
core.slice
core.string
core.sync
core.test
core.thread
core.time
main
runtime
runtime.info
runtime.platform
runtime.vars
simd

package runtime.platform

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