| ... | @@ -5098,6 +5098,7 @@ pub fn getFdPath(fd: fd_t, out_buffer: *[MAX_PATH_BYTES]u8) RealPathError![]u8 { | ... | @@ -5098,6 +5098,7 @@ pub fn getFdPath(fd: fd_t, out_buffer: *[MAX_PATH_BYTES]u8) RealPathError![]u8 { |
| 5098 | switch (errno(system.fcntl(fd, F.GETPATH, out_buffer))) { | 5098 | switch (errno(system.fcntl(fd, F.GETPATH, out_buffer))) { |
| 5099 | .SUCCESS => {}, | 5099 | .SUCCESS => {}, |
| 5100 | .BADF => return error.FileNotFound, | 5100 | .BADF => return error.FileNotFound, |
| | 5101 | .NOSPC => return error.NameTooLong, |
| 5101 | // TODO man pages for fcntl on macOS don't really tell you what | 5102 | // TODO man pages for fcntl on macOS don't really tell you what |
| 5102 | // errno values to expect when command is F.GETPATH... | 5103 | // errno values to expect when command is F.GETPATH... |
| 5103 | else => |err| return unexpectedErrno(err), | 5104 | else => |err| return unexpectedErrno(err), |