summaryrefslogtreecommitdiff
path: root/libc/string/strsignal.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-20 00:03:55 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-20 00:03:55 +0000
commit430e386b9e69bf3a71c0e2cc06b7094d53ab6501 (patch)
tree0b17aafc4019eb779c9ed96bcf063c676a6b0a16 /libc/string/strsignal.c
parent9b7d191055ade5069c6325fa857e007b4c658b14 (diff)
Strip all object files of all non global symbols and .note and
.comment, saving a lot of space in the resultant binaries... -Erik
Diffstat (limited to 'libc/string/strsignal.c')
-rw-r--r--libc/string/strsignal.c36
1 files changed, 34 insertions, 2 deletions
diff --git a/libc/string/strsignal.c b/libc/string/strsignal.c
index e1f7ab129..ff4f69923 100644
--- a/libc/string/strsignal.c
+++ b/libc/string/strsignal.c
@@ -8,8 +8,40 @@
#include <malloc.h>
#include <signal.h>
-extern __const char *__const _sys_siglist[_NSIG];
-extern __const char *__const sys_siglist[_NSIG];
+const char *const sys_siglist[NSIG] = {
+ "Unknown signal",
+ "Hangup",
+ "Interrupt",
+ "Quit",
+ "Illegal instruction",
+ "Trace/breakpoint trap",
+ "IOT trap/Abort",
+ "Bus error",
+ "Floating point exception",
+ "Killed",
+ "User defined signal 1",
+ "Segmentation fault",
+ "User defined signal 2",
+ "Broken pipe",
+ "Alarm clock",
+ "Terminated",
+ "Stack fault",
+ "Child exited",
+ "Continued",
+ "Stopped (signal)",
+ "Stopped",
+ "Stopped (tty input)",
+ "Stopped (tty output)",
+ "Possible I/O",
+ "CPU time limit exceeded",
+ "File size limit exceeded",
+ "Virtual time alarm",
+ "Profile signal",
+ "Window size changed",
+ "File lock lost",
+ "Power failure",
+ "Unused signal"
+};
/********************** Function strsignal ************************************/