1
|
1 // sighandlers.h -*- C++ -*- |
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton |
1
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
834
|
24 // This file should always be included after config.h! |
|
25 |
383
|
26 #if !defined (octave_sighandlers_h) |
|
27 #define octave_sighandlers_h 1 |
1
|
28 |
290
|
29 // Signal handler return type. |
|
30 #ifndef RETSIGTYPE |
|
31 #define RETSIGTYPE void |
|
32 #endif |
|
33 #ifndef BADSIG |
|
34 #define BADSIG (RETSIGTYPE (*)(int))-1 |
|
35 #endif |
|
36 |
|
37 typedef RETSIGTYPE sig_handler (int); |
|
38 |
1
|
39 // Nonzero means we have already printed a message for this series of |
|
40 // SIGPIPES. We assume that the writer will eventually give up. |
|
41 extern int pipe_handler_error_count; |
|
42 |
|
43 // Nonzero means we can be interrupted. |
|
44 extern int can_interrupt; |
|
45 |
|
46 extern void install_signal_handlers (void); |
|
47 |
834
|
48 // This is taken directly from Emacs 19: |
|
49 |
839
|
50 #ifndef SYS_SIGLIST_DECLARED |
|
51 extern char *sys_siglist[]; |
834
|
52 #endif |
|
53 |
1
|
54 #endif |
|
55 |
|
56 /* |
|
57 ;;; Local Variables: *** |
|
58 ;;; mode: C++ *** |
|
59 ;;; page-delimiter: "^/\\*" *** |
|
60 ;;; End: *** |
|
61 */ |