File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -11,36 +11,47 @@ pub use libc::{
1111 SIGINT ,
1212 SIGQUIT ,
1313 SIGILL ,
14+ SIGTRAP ,
1415 SIGABRT ,
16+ SIGBUS ,
1517 SIGFPE ,
1618 SIGKILL ,
19+ SIGUSR1 ,
1720 SIGSEGV ,
21+ SIGUSR2 ,
1822 SIGPIPE ,
1923 SIGALRM ,
2024 SIGTERM ,
21- SIGTRAP ,
22- SIGIOT ,
23- SIGBUS ,
24- SIGSYS ,
25- SIGURG ,
25+ SIGCHLD ,
26+ SIGCONT ,
2627 SIGSTOP ,
2728 SIGTSTP ,
28- SIGCONT ,
29- SIGCHLD ,
3029 SIGTTIN ,
3130 SIGTTOU ,
32- SIGIO ,
31+ SIGURG ,
3332 SIGXCPU ,
3433 SIGXFSZ ,
3534 SIGVTALRM ,
3635 SIGPROF ,
3736 SIGWINCH ,
38- SIGUSR1 ,
39- SIGUSR2 ,
37+ SIGIO ,
38+ SIGSYS ,
4039} ;
4140
42- // This doesn't always exist, but when it does, it's 7
43- pub const SIGEMT : libc:: c_int = 7 ;
41+ #[ cfg( target_os = "macos" ) ]
42+ pub use libc:: {
43+ SIGEMT ,
44+ SIGINFO ,
45+ } ;
46+
47+ #[ cfg( not( target_os = "macos" ) ) ]
48+ pub use libc:: {
49+ SIGPWR ,
50+ SIGSTKFLT ,
51+ SIGIOT , // Alias for SIGABRT
52+ SIGPOLL , // Alias for SIGIO
53+ SIGUNUSED , // Alias for 31
54+ } ;
4455
4556pub const NSIG : libc:: c_int = 32 ;
4657
You can’t perform that action at this time.
0 commit comments