mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +00:00
This PR consistently maps .ACCES into AccessDenied and .PERM into PermissionDenied. AccessDenied is returned if the file mode bit (user/group/other rwx bits) disallow access (errno was `EACCES`). PermissionDenied is returned if something else denies access (errno was `EPERM`) (immutable bit, SELinux, capabilities, etc). This somewhat subtle distinction is a POSIX thing. Most of the change is updating std.posix Error Sets to contain both errors, and then propagating the pair up through caller Error Sets. Fixes #16782 |
||
|---|---|---|
| .. | ||
| Reader | ||
| bit_reader.zig | ||
| bit_writer.zig | ||
| buffered_atomic_file.zig | ||
| buffered_reader.zig | ||
| buffered_writer.zig | ||
| c_writer.zig | ||
| change_detection_stream.zig | ||
| counting_reader.zig | ||
| counting_writer.zig | ||
| find_byte_writer.zig | ||
| fixed_buffer_stream.zig | ||
| limited_reader.zig | ||
| multi_writer.zig | ||
| Reader.zig | ||
| seekable_stream.zig | ||
| stream_source.zig | ||
| test.zig | ||
| tty.zig | ||
| Writer.zig | ||