Skip to content

Commit 9376a6c

Browse files
nektroTobias Simetsreiter
authored andcommitted
std.os: handle ENOENT for fnctl on macos
1 parent 46d2339 commit 9376a6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/os.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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),

0 commit comments

Comments
 (0)