@@ -319,7 +319,8 @@ const SIGNALS: [Signal; 28] = [
319
319
not( any(
320
320
target_arch = "mips" ,
321
321
target_arch = "mips64" ,
322
- target_arch = "sparc64"
322
+ target_arch = "sparc64" ,
323
+ target_arch = "loongarch64"
323
324
) )
324
325
) ) ]
325
326
#[ cfg( feature = "signal" ) ]
@@ -360,6 +361,18 @@ const SIGNALS: [Signal; 31] = [
360
361
SIGSTOP , SIGTSTP , SIGTTIN , SIGTTOU , SIGURG , SIGXCPU , SIGXFSZ , SIGVTALRM ,
361
362
SIGPROF , SIGWINCH , SIGIO , SIGSYS , SIGEMT , SIGINFO ,
362
363
] ;
364
+ #[ cfg( all(
365
+ any( target_os = "linux" ) ,
366
+ any( target_arch = "loongarch64" )
367
+ ) ) ]
368
+ #[ cfg( feature = "signal" ) ]
369
+ const SIGNALS : [ Signal ; 31 ] = [
370
+ SIGHUP , SIGINT , SIGQUIT , SIGILL , SIGTRAP , SIGABRT , SIGBUS ,
371
+ SIGFPE , SIGKILL , SIGUSR1 , SIGSEGV , SIGUSR2 , SIGPIPE , SIGALRM ,
372
+ SIGTERM , SIGSTKFLT , SIGCHLD , SIGCONT , SIGSTOP , SIGTSTP , SIGTTIN ,
373
+ SIGTTOU , SIGURG , SIGXCPU , SIGXFSZ , SIGVTALRM , SIGPROF , SIGWINCH ,
374
+ SIGIO , SIGPWR , SIGSYS
375
+ ] ;
363
376
364
377
feature ! {
365
378
#![ feature = "signal" ]
0 commit comments