zig/lib/std/fs
Pat Tullmann 138d30bb47 wasi: fix wasm-wasi-musl constants
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 the
wasi-musl source has lots of unused, different definitions of these
constants).

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.
2025-02-09 09:08:11 +01:00
..
AtomicFile.zig extract std.posix from std.os 2024-03-19 11:45:09 -07:00
Dir.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
File.zig std.fs.File: limit initial_cap according to max_bytes in readToEndAllocOptions 2025-01-30 16:42:15 +01:00
get_app_data_dir.zig Fix handling of empty XDG environment variables 2024-08-19 23:30:14 -07:00
path.zig std: add fs.path.fmtJoin 2025-01-25 04:48:00 +00:00
test.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
wasi.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00