Path: blob/master/security/apparmor/include/sig_names.h
26424 views
#include <linux/signal.h>1#include "signal.h"23/* provide a mapping of arch signal to internal signal # for mediation4* those that are always an alias SIGCLD for SIGCLHD and SIGPOLL for SIGIO5* map to the same entry those that may/or may not get a separate entry6*/7static const int sig_map[MAXMAPPED_SIG] = {8[0] = MAXMAPPED_SIG, /* existence test */9[SIGHUP] = 1,10[SIGINT] = 2,11[SIGQUIT] = 3,12[SIGILL] = 4,13[SIGTRAP] = 5, /* -, 5, - */14[SIGABRT] = 6, /* SIGIOT: -, 6, - */15[SIGBUS] = 7, /* 10, 7, 10 */16[SIGFPE] = 8,17[SIGKILL] = 9,18[SIGUSR1] = 10, /* 30, 10, 16 */19[SIGSEGV] = 11,20[SIGUSR2] = 12, /* 31, 12, 17 */21[SIGPIPE] = 13,22[SIGALRM] = 14,23[SIGTERM] = 15,24#ifdef SIGSTKFLT25[SIGSTKFLT] = 16, /* -, 16, - */26#endif27[SIGCHLD] = 17, /* 20, 17, 18. SIGCHLD -, -, 18 */28[SIGCONT] = 18, /* 19, 18, 25 */29[SIGSTOP] = 19, /* 17, 19, 23 */30[SIGTSTP] = 20, /* 18, 20, 24 */31[SIGTTIN] = 21, /* 21, 21, 26 */32[SIGTTOU] = 22, /* 22, 22, 27 */33[SIGURG] = 23, /* 16, 23, 21 */34[SIGXCPU] = 24, /* 24, 24, 30 */35[SIGXFSZ] = 25, /* 25, 25, 31 */36[SIGVTALRM] = 26, /* 26, 26, 28 */37[SIGPROF] = 27, /* 27, 27, 29 */38[SIGWINCH] = 28, /* 28, 28, 20 */39[SIGIO] = 29, /* SIGPOLL: 23, 29, 22 */40[SIGPWR] = 30, /* 29, 30, 19. SIGINFO 29, -, - */41#ifdef SIGSYS42[SIGSYS] = 31, /* 12, 31, 12. often SIG LOST/UNUSED */43#endif44#ifdef SIGEMT45[SIGEMT] = 32, /* 7, - , 7 */46#endif47#if defined(SIGLOST) && SIGPWR != SIGLOST /* sparc */48[SIGLOST] = 33, /* unused on Linux */49#endif50#if defined(SIGUNUSED) && \51defined(SIGLOST) && defined(SIGSYS) && SIGLOST != SIGSYS52[SIGUNUSED] = 34, /* -, 31, - */53#endif54};5556/* this table is ordered post sig_map[sig] mapping */57static const char *const sig_names[MAXMAPPED_SIGNAME] = {58"unknown",59"hup",60"int",61"quit",62"ill",63"trap",64"abrt",65"bus",66"fpe",67"kill",68"usr1",69"segv",70"usr2",71"pipe",72"alrm",73"term",74"stkflt",75"chld",76"cont",77"stop",78"stp",79"ttin",80"ttou",81"urg",82"xcpu",83"xfsz",84"vtalrm",85"prof",86"winch",87"io",88"pwr",89"sys",90"emt",91"lost",92"unused",9394"exists", /* always last existence test mapped to MAXMAPPED_SIG */95};96979899