diff options
Diffstat (limited to 'libc/string/strsignal.c')
-rw-r--r-- | libc/string/strsignal.c | 36 |
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 ************************************/ |