| author | |
| committer | |
| log | d16a9b0acb14ad217849de2a59d91cd4648ac1a7 |
| tree | f098a2df827a0b7a40cecebf8cd72f2d40d9b564 |
| parent | 1a99c99ee99fa3ca43935fe7d7d0865145b82d4e |
| signature |
6 files changed, 8 insertions(+), 0 deletions(-)
lib/std/fs/File.zig+1| ... | ... | @@ -39,6 +39,7 @@ pub const OpenError = error{ |
| 39 | 39 | FileNotFound, |
| 40 | 40 | AccessDenied, |
| 41 | 41 | PipeBusy, |
| 42 | NoDevice, | |
| 42 | 43 | NameTooLong, |
| 43 | 44 | /// WASI-only; file paths must be valid UTF-8. |
| 44 | 45 | InvalidUtf8, |
lib/std/os/windows.zig+2| ... | ... | @@ -132,6 +132,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN |
| 132 | 132 | .SHARING_VIOLATION => return error.AccessDenied, |
| 133 | 133 | .ACCESS_DENIED => return error.AccessDenied, |
| 134 | 134 | .PIPE_BUSY => return error.PipeBusy, |
| 135 | .PIPE_NOT_AVAILABLE => return error.NoDevice, | |
| 135 | 136 | .OBJECT_PATH_SYNTAX_BAD => unreachable, |
| 136 | 137 | .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, |
| 137 | 138 | .FILE_IS_A_DIRECTORY => return error.IsDir, |
| ... | ... | @@ -801,6 +802,7 @@ pub fn CreateSymbolicLink( |
| 801 | 802 | error.NotDir => return error.Unexpected, |
| 802 | 803 | error.WouldBlock => return error.Unexpected, |
| 803 | 804 | error.PipeBusy => return error.Unexpected, |
| 805 | error.NoDevice => return error.Unexpected, | |
| 804 | 806 | error.AntivirusInterference => return error.Unexpected, |
| 805 | 807 | else => |e| return e, |
| 806 | 808 | }; |
lib/std/posix.zig+2| ... | ... | @@ -2946,6 +2946,7 @@ pub fn mkdiratW(dir_fd: fd_t, sub_path_w: []const u16, mode: u32) MakeDirError!v |
| 2946 | 2946 | }) catch |err| switch (err) { |
| 2947 | 2947 | error.IsDir => return error.Unexpected, |
| 2948 | 2948 | error.PipeBusy => return error.Unexpected, |
| 2949 | error.NoDevice => return error.Unexpected, | |
| 2949 | 2950 | error.WouldBlock => return error.Unexpected, |
| 2950 | 2951 | error.AntivirusInterference => return error.Unexpected, |
| 2951 | 2952 | else => |e| return e, |
| ... | ... | @@ -3040,6 +3041,7 @@ pub fn mkdirW(dir_path_w: []const u16, mode: u32) MakeDirError!void { |
| 3040 | 3041 | }) catch |err| switch (err) { |
| 3041 | 3042 | error.IsDir => return error.Unexpected, |
| 3042 | 3043 | error.PipeBusy => return error.Unexpected, |
| 3044 | error.NoDevice => return error.Unexpected, | |
| 3043 | 3045 | error.WouldBlock => return error.Unexpected, |
| 3044 | 3046 | error.AntivirusInterference => return error.Unexpected, |
| 3045 | 3047 | else => |e| return e, |
lib/std/process/Child.zig+1| ... | ... | @@ -743,6 +743,7 @@ fn spawnWindows(self: *ChildProcess) SpawnError!void { |
| 743 | 743 | }) catch |err| switch (err) { |
| 744 | 744 | error.PathAlreadyExists => return error.Unexpected, // not possible for "NUL" |
| 745 | 745 | error.PipeBusy => return error.Unexpected, // not possible for "NUL" |
| 746 | error.NoDevice => return error.Unexpected, // not possible for "NUL" | |
| 746 | 747 | error.FileNotFound => return error.Unexpected, // not possible for "NUL" |
| 747 | 748 | error.AccessDenied => return error.Unexpected, // not possible for "NUL" |
| 748 | 749 | error.NameTooLong => return error.Unexpected, // not possible for "NUL" |
src/Builtin.zig+1| ... | ... | @@ -250,6 +250,7 @@ pub fn populateFile(comp: *Compilation, mod: *Module, file: *File) !void { |
| 250 | 250 | error.BadPathName => unreachable, // it's always "builtin.zig" |
| 251 | 251 | error.NameTooLong => unreachable, // it's always "builtin.zig" |
| 252 | 252 | error.PipeBusy => unreachable, // it's not a pipe |
| 253 | error.NoDevice => unreachable, // it's not a pipe | |
| 253 | 254 | error.WouldBlock => unreachable, // not asking for non-blocking I/O |
| 254 | 255 | |
| 255 | 256 | error.FileNotFound => try writeFile(file, mod), |
src/Zcu/PerThread.zig+1| ... | ... | @@ -133,6 +133,7 @@ pub fn astGenFile( |
| 133 | 133 | error.BadPathName => unreachable, // it's a hex encoded name |
| 134 | 134 | error.NameTooLong => unreachable, // it's a fixed size name |
| 135 | 135 | error.PipeBusy => unreachable, // it's not a pipe |
| 136 | error.NoDevice => unreachable, // it's not a pipe | |
| 136 | 137 | error.WouldBlock => unreachable, // not asking for non-blocking I/O |
| 137 | 138 | // There are no dir components, so you would think that this was |
| 138 | 139 | // unreachable, however we have observed on macOS two processes racing |