| ... | @@ -1134,7 +1134,7 @@ pub const Dir = struct { | ... | @@ -1134,7 +1134,7 @@ pub const Dir = struct { |
| 1134 | SymLink, | 1134 | SymLink, |
| 1135 | File, | 1135 | File, |
| 1136 | UnixDomainSocket, | 1136 | UnixDomainSocket, |
| 1137 | Wht, // TODO wtf is this | 1137 | Whiteout, |
| 1138 | Unknown, | 1138 | Unknown, |
| 1139 | }; | 1139 | }; |
| 1140 | }; | 1140 | }; |
| ... | @@ -1223,7 +1223,7 @@ pub const Dir = struct { | ... | @@ -1223,7 +1223,7 @@ pub const Dir = struct { |
| 1223 | posix.DT_LNK => Entry.Kind.SymLink, | 1223 | posix.DT_LNK => Entry.Kind.SymLink, |
| 1224 | posix.DT_REG => Entry.Kind.File, | 1224 | posix.DT_REG => Entry.Kind.File, |
| 1225 | posix.DT_SOCK => Entry.Kind.UnixDomainSocket, | 1225 | posix.DT_SOCK => Entry.Kind.UnixDomainSocket, |
| 1226 | posix.DT_WHT => Entry.Kind.Wht, | 1226 | posix.DT_WHT => Entry.Kind.Whiteout, |
| 1227 | else => Entry.Kind.Unknown, | 1227 | else => Entry.Kind.Unknown, |
| 1228 | }; | 1228 | }; |
| 1229 | return Entry { | 1229 | return Entry { |
| ... | @@ -1759,11 +1759,12 @@ test "std.os" { | ... | @@ -1759,11 +1759,12 @@ test "std.os" { |
| 1759 | _ = @import("linux/index.zig"); | 1759 | _ = @import("linux/index.zig"); |
| 1760 | _ = @import("path.zig"); | 1760 | _ = @import("path.zig"); |
| 1761 | _ = @import("windows/index.zig"); | 1761 | _ = @import("windows/index.zig"); |
| | 1762 | _ = @import("test.zig"); |
| 1762 | } | 1763 | } |
| 1763 | | 1764 | |
| 1764 | | 1765 | |
| 1765 | // TODO make this a build variable that you can set | 1766 | // TODO make this a build variable that you can set |
| 1766 | const unexpected_error_tracing = true; | 1767 | const unexpected_error_tracing = false; |
| 1767 | | 1768 | |
| 1768 | /// Call this when you made a syscall or something that sets errno | 1769 | /// Call this when you made a syscall or something that sets errno |
| 1769 | /// and you get an unexpected error. | 1770 | /// and you get an unexpected error. |