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 16:43:50+02:00
logb1082a31a5701961fbbc7cd1dfcdb7172c85e50f
treeeb7b917a99b01b68959ae3d03f5faceca694f13f
parent55acb29d68e7cb9a7585929f60c2dfb4c39a3b04
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os: handle ENOENT for fnctl on macos


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

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