From 8489d4fa126070f74a7af7a5a6c930ed9f2bc0de Mon Sep 17 00:00:00 2001 From: Bruno Reis Date: Wed, 13 Nov 2024 15:44:10 -0800 Subject: [PATCH] treat errno(6) (NXIO) as expected error in openatZ --- lib/std/posix.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/posix.zig b/lib/std/posix.zig index d46307dbdfb8..3ca5e1ae590c 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -1817,6 +1817,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8, flags: O, mode: mode_t) O .OPNOTSUPP => return error.FileLocksNotSupported, .AGAIN => return error.WouldBlock, .TXTBSY => return error.FileBusy, + .NXIO => return error.NoDevice, .ILSEQ => |err| if (native_os == .wasi) return error.InvalidUtf8 else