zig/lib/std/os
Jonathan Marler 32f602ad16
std.os.windows: handle OBJECT_NAME_INVALID in OpenFile (#19288)
It's been seen on Windows 11 (22H2) Build 22621.3155 that NtCreateFile
will return the OBJECT_NAME_INVALID error code with certain path names.
The path name we saw this with started with `C:Users` (rather than
`C:\Users`) and also contained a `$` character.  This PR updates our
OpenFile wrapper to propagate this error code as `error.BadPathName`
instead of making it `unreachable`.

see https://github.com/marler8997/zigup/issues/114#issuecomment-1994420791
2024-03-13 21:39:20 -04:00
..
linux std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
plan9 plan 9: filesystem support 2023-08-02 17:39:52 -04:00
uefi Make EfiPhysicalAddress in std/os/uefi/tables.zig public 2024-02-05 15:31:33 +00:00
windows Update deprecated std.unicode function usages 2024-02-24 14:04:59 -08:00
emscripten.zig Fix emscripten exports 2024-03-13 21:47:31 +01:00
linux.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
plan9.zig some API work on std.c, std.os, std.os.wasi 2024-02-11 13:38:55 -07:00
test.zig std.builtin: make atomic order fields lowercase 2024-03-11 07:09:10 -07:00
uefi.zig os.uefi: add ns to epoch 2023-12-20 20:05:16 -08:00
wasi.zig some API work on std.c, std.os, std.os.wasi 2024-02-11 13:38:55 -07:00
windows.zig std.os.windows: handle OBJECT_NAME_INVALID in OpenFile (#19288) 2024-03-13 21:39:20 -04:00