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