1pub use libc::{pid_t, c_int, getpid, kill};
9
10#[allow(non_snake_case)]
11#[cfg(unix)]
12#[cfg(not(target_os = "macos"))]
13pub mod Sig {
14 use libc::{self, c_int};
15
16 pub const HUP : c_int = libc::SIGHUP; pub const INT : c_int = libc::SIGINT; pub const QUIT : c_int = libc::SIGQUIT; pub const ILL : c_int = libc::SIGILL; pub const TRAP : c_int = libc::SIGTRAP; pub const ABRT : c_int = libc::SIGABRT; pub const IOT : c_int = libc::SIGIOT; pub const BUS : c_int = libc::SIGBUS; pub const FPE : c_int = libc::SIGFPE;
25 pub const KILL : c_int = libc::SIGKILL; pub const USR1 : c_int = libc::SIGUSR1; pub const SEGV : c_int = libc::SIGSEGV; pub const USR2 : c_int = libc::SIGUSR2; pub const PIPE : c_int = libc::SIGPIPE; pub const ALRM : c_int = libc::SIGALRM; pub const TERM : c_int = libc::SIGTERM; pub const STKFLT : c_int = libc::SIGSTKFLT; pub const CHLD : c_int = libc::SIGCHLD; pub const CONT : c_int = libc::SIGCONT; pub const STOP : c_int = libc::SIGSTOP; pub const TSTP : c_int = libc::SIGTSTP; pub const TTIN : c_int = libc::SIGTTIN; pub const TTOU : c_int = libc::SIGTTOU; pub const URG : c_int = libc::SIGURG; pub const XCPU : c_int = libc::SIGXCPU; pub const PROF : c_int = libc::SIGPROF; pub const WINCH : c_int = libc::SIGWINCH; pub const POLL : c_int = libc::SIGPOLL; pub const PWR : c_int = libc::SIGPWR; pub const SYS : c_int = libc::SIGSYS; }
47
48#[allow(non_snake_case)]
49#[cfg(target_os = "macos")]
50pub mod Sig {
51 use libc::{self, c_int};
52
53 pub const HUP : c_int = libc::SIGHUP; pub const INT : c_int = libc::SIGINT; pub const QUIT : c_int = libc::SIGQUIT; pub const ILL : c_int = libc::SIGILL; pub const TRAP : c_int = libc::SIGTRAP; pub const ABRT : c_int = libc::SIGABRT; pub const IOT : c_int = libc::SIGIOT; pub const BUS : c_int = libc::SIGBUS; pub const FPE : c_int = libc::SIGFPE;
62 pub const KILL : c_int = libc::SIGKILL; pub const USR1 : c_int = libc::SIGUSR1; pub const SEGV : c_int = libc::SIGSEGV; pub const USR2 : c_int = libc::SIGUSR2; pub const PIPE : c_int = libc::SIGPIPE; pub const ALRM : c_int = libc::SIGALRM; pub const TERM : c_int = libc::SIGTERM; pub const CHLD : c_int = libc::SIGCHLD; pub const CONT : c_int = libc::SIGCONT; pub const STOP : c_int = libc::SIGSTOP; pub const TSTP : c_int = libc::SIGTSTP; pub const TTIN : c_int = libc::SIGTTIN; pub const TTOU : c_int = libc::SIGTTOU; pub const URG : c_int = libc::SIGURG; pub const XCPU : c_int = libc::SIGXCPU; pub const PROF : c_int = libc::SIGPROF; pub const WINCH : c_int = libc::SIGWINCH; pub const SYS : c_int = libc::SIGSYS; }