summaryrefslogtreecommitdiff
path: root/src/user/lib/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/signal.c')
-rw-r--r--src/user/lib/signal.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/user/lib/signal.c b/src/user/lib/signal.c
new file mode 100644
index 0000000..0ec8b50
--- /dev/null
+++ b/src/user/lib/signal.c
@@ -0,0 +1,25 @@
+#include <bits/panic.h>
+#include <signal.h>
+
+const char *const sys_siglist[] = {
+ NULL,
+ "SIGHUP", /* 1 */
+ "SIGINT", /* 2 */
+ "SIGQUIT", /* 3 */
+ "SIGILL", /* 4 */
+ "SIGTRAP", /* 5 */
+ "SIGABRT", /* 6 */
+ "SIGFPE", /* 8 */
+ "SIGKILL", /* 9 */
+ "SIGSEGV", /* 11 */
+ "SIGPIPE", /* 13 */
+ "SIGALRM", /* 14 */
+ "SIGTERM", /* 15 */
+ "SIGCONT", /* 16 */
+ "SIGPIPE", /* 17 */
+ "SIGTSTP", /* 18 */
+ "SIGTTIN", /* 19 */
+ "SIGTTOU", /* 20 */
+ "SIGWINCH", /* 21 */
+ "SIGCHLD", /* 22 */
+};