zig/lib/std/fs
Archit Gupta a916bc7fdd std.fs.File: Fix metadata error check on Linux
On Linux, File.metadata calls the statx syscall directly. As such, the
return value is the error code. Previously, it handled the error with
`posix.errno`, which when libc is linked, treats the return value as a
value set to -1 if there is an error with the error code in errno. If
libc wasn't linked, it would be handled correctly.

In the Linux with libc linked case, this would cause the error result to
always be treated as success (err val != -1), even when an error
occurred.
2024-10-31 14:02:42 +01:00
..
AtomicFile.zig extract std.posix from std.os 2024-03-19 11:45:09 -07:00
Dir.zig fix compilation errors for fs and fs.Dir (#21643) 2024-10-17 01:08:58 +02:00
File.zig std.fs.File: Fix metadata error check on Linux 2024-10-31 14:02:42 +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: promote tests to doctests 2024-03-21 14:11:46 -07:00
test.zig std.os.windows.ReadFile: handle ERROR_LOCK_VIOLATION 2024-10-05 00:36:49 -07:00
wasi.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00