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