Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/siglist.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: 2218 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 * siglist.h
3 *
4 * Construct the signal list
5 */
6
7 #include <signal.h>
8 #include <unistd.h>
9
10 const char *const sys_siglist[NSIG] = {
11 #ifdef SIGABRT
12 [SIGABRT] = "Aborted",
13 #endif
14 #ifdef SIGALRM
15 [SIGALRM] = "Alarm clock",
16 #endif
17 #ifdef SIGBUS
18 [SIGBUS] = "Bus error",
19 #endif
20 #ifdef SIGCHLD
21 [SIGCHLD] = "Child exited",
22 #endif
23 #if defined(SIGCLD) && (SIGCHLD != SIGCLD)
24 [SIGCLD] = "Child exited",
25 #endif
26 #ifdef SIGEMT
27 [SIGEMT] = "Emulation trap",
28 #endif
29 #ifdef SIGFPE
30 [SIGFPE] = "Floating point exception",
31 #endif
32 #ifdef SIGHUP
33 [SIGHUP] = "Hangup",
34 #endif
35 #ifdef SIGILL
36 [SIGILL] = "Illegal instruction",
37 #endif
38 /* SIGINFO == SIGPWR */
39 #ifdef SIGINT
40 [SIGINT] = "Interrupt",
41 #endif
42 #ifdef SIGIO
43 [SIGIO] = "I/O possible",
44 #endif
45 #if defined(SIGIOT) && (SIGIOT != SIGABRT)
46 [SIGIOT] = "I/O trap",
47 #endif
48 #ifdef SIGKILL
49 [SIGKILL] = "Killed",
50 #endif
51 #if defined(SIGLOST) && (SIGLOST != SIGIO) && (SIGLOST != SIGPWR)
52 [SIGLOST] = "Lock lost",
53 #endif
54 #ifdef SIGPIPE
55 [SIGPIPE] = "Broken pipe",
56 #endif
57 #if defined(SIGPOLL) && (SIGPOLL != SIGIO)
58 [SIGPOLL] = "Pollable event",
59 #endif
60 #ifdef SIGPROF
61 [SIGPROF] = "Profiling timer expired",
62 #endif
63 #ifdef SIGPWR
64 [SIGPWR] = "Power failure",
65 #endif
66 #ifdef SIGQUIT
67 [SIGQUIT] = "Quit",
68 #endif
69 /* SIGRESERVE == SIGUNUSED */
70 #ifdef SIGSEGV
71 [SIGSEGV] = "Segment violation",
72 #endif
73 #ifdef SIGSTKFLT
74 [SIGSTKFLT] = "Stack fault",
75 #endif
76 #ifdef SIGSTOP
77 [SIGSTOP] = "Stopped (signal)",
78 #endif
79 #ifdef SIGSYS
80 [SIGSYS] = "Bad system call",
81 #endif
82 #ifdef SIGTERM
83 [SIGTERM] = "Terminated",
84 #endif
85 #ifdef SIGTSTP
86 [SIGTSTP] = "Stopped",
87 #endif
88 #ifdef SIGTTIN
89 [SIGTTIN] = "Stopped (tty input)",
90 #endif
91 #ifdef SIGTTOU
92 [SIGTTOU] = "Stopped (tty output)",
93 #endif
94 #ifdef SIGURG
95 [SIGURG] = "Urgent I/O condition",
96 #endif
97 #ifdef SIGUSR1
98 [SIGUSR1] = "User signal 1",
99 #endif
100 #ifdef SIGUSR2
101 [SIGUSR2] = "User signal 2",
102 #endif
103 #ifdef SIGVTALRM
104 [SIGVTALRM] = "Virtual timer expired",
105 #endif
106 #ifdef SIGWINCH
107 [SIGWINCH] = "Window size changed",
108 #endif
109 #ifdef SIGXCPU
110 [SIGXCPU] = "CPU time limit exceeded",
111 #endif
112 #ifdef SIGXFSZ
113 [SIGXFSZ] = "File size limit exceeded",
114 #endif
115 #ifdef SIGTRAP
116 [SIGTRAP] = "Trace/breakpoint trap",
117 #endif
118 #ifdef SIGCONT
119 [SIGCONT] = "Continue",
120 #endif
121 };