#include "es.h" #include "sigmsgs.h" const Sigmsgs signals[] = { #ifdef SIGHUP #if SIGHUP < NSIG { SIGHUP, "sighup", "hangup" }, #endif #endif #ifdef SIGINT #if SIGINT < NSIG { SIGINT, "sigint", "" }, #endif #endif #ifdef SIGQUIT #if SIGQUIT < NSIG { SIGQUIT, "sigquit", "quit" }, #endif #endif #ifdef SIGILL #if SIGILL < NSIG { SIGILL, "sigill", "illegal instruction" }, #endif #endif #ifdef SIGTRAP #if SIGTRAP < NSIG { SIGTRAP, "sigtrap", "trace trap" }, #endif #endif #ifdef SIGABRT #if SIGABRT < NSIG { SIGABRT, "sigabrt", "abort" }, #endif #endif #ifdef SIGPOLL #if SIGPOLL < NSIG { SIGPOLL, "sigpoll", "pollable event occurred" }, #endif #endif #ifdef SIGIOT #if SIGIOT < NSIG { SIGIOT, "sigiot", "IOT instruction" }, #endif #endif #ifdef SIGEMT #if SIGEMT < NSIG { SIGEMT, "sigemt", "EMT instruction" }, #endif #endif #ifdef SIGFPE #if SIGFPE < NSIG { SIGFPE, "sigfpe", "floating point exception" }, #endif #endif #ifdef SIGKILL #if SIGKILL < NSIG { SIGKILL, "sigkill", "killed" }, #endif #endif #ifdef SIGBUS #if SIGBUS < NSIG { SIGBUS, "sigbus", "bus error" }, #endif #endif #ifdef SIGSEGV #if SIGSEGV < NSIG { SIGSEGV, "sigsegv", "segmentation violation" }, #endif #endif #ifdef SIGSYS #if SIGSYS < NSIG { SIGSYS, "sigsys", "bad argument to system call" }, #endif #endif #ifdef SIGPIPE #if SIGPIPE < NSIG { SIGPIPE, "sigpipe", "" }, #endif #endif #ifdef SIGALRM #if SIGALRM < NSIG { SIGALRM, "sigalrm", "alarm clock" }, #endif #endif #ifdef SIGTERM #if SIGTERM < NSIG { SIGTERM, "sigterm", "terminated" }, #endif #endif #ifdef SIGURG #if SIGURG < NSIG { SIGURG, "sigurg", "urgent condition on i/o channel" }, #endif #endif #ifdef SIGSTOP #if SIGSTOP < NSIG { SIGSTOP, "sigstop", "asynchronous stop" }, #endif #endif #ifdef SIGTSTP #if SIGTSTP < NSIG { SIGTSTP, "sigtstp", "stopped" }, #endif #endif #ifdef SIGCONT #if SIGCONT < NSIG { SIGCONT, "sigcont", "continue" }, #endif #endif #ifdef SIGCHLD #if SIGCHLD < NSIG { SIGCHLD, "sigchld", "child stopped or exited" }, #endif #endif #ifdef SIGTTIN #if SIGTTIN < NSIG { SIGTTIN, "sigttin", "background tty read" }, #endif #endif #ifdef SIGTTOU #if SIGTTOU < NSIG { SIGTTOU, "sigttou", "background tty write" }, #endif #endif #ifdef SIGIO #if SIGIO < NSIG { SIGIO, "sigio", "input/output possible" }, #endif #endif #ifdef SIGXCPU #if SIGXCPU < NSIG { SIGXCPU, "sigxcpu", "exceeded CPU time limit" }, #endif #endif #ifdef SIGXFSZ #if SIGXFSZ < NSIG { SIGXFSZ, "sigxfsz", "exceeded file size limit" }, #endif #endif #ifdef SIGVTALRM #if SIGVTALRM < NSIG { SIGVTALRM, "sigvtalrm", "virtual timer alarm" }, #endif #endif #ifdef SIGPROF #if SIGPROF < NSIG { SIGPROF, "sigprof", "profiling timer alarm" }, #endif #endif #ifdef SIGWINCH #if SIGWINCH < NSIG { SIGWINCH, "sigwinch", "window size changed" }, #endif #endif #ifdef SIGINFO #if SIGINFO < NSIG { SIGINFO, "siginfo", "information request" }, #endif #endif #ifdef SIGUSR1 #if SIGUSR1 < NSIG { SIGUSR1, "sigusr1", "user defined signal 1" }, #endif #endif #ifdef SIGUSR2 #if SIGUSR2 < NSIG { SIGUSR2, "sigusr2", "user defined signal 2" }, #endif #endif }; const int nsignals = arraysize(signals);