zig/lib/std/os/windows
Andrew Kelley 66e76a0209
zig build system: correctly handle multiple output artifacts
Previously the zig build system incorrectly assumed that the only build
artifact was a binary. Now, when you enable the cache, only the output
dir is printed to stdout, and the zig build system iterates over the
files in that directory, copying them to the output directory.

To support this change:

 * Add `std.os.renameat`, `std.os.renameatZ`, and `std.os.renameatW`.
 * Fix `std.os.linux.renameat` not compiling due to typos.
 * Deprecate `std.fs.updateFile` and `std.fs.updateFileMode`.
 * Add `std.fs.Dir.updateFile`, which supports using open directory
   handles for both the source and destination paths, as well as an
   options parameter which allows overriding the mode.
 * Update `std.fs.AtomicFile` to support operating based on an open
   directory handle. Instead of `std.fs.AtomicFile.init`, use
   `std.fs.Dir.atomicFile`.
 * `std.fs.AtomicFile` deinit() better handles the situation when the
    rename fails but the temporary file still exists, by still
    attempting to remove the temporary file.
 * `std.fs.Dir.openFileWindows` is moved to `std.os.windows.OpenFileW`.
 * `std.os.RenameError` gains the error codes `NoDevice`,
   `SharingViolation`, and `PipeBusy` which have been observed from
   Windows.

Closes #4733
2020-03-13 21:22:08 -04:00
..
advapi32.zig Implement the callconv() annotation 2020-01-02 18:53:16 +01:00
bits.zig zig build system: correctly handle multiple output artifacts 2020-03-13 21:22:08 -04:00
kernel32.zig std: Add setEndPos to fs.file 2020-03-12 09:43:45 +01:00
lang.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
ntdll.zig Add NtDll-based ftruncate implementation 2020-03-13 08:45:37 +01:00
ntstatus.zig NTSTATUS is a non-exhaustive enum 2020-01-31 22:33:17 +11:00
ole32.zig Implement the callconv() annotation 2020-01-02 18:53:16 +01:00
psapi.zig Revert "windows: remove the 'A' versions of psapi functions" 2020-02-10 12:30:20 -05:00
shell32.zig Merge branch 'std-utf16-sentinel-terminated' of https://github.com/daurnimator/zig 2020-01-07 16:13:34 -05:00
sublang.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
win32error.zig Turn win32 errors into a non-exhaustive enum 2020-01-31 22:33:55 +11:00
ws2_32.zig Winsock errors can be an enum 2020-02-01 14:29:16 -05:00