Skip to content

Commit f0898c3

Browse files
committed
Auto merge of rust-lang#507 - radupopescu:freebsd_wifcontinued, r=alexcrichton
Adding missing WIFCONTINUED function on FreeBSD systems This adds the WIFCONTINUED function to any FreeBSD-like system. Addresses rust-lang#505
2 parents 43f1d3f + 1b06018 commit f0898c3

File tree

1 file changed

+4
-0
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+4
-0
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,10 @@ pub const NETGRAPHDISC: ::c_int = 0x6;
754754
pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
755755

756756
f! {
757+
pub fn WIFCONTINUED(status: ::c_int) -> ::c_int {
758+
status & 0o23
759+
}
760+
757761
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {
758762
status >> 8
759763
}

0 commit comments

Comments
 (0)