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.
2 parents b232c9b + 57298d0 commit 83b3730Copy full SHA for 83b3730
src/unix/linux_like/mod.rs
@@ -1261,6 +1261,14 @@ f! {
1261
(status & 0x80) != 0
1262
}
1263
1264
+ pub fn W_EXITCODE(ret: ::c_int, sig: ::c_int) -> ::c_int {
1265
+ (ret << 8) | sig
1266
+ }
1267
+
1268
+ pub fn W_STOPCODE(sig: ::c_int) -> ::c_int {
1269
+ (sig << 8) | 0x7f
1270
1271
1272
pub fn QCMD(cmd: ::c_int, type_: ::c_int) -> ::c_int {
1273
(cmd << 8) | (type_ & 0x00ff)
1274
0 commit comments