comparison src/sighandlers.h @ 834:44ce29d8cb7b

[project @ 1994-10-19 18:17:44 by jwe]
author jwe
date Wed, 19 Oct 1994 18:19:16 +0000
parents 0b52c68ec81f
children b8530da02bb7
comparison
equal deleted inserted replaced
833:bd2e9171b66a 834:44ce29d8cb7b
19 along with Octave; see the file COPYING. If not, write to the Free 19 along with Octave; see the file COPYING. If not, write to the Free
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
21 21
22 */ 22 */
23 23
24 // This file should always be included after config.h!
25
24 #if !defined (octave_sighandlers_h) 26 #if !defined (octave_sighandlers_h)
25 #define octave_sighandlers_h 1 27 #define octave_sighandlers_h 1
26 28
27 // Signal handler return type. 29 // Signal handler return type.
28 #ifndef RETSIGTYPE 30 #ifndef RETSIGTYPE
41 // Nonzero means we can be interrupted. 43 // Nonzero means we can be interrupted.
42 extern int can_interrupt; 44 extern int can_interrupt;
43 45
44 extern void install_signal_handlers (void); 46 extern void install_signal_handlers (void);
45 47
48 // This is taken directly from Emacs 19:
49
50 #ifndef HAVE_SYS_SIGLIST
51 char *sys_siglist[NSIG + 1] =
52 {
53 #ifdef AIX
54 /* AIX has changed the signals a bit */
55 "bogus signal", /* 0 */
56 "hangup", /* 1 SIGHUP */
57 "interrupt", /* 2 SIGINT */
58 "quit", /* 3 SIGQUIT */
59 "illegal instruction", /* 4 SIGILL */
60 "trace trap", /* 5 SIGTRAP */
61 "IOT instruction", /* 6 SIGIOT */
62 "crash likely", /* 7 SIGDANGER */
63 "floating point exception", /* 8 SIGFPE */
64 "kill", /* 9 SIGKILL */
65 "bus error", /* 10 SIGBUS */
66 "segmentation violation", /* 11 SIGSEGV */
67 "bad argument to system call", /* 12 SIGSYS */
68 "write on a pipe with no one to read it", /* 13 SIGPIPE */
69 "alarm clock", /* 14 SIGALRM */
70 "software termination signum", /* 15 SIGTERM */
71 "user defined signal 1", /* 16 SIGUSR1 */
72 "user defined signal 2", /* 17 SIGUSR2 */
73 "death of a child", /* 18 SIGCLD */
74 "power-fail restart", /* 19 SIGPWR */
75 "bogus signal", /* 20 */
76 "bogus signal", /* 21 */
77 "bogus signal", /* 22 */
78 "bogus signal", /* 23 */
79 "bogus signal", /* 24 */
80 "LAN I/O interrupt", /* 25 SIGAIO */
81 "PTY I/O interrupt", /* 26 SIGPTY */
82 "I/O intervention required", /* 27 SIGIOINT */
83 "HFT grant", /* 28 SIGGRANT */
84 "HFT retract", /* 29 SIGRETRACT */
85 "HFT sound done", /* 30 SIGSOUND */
86 "HFT input ready", /* 31 SIGMSG */
87 #else /* not AIX */
88 "bogus signal", /* 0 */
89 "hangup", /* 1 SIGHUP */
90 "interrupt", /* 2 SIGINT */
91 "quit", /* 3 SIGQUIT */
92 "illegal instruction", /* 4 SIGILL */
93 "trace trap", /* 5 SIGTRAP */
94 "IOT instruction", /* 6 SIGIOT */
95 "EMT instruction", /* 7 SIGEMT */
96 "floating point exception", /* 8 SIGFPE */
97 "kill", /* 9 SIGKILL */
98 "bus error", /* 10 SIGBUS */
99 "segmentation violation", /* 11 SIGSEGV */
100 "bad argument to system call", /* 12 SIGSYS */
101 "write on a pipe with no one to read it", /* 13 SIGPIPE */
102 "alarm clock", /* 14 SIGALRM */
103 "software termination signum", /* 15 SIGTERM */
104 "user defined signal 1", /* 16 SIGUSR1 */
105 "user defined signal 2", /* 17 SIGUSR2 */
106 "death of a child", /* 18 SIGCLD */
107 "power-fail restart", /* 19 SIGPWR */
108 #ifdef sun
109 "window size change", /* 20 SIGWINCH */
110 "urgent socket condition", /* 21 SIGURG */
111 "pollable event occured", /* 22 SIGPOLL */
112 "stop (cannot be caught or ignored)", /* 23 SIGSTOP */
113 "user stop requested from tty", /* 24 SIGTSTP */
114 "stopped process has been continued", /* 25 SIGCONT */
115 "background tty read attempted", /* 26 SIGTTIN */
116 "background tty write attempted", /* 27 SIGTTOU */
117 "virtual timer expired", /* 28 SIGVTALRM */
118 "profiling timer expired", /* 29 SIGPROF */
119 "exceeded cpu limit", /* 30 SIGXCPU */
120 "exceeded file size limit", /* 31 SIGXFSZ */
121 "process's lwps are blocked", /* 32 SIGWAITING */
122 "special signal used by thread library", /* 33 SIGLWP */
123 #ifdef SIGFREEZE
124 "Special Signal Used By CPR", /* 34 SIGFREEZE */
125 #endif
126 #ifdef SIGTHAW
127 "Special Signal Used By CPR", /* 35 SIGTHAW */
128 #endif
129 #endif /* sun */
130 #endif /* not AIX */
131 0
132 };
133 #endif
134
46 #endif 135 #endif
47 136
48 /* 137 /*
49 ;;; Local Variables: *** 138 ;;; Local Variables: ***
50 ;;; mode: C++ *** 139 ;;; mode: C++ ***