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