We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309ac27 commit fb3a9fcCopy full SHA for fb3a9fc
lib/std/posix/test.zig
@@ -889,10 +889,10 @@ test "sigset empty/full" {
889
// Some signals (i.e., 32 - 34 on glibc/musl) are not allowed to be added to a
890
// sigset by the C library, so avoid testing them.
891
fn reserved_signo(i: usize) bool {
892
- if (native_os == .macos) {
893
- return false;
894
- }
895
- return builtin.link_libc and (i >= 32 and i < posix.sigrtmin());
+ if (native_os == .macos) return false;
+ if (!builtin.link_libc) return false;
+ const max = if (native_os == .netbsd) 32 else 31;
+ return i > max and i < posix.sigrtmin();
896
}
897
898
test "sigset add/del" {
0 commit comments