authorgravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-04-30 16:35:27-05:00
committergravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-04-30 16:35:27-05:00
log8e700bf92ac1ecdd1529b98b07d84154913bfb87
treecd7032759659c6891fa7a42acd452550d693df5c
parent01365be82fb413061d052c2ecdb761d24d73125d

wasi: import environ_get and environ_sizes_get


1 files changed, 3 insertions(+), 1 deletions(-)

std/os/wasi/core.zig+3-1
...@@ -13,8 +13,10 @@ pub const SIGABRT: signal_t = 6;...@@ -13,8 +13,10 @@ pub const SIGABRT: signal_t = 6;
13pub extern "wasi_unstable" fn args_get(argv: [*][*]u8, argv_buf: [*]u8) errno_t;13pub extern "wasi_unstable" fn args_get(argv: [*][*]u8, argv_buf: [*]u8) errno_t;
14pub extern "wasi_unstable" fn args_sizes_get(argc: *usize, argv_buf_size: *usize) errno_t;14pub extern "wasi_unstable" fn args_sizes_get(argc: *usize, argv_buf_size: *usize) errno_t;
1515
16pub extern "wasi_unstable" fn proc_raise(sig: signal_t) errno_t;16pub extern "wasi_unstable" fn environ_get(environ: [*][*]u8, environ_buf: [*]u8) errno_t;
17pub extern "wasi_unstable" fn environ_sizes_get(environ_count: *usize, environ_buf_size: *usize) errno_t;
1718
19pub extern "wasi_unstable" fn proc_raise(sig: signal_t) errno_t;
18pub extern "wasi_unstable" fn proc_exit(rval: exitcode_t) noreturn;20pub extern "wasi_unstable" fn proc_exit(rval: exitcode_t) noreturn;
1921
20pub extern "wasi_unstable" fn fd_write(fd: fd_t, iovs: *const ciovec_t, iovs_len: usize, nwritten: *usize) errno_t;22pub extern "wasi_unstable" fn fd_write(fd: fd_t, iovs: *const ciovec_t, iovs_len: usize, nwritten: *usize) errno_t;