zig/lib/std/os
Andrew Kelley d3f87f8ac0 std.fs.rename: fix Windows implementation
The semantics of this function are that it moves both files and
directories. Previously we had this `is_dir` boolean field of
`std.os.windows.OpenFile` which required the API user to choose: are we
opening a file or directory? And the other kind would either cause
error.IsDir or error.NotDir. But that is not a limitation of the Windows
file system API; it was self-imposed.

On Windows, rename is implemented internally with `NtCreateFile` so we
need to allow it to open either files or directories. This is now done
by `std.os.windows.OpenFile` accepting enum{file_only,dir_only,any}
instead of a boolean.
2022-01-02 16:58:05 -08:00
..
linux io_uring: fix version check in tests 2022-01-01 15:37:50 -05:00
plan9 plan9: more syscalls 2021-11-09 07:08:27 -05:00
uefi stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
windows stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
linux.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
plan9.zig plan9: more syscalls 2021-11-09 07:08:27 -05:00
test.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
uefi.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
wasi.zig std.os fixes to get the test suite passing again 2021-09-01 17:54:07 -07:00
windows.zig std.fs.rename: fix Windows implementation 2022-01-02 16:58:05 -08:00