Skip to content

Commit fe8d3b6

Browse files
committed
Add WIFCONTINUED for NetBSD and OpenBSD
1 parent 5a3d929 commit fe8d3b6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,10 @@ f! {
743743
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int {
744744
unsafe { *(dirp as *const ::c_int) }
745745
}
746+
747+
pub fn WIFCONTINUED(status: ::c_int) -> bool {
748+
status == 0xffff
749+
}
746750
}
747751

748752
extern {

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,12 @@ pub const SOCK_CLOEXEC: ::c_int = 0x8000;
583583
pub const SOCK_NONBLOCK: ::c_int = 0x4000;
584584
pub const SOCK_DNS: ::c_int = 0x1000;
585585

586+
f! {
587+
pub fn WIFCONTINUED(status: ::c_int) -> bool {
588+
status & 0o177777 == 0o177777
589+
}
590+
}
591+
586592
extern {
587593
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
588594
pub fn getnameinfo(sa: *const ::sockaddr,

0 commit comments

Comments
 (0)