Skip to content

Commit 8489d4f

Browse files
committed
treat errno(6) (NXIO) as expected error in openatZ
1 parent bfcf18c commit 8489d4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/posix.zig

+1
Original file line numberDiff line numberDiff line change
@@ -1817,6 +1817,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8, flags: O, mode: mode_t) O
18171817
.OPNOTSUPP => return error.FileLocksNotSupported,
18181818
.AGAIN => return error.WouldBlock,
18191819
.TXTBSY => return error.FileBusy,
1820+
.NXIO => return error.NoDevice,
18201821
.ILSEQ => |err| if (native_os == .wasi)
18211822
return error.InvalidUtf8
18221823
else

0 commit comments

Comments
 (0)