diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-02 15:29:24 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-02 15:29:24 +0200 |
| commit | 4e18e1b19192ceaffcda33ddb3ddfcc1e041f4f3 (patch) | |
| tree | 43b28861572e5605bb14a30683db751915ab59ca /core/sys/wasm | |
| parent | 6f1cc8071c3ff49c5431cc8ad078d12883f91545 (diff) | |
wasi: make `os.open` work with absolute paths
Diffstat (limited to 'core/sys/wasm')
| -rw-r--r-- | core/sys/wasm/wasi/wasi_api.odin | 4 |
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. |