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