authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-08 20:02:17-07:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-09 11:20:42+02:00
loga5cfa3db3aa6a9f649ef19fc6be35cf27208d06b
tree86ee1d3e3be2d0190402b2fe9b413fdc129e5f94
parent32bf1fbf46e0f5bc27e5ce260ffa8c55ab396654

std.os: handle ENOENT for fnctl on macos


1 files changed, 1 insertions(+), 0 deletions(-)

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