commit a5cfa3db3aa6a9f649ef19fc6be35cf27208d06b (tree)
parent 32bf1fbf46e0f5bc27e5ce260ffa8c55ab396654
Author: Meghan Denny <meghan@bun.sh>
Date: Thu, 8 May 2025 20:02:17 -0700
std.os: handle ENOENT for fnctl on macos
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/std/os.zig b/lib/std/os.zig
@@ -121,6 +121,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),