Skip to content

Commit

Permalink
Add missing signals.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiveop committed May 6, 2016
1 parent e8ebc95 commit c1334f5
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions src/sys/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,47 @@ pub use libc::{
SIGINT,
SIGQUIT,
SIGILL,
SIGTRAP,
SIGABRT,
SIGBUS,
SIGFPE,
SIGKILL,
SIGUSR1,
SIGSEGV,
SIGUSR2,
SIGPIPE,
SIGALRM,
SIGTERM,
SIGTRAP,
SIGIOT,
SIGBUS,
SIGSYS,
SIGURG,
SIGCHLD,
SIGCONT,
SIGSTOP,
SIGTSTP,
SIGCONT,
SIGCHLD,
SIGTTIN,
SIGTTOU,
SIGIO,
SIGURG,
SIGXCPU,
SIGXFSZ,
SIGVTALRM,
SIGPROF,
SIGWINCH,
SIGUSR1,
SIGUSR2,
SIGIO,
SIGSYS,
};

// This doesn't always exist, but when it does, it's 7
pub const SIGEMT: libc::c_int = 7;
#[cfg(target_os = "macos")]
pub use libc::{
SIGEMT,
SIGINFO,
};

#[cfg(not(target_os = "macos"))]
pub use libc::{
SIGPWR,
SIGSTKFLT,
SIGIOT, // Alias for SIGABRT
SIGPOLL, // Alias for SIGIO
SIGUNUSED, // Alias for 31
};

pub const NSIG: libc::c_int = 32;

Expand Down

0 comments on commit c1334f5

Please sign in to comment.