mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.c: openbsd does not have SIGRTMIN/SIGRTMAX
This commit is contained in:
parent
2abfbd952a
commit
49a0ffa42f
1 changed files with 28 additions and 16 deletions
|
|
@ -10625,6 +10625,18 @@ pub const sigaction = switch (native_os) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Zig's version of SIGRTMIN. Actually a function.
|
/// Zig's version of SIGRTMIN. Actually a function.
|
||||||
|
pub const sigrtmin = switch (native_os) {
|
||||||
|
.openbsd => {},
|
||||||
|
else => sigrt_private.sigrtmin,
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Zig's version of SIGRTMAX. Actually a function.
|
||||||
|
pub const sigrtmax = switch (native_os) {
|
||||||
|
.openbsd => {},
|
||||||
|
else => sigrt_private.sigrtmax,
|
||||||
|
};
|
||||||
|
|
||||||
|
const sigrt_private = struct {
|
||||||
pub fn sigrtmin() u8 {
|
pub fn sigrtmin() u8 {
|
||||||
return switch (native_os) {
|
return switch (native_os) {
|
||||||
.freebsd => 65,
|
.freebsd => 65,
|
||||||
|
|
@ -10634,7 +10646,6 @@ pub fn sigrtmin() u8 {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Zig's version of SIGRTMAX. Actually a function.
|
|
||||||
pub fn sigrtmax() u8 {
|
pub fn sigrtmax() u8 {
|
||||||
return switch (native_os) {
|
return switch (native_os) {
|
||||||
.freebsd => 126,
|
.freebsd => 126,
|
||||||
|
|
@ -10643,6 +10654,7 @@ pub fn sigrtmax() u8 {
|
||||||
else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmax()))),
|
else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmax()))),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
pub const sigfillset = switch (native_os) {
|
pub const sigfillset = switch (native_os) {
|
||||||
.netbsd => private.__sigfillset14,
|
.netbsd => private.__sigfillset14,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue