aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build.zig
diff options
context:
space:
mode:
authorPat Tullmann <pat.github@tullmann.org>2025-04-28 21:03:23 -0700
committerAlex Rønne Petersen <alex@alexrp.com>2025-05-09 15:10:25 +0200
commit6eb5e56306620e72ae80d7ad6626f8d0ceb24af5 (patch)
tree2ca4383369165a41814d3b95f148e86f46627920 /lib/std/Build.zig
parent85a6b75e18248bad83437323cab14fe1973057ec (diff)
downloadzig-6eb5e56306620e72ae80d7ad6626f8d0ceb24af5.tar.gz
zig-6eb5e56306620e72ae80d7ad6626f8d0ceb24af5.zip
std.posix: Add sigrtmin() and sigrtmax()
For C code the macros SIGRTMIN and SIGRTMAX provide these values. In practice what looks like a constant is actually provided by a libc call. So the Zig implementations are explicitly function calls. glibc (and Musl) export a run-time minimum "real-time" signal number, based on how many signals are reserved for internal implementation details (generally threading). In practice, on Linux, sigrtmin() is 35 on glibc with the older LinuxThread and 34 with the newer NPTL-based implementation. Musl always returns 35. The maximum "real-time" signal number is NSIG - 1 (64 on most Linux kernels, but 128 on MIPS). When not linking a C Library, Zig can report the full range of "rt" signals (none are reserved by Zig). Fixes #21189
Diffstat (limited to 'lib/std/Build.zig')
0 files changed, 0 insertions, 0 deletions