File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -583,7 +583,9 @@ fn test_windows(target: &str) {
583
583
match name {
584
584
// FIXME: API error:
585
585
// SIG_ERR type is "void (*)(int)", not "int"
586
- "SIG_ERR" => true ,
586
+ "SIG_ERR" |
587
+ // Similar for SIG_DFL/IGN/GET/SGE/ACK
588
+ "SIG_DFL" | "SIG_IGN" | "SIG_GET" | "SIG_SGE" | "SIG_ACK" => true ,
587
589
// FIXME: newer windows-gnu environment on CI?
588
590
"_O_OBTAIN_DIR" if gnu => true ,
589
591
_ => false ,
Original file line number Diff line number Diff line change @@ -123,7 +123,12 @@ SIGILL
123
123
SIGINT
124
124
SIGSEGV
125
125
SIGTERM
126
+ SIG_ACK
127
+ SIG_DFL
126
128
SIG_ERR
129
+ SIG_GET
130
+ SIG_IGN
131
+ SIG_SGE
127
132
SOCKET
128
133
STRUNCATE
129
134
S_IEXEC
Original file line number Diff line number Diff line change @@ -244,7 +244,13 @@ pub const SIGSEGV: ::c_int = 11;
244
244
pub const SIGTERM : :: c_int = 15 ;
245
245
pub const SIGABRT : :: c_int = 22 ;
246
246
pub const NSIG : :: c_int = 23 ;
247
+
247
248
pub const SIG_ERR : :: c_int = -1 ;
249
+ pub const SIG_DFL : :: sighandler_t = 0 ;
250
+ pub const SIG_IGN : :: sighandler_t = 1 ;
251
+ pub const SIG_GET : :: sighandler_t = 2 ;
252
+ pub const SIG_SGE : :: sighandler_t = 3 ;
253
+ pub const SIG_ACK : :: sighandler_t = 4 ;
248
254
249
255
// inline comment below appeases style checker
250
256
#[ cfg( all( target_env = "msvc" , feature = "rustc-dep-of-std" ) ) ] // " if "
You can’t perform that action at this time.
0 commit comments