| 1 | #include <linux/signal.h>
|
| 2 | #include "signal.h"
|
| 3 |
|
| 4 | |
| 5 | * those that are always an alias SIGCLD for SIGCLHD and SIGPOLL for SIGIO
|
| 6 | * map to the same entry those that may/or may not get a separate entry
|
| 7 |
|
| 8 | static const int sig_map[MAXMAPPED_SIG] = {
|
| 9 | [0] = MAXMAPPED_SIG,
|
| 10 | [SIGHUP] = 1,
|
| 11 | [SIGINT] = 2,
|
| 12 | [SIGQUIT] = 3,
|
| 13 | [SIGILL] = 4,
|
| 14 | [SIGTRAP] = 5,
|
| 15 | [SIGABRT] = 6,
|
| 16 | [SIGBUS] = 7,
|
| 17 | [SIGFPE] = 8,
|
| 18 | [SIGKILL] = 9,
|
| 19 | [SIGUSR1] = 10,
|
| 20 | [SIGSEGV] = 11,
|
| 21 | [SIGUSR2] = 12,
|
| 22 | [SIGPIPE] = 13,
|
| 23 | [SIGALRM] = 14,
|
| 24 | [SIGTERM] = 15,
|
| 25 | #ifdef SIGSTKFLT
|
| 26 | [SIGSTKFLT] = 16,
|
| 27 | #endif
|
| 28 | [SIGCHLD] = 17,
|
| 29 | [SIGCONT] = 18,
|
| 30 | [SIGSTOP] = 19,
|
| 31 | [SIGTSTP] = 20,
|
| 32 | [SIGTTIN] = 21,
|
| 33 | [SIGTTOU] = 22,
|
| 34 | [SIGURG] = 23,
|
| 35 | [SIGXCPU] = 24,
|
| 36 | [SIGXFSZ] = 25,
|
| 37 | [SIGVTALRM] = 26,
|
| 38 | [SIGPROF] = 27,
|
| 39 | [SIGWINCH] = 28,
|
| 40 | [SIGIO] = 29,
|
| 41 | [SIGPWR] = 30,
|
| 42 | #ifdef SIGSYS
|
| 43 | [SIGSYS] = 31,
|
| 44 | #endif
|
| 45 | #ifdef SIGEMT
|
| 46 | [SIGEMT] = 32,
|
| 47 | #endif
|
| 48 | #if defined(SIGLOST) && SIGPWR != SIGLOST
|
| 49 | [SIGLOST] = 33,
|
| 50 | #endif
|
| 51 | #if defined(SIGUNUSED) && \
|
| 52 | defined(SIGLOST) && defined(SIGSYS) && SIGLOST != SIGSYS
|
| 53 | [SIGUNUSED] = 34,
|
| 54 | #endif
|
| 55 | };
|
| 56 |
|
| 57 |
|
| 58 | static const char *const sig_names[MAXMAPPED_SIGNAME] = {
|
| 59 | "unknown",
|
| 60 | "hup",
|
| 61 | "int",
|
| 62 | "quit",
|
| 63 | "ill",
|
| 64 | "trap",
|
| 65 | "abrt",
|
| 66 | "bus",
|
| 67 | "fpe",
|
| 68 | "kill",
|
| 69 | "usr1",
|
| 70 | "segv",
|
| 71 | "usr2",
|
| 72 | "pipe",
|
| 73 | "alrm",
|
| 74 | "term",
|
| 75 | "stkflt",
|
| 76 | "chld",
|
| 77 | "cont",
|
| 78 | "stop",
|
| 79 | "stp",
|
| 80 | "ttin",
|
| 81 | "ttou",
|
| 82 | "urg",
|
| 83 | "xcpu",
|
| 84 | "xfsz",
|
| 85 | "vtalrm",
|
| 86 | "prof",
|
| 87 | "winch",
|
| 88 | "io",
|
| 89 | "pwr",
|
| 90 | "sys",
|
| 91 | "emt",
|
| 92 | "lost",
|
| 93 | "unused",
|
| 94 |
|
| 95 | "exists",
|
| 96 | };
|
| 97 |
|