You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zig's copy of the `SYMLINK_{NO,}FOLLOW` constants from wasi-musl was
wrong, as were the `IFIFO` and `IFSOCK` file type flags. Fix these up, and
add comments pointing to exactly where they come from (as wasi-musl has
lots of unused, different definitions of these constants).
Rename the "read" and "write" properties in the `O` struct to match the
wasm-wasi-musl header file property names (`RDONLY` and `WRONLY`), which
also matches how Zig defines these fields for other libc.
For no good reason that I can see, wasm-wasi-musl does not have the RDONLY
and WRONLY bits adjacent in its open flags. So the `ACCMODE` `u2` that
Zig uses for read/write/read-write in all the other POSIXy APIs can't be
used with the wasm-wasi open flags.
Add tests for the Zig convention that WASM preopen 3 is the current
working directory. This is true for WASM with or without libc.
Enable several fs and posix tests that are now passing (not necessarily
because of this change) on wasm targets.
Fixes#20890.
0 commit comments