# linux: futex v2 API updates · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/89d15a8d47fdfe41ae650e399d258de3184e6b4d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 89d15a8d47fdfe41ae650e399d258de3184e6b4d

Requested commit: 89d15a8d47fdfe41ae650e399d258de3184e6b4d

Commit: 89d15a8d47fdfe41ae650e399d258de3184e6b4d

Tree: 192370e0c48677cf653c65e657e5e441718c8632

Author: Pat Tullmann

Committer: Pat Tullmann

## Message

```
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'.

```

## Parents

- [cfe5defd025b79ade5f9243a7d6ebaad176cb6ad](https://git.cafe/gitcafe/zig/commit/cfe5defd025b79ade5f9243a7d6ebaad176cb6ad?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/89d15a8d47fdfe41ae650e399d258de3184e6b4d?format=markdown)
