1*b30d1939SAndy Fiddaman
2*b30d1939SAndy Fiddaman/* : : generated by proto : : */
3*b30d1939SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/signal.c by iffe version 2012-07-17 : : */
4*b30d1939SAndy Fiddaman#ifndef _def_signal_ast
5*b30d1939SAndy Fiddaman#if !defined(__PROTO__)
6*b30d1939SAndy Fiddaman#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
7*b30d1939SAndy Fiddaman#    if defined(__cplusplus)
8*b30d1939SAndy Fiddaman#      define __LINKAGE__	"C"
9*b30d1939SAndy Fiddaman#    else
10*b30d1939SAndy Fiddaman#      define __LINKAGE__
11*b30d1939SAndy Fiddaman#    endif
12*b30d1939SAndy Fiddaman#    define __STDARG__
13*b30d1939SAndy Fiddaman#    define __PROTO__(x)	x
14*b30d1939SAndy Fiddaman#    define __OTORP__(x)
15*b30d1939SAndy Fiddaman#    define __PARAM__(n,o)	n
16*b30d1939SAndy Fiddaman#    if !defined(__STDC__) && !defined(__cplusplus)
17*b30d1939SAndy Fiddaman#      if !defined(c_plusplus)
18*b30d1939SAndy Fiddaman#      	define const
19*b30d1939SAndy Fiddaman#      endif
20*b30d1939SAndy Fiddaman#      define signed
21*b30d1939SAndy Fiddaman#      define void		int
22*b30d1939SAndy Fiddaman#      define volatile
23*b30d1939SAndy Fiddaman#      define __V_		char
24*b30d1939SAndy Fiddaman#    else
25*b30d1939SAndy Fiddaman#      define __V_		void
26*b30d1939SAndy Fiddaman#    endif
27*b30d1939SAndy Fiddaman#  else
28*b30d1939SAndy Fiddaman#    define __PROTO__(x)	()
29*b30d1939SAndy Fiddaman#    define __OTORP__(x)	x
30*b30d1939SAndy Fiddaman#    define __PARAM__(n,o)	o
31*b30d1939SAndy Fiddaman#    define __LINKAGE__
32*b30d1939SAndy Fiddaman#    define __V_		char
33*b30d1939SAndy Fiddaman#    define const
34*b30d1939SAndy Fiddaman#    define signed
35*b30d1939SAndy Fiddaman#    define void		int
36*b30d1939SAndy Fiddaman#    define volatile
37*b30d1939SAndy Fiddaman#  endif
38*b30d1939SAndy Fiddaman#  define __MANGLE__	__LINKAGE__
39*b30d1939SAndy Fiddaman#  if defined(__cplusplus) || defined(c_plusplus)
40*b30d1939SAndy Fiddaman#    define __VARARG__	...
41*b30d1939SAndy Fiddaman#  else
42*b30d1939SAndy Fiddaman#    define __VARARG__
43*b30d1939SAndy Fiddaman#  endif
44*b30d1939SAndy Fiddaman#  if defined(__STDARG__)
45*b30d1939SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p,a)
46*b30d1939SAndy Fiddaman#  else
47*b30d1939SAndy Fiddaman#    define __VA_START__(p,a)	va_start(p)
48*b30d1939SAndy Fiddaman#  endif
49*b30d1939SAndy Fiddaman#  if !defined(__INLINE__)
50*b30d1939SAndy Fiddaman#    if defined(__cplusplus)
51*b30d1939SAndy Fiddaman#      define __INLINE__	extern __MANGLE__ inline
52*b30d1939SAndy Fiddaman#    else
53*b30d1939SAndy Fiddaman#      if defined(_WIN32) && !defined(__GNUC__)
54*b30d1939SAndy Fiddaman#      	define __INLINE__	__inline
55*b30d1939SAndy Fiddaman#      endif
56*b30d1939SAndy Fiddaman#    endif
57*b30d1939SAndy Fiddaman#  endif
58*b30d1939SAndy Fiddaman#endif
59*b30d1939SAndy Fiddaman#if !defined(__LINKAGE__)
60*b30d1939SAndy Fiddaman#define __LINKAGE__		/* 2004-08-11 transition */
61*b30d1939SAndy Fiddaman#endif
62*b30d1939SAndy Fiddaman
63*b30d1939SAndy Fiddaman#define _def_signal_ast	1
64*b30d1939SAndy Fiddaman#define _sys_types	1	/* #include <sys/types.h> ok */
65*b30d1939SAndy Fiddaman
66*b30d1939SAndy Fiddaman#define SIG_MAX	73
67*b30d1939SAndy Fiddaman
68*b30d1939SAndy Fiddamanstatic const char* const	sig_name[] =
69*b30d1939SAndy Fiddaman{
70*b30d1939SAndy Fiddaman	"0",
71*b30d1939SAndy Fiddaman	"HUP",
72*b30d1939SAndy Fiddaman	"INT",
73*b30d1939SAndy Fiddaman	"QUIT",
74*b30d1939SAndy Fiddaman	"ILL",
75*b30d1939SAndy Fiddaman	"TRAP",
76*b30d1939SAndy Fiddaman	"IOT",
77*b30d1939SAndy Fiddaman	"EMT",
78*b30d1939SAndy Fiddaman	"FPE",
79*b30d1939SAndy Fiddaman	"KILL",
80*b30d1939SAndy Fiddaman	"BUS",
81*b30d1939SAndy Fiddaman	"SEGV",
82*b30d1939SAndy Fiddaman	"SYS",
83*b30d1939SAndy Fiddaman	"PIPE",
84*b30d1939SAndy Fiddaman	"ALRM",
85*b30d1939SAndy Fiddaman	"TERM",
86*b30d1939SAndy Fiddaman	"USR1",
87*b30d1939SAndy Fiddaman	"USR2",
88*b30d1939SAndy Fiddaman	"CHLD",
89*b30d1939SAndy Fiddaman	"PWR",
90*b30d1939SAndy Fiddaman	"WINCH",
91*b30d1939SAndy Fiddaman	"URG",
92*b30d1939SAndy Fiddaman	"IO",
93*b30d1939SAndy Fiddaman	"STOP",
94*b30d1939SAndy Fiddaman	"TSTP",
95*b30d1939SAndy Fiddaman	"CONT",
96*b30d1939SAndy Fiddaman	"TTIN",
97*b30d1939SAndy Fiddaman	"TTOU",
98*b30d1939SAndy Fiddaman	"VTALRM",
99*b30d1939SAndy Fiddaman	"PROF",
100*b30d1939SAndy Fiddaman	"XCPU",
101*b30d1939SAndy Fiddaman	"XFSZ",
102*b30d1939SAndy Fiddaman	"WAITING",
103*b30d1939SAndy Fiddaman	"LWP",
104*b30d1939SAndy Fiddaman	"FREEZE",
105*b30d1939SAndy Fiddaman	"THAW",
106*b30d1939SAndy Fiddaman	"CANCEL",
107*b30d1939SAndy Fiddaman	"LOST",
108*b30d1939SAndy Fiddaman	"XRES",
109*b30d1939SAndy Fiddaman	"JVM1",
110*b30d1939SAndy Fiddaman	"JVM2",
111*b30d1939SAndy Fiddaman	"INFO",
112*b30d1939SAndy Fiddaman	"RTMIN",
113*b30d1939SAndy Fiddaman	"RTMIN+1",
114*b30d1939SAndy Fiddaman	"RTMIN+2",
115*b30d1939SAndy Fiddaman	"RTMIN+3",
116*b30d1939SAndy Fiddaman	"RTMIN+4",
117*b30d1939SAndy Fiddaman	"RTMIN+5",
118*b30d1939SAndy Fiddaman	"RTMIN+6",
119*b30d1939SAndy Fiddaman	"RTMIN+7",
120*b30d1939SAndy Fiddaman	"RTMIN+8",
121*b30d1939SAndy Fiddaman	"RTMIN+9",
122*b30d1939SAndy Fiddaman	"RTMIN+10",
123*b30d1939SAndy Fiddaman	"RTMIN+11",
124*b30d1939SAndy Fiddaman	"RTMIN+12",
125*b30d1939SAndy Fiddaman	"RTMIN+13",
126*b30d1939SAndy Fiddaman	"RTMIN+14",
127*b30d1939SAndy Fiddaman	"RTMIN+15",
128*b30d1939SAndy Fiddaman	"RTMAX-15",
129*b30d1939SAndy Fiddaman	"RTMAX-14",
130*b30d1939SAndy Fiddaman	"RTMAX-13",
131*b30d1939SAndy Fiddaman	"RTMAX-12",
132*b30d1939SAndy Fiddaman	"RTMAX-11",
133*b30d1939SAndy Fiddaman	"RTMAX-10",
134*b30d1939SAndy Fiddaman	"RTMAX-9",
135*b30d1939SAndy Fiddaman	"RTMAX-8",
136*b30d1939SAndy Fiddaman	"RTMAX-7",
137*b30d1939SAndy Fiddaman	"RTMAX-6",
138*b30d1939SAndy Fiddaman	"RTMAX-5",
139*b30d1939SAndy Fiddaman	"RTMAX-4",
140*b30d1939SAndy Fiddaman	"RTMAX-3",
141*b30d1939SAndy Fiddaman	"RTMAX-2",
142*b30d1939SAndy Fiddaman	"RTMAX-1",
143*b30d1939SAndy Fiddaman	"RTMAX",
144*b30d1939SAndy Fiddaman	0
145*b30d1939SAndy Fiddaman};
146*b30d1939SAndy Fiddaman
147*b30d1939SAndy Fiddamanstatic const char* const	sig_text[] =
148*b30d1939SAndy Fiddaman{
149*b30d1939SAndy Fiddaman	"Signal 0",
150*b30d1939SAndy Fiddaman	"Hangup",
151*b30d1939SAndy Fiddaman	"Interrupt",
152*b30d1939SAndy Fiddaman	"Quit",
153*b30d1939SAndy Fiddaman	"Illegal instruction",
154*b30d1939SAndy Fiddaman	"Trace trap",
155*b30d1939SAndy Fiddaman	"IOT trap",
156*b30d1939SAndy Fiddaman	"EMT trap",
157*b30d1939SAndy Fiddaman	"Floating exception",
158*b30d1939SAndy Fiddaman	"Killed",
159*b30d1939SAndy Fiddaman	"Bus error",
160*b30d1939SAndy Fiddaman	"Memory fault",
161*b30d1939SAndy Fiddaman	"Bad system call",
162*b30d1939SAndy Fiddaman	"Broken pipe",
163*b30d1939SAndy Fiddaman	"Alarm call",
164*b30d1939SAndy Fiddaman	"Terminated",
165*b30d1939SAndy Fiddaman	"User signal 1",
166*b30d1939SAndy Fiddaman	"User signal 2",
167*b30d1939SAndy Fiddaman	"Child status change",
168*b30d1939SAndy Fiddaman	"Power fail",
169*b30d1939SAndy Fiddaman	"Window change",
170*b30d1939SAndy Fiddaman	"Urgent IO",
171*b30d1939SAndy Fiddaman	"IO possible",
172*b30d1939SAndy Fiddaman	"Stopped (signal)",
173*b30d1939SAndy Fiddaman	"Stopped",
174*b30d1939SAndy Fiddaman	"Stopped process continued",
175*b30d1939SAndy Fiddaman	"Stopped (tty input)",
176*b30d1939SAndy Fiddaman	"Stopped (tty output)",
177*b30d1939SAndy Fiddaman	"Virtual timer alarm",
178*b30d1939SAndy Fiddaman	"Profile timer alarm",
179*b30d1939SAndy Fiddaman	"CPU time limit",
180*b30d1939SAndy Fiddaman	"File size limit",
181*b30d1939SAndy Fiddaman	"All threads blocked",
182*b30d1939SAndy Fiddaman	"Thread event",
183*b30d1939SAndy Fiddaman	"CPR freeze",
184*b30d1939SAndy Fiddaman	"CPR thaw",
185*b30d1939SAndy Fiddaman	"Thread Cancellation",
186*b30d1939SAndy Fiddaman	"Resources lost",
187*b30d1939SAndy Fiddaman	"Resource Control Exceeded",
188*b30d1939SAndy Fiddaman	"Reserved for JVM 1",
189*b30d1939SAndy Fiddaman	"Reserved for JVM 2",
190*b30d1939SAndy Fiddaman	"Information Request",
191*b30d1939SAndy Fiddaman	"Realtime priority 0 (lo)",
192*b30d1939SAndy Fiddaman	"Realtime priority 1",
193*b30d1939SAndy Fiddaman	"Realtime priority 2",
194*b30d1939SAndy Fiddaman	"Realtime priority 3",
195*b30d1939SAndy Fiddaman	"Realtime priority 4",
196*b30d1939SAndy Fiddaman	"Realtime priority 5",
197*b30d1939SAndy Fiddaman	"Realtime priority 6",
198*b30d1939SAndy Fiddaman	"Realtime priority 7",
199*b30d1939SAndy Fiddaman	"Realtime priority 8",
200*b30d1939SAndy Fiddaman	"Realtime priority 9",
201*b30d1939SAndy Fiddaman	"Realtime priority 10",
202*b30d1939SAndy Fiddaman	"Realtime priority 11",
203*b30d1939SAndy Fiddaman	"Realtime priority 12",
204*b30d1939SAndy Fiddaman	"Realtime priority 13",
205*b30d1939SAndy Fiddaman	"Realtime priority 14",
206*b30d1939SAndy Fiddaman	"Realtime priority 15",
207*b30d1939SAndy Fiddaman	"Realtime priority 16",
208*b30d1939SAndy Fiddaman	"Realtime priority 17",
209*b30d1939SAndy Fiddaman	"Realtime priority 18",
210*b30d1939SAndy Fiddaman	"Realtime priority 19",
211*b30d1939SAndy Fiddaman	"Realtime priority 20",
212*b30d1939SAndy Fiddaman	"Realtime priority 21",
213*b30d1939SAndy Fiddaman	"Realtime priority 22",
214*b30d1939SAndy Fiddaman	"Realtime priority 23",
215*b30d1939SAndy Fiddaman	"Realtime priority 24",
216*b30d1939SAndy Fiddaman	"Realtime priority 25",
217*b30d1939SAndy Fiddaman	"Realtime priority 26",
218*b30d1939SAndy Fiddaman	"Realtime priority 27",
219*b30d1939SAndy Fiddaman	"Realtime priority 28",
220*b30d1939SAndy Fiddaman	"Realtime priority 29",
221*b30d1939SAndy Fiddaman	"Realtime priority 30",
222*b30d1939SAndy Fiddaman	"Realtime priority 31 (hi)",
223*b30d1939SAndy Fiddaman	0
224*b30d1939SAndy Fiddaman};
225*b30d1939SAndy Fiddaman#endif
226