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::{
11
11
SIGINT ,
12
12
SIGQUIT ,
13
13
SIGILL ,
14
+ SIGTRAP ,
14
15
SIGABRT ,
16
+ SIGBUS ,
15
17
SIGFPE ,
16
18
SIGKILL ,
19
+ SIGUSR1 ,
17
20
SIGSEGV ,
21
+ SIGUSR2 ,
18
22
SIGPIPE ,
19
23
SIGALRM ,
20
24
SIGTERM ,
21
- SIGTRAP ,
22
- SIGIOT ,
23
- SIGBUS ,
24
- SIGSYS ,
25
- SIGURG ,
25
+ SIGCHLD ,
26
+ SIGCONT ,
26
27
SIGSTOP ,
27
28
SIGTSTP ,
28
- SIGCONT ,
29
- SIGCHLD ,
30
29
SIGTTIN ,
31
30
SIGTTOU ,
32
- SIGIO ,
31
+ SIGURG ,
33
32
SIGXCPU ,
34
33
SIGXFSZ ,
35
34
SIGVTALRM ,
36
35
SIGPROF ,
37
36
SIGWINCH ,
38
- SIGUSR1 ,
39
- SIGUSR2 ,
37
+ SIGIO ,
38
+ SIGSYS ,
40
39
} ;
41
40
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
+ } ;
44
55
45
56
pub const NSIG : libc:: c_int = 32 ;
46
57
You can’t perform that action at this time.
0 commit comments