summaryrefslogtreecommitdiff
path: root/lib/libc/signal/siglist.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/signal/siglist.c')
-rw-r--r--lib/libc/signal/siglist.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/libc/signal/siglist.c b/lib/libc/signal/siglist.c
new file mode 100644
index 00000000..ba9ec746
--- /dev/null
+++ b/lib/libc/signal/siglist.c
@@ -0,0 +1,47 @@
+#include <signal.h>
+#include <unistd.h>
+
+const char *const sys_siglist[64] = {
+ [SIGABRT] = "Aborted",
+ [SIGALRM] = "Alarm clock",
+ [SIGBUS] = "Bus error",
+ [SIGCHLD] = "Child exited",
+#if defined(SIGCLD) && (SIGCHLD != SIGCLD)
+ [SIGCLD] = "Child exited",
+#endif
+ [SIGHUP] = "Hangup",
+ [SIGILL] = "Illegal instruction",
+ [SIGINT] = "Interrupt",
+ [SIGIO] = "I/O possible",
+#if defined(SIGIOT) && (SIGIOT != SIGABRT)
+ [SIGIOT] = "I/O trap",
+#endif
+ [SIGKILL] = "Killed",
+#if defined(SIGLOST) && (SIGLOST != SIGIO) && (SIGLOST != SIGPWR)
+ [SIGLOST] = "Lock lost",
+#endif
+ [SIGPIPE] = "Broken pipe",
+#if defined(SIGPOLL) && (SIGPOLL != SIGIO)
+ [SIGPOLL] = "Pollable event",
+#endif
+ [SIGPROF] = "Profiling timer expired",
+ [SIGPWR] = "Power failure",
+ [SIGQUIT] = "Quit",
+ [SIGSEGV] = "Segment violation",
+ [SIGSTKFLT] = "Stack fault",
+ [SIGSTOP] = "Stopped (signal)",
+ [SIGSYS] = "Bad system call",
+ [SIGTERM] = "Terminated",
+ [SIGTSTP] = "Stopped",
+ [SIGTTIN] = "Stopped (tty input)",
+ [SIGTTOU] = "Stopped (tty output)",
+ [SIGURG] = "Urgent I/O condition",
+ [SIGUSR1] = "User signal 1",
+ [SIGUSR2] = "User signal 2",
+ [SIGVTALRM] = "Virtual timer expired",
+ [SIGWINCH] = "Window size changed",
+ [SIGXCPU] = "CPU time limit exceeded",
+ [SIGXFSZ] = "File size limit exceeded",
+ [SIGTRAP] = "Trace/breakpoint trap",
+ [SIGCONT] = "Continue",
+};