mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
* wasi: change URL to canon WASI-core.md * wasi: import args_get and args_sizes_get * wasi: Implement argsAlloc and argsFree * test return value for wasi arg syscalls * wasi: return unexpectedErrorPosix in argsAlloc * wasi: Add TODO for ArgIterator
21 lines
642 B
Zig
21 lines
642 B
Zig
pub const errno_t = u16;
|
|
pub const exitcode_t = u32;
|
|
pub const fd_t = u32;
|
|
pub const signal_t = u8;
|
|
|
|
pub const ciovec_t = extern struct {
|
|
buf: [*]const u8,
|
|
buf_len: usize,
|
|
};
|
|
|
|
pub const SIGABRT: signal_t = 6;
|
|
|
|
pub extern "wasi_unstable" fn args_get(argv: [*][*]u8, argv_buf: [*]u8) errno_t;
|
|
pub extern "wasi_unstable" fn args_sizes_get(argc: *usize, argv_buf_size: *usize) errno_t;
|
|
|
|
pub extern "wasi_unstable" fn proc_raise(sig: signal_t) errno_t;
|
|
|
|
pub extern "wasi_unstable" fn proc_exit(rval: exitcode_t) noreturn;
|
|
|
|
pub extern "wasi_unstable" fn fd_write(fd: fd_t, iovs: *const ciovec_t, iovs_len: usize, nwritten: *usize) errno_t;
|