diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index daf5641f0304d..ab345afcda8b3 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -17,9 +17,14 @@ pub type msgqnum_t = ::c_ulong; pub type msglen_t = ::c_ulong; pub type nfds_t = ::c_ulong; pub type nl_item = ::c_int; - +pub type idtype_t = ::c_int; pub enum fpos64_t {} // TODO: fill this out with a struct +pub const P_PID: ::idtype_t = 1; +pub const P_PGID: ::idtype_t = 2; +pub const P_ALL: ::idtype_t = 3; + + s! { pub struct dirent { pub d_ino: ::ino_t, diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs index 8dc48bc149cc5..b98512476e3c4 100644 --- a/src/unix/notbsd/linux/other/mod.rs +++ b/src/unix/notbsd/linux/other/mod.rs @@ -603,6 +603,9 @@ extern { cpusetsize: ::size_t, cpuset: *const ::cpu_set_t) -> ::c_int; pub fn sched_getcpu() -> ::c_int; + + pub fn waitid(idtype: ::idtype_t, id: ::id_t, infop: *mut ::siginfo_t, + options: ::c_int) -> ::c_int; } cfg_if! {