wasi: make os.open work with absolute paths

This commit is contained in:
Laytan Laats
2024-07-02 15:29:24 +02:00
parent 6f1cc8071c
commit 4e18e1b191
2 changed files with 115 additions and 3 deletions

View File

@@ -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.