@@ -62,7 +62,8 @@ libc_enum!{
6262 #[ cfg( all( any( target_os = "android" , target_os = "emscripten" ,
6363 target_os = "fuchsia" , target_os = "linux" ) ,
6464 not( any( target_arch = "mips" , target_arch = "mips64" ,
65- target_arch = "sparc64" ) ) ) ) ]
65+ target_arch = "sparc64" ,
66+ target_arch = "loongarch64" ) ) ) ) ]
6667 SIGSTKFLT ,
6768 /// To parent on child stop or exit
6869 SIGCHLD ,
@@ -138,7 +139,8 @@ impl FromStr for Signal {
138139 #[ cfg( all( any( target_os = "android" , target_os = "emscripten" ,
139140 target_os = "fuchsia" , target_os = "linux" ) ,
140141 not( any( target_arch = "mips" , target_arch = "mips64" ,
141- target_arch = "sparc64" ) ) ) ) ]
142+ target_arch = "sparc64" ,
143+ target_arch = "loongarch64" ) ) ) ) ]
142144 "SIGSTKFLT" => Signal :: SIGSTKFLT ,
143145 "SIGCHLD" => Signal :: SIGCHLD ,
144146 "SIGCONT" => Signal :: SIGCONT ,
@@ -197,7 +199,9 @@ impl Signal {
197199 Signal :: SIGTERM => "SIGTERM" ,
198200 #[ cfg( all( any( target_os = "android" , target_os = "emscripten" ,
199201 target_os = "fuchsia" , target_os = "linux" ) ,
200- not( any( target_arch = "mips" , target_arch = "mips64" , target_arch = "sparc64" ) ) ) ) ]
202+ not( any( target_arch = "mips" , target_arch = "mips64" ,
203+ target_arch = "sparc64" ,
204+ target_arch = "loongarch64" ) ) ) ) ]
201205 Signal :: SIGSTKFLT => "SIGSTKFLT" ,
202206 Signal :: SIGCHLD => "SIGCHLD" ,
203207 Signal :: SIGCONT => "SIGCONT" ,
@@ -312,7 +316,8 @@ const SIGNALS: [Signal; 28] = [
312316#[ cfg( all( any( target_os = "linux" , target_os = "android" ,
313317 target_os = "emscripten" , target_os = "fuchsia" ) ,
314318 not( any( target_arch = "mips" , target_arch = "mips64" ,
315- target_arch = "sparc64" ) ) ) ) ]
319+ target_arch = "sparc64" ,
320+ target_arch = "loongarch64" ) ) ) ) ]
316321#[ cfg( feature = "signal" ) ]
317322const SIGNALS : [ Signal ; 31 ] = [
318323 SIGHUP ,
0 commit comments