zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit b1082a31a5701961fbbc7cd1dfcdb7172c85e50f (tree)
parent 55acb29d68e7cb9a7585929f60c2dfb4c39a3b04
Author: Meghan Denny <meghan@bun.sh>
Date:   Thu,  8 May 2025 20:02:17 -0700

std.os: handle ENOENT for fnctl on macos
Diffstat:
Mlib/std/os.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/std/os.zig b/lib/std/os.zig @@ -120,6 +120,7 @@ pub fn getFdPath(fd: std.posix.fd_t, out_buffer: *[max_path_bytes]u8) std.posix. .SUCCESS => {}, .BADF => return error.FileNotFound, .NOSPC => return error.NameTooLong, + .NOENT => return error.FileNotFound, // TODO man pages for fcntl on macOS don't really tell you what // errno values to expect when command is F.GETPATH... else => |err| return posix.unexpectedErrno(err),