FreeBSD: Follow upstream `WIFSIGNALED` change
This commit is contained in:
parent
401ba798a5
commit
42393b7d38
|
@ -1051,6 +1051,10 @@ f! {
|
|||
(_CMSG_ALIGN(::mem::size_of::<::cmsghdr>()) +
|
||||
_CMSG_ALIGN(length as usize)) as ::c_uint
|
||||
}
|
||||
|
||||
pub fn WIFSIGNALED(status: ::c_int) -> bool {
|
||||
(status & 0o177) != 0o177 && (status & 0o177) != 0
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
|
|
@ -1161,6 +1161,10 @@ f! {
|
|||
::mem::size_of::<sockcred>() + ::mem::size_of::<::gid_t>() * ngrps
|
||||
}
|
||||
|
||||
pub fn WIFSIGNALED(status: ::c_int) -> bool {
|
||||
(status & 0o177) != 0o177 && (status & 0o177) != 0 && status != 0x13
|
||||
}
|
||||
|
||||
pub fn uname(buf: *mut ::utsname) -> ::c_int {
|
||||
__xuname(256, buf as *mut ::c_void)
|
||||
}
|
||||
|
|
|
@ -1194,10 +1194,6 @@ f! {
|
|||
status >> 8
|
||||
}
|
||||
|
||||
pub fn WIFSIGNALED(status: ::c_int) -> bool {
|
||||
(status & 0o177) != 0o177 && (status & 0o177) != 0
|
||||
}
|
||||
|
||||
pub fn WIFSTOPPED(status: ::c_int) -> bool {
|
||||
(status & 0o177) == 0o177
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue