| ... | ... | @@ -1834,6 +1834,7 @@ pub fn fstat(fd: fd_t) FStatError!Stat { |
| 1834 | 1834 | if (darwin.is_the_target) { |
| 1835 | 1835 | switch (darwin.getErrno(darwin.@"fstat$INODE64"(fd, &stat))) { |
| 1836 | 1836 | 0 => return stat, |
| 1837 | EINVAL => unreachable, |
| 1837 | 1838 | EBADF => unreachable, // Always a race condition. |
| 1838 | 1839 | ENOMEM => return error.SystemResources, |
| 1839 | 1840 | else => |err| return unexpectedErrno(err), |
| ... | ... | @@ -1842,6 +1843,7 @@ pub fn fstat(fd: fd_t) FStatError!Stat { |
| 1842 | 1843 | |
| 1843 | 1844 | switch (errno(system.fstat(fd, &stat))) { |
| 1844 | 1845 | 0 => return stat, |
| 1846 | EINVAL => unreachable, |
| 1845 | 1847 | EBADF => unreachable, // Always a race condition. |
| 1846 | 1848 | ENOMEM => return error.SystemResources, |
| 1847 | 1849 | else => |err| return unexpectedErrno(err), |