summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_table.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-19 16:20:29 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-19 16:20:29 +0000
commit347f8a8a14e3fb736ea6f42c7a0da1a0472f947f (patch)
tree02733a960b201ec3466f97d53329b85505de1315 /src/libstddjb/sig_table.c
parent16de50671c7ad77f2acb4ca19d8806aad0490f03 (diff)
downloadskalibs-347f8a8a14e3fb736ea6f42c7a0da1a0472f947f.tar.xz
- Added unixconnection
- Added sig_name & sig_number (suggestion from Olivier Brunel) - version bumped to 2.2.1.0, rc
Diffstat (limited to 'src/libstddjb/sig_table.c')
-rw-r--r--src/libstddjb/sig_table.c83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/libstddjb/sig_table.c b/src/libstddjb/sig_table.c
new file mode 100644
index 0000000..d097cb5
--- /dev/null
+++ b/src/libstddjb/sig_table.c
@@ -0,0 +1,83 @@
+ /* ISC license. */
+
+#include <signal.h>
+#include "sig-internal.h"
+
+sigtable_t const skalibs_sigtable[] =
+{
+ { SIGABRT, "ABRT" },
+ { SIGALRM, "ALRM" },
+ { SIGBUS, "BUS" },
+ { SIGCHLD, "CHLD" },
+ { SIGCONT, "CONT" },
+ { SIGFPE, "FPE" },
+ { SIGHUP, "HUP" },
+ { SIGILL, "ILL" },
+ { SIGINT, "INT" },
+ { SIGKILL, "KILL" },
+ { SIGPIPE, "PIPE" },
+ { SIGQUIT, "QUIT" },
+ { SIGSEGV, "SEGV" },
+ { SIGSTOP, "STOP" },
+ { SIGTERM, "TERM" },
+ { SIGTSTP, "TSTP" },
+ { SIGTTIN, "TTIN" },
+ { SIGTTOU, "TTOU" },
+ { SIGUSR1, "USR1" },
+ { SIGUSR2, "USR2" },
+#ifdef SIGPOLL
+ { SIGPOLL, "POLL" },
+#endif
+#ifdef SIGPROF
+ { SIGPROF, "PROF" },
+#endif
+#ifdef SIGSYS
+ { SIGSYS, "SYS" },
+#endif
+#ifdef SIGTRAP
+ { SIGTRAP, "TRAP" },
+#endif
+#ifdef SIGURG
+ { SIGURG, "URG" },
+#endif
+#ifdef SIGVTALRM
+ { SIGVTALRM, "VTALRM" },
+#endif
+#ifdef SIGXCPU
+ { SIGXCPU, "XCPU" },
+#endif
+#ifdef SIGXFSZ
+ { SIGXFSZ, "XFSZ" },
+#endif
+#ifdef SIGIOT
+ { SIGIOT, "IOT" },
+#endif
+#ifdef SIGEMT
+ { SIGEMT, "EMT" },
+#endif
+#ifdef SIGSTKFLT
+ { SIGSTKFLT, "STKFLT" },
+#endif
+#ifdef SIGCLD
+ { SIGCLD, "CLD" },
+#endif
+#ifdef SIGWINCH
+ { SIGWINCH, "WINCH" },
+#endif
+#ifdef SIGIO
+ { SIGIO, "IO" },
+#endif
+#ifdef SIGINFO
+ { SIGINFO, "INFO" },
+#endif
+#ifdef SIGLOST
+ { SIGLOST, "LOST" },
+#endif
+#ifdef SIGPWR
+ { SIGPWR, "PWR" },
+#endif
+#ifdef SIGUNUSED
+ { SIGUNUSED, "UNUSED" },
+#endif
+ { 0, 0 }
+} ;