1 #include <linux/signal.h>
4 #define MAXMAPPED_SIG 35
5 #define MAXMAPPED_SIGNAME (MAXMAPPED_SIG + 1)
8 /* provide a mapping of arch signal to internal signal # for mediation
9 * those that are always an alias SIGCLD for SIGCLHD and SIGPOLL for SIGIO
10 * map to the same entry those that may/or may not get a separate entry
12 static const int sig_map
[MAXMAPPED_SIG
] = {
13 [0] = MAXMAPPED_SIG
, /* existence test */
18 [SIGTRAP
] = 5, /* -, 5, - */
19 [SIGABRT
] = 6, /* SIGIOT: -, 6, - */
20 [SIGBUS
] = 7, /* 10, 7, 10 */
23 [SIGUSR1
] = 10, /* 30, 10, 16 */
25 [SIGUSR2
] = 12, /* 31, 12, 17 */
30 [SIGSTKFLT
] = 16, /* -, 16, - */
32 [SIGCHLD
] = 17, /* 20, 17, 18. SIGCHLD -, -, 18 */
33 [SIGCONT
] = 18, /* 19, 18, 25 */
34 [SIGSTOP
] = 19, /* 17, 19, 23 */
35 [SIGTSTP
] = 20, /* 18, 20, 24 */
36 [SIGTTIN
] = 21, /* 21, 21, 26 */
37 [SIGTTOU
] = 22, /* 22, 22, 27 */
38 [SIGURG
] = 23, /* 16, 23, 21 */
39 [SIGXCPU
] = 24, /* 24, 24, 30 */
40 [SIGXFSZ
] = 25, /* 25, 25, 31 */
41 [SIGVTALRM
] = 26, /* 26, 26, 28 */
42 [SIGPROF
] = 27, /* 27, 27, 29 */
43 [SIGWINCH
] = 28, /* 28, 28, 20 */
44 [SIGIO
] = 29, /* SIGPOLL: 23, 29, 22 */
45 [SIGPWR
] = 30, /* 29, 30, 19. SIGINFO 29, -, - */
47 [SIGSYS
] = 31, /* 12, 31, 12. often SIG LOST/UNUSED */
50 [SIGEMT
] = 32, /* 7, - , 7 */
52 #if defined(SIGLOST) && SIGPWR != SIGLOST /* sparc */
53 [SIGLOST
] = 33, /* unused on Linux */
55 #if defined(SIGUNUSED) && \
56 defined(SIGLOST) && defined(SIGSYS) && SIGLOST != SIGSYS
57 [SIGUNUSED
] = 34, /* -, 31, - */
61 /* this table is ordered post sig_map[sig] mapping */
62 static const char *const sig_names
[MAXMAPPED_SIGNAME
] = {
99 "exists", /* always last existence test mapped to MAXMAPPED_SIG */