| ... | ... | @@ -10468,24 +10468,36 @@ pub const sigaction = switch (native_os) { |
| 10468 | 10468 | }; |
| 10469 | 10469 | |
| 10470 | 10470 | /// Zig's version of SIGRTMIN. Actually a function. |
| 10471 | | pub fn sigrtmin() u8 { |
| 10472 | | return switch (native_os) { |
| 10473 | | .freebsd => 65, |
| 10474 | | .netbsd => 33, |
| 10475 | | .illumos => @truncate(sysconf(@intFromEnum(_SC.SIGRT_MIN))), |
| 10476 | | else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmin()))), |
| 10477 | | }; |
| 10478 | | } |
| 10471 | pub const sigrtmin = switch (native_os) { |
| 10472 | .openbsd => {}, |
| 10473 | else => sigrt_private.sigrtmin, |
| 10474 | }; |
| 10479 | 10475 | |
| 10480 | 10476 | /// Zig's version of SIGRTMAX. Actually a function. |
| 10481 | | pub fn sigrtmax() u8 { |
| 10482 | | return switch (native_os) { |
| 10483 | | .freebsd => 126, |
| 10484 | | .netbsd => 63, |
| 10485 | | .illumos => @truncate(sysconf(@intFromEnum(_SC.SIGRT_MAX))), |
| 10486 | | else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmax()))), |
| 10487 | | }; |
| 10488 | | } |
| 10477 | pub const sigrtmax = switch (native_os) { |
| 10478 | .openbsd => {}, |
| 10479 | else => sigrt_private.sigrtmax, |
| 10480 | }; |
| 10481 | |
| 10482 | const sigrt_private = struct { |
| 10483 | pub fn sigrtmin() u8 { |
| 10484 | return switch (native_os) { |
| 10485 | .freebsd => 65, |
| 10486 | .netbsd => 33, |
| 10487 | .illumos => @truncate(sysconf(@intFromEnum(_SC.SIGRT_MIN))), |
| 10488 | else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmin()))), |
| 10489 | }; |
| 10490 | } |
| 10491 | |
| 10492 | pub fn sigrtmax() u8 { |
| 10493 | return switch (native_os) { |
| 10494 | .freebsd => 126, |
| 10495 | .netbsd => 63, |
| 10496 | .illumos => @truncate(sysconf(@intFromEnum(_SC.SIGRT_MAX))), |
| 10497 | else => @truncate(@as(c_uint, @bitCast(private.__libc_current_sigrtmax()))), |
| 10498 | }; |
| 10499 | } |
| 10500 | }; |
| 10489 | 10501 | |
| 10490 | 10502 | pub const sigfillset = switch (native_os) { |
| 10491 | 10503 | .netbsd => private.__sigfillset14, |