zig/lib/std/os
Stephen Gregoratto 3095e83d11 Windows: Rework kernel32 apis
To facilitate #1840, this commit slims `std.windows.kernel32` to only
have the functions needed by the standard library. Since this will break
projects that relied on these, I offer two solutions:

- Make an argument as to why certain functions should be added back in.
  Note that they may just be wrappers around `ntdll` APIs, which would
  go against #1840.
  If necessary I'll add them back in *and* make wrappers in
  `std.windows` for it.
- Maintain your own list of APIs. This is the option taken by bun[1],
  where they wrap functions with tracing.
- Use `zigwin32`.

I've also added TODO comments that specify which functions can be
reimplemented using `ntdll` APIs in the future.

Other changes:
- Group functions into groups (I/O, process management etc.).
- Synchronize definitions against Microsoft documentation to use the
  proper parameter types/names.
- Break all functions with parameters over multiple lines.
2024-07-17 23:11:23 +10:00
..
linux std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
plan9 extract std.posix from std.os 2024-03-19 11:45:09 -07:00
uefi Make EfiPhysicalAddress in std/os/uefi/tables.zig public 2024-02-05 15:31:33 +00:00
windows Windows: Rework kernel32 apis 2024-07-17 23:11:23 +10:00
emscripten.zig cbe: rewrite CType 2024-03-30 20:50:48 -04:00
linux.zig std.os.linux: export getauxval only when building executable or root has main function 2024-07-15 15:48:40 +03:00
plan9.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
uefi.zig os.uefi: add ns to epoch 2023-12-20 20:05:16 -08:00
wasi.zig Do not run asserts for WASI alignment when not targeting WASI 2024-05-11 07:23:07 +00:00
windows.zig Windows: Rework kernel32 apis 2024-07-17 23:11:23 +10:00