zig/lib/std/os
Pat Tullmann cfe5defd02 linux: futex v1 API cleanup
* Use `packed struct` for flags arguments.  So, instead of
  `linux.FUTEX.WAIT` use `.{ .cmd = .WAIT, .private = true }`

* rename `futex_wait` and `futex_wake` which didn't actually specify
  wait/wake, as `futex_3arg` and `futex_4arg` (as its the number
  of parameters that is different, the `op` is whatever is specified.

* expose the full six-arg flavor of the syscall (for some of the advanced
  ops), and add packed structs for their arguments.

* Use a `packed union` to support the 4th parameter which is sometimes a
  `timespec` pointer, and sometimes a `u32`.

* Add tests that make sure the structure layout is correct and that the
  basic argument passing is working (no actual futexes are contended).
2025-06-17 22:06:39 -07:00
..
linux linux: futex v1 API cleanup 2025-06-17 22:06:39 -07:00
plan9 extract std.posix from std.os 2024-03-19 11:45:09 -07:00
uefi fix review 2025-04-04 12:42:28 +01:00
windows windows: Delete obsolete environment variable kernel32 wrappers and bindings 2025-06-02 10:34:37 +02:00
emscripten.zig sigset_t: sigemptyset() and sigfillset() are functions that return sigset_t 2025-04-30 20:32:04 -07:00
linux.zig linux: futex v1 API cleanup 2025-06-17 22:06:39 -07:00
plan9.zig sigset_t: sigemptyset() and sigfillset() are functions that return sigset_t 2025-04-30 20:32:04 -07:00
uefi.zig std.start: allow return uefi error union in main (#23425) 2025-04-01 17:10:10 +00:00
wasi.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
windows.zig windows: Delete obsolete environment variable kernel32 wrappers and bindings 2025-06-02 10:34:37 +02:00