#define NOPLAN9DEFINES #include #include #include #include #include #include #include #ifndef WCOREDUMP /* not on Mac OS X Tiger */ #define WCOREDUMP(status) 0 #endif static struct { int sig; char *str; } tab[] = { SIGHUP, "hangup", SIGINT, "interrupt", SIGQUIT, "quit", SIGILL, "sys: illegal instruction", SIGTRAP, "sys: breakpoint", SIGABRT, "sys: abort", #ifdef SIGEMT SIGEMT, "sys: emulate instruction executed", #endif SIGFPE, "sys: fp: trap", SIGKILL, "sys: kill", SIGBUS, "sys: bus error", SIGSEGV, "sys: segmentation violation", SIGALRM, "alarm", SIGTERM, "kill", SIGURG, "sys: urgent condition on socket", SIGSTOP, "sys: stop", SIGTSTP, "sys: tstp", SIGCONT, "sys: cont", SIGCHLD, "sys: child", SIGTTIN, "sys: ttin", SIGTTOU, "sys: ttou", #ifdef SIGIO /* not on Mac OS X Tiger */ SIGIO, "sys: i/o possible on fd", #endif SIGXCPU, "sys: cpu time limit exceeded", SIGXFSZ, "sys: file size limit exceeded", SIGVTALRM, "sys: virtual time alarm", SIGPROF, "sys: profiling timer alarm", #ifdef SIGWINCH /* not on Mac OS X Tiger */ SIGWINCH, "sys: window size change", #endif #ifdef SIGINFO SIGINFO, "sys: status request", #endif SIGUSR1, "sys: usr1", SIGUSR2, "sys: usr2", SIGPIPE, "sys: write on closed pipe", }; char* _p9sigstr(int sig, char *tmp) { int i; for(i=0; i