Skip to content
Snippets Groups Projects
Unverified Commit 83b37304 authored by Yuki Okushi's avatar Yuki Okushi Committed by GitHub
Browse files

Merge pull request #1859 from joshtriplett/w_exitcode

parents b232c9be 57298d06
No related branches found
No related tags found
No related merge requests found
......@@ -1261,6 +1261,14 @@ f! {
(status & 0x80) != 0
}
pub fn W_EXITCODE(ret: ::c_int, sig: ::c_int) -> ::c_int {
(ret << 8) | sig
}
pub fn W_STOPCODE(sig: ::c_int) -> ::c_int {
(sig << 8) | 0x7f
}
pub fn QCMD(cmd: ::c_int, type_: ::c_int) -> ::c_int {
(cmd << 8) | (type_ & 0x00ff)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment