Skip to content

Commit e6dfbbb

Browse files
authored
Merge pull request #4353 from no1wudi/main
Add more signal constants for NuttX
2 parents 0cea762 + 7103b87 commit e6dfbbb

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

src/unix/nuttx/mod.rs

+33-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,39 @@ pub const _SC_THREAD_STACK_MIN: i32 = 0x58;
517517
pub const _SC_GETPW_R_SIZE_MAX: i32 = 0x25;
518518

519519
// signal.h
520-
pub const SIGPIPE: i32 = 13;
520+
pub const SIGHUP: c_int = 1;
521+
pub const SIGINT: c_int = 2;
522+
pub const SIGQUIT: c_int = 3;
523+
pub const SIGILL: c_int = 4;
524+
pub const SIGTRAP: c_int = 5;
525+
pub const SIGABRT: c_int = 6;
526+
pub const SIGIOT: c_int = 6;
527+
pub const SIGBUS: c_int = 7;
528+
pub const SIGFPE: c_int = 8;
529+
pub const SIGKILL: c_int = 9;
530+
pub const SIGUSR1: c_int = 10;
531+
pub const SIGSEGV: c_int = 11;
532+
pub const SIGUSR2: c_int = 12;
533+
pub const SIGPIPE: c_int = 13;
534+
pub const SIGALRM: c_int = 14;
535+
pub const SIGTERM: c_int = 15;
536+
pub const SIGSTKFLT: c_int = 16;
537+
pub const SIGCHLD: c_int = 17;
538+
pub const SIGCONT: c_int = 18;
539+
pub const SIGSTOP: c_int = 19;
540+
pub const SIGTSTP: c_int = 20;
541+
pub const SIGTTIN: c_int = 21;
542+
pub const SIGTTOU: c_int = 22;
543+
pub const SIGURG: c_int = 23;
544+
pub const SIGXCPU: c_int = 24;
545+
pub const SIGXFSZ: c_int = 25;
546+
pub const SIGVTALRM: c_int = 26;
547+
pub const SIGPROF: c_int = 27;
548+
pub const SIGWINCH: c_int = 28;
549+
pub const SIGIO: c_int = 29;
550+
pub const SIGPOLL: c_int = SIGIO;
551+
pub const SIGPWR: c_int = 30;
552+
pub const SIGSYS: c_int = 31;
521553

522554
// pthread.h
523555
pub const PTHREAD_MUTEX_NORMAL: i32 = 0;

0 commit comments

Comments
 (0)