| ... | @@ -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 what | 124 | // 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), |