aboutsummaryrefslogtreecommitdiff
path: root/core/sys/wasm
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-07-02 15:29:24 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-07-02 15:29:24 +0200
commit4e18e1b19192ceaffcda33ddb3ddfcc1e041f4f3 (patch)
tree43b28861572e5605bb14a30683db751915ab59ca /core/sys/wasm
parent6f1cc8071c3ff49c5431cc8ad078d12883f91545 (diff)
wasi: make `os.open` work with absolute paths
Diffstat (limited to 'core/sys/wasm')
-rw-r--r--core/sys/wasm/wasi/wasi_api.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/wasm/wasi/wasi_api.odin b/core/sys/wasm/wasi/wasi_api.odin
index e9ceb4667..22abd8dc4 100644
--- a/core/sys/wasm/wasi/wasi_api.odin
+++ b/core/sys/wasm/wasi/wasi_api.odin
@@ -962,7 +962,7 @@ prestat_dir_t :: struct {
}
prestat_t :: struct {
- tag: u8,
+ tag: preopentype_t,
using u: struct {
dir: prestat_dir_t,
},
@@ -1158,7 +1158,7 @@ foreign wasi {
/**
* A buffer into which to write the preopened directory name.
*/
- path: string,
+ path: []byte,
) -> errno_t ---
/**
* Create a directory.