3547
|
1 /* |
|
2 |
|
3 Copyright (C) 2000 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
3547
|
21 |
|
22 */ |
|
23 |
|
24 #ifdef HAVE_CONFIG_H |
|
25 #include <config.h> |
|
26 #endif |
|
27 |
3579
|
28 #include <signal.h> |
|
29 |
3547
|
30 #include "siglist.h" |
|
31 |
|
32 #ifndef HAVE_SYS_SIGLIST |
|
33 char *sys_siglist[NSIG + 1] = |
|
34 { |
|
35 #ifdef AIX |
|
36 /* AIX has changed the signals a bit */ |
|
37 "bogus signal", /* 0 */ |
|
38 "hangup", /* 1 SIGHUP */ |
|
39 "interrupt", /* 2 SIGINT */ |
|
40 "quit", /* 3 SIGQUIT */ |
|
41 "illegal instruction", /* 4 SIGILL */ |
|
42 "trace trap", /* 5 SIGTRAP */ |
|
43 "IOT instruction", /* 6 SIGIOT */ |
|
44 "crash likely", /* 7 SIGDANGER */ |
|
45 "floating point exception", /* 8 SIGFPE */ |
|
46 "kill", /* 9 SIGKILL */ |
|
47 "bus error", /* 10 SIGBUS */ |
|
48 "segmentation violation", /* 11 SIGSEGV */ |
|
49 "bad argument to system call", /* 12 SIGSYS */ |
|
50 "write on a pipe with no one to read it", /* 13 SIGPIPE */ |
|
51 "alarm clock", /* 14 SIGALRM */ |
|
52 "software termination signum", /* 15 SIGTERM */ |
|
53 "user defined signal 1", /* 16 SIGUSR1 */ |
|
54 "user defined signal 2", /* 17 SIGUSR2 */ |
|
55 "death of a child", /* 18 SIGCLD */ |
|
56 "power-fail restart", /* 19 SIGPWR */ |
|
57 "bogus signal", /* 20 */ |
|
58 "bogus signal", /* 21 */ |
|
59 "bogus signal", /* 22 */ |
|
60 "bogus signal", /* 23 */ |
|
61 "bogus signal", /* 24 */ |
|
62 "LAN I/O interrupt", /* 25 SIGAIO */ |
|
63 "PTY I/O interrupt", /* 26 SIGPTY */ |
|
64 "I/O intervention required", /* 27 SIGIOINT */ |
|
65 "HFT grant", /* 28 SIGGRANT */ |
|
66 "HFT retract", /* 29 SIGRETRACT */ |
|
67 "HFT sound done", /* 30 SIGSOUND */ |
|
68 "HFT input ready", /* 31 SIGMSG */ |
|
69 #else /* not AIX */ |
|
70 #ifdef __EMX__ |
|
71 "bogus signal #0", /* 0 */ |
|
72 "hangup", /* 1 SIGHUP */ |
|
73 "interrupt (Ctrl-C)", /* 2 SIGINT (Ctrl-C) */ |
|
74 "quit", /* 3 SIGQUIT */ |
|
75 "illegal instruction", /* 4 SIGILL */ |
|
76 "single step", /* 5 SIGTRAP */ |
|
77 "abort", /* 6 SIGABRT */ |
|
78 "EMT instruction", /* 7 SIGEMT */ |
|
79 "floating point exception", /* 8 SIGFPE */ |
|
80 "kill", /* 9 SIGKILL */ |
|
81 "bus error", /* 10 SIGBUS */ |
|
82 "segmentation violation", /* 11 SIGSEGV */ |
|
83 "bad argument to system call", /* 12 SIGSYS */ |
|
84 "broken pipe", /* 13 SIGPIPE */ |
|
85 "alarm clock", /* 14 SIGALRM */ |
|
86 "software termination signum", /* 15 SIGTERM */ |
|
87 "user defined signal 1", /* 16 SIGUSR1 */ |
|
88 "user defined signal 2", /* 17 SIGUSR2 */ |
|
89 "death of a child", /* 18 SIGCHLD */ |
|
90 "bogus signal #20", /* 19 */ |
|
91 "bogus signal #21", /* 20 */ |
|
92 "break (Ctrl-Break)", /* 21 SIGBREAK */ |
|
93 #else /* not __EMX__ */ |
|
94 "bogus signal", /* 0 */ |
|
95 "hangup", /* 1 SIGHUP */ |
|
96 "interrupt", /* 2 SIGINT */ |
|
97 "quit", /* 3 SIGQUIT */ |
|
98 "illegal instruction", /* 4 SIGILL */ |
|
99 "trace trap", /* 5 SIGTRAP */ |
|
100 "IOT instruction", /* 6 SIGIOT */ |
|
101 "EMT instruction", /* 7 SIGEMT */ |
|
102 "floating point exception", /* 8 SIGFPE */ |
|
103 "kill", /* 9 SIGKILL */ |
|
104 "bus error", /* 10 SIGBUS */ |
|
105 "segmentation violation", /* 11 SIGSEGV */ |
|
106 "bad argument to system call", /* 12 SIGSYS */ |
|
107 "write on a pipe with no one to read it", /* 13 SIGPIPE */ |
|
108 "alarm clock", /* 14 SIGALRM */ |
|
109 "software termination signum", /* 15 SIGTERM */ |
|
110 "user defined signal 1", /* 16 SIGUSR1 */ |
|
111 "user defined signal 2", /* 17 SIGUSR2 */ |
|
112 "death of a child", /* 18 SIGCLD */ |
|
113 "power-fail restart", /* 19 SIGPWR */ |
|
114 #ifdef sun |
|
115 "window size change", /* 20 SIGWINCH */ |
|
116 "urgent socket condition", /* 21 SIGURG */ |
|
117 "pollable event occured", /* 22 SIGPOLL */ |
|
118 "stop (cannot be caught or ignored)", /* 23 SIGSTOP */ |
|
119 "user stop requested from tty", /* 24 SIGTSTP */ |
|
120 "stopped process has been continued", /* 25 SIGCONT */ |
|
121 "background tty read attempted", /* 26 SIGTTIN */ |
|
122 "background tty write attempted", /* 27 SIGTTOU */ |
|
123 "virtual timer expired", /* 28 SIGVTALRM */ |
|
124 "profiling timer expired", /* 29 SIGPROF */ |
|
125 "exceeded cpu limit", /* 30 SIGXCPU */ |
|
126 "exceeded file size limit", /* 31 SIGXFSZ */ |
|
127 "process's lwps are blocked", /* 32 SIGWAITING */ |
|
128 "special signal used by thread library", /* 33 SIGLWP */ |
|
129 #ifdef SIGFREEZE |
|
130 "Special Signal Used By CPR", /* 34 SIGFREEZE */ |
|
131 #endif |
|
132 #ifdef SIGTHAW |
|
133 "Special Signal Used By CPR", /* 35 SIGTHAW */ |
|
134 #endif |
|
135 #endif /* sun */ |
|
136 #endif /* __EMX__ */ |
|
137 #endif /* AIX */ |
|
138 0 |
|
139 }; |
|
140 #endif |
|
141 |
|
142 /* |
|
143 ;;; Local Variables: *** |
|
144 ;;; mode: C++ *** |
|
145 ;;; End: *** |
|
146 */ |