diff options
author | Matt Barnett <matt@sixtyodd.com> | 2016-04-29 10:05:48 -0600 |
---|---|---|
committer | Matt Barnett <matt@sixtyodd.com> | 2016-04-29 10:05:48 -0600 |
commit | 06abf3a28b6be659900d590c12e7a95102017e05 (patch) | |
tree | 00bfa137d181b461f95a64b7e786252ea9b4d12f | |
parent | 71e9d6c7206a3b6be2cda0bb6969a50575dd6d5b (diff) | |
download | rust-libc-06abf3a28b6be659900d590c12e7a95102017e05.tar.gz |
fix naming of _WSTATUS macro from wait.h
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 44e4e19e0a..c767ca54c5 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -1032,20 +1032,20 @@ f! { status >> 8 } - pub fn WSTATUS(status: ::c_int) -> ::c_int { + pub fn _WSTATUS(status: ::c_int) -> ::c_int { status & 0x7f } pub fn WIFCONTINUED(status: ::c_int) -> bool { - WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) == 0x13 + _WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) == 0x13 } pub fn WIFSIGNALED(status: ::c_int) -> bool { - WSTATUS(status) != _WSTOPPED && WSTATUS(status) != 0 + _WSTATUS(status) != _WSTOPPED && _WSTATUS(status) != 0 } pub fn WIFSTOPPED(status: ::c_int) -> bool { - WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) != 0x13 + _WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) != 0x13 } } |