aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted/libc_installation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-21 20:28:37 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-21 20:31:50 -0400
commitea1b21dbdb3d5e680b133be68d174dcc0067fa1e (patch)
tree88114bd3c7235e8b0478a1e98ddc48b25d013a95 /src-self-hosted/libc_installation.zig
parent51852d2587b931767a12d42ce39d5c191eea10ea (diff)
downloadzig-ea1b21dbdb3d5e680b133be68d174dcc0067fa1e.tar.gz
zig-ea1b21dbdb3d5e680b133be68d174dcc0067fa1e.zip
fix linux
* error.BadFd is not a valid error code. it would always be a bug to get this error code. * merge error.Io with existing error.InputOutput * merge error.PathNotFound with existing error.FileNotFound. Not all OS's support both. * add os.File.openReadC * add error.BadPathName for windows file operations with invalid characters * add os.toPosixPath to help stack allocate a null terminating byte * add some TODOs for other functions to investigate removing the allocator requirement * optimize some implementations to use the alternate functions when a null byte is already available * add a missing error.SkipZigTest * os.selfExePath uses a non-allocating API * os.selfExeDirPath uses a non-allocating API * os.path.real uses a non-allocating API * add os.path.realAlloc and os.path.realC * convert many windows syscalls to use the W versions (See #534)
Diffstat (limited to 'src-self-hosted/libc_installation.zig')
-rw-r--r--src-self-hosted/libc_installation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-self-hosted/libc_installation.zig b/src-self-hosted/libc_installation.zig
index 74167a1080..5e292ff8b2 100644
--- a/src-self-hosted/libc_installation.zig
+++ b/src-self-hosted/libc_installation.zig
@@ -453,7 +453,7 @@ fn fileExists(path: []const u8) !bool {
if (std.os.File.access(path)) |_| {
return true;
} else |err| switch (err) {
- error.FileNotFound, error.PathNotFound, error.PermissionDenied => return false,
+ error.FileNotFound, error.PermissionDenied => return false,
else => return error.FileSystem,
}
}