diff options
| author | Pat Tullmann <pat.github@tullmann.org> | 2025-04-02 16:21:23 -0700 |
|---|---|---|
| committer | Pat Tullmann <pat.github@tullmann.org> | 2025-06-18 19:53:50 -0700 |
| commit | 89d15a8d47fdfe41ae650e399d258de3184e6b4d (patch) | |
| tree | 192370e0c48677cf653c65e657e5e441718c8632 /src/codegen.zig | |
| parent | cfe5defd025b79ade5f9243a7d6ebaad176cb6ad (diff) | |
| download | zig-89d15a8d47fdfe41ae650e399d258de3184e6b4d.tar.gz zig-89d15a8d47fdfe41ae650e399d258de3184e6b4d.zip | |
linux: futex v2 API updates
* `futex2_waitv` always takes a 64-bit timespec. Perhaps the
`kernel_timespec` should be renamed `timespec64`? Its used in iouring,
too.
* Add `packed struct` for futex v2 flags and parameters.
* Add very basic "tests" for the futex v2 syscalls (just to ensure the
code compiles).
* Update the stale or broken comments. (I could also just delete these
they're not really documenting Zig-specific behavior.)
Given that the futex2 APIs are not used by Zig's library (they're a bit
too new), and the fact that these are very specialized syscalls, and they
currently provide no benefit over the existing v1 API, I wonder if instead
of fixing these up, we should just replace them with a stub that says 'use
a 3rd party library'.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
