File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ fn main() {
76
76
cfg. header ( "windows.h" ) ;
77
77
cfg. header ( "process.h" ) ;
78
78
cfg. header ( "ws2ipdef.h" ) ;
79
+ cfg. header ( "signal.h" ) ;
79
80
80
81
if target. contains ( "gnu" ) {
81
82
cfg. header ( "ws2tcpip.h" ) ;
Original file line number Diff line number Diff line change
1
+ pub type __p_sig_fn_t = :: size_t ;
2
+
1
3
pub const L_tmpnam : :: c_uint = 14 ;
2
4
pub const TMP_MAX : :: c_uint = 0x7fff ;
5
+ pub const SIGINT : :: c_int = 2 ;
6
+ pub const SIGILL : :: c_int = 4 ;
7
+ pub const SIGFPE : :: c_int = 8 ;
8
+ pub const SIGSEGV : :: c_int = 11 ;
9
+ pub const SIGTERM : :: c_int = 15 ;
10
+ pub const SIGABRT : :: c_int = 22 ;
11
+ pub const NSIG : :: c_int = 23 ;
12
+ pub const SIG_ERR : :: c_int = -1 ;
3
13
4
14
extern {
15
+ pub fn signal ( signum : :: c_int , handler : __p_sig_fn_t ) -> __p_sig_fn_t ;
16
+ pub fn raise ( signum : :: c_int ) -> :: c_int ;
5
17
pub fn strcasecmp ( s1 : * const :: c_char , s2 : * const :: c_char ) -> :: c_int ;
6
18
pub fn strncasecmp ( s1 : * const :: c_char , s2 : * const :: c_char ,
7
- n : :: size_t ) -> :: c_int ;
19
+ n : :: size_t ) -> :: c_int ;
8
20
}
Original file line number Diff line number Diff line change
1
+ pub type _crt_signal_t = :: size_t ;
2
+
1
3
pub const L_tmpnam : :: c_uint = 260 ;
2
4
pub const TMP_MAX : :: c_uint = 0x7fff_ffff ;
5
+ pub const SIGINT : :: c_int = 2 ;
6
+ pub const SIGILL : :: c_int = 4 ;
7
+ pub const SIGABRT : :: c_int = 22 ;
8
+ pub const SIGFPE : :: c_int = 8 ;
9
+ pub const SIGSEGV : :: c_int = 11 ;
10
+ pub const SIGTERM : :: c_int = 15 ;
11
+ pub const SIG_ERR : :: c_int = -1 ;
3
12
4
13
extern {
14
+ pub fn signal ( signum : :: c_int , handler : _crt_signal_t ) -> _crt_signal_t ;
15
+ pub fn raise ( signum : :: c_int ) -> :: c_int ;
5
16
#[ link_name = "_stricmp" ]
6
17
pub fn stricmp ( s1 : * const :: c_char , s2 : * const :: c_char ) -> :: c_int ;
7
18
#[ link_name = "_strnicmp" ]
8
19
pub fn strnicmp ( s1 : * const :: c_char , s2 : * const :: c_char ,
9
20
n : :: size_t ) -> :: c_int ;
10
- }
21
+ }
You can’t perform that action at this time.
0 commit comments