0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
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).
History 2025-06-17 22:06:39 -07:00
..
c libc: implement common abs for various integer sizes (#23893) 2025-05-21 00:57:38 +02:00
compiler big.int: implement float conversions 2025-06-15 14:15:18 -04:00
compiler_rt libc: Prevent FCSEL instruction from being used to avoid raising an unintended exception 2025-06-15 04:01:43 -04:00
docs chore(std.mem): Rename trimLeft and trimRight 2025-04-27 18:03:59 +09:00
fuzzer/web Fix compile error in Fuzzer web-ui (#23605) 2025-04-19 23:10:51 +02:00
include zig cc: Update intrinsic headers to Clang 20. 2025-04-04 06:08:09 +02:00
init zig init: simplify templating logic (#24170) 2025-06-13 22:31:29 +00:00
libc mingw: Update MinGW-w64 sources to 38c8142f660b6ba11e7c408f2de1e9f8bfaf839e. 2025-06-11 18:27:15 +02:00
libcxx libcxx: Fix locale-related compilation errors on NetBSD. 2025-06-06 11:22:20 +02:00
libcxxabi libcxxabi: Update to Clang 20. 2025-04-04 06:08:09 +02:00
libtsan libtsan: Backport llvm/llvm-project#120036. 2025-05-12 16:24:59 +02:00
libunwind libunwind: Update to LLVM 20. 2025-04-04 06:08:09 +02:00
std linux: futex v1 API cleanup 2025-06-17 22:06:39 -07:00
c.zig libc: implement common abs for various integer sizes (#23893) 2025-05-21 00:57:38 +02:00
compiler_rt.zig compiler-rt: Export _fltused for UEFI. 2025-06-16 13:46:23 +02:00
fuzzer.zig use correcct symbol for the end of pcguard section 2025-04-30 00:04:22 +02:00
ubsan_rt.zig compiler: Scaffold stage2_powerpc backend. 2025-05-20 10:23:16 +02:00
zig.h x86_64: add support for pie executables 2025-06-06 23:42:14 -07:00