mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.c: fix W functions for NetBSD
I'm not sure where the old logic came from but it certainly didn't match NetBSD 10.1 system headers, and was causing the build system to see incorrect exit status information for processes that were expected to crash (e.g. SIGABRT).
This commit is contained in:
parent
4e99f095ae
commit
fb66d7712c
1 changed files with 2 additions and 2 deletions
|
|
@ -3863,11 +3863,11 @@ pub const W = switch (native_os) {
|
|||
}
|
||||
|
||||
pub fn IFCONTINUED(s: u32) bool {
|
||||
return ((s & 0x7f) == 0xffff);
|
||||
return (s == CONTINUED);
|
||||
}
|
||||
|
||||
pub fn IFSTOPPED(s: u32) bool {
|
||||
return ((s & 0x7f != 0x7f) and !IFCONTINUED(s));
|
||||
return (((s & 0x7f) == STOPPED) and !IFCONTINUED(s));
|
||||
}
|
||||
|
||||
pub fn IFSIGNALED(s: u32) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue