From 4e18e1b19192ceaffcda33ddb3ddfcc1e041f4f3 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Tue, 2 Jul 2024 15:29:24 +0200 Subject: wasi: make `os.open` work with absolute paths --- core/sys/wasm/wasi/wasi_api.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/sys') 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. -- cgit v1.2.3