Commit b1082a31a5

Meghan Denny <meghan@bun.sh>
2025-05-09 05:02:17
std.os: handle ENOENT for fnctl on macos
1 parent 55acb29
Changed files (1)
lib
std
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),