aboutsummaryrefslogtreecommitdiff
path: root/std/os/index.zig
diff options
context:
space:
mode:
authorhellerve <veit@veitheller.de>2018-03-29 10:23:44 +0200
committerhellerve <veit@veitheller.de>2018-03-29 10:23:44 +0200
commit7e951e504302dc2a7b0efa3e2ea0dcde5524ac60 (patch)
tree0b825544563b4b1aa36210f16b214bb1a3a3d134 /std/os/index.zig
parentf5b43ada469c94ba4968898a7102d27f5c8188f2 (diff)
downloadzig-7e951e504302dc2a7b0efa3e2ea0dcde5524ac60.tar.gz
zig-7e951e504302dc2a7b0efa3e2ea0dcde5524ac60.zip
st/os: address @andrewrk concerns
Diffstat (limited to 'std/os/index.zig')
-rw-r--r--std/os/index.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/std/os/index.zig b/std/os/index.zig
index eb753db9b7..d8e2fd7009 100644
--- a/std/os/index.zig
+++ b/std/os/index.zig
@@ -1134,7 +1134,7 @@ pub const Dir = struct {
SymLink,
File,
UnixDomainSocket,
- Wht, // TODO wtf is this
+ Whiteout,
Unknown,
};
};
@@ -1223,7 +1223,7 @@ pub const Dir = struct {
posix.DT_LNK => Entry.Kind.SymLink,
posix.DT_REG => Entry.Kind.File,
posix.DT_SOCK => Entry.Kind.UnixDomainSocket,
- posix.DT_WHT => Entry.Kind.Wht,
+ posix.DT_WHT => Entry.Kind.Whiteout,
else => Entry.Kind.Unknown,
};
return Entry {
@@ -1759,11 +1759,12 @@ test "std.os" {
_ = @import("linux/index.zig");
_ = @import("path.zig");
_ = @import("windows/index.zig");
+ _ = @import("test.zig");
}
// TODO make this a build variable that you can set
-const unexpected_error_tracing = true;
+const unexpected_error_tracing = false;
/// Call this when you made a syscall or something that sets errno
/// and you get an unexpected error.