zig/lib/std/os
Ryan Liptak 2fce991d2a Remove std.os.windows.QueryInformationFile (a wrapper of NtQueryInformationFile)
This function is unused, and the current implementation contains a few footguns:

- The current wrapper treats all possible errors as unexpected, even likely ones like BUFFER_OVERFLOW (which is returned if the size of the out_buffer is too small to contain all the variable-length members of the requested info, which the user may not actually care about)
- Each caller may need to handle errors differently, different errors might be possible depending on the FILE_INFORMATION_CLASS, etc, and making a wrapper that handles all of those different use-cases nicely seems like it'd be more trouble than it's worth (FILE_INFORMATION_CLASS has 76 different possible values)

If a wrapper for NtQueryInformationFile is wanted, then it should probably have wrapper functions per-use-case, like how QueryObjectName wraps NtQueryObject for the `ObjectNameInformation` class
2023-03-19 17:33:25 +01:00
..
linux std lib tests: avoid cwd races by using std.testing.tmpDir 2023-03-15 10:48:15 -07:00
plan9 plan9: more syscalls 2021-11-09 07:08:27 -05:00
uefi update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
windows add std.process.totalSystemMemory 2023-03-15 10:48:13 -07:00
linux.zig std: child process API supports rusage data 2023-03-15 10:48:13 -07:00
plan9.zig remove 'builtin.stage2_arch', Sema is smart enough now 2022-08-07 16:07:08 -07:00
test.zig disable bad std lib tests 2023-03-16 18:25:59 -07:00
uefi.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
wasi.zig std: fix WASI regressions 2022-12-06 12:15:05 -07:00
windows.zig Remove std.os.windows.QueryInformationFile (a wrapper of NtQueryInformationFile) 2023-03-19 17:33:25 +01:00