From 453532db1cec1d23de3108315a490e76ac949e7c Mon Sep 17 00:00:00 2001 From: Daniel Reinhold Date: Mon, 18 Nov 2002 00:39:41 +0000 Subject: [PATCH] moved the string table definition to libroot where it belonged git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1982 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/signal.c | 27 -------------------- src/kernel/libroot/posix/signal/strsignal.c | 28 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/kernel/core/signal.c b/src/kernel/core/signal.c index 8d582ecdae..4edef9d701 100644 --- a/src/kernel/core/signal.c +++ b/src/kernel/core/signal.c @@ -17,33 +17,6 @@ #include -const char * const -sys_siglist[NSIG] = { - /* 0 */ "Signal 0", - /* 1 - SIGHUP */ "Hangup", - /* 2 - SIGINT */ "Interrupt", - /* 3 - SIGQUIT */ "Quit", - /* 4 - SIGILL */ "Illegal instruction", - /* 5 - SIGCHLD */ "Child exited", - /* 6 - SIGABRT */ "Abort", - /* 7 - SIGPIPE */ "Broken pipe", - /* 8 - SIGFPE */ "Floating point exception", - /* 9 - SIGKILL */ "Killed (by death)", - /* 10 - SIGSTOP */ "Stopped", - /* 11 - SIGSEGV */ "Segmentation violation", - /* 12 - SIGCONT */ "Continued", - /* 13 - SIGTSTP */ "Stopped (tty output)", - /* 14 - SIGALRM */ "Alarm", - /* 15 - SIGTERM */ "Termination requested", - /* 16 - SIGTTIN */ "Stopped (tty input)", - /* 17 - SIGTTOU */ "Stopped (tty output)", - /* 18 - SIGUSR1 */ "User defined signal 1", - /* 19 - SIGUSR2 */ "User defined signal 2", - /* 20 - SIGWINCH */ "Window size changed", - /* 21 - SIGKILLTHR */ "Kill Thread", - /* 22 - SIGTRAP */ NULL -}; - const char * const sigstr[NSIG] = { "NONE", "HUP", "INT", "QUIT", "ILL", "CHLD", "ABRT", "PIPE", diff --git a/src/kernel/libroot/posix/signal/strsignal.c b/src/kernel/libroot/posix/signal/strsignal.c index c2e06890cd..8f65c08c5c 100644 --- a/src/kernel/libroot/posix/signal/strsignal.c +++ b/src/kernel/libroot/posix/signal/strsignal.c @@ -17,6 +17,34 @@ */ +const char * const +sys_siglist[NSIG] = { + /* 0 */ "Signal 0", + /* 1 - SIGHUP */ "Hangup", + /* 2 - SIGINT */ "Interrupt", + /* 3 - SIGQUIT */ "Quit", + /* 4 - SIGILL */ "Illegal instruction", + /* 5 - SIGCHLD */ "Child exited", + /* 6 - SIGABRT */ "Abort", + /* 7 - SIGPIPE */ "Broken pipe", + /* 8 - SIGFPE */ "Floating point exception", + /* 9 - SIGKILL */ "Killed (by death)", + /* 10 - SIGSTOP */ "Stopped", + /* 11 - SIGSEGV */ "Segmentation violation", + /* 12 - SIGCONT */ "Continued", + /* 13 - SIGTSTP */ "Stopped (tty output)", + /* 14 - SIGALRM */ "Alarm", + /* 15 - SIGTERM */ "Termination requested", + /* 16 - SIGTTIN */ "Stopped (tty input)", + /* 17 - SIGTTOU */ "Stopped (tty output)", + /* 18 - SIGUSR1 */ "User defined signal 1", + /* 19 - SIGUSR2 */ "User defined signal 2", + /* 20 - SIGWINCH */ "Window size changed", + /* 21 - SIGKILLTHR */ "Kill Thread", + /* 22 - SIGTRAP */ NULL +}; + + const char * strsignal(int sig) {