summaryrefslogtreecommitdiff
path: root/cross-build/beos-sig.h
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-12 13:06:02 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-12 13:06:02 -0800
commitb7fc9e0f6d6105ba2203f219743d4b269415e84b (patch)
treeef6586dfc62798c2b17487b443864699aca55f31 /cross-build/beos-sig.h
downloadvyatta-bash-b7fc9e0f6d6105ba2203f219743d4b269415e84b.tar.gz
vyatta-bash-b7fc9e0f6d6105ba2203f219743d4b269415e84b.zip
initial import from bash_3.1dfsg.orig.tar.gz
Diffstat (limited to 'cross-build/beos-sig.h')
-rw-r--r--cross-build/beos-sig.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/cross-build/beos-sig.h b/cross-build/beos-sig.h
new file mode 100644
index 0000000..ea82f85
--- /dev/null
+++ b/cross-build/beos-sig.h
@@ -0,0 +1,37 @@
+/* This file is used when cross compiling bash to run native on BeOS. */
+
+#ifndef __GNUC__
+# error cross compiling requires gcc
+#endif
+
+/* A translation list so we can be polite to our users.
+ Use gcc labelled initializers to set up the array. Note that
+ some entries might wind up being NULL. */
+
+char *signal_names[NSIG + 3] = {
+ [0] "EXIT",
+ [SIGHUP] "SIGHUP",
+ [SIGINT] "SIGINT",
+ [SIGQUIT] "SIGQUIT",
+ [SIGILL] "SIGILL",
+ [SIGCHLD] "SIGCHLD",
+ [SIGABRT] "SIGABRT",
+ [SIGPIPE] "SIGPIPE",
+ [SIGFPE] "SIGFPE",
+ [SIGKILL] "SIGKILL",
+ [SIGSTOP] "SIGSTOP",
+ [SIGSEGV] "SIGSEGV",
+ [SIGCONT] "SIGCONT",
+ [SIGTSTP] "SIGTSTP",
+ [SIGALRM] "SIGALRM",
+ [SIGTERM] "SIGTERM",
+ [SIGTTIN] "SIGTTIN",
+ [SIGTTOU] "SIGTTOU",
+ [SIGUSR1] "SIGUSR1",
+ [SIGUSR2] "SIGUSR2",
+ [SIGWINCH] "SIGWINCH",
+ [SIGKILLTHR] "SIGKILLTHR",
+ [NSIG] "DEBUG",
+ [NSIG + 1] "ERR",
+ [NSIG + 2] (char *)0x0,
+};