mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
std.c: Fix sigrtmin()/sigrtmax() for FreeBSD and NetBSD.
They just define the constants in the system headers.
This commit is contained in:
parent
3d2b0a53fe
commit
309ac27d35
@ -10385,12 +10385,20 @@ pub const sigaction = switch (native_os) {
|
||||
|
||||
/// Zig's version of SIGRTMIN. Actually a function.
|
||||
pub fn sigrtmin() u8 {
|
||||
return @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmin())));
|
||||
return switch (native_os) {
|
||||
.freebsd => 65,
|
||||
.netbsd => 33,
|
||||
else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmin()))),
|
||||
};
|
||||
}
|
||||
|
||||
/// Zig's version of SIGRTMAX. Actually a function.
|
||||
pub fn sigrtmax() u8 {
|
||||
return @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmax())));
|
||||
return switch (native_os) {
|
||||
.freebsd => 126,
|
||||
.netbsd => 63,
|
||||
else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmax()))),
|
||||
};
|
||||
}
|
||||
|
||||
pub const sigfillset = switch (native_os) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user