aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2023-03-08 01:06:50 -0800
committerJakub Konka <kubkon@jakubkonka.com>2023-03-19 17:33:25 +0100
commit2fce991d2ab1dfc6d591b560607ef0edecc7db19 (patch)
treec9bcc52ef9ae806af9dee11b19bd31deb37023ba /lib/std/Build
parentc26cbd561c812a8915bc3c3480358b0f2be10de0 (diff)
downloadzig-2fce991d2ab1dfc6d591b560607ef0edecc7db19.tar.gz
zig-2fce991d2ab1dfc6d591b560607ef0edecc7db19.zip
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
Diffstat (limited to 'lib/std/Build')
0 files changed, 0 insertions, 0 deletions