zig/lib/std/os
Lucas Santos 89942ebd03
Better implementation of GetLastError. (#20623)
Instead of calling the dynamically loaded kernel32.GetLastError, we can extract it from the TEB.
As shown by [Wine](34b1606019/include/winternl.h (L439)), the last error lives at offset 0x34 of the TEB in 32-bit Windows and at offset 0x68 in 64-bit Windows.
2024-07-15 10:49:51 -07: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 Replace GetCommandLineW with PEB access, delete GetCommandLine bindings 2024-07-13 18:19:19 -07: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 Better implementation of GetLastError. (#20623) 2024-07-15 10:49:51 -07:00