<commit_before>pub use self::os::{idtype_t};
pub use self::os::{P_ALL};
pub use self::os::{P_PID};
pub use self::os::{P_PGID};
pub use self::os::{WCONTINUED};
pub use self::os::{WNOHANG};
pub use self::os::{WUNTRACED};
pub use self::os::{WEXITED};
pub use self::os::{WNOWAIT};
pub use self::os::{WSTOPPED};
pub use self::os::{WEXITSTATUS};
pub use self::os::{WIFCONTINUED};
pub use self::os::{WIFEXITED};
pub use self::os::{WIFSIGNALED};
pub use self::os::{WIFSTOPPED};
pub use self::os::{WSTOPSIG};
pub use self::os::{WTERMSIG};

#[cfg(target_os = "linux")]
#[path = "linux/mod.rs"]
mod os;

pub fn wait(status: &mut ::int_t) -> ::sys::types::pid_t {
    extern { fn wait(status: *mut ::int_t) -> ::sys::types::pid_t; }
    unsafe { wait(status as *mut _) }
}

pub fn waitpid(pid: ::sys::types::pid_t, stat_loc: &mut ::int_t,
               options: ::int_t) -> ::sys::types::pid_t {
    extern { fn waitpid(pid: ::sys::types::pid_t, stat_loc: *mut ::int_t,
                        options: ::int_t) -> ::sys::types::pid_t; }
    unsafe { waitpid(pid, stat_loc as *mut _, options) }
}

pub fn waitid(idtype: idtype_t, id: ::sys::types::id_t, infop: &mut ::signal::siginfo_t,
              options: ::int_t) -> ::int_t {
    extern { fn waitid(idtype: idtype_t, id: ::sys::types::id_t,
                       infop: *mut ::signal::siginfo_t, options: ::int_t) -> ::int_t; }
    unsafe { waitid(idtype, id, infop as *mut _, options) }
}<commit_msg>sys/wait.h<commit_after>pub use self::os::{idtype_t};
pub use self::os::{P_ALL};
pub use self::os::{P_PID};
pub use self::os::{P_PGID};
pub use self::os::{WCONTINUED};
pub use self::os::{WNOHANG};
pub use self::os::{WUNTRACED};
pub use self::os::{WEXITED};
pub use self::os::{WNOWAIT};
pub use self::os::{WSTOPPED};
pub use self::os::{WEXITSTATUS};
pub use self::os::{WIFCONTINUED};
pub use self::os::{WIFEXITED};
pub use self::os::{WIFSIGNALED};
pub use self::os::{WIFSTOPPED};
pub use self::os::{WSTOPSIG};
pub use self::os::{WTERMSIG};

use {int_t}; 
use sys::types::{pid_t, id_t};
use signal::{siginfo_t};

#[cfg(target_os = "linux")]
#[path = "linux/mod.rs"]
mod os;

pub fn wait(status: &mut int_t) -> pid_t {
    extern { fn wait(status: *mut int_t) -> pid_t; }
    unsafe { wait(status as *mut _) }
}

pub fn waitpid(pid: pid_t, stat_loc: &mut int_t, options: int_t) -> pid_t {
    extern { fn waitpid(pid: pid_t, stat_loc: *mut int_t,
                        options: int_t) -> pid_t; }
    unsafe { waitpid(pid, stat_loc as *mut _, options) }
}

pub fn waitid(idtype: idtype_t, id: id_t, infop: &mut siginfo_t,
              options: int_t) -> int_t {
    extern { fn waitid(idtype: idtype_t, id: id_t,
                       infop: *mut siginfo_t, options: int_t) -> int_t; }
    unsafe { waitid(idtype, id, infop as *mut _, options) }
}
{'fraction_non_alphanumeric': 0.19821109123434705, 'fraction_numerical': 0.0, 'mean_word_length': 4.206703910614525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7107874', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1131, 'n_words': 267}