Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/sigabbrev.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 1870 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 /*
2 * sigabbrev.h
3 *
4 * Construct the abbreviated signal list
5 */
6
7 #include <signal.h>
8 #include <unistd.h>
9
10 const char *const sys_sigabbrev[NSIG] = {
11 #ifdef SIGABRT
12 [SIGABRT] = "ABRT",
13 #endif
14 #ifdef SIGALRM
15 [SIGALRM] = "ALRM",
16 #endif
17 #ifdef SIGBUS
18 [SIGBUS] = "BUS",
19 #endif
20 #ifdef SIGCHLD
21 [SIGCHLD] = "CHLD",
22 #endif
23 #if defined(SIGCLD) && (SIGCHLD != SIGCLD)
24 [SIGCLD] = "CLD",
25 #endif
26 #ifdef SIGEMT
27 [SIGEMT] = "EMT",
28 #endif
29 #ifdef SIGFPE
30 [SIGFPE] = "FPE",
31 #endif
32 #ifdef SIGHUP
33 [SIGHUP] = "HUP",
34 #endif
35 #ifdef SIGILL
36 [SIGILL] = "ILL",
37 #endif
38 /* SIGINFO == SIGPWR */
39 #ifdef SIGINT
40 [SIGINT] = "INT",
41 #endif
42 #ifdef SIGIO
43 [SIGIO] = "IO",
44 #endif
45 #if defined(SIGIOT) && (SIGIOT != SIGABRT)
46 [SIGIOT] = "IOT",
47 #endif
48 #ifdef SIGKILL
49 [SIGKILL] = "KILL",
50 #endif
51 #if defined(SIGLOST) && (SIGLOST != SIGIO) && (SIGLOST != SIGPWR)
52 [SIGLOST] = "LOST",
53 #endif
54 #ifdef SIGPIPE
55 [SIGPIPE] = "PIPE",
56 #endif
57 #if defined(SIGPOLL) && (SIGPOLL != SIGIO)
58 [SIGPOLL] = "POLL",
59 #endif
60 #ifdef SIGPROF
61 [SIGPROF] = "PROF",
62 #endif
63 #ifdef SIGPWR
64 [SIGPWR] = "PWR",
65 #endif
66 #ifdef SIGQUIT
67 [SIGQUIT] = "QUIT",
68 #endif
69 /* SIGRESERVE == SIGUNUSED */
70 #ifdef SIGSEGV
71 [SIGSEGV] = "SEGV",
72 #endif
73 #ifdef SIGSTKFLT
74 [SIGSTKFLT] = "STKFLT",
75 #endif
76 #ifdef SIGSTOP
77 [SIGSTOP] = "STOP",
78 #endif
79 #ifdef SIGSYS
80 [SIGSYS] = "SYS",
81 #endif
82 #ifdef SIGTERM
83 [SIGTERM] = "TERM",
84 #endif
85 #ifdef SIGTSTP
86 [SIGTSTP] = "TSTP",
87 #endif
88 #ifdef SIGTTIN
89 [SIGTTIN] = "TTIN",
90 #endif
91 #ifdef SIGTTOU
92 [SIGTTOU] = "TTOU",
93 #endif
94 #ifdef SIGURG
95 [SIGURG] = "URG",
96 #endif
97 #ifdef SIGUSR1
98 [SIGUSR1] = "USR1",
99 #endif
100 #ifdef SIGUSR2
101 [SIGUSR2] = "USR2",
102 #endif
103 #ifdef SIGVTALRM
104 [SIGVTALRM] = "VTALRM",
105 #endif
106 #ifdef SIGWINCH
107 [SIGWINCH] = "WINCH",
108 #endif
109 #ifdef SIGXCPU
110 [SIGXCPU] = "XCPU",
111 #endif
112 #ifdef SIGXFSZ
113 [SIGXFSZ] = "XFSZ",
114 #endif
115 #ifdef SIGTRAP
116 [SIGTRAP] = "TRAP",
117 #endif
118 #ifdef SIGCONT
119 [SIGCONT] = "CONT",
120 #endif
121 };