FORM  4.1
portsignals.h
Go to the documentation of this file.
1 #ifndef PORTSIGNAL_H
2 #define PORTSIGNAL_H
3 
18 /* #[ License : */
19 /*
20  * Copyright (C) 1984-2013 J.A.M. Vermaseren
21  * When using this file you are requested to refer to the publication
22  * J.A.M.Vermaseren "New features of FORM" math-ph/0010025
23  * This is considered a matter of courtesy as the development was paid
24  * for by FOM the Dutch physics granting agency and we would like to
25  * be able to track its scientific use to convince FOM of its value
26  * for the community.
27  *
28  * This file is part of FORM.
29  *
30  * FORM is free software: you can redistribute it and/or modify it under the
31  * terms of the GNU General Public License as published by the Free Software
32  * Foundation, either version 3 of the License, or (at your option) any later
33  * version.
34  *
35  * FORM is distributed in the hope that it will be useful, but WITHOUT ANY
36  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
37  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
38  * details.
39  *
40  * You should have received a copy of the GNU General Public License along
41  * with FORM. If not, see <http://www.gnu.org/licenses/>.
42  */
43 /* #] License : */
44 
45 #include <signal.h>
46 
47 #define FATAL_SIG_ERROR 4
48 
49 #ifndef NSIG
50 /*
51  The value of NSIG must be enough to fall outside the range of defined signals
52 */
53 #define NSIG (1024)
54 #endif
55 
56 #ifndef SIGSEGV
57 #define SIGSEGV (NSIG+1)
58 #endif
59 #ifndef SIGFPE
60 #define SIGFPE (NSIG+2)
61 #endif
62 #ifndef SIGILL
63 #define SIGILL (NSIG+3)
64 #endif
65 #ifndef SIGEMT
66 #define SIGEMT (NSIG+4)
67 #endif
68 #ifndef SIGSYS
69 #define SIGSYS (NSIG+5)
70 #endif
71 #ifndef SIGPIPE
72 #define SIGPIPE (NSIG+6)
73 #endif
74 #ifndef SIGLOST
75 #define SIGLOST (NSIG+7)
76 #endif
77 #ifndef SIGXCPU
78 #define SIGXCPU (NSIG+8)
79 #endif
80 #ifndef SIGXFSZ
81 #define SIGXFSZ (NSIG+9)
82 #endif
83 #ifndef SIGTERM
84 #define SIGTERM (NSIG+10)
85 #endif
86 #ifndef SIGINT
87 #define SIGINT (NSIG+11)
88 #endif
89 #ifndef SIGQUIT
90 #define SIGQUIT (NSIG+12)
91 #endif
92 #ifndef SIGHUP
93 #define SIGHUP (NSIG+13)
94 #endif
95 #ifndef SIGALRM
96 #define SIGALRM (NSIG+14)
97 #endif
98 #ifndef SIGVTALRM
99 #define SIGVTALRM (NSIG+15)
100 #endif
101 #ifndef SIGPROF
102 #define SIGPROF (NSIG+16)
103 #endif
104 
105 #endif