Skip to content

Commit

Permalink
Auto merge of #361 - fiveop:missing_signals, r=@kamalmarhubi
Browse files Browse the repository at this point in the history
Add missing signals.

In preparation of turning them into an enumeration.
  • Loading branch information
homu committed May 6, 2016
2 parents 7931e48 + c1334f5 commit a5936e4
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 a5936e4

Please sign in to comment.