mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.os: handle ENOENT for fnctl on macos
This commit is contained in:
parent
32bf1fbf46
commit
a5cfa3db3a
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue