| ... | @@ -605,7 +605,7 @@ pub const Dir = struct { | ... | @@ -605,7 +605,7 @@ pub const Dir = struct { |
| 605 | .BADF => unreachable, // Dir is invalid or was opened without iteration ability | 605 | .BADF => unreachable, // Dir is invalid or was opened without iteration ability |
| 606 | .FAULT => unreachable, | 606 | .FAULT => unreachable, |
| 607 | .NOTDIR => unreachable, | 607 | .NOTDIR => unreachable, |
| 608 | .INVAL => unreachable, | 608 | .INVAL => return error.Unexpected, // Linux may in some cases return EINVAL when reading /proc/$PID/net. |
| 609 | else => |err| return os.unexpectedErrno(err), | 609 | else => |err| return os.unexpectedErrno(err), |
| 610 | } | 610 | } |
| 611 | if (rc == 0) return null; | 611 | if (rc == 0) return null; |