File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1051,6 +1051,10 @@ f! {
1051
1051
( _CMSG_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) +
1052
1052
_CMSG_ALIGN( length as usize ) ) as :: c_uint
1053
1053
}
1054
+
1055
+ pub fn WIFSIGNALED ( status: :: c_int) -> bool {
1056
+ ( status & 0o177 ) != 0o177 && ( status & 0o177 ) != 0
1057
+ }
1054
1058
}
1055
1059
1056
1060
extern "C" {
Original file line number Diff line number Diff line change @@ -1161,6 +1161,10 @@ f! {
1161
1161
:: mem:: size_of:: <sockcred>( ) + :: mem:: size_of:: <:: gid_t>( ) * ngrps
1162
1162
}
1163
1163
1164
+ pub fn WIFSIGNALED ( status: :: c_int) -> bool {
1165
+ ( status & 0o177 ) != 0o177 && ( status & 0o177 ) != 0 && status != 0x13
1166
+ }
1167
+
1164
1168
pub fn uname( buf: * mut :: utsname) -> :: c_int {
1165
1169
__xuname( 256 , buf as * mut :: c_void)
1166
1170
}
Original file line number Diff line number Diff line change @@ -1194,10 +1194,6 @@ f! {
1194
1194
status >> 8
1195
1195
}
1196
1196
1197
- pub fn WIFSIGNALED ( status: :: c_int) -> bool {
1198
- ( status & 0o177 ) != 0o177 && ( status & 0o177 ) != 0
1199
- }
1200
-
1201
1197
pub fn WIFSTOPPED ( status: :: c_int) -> bool {
1202
1198
( status & 0o177 ) == 0o177
1203
1199
}
You can’t perform that action at this time.
0 commit comments