summaryrefslogtreecommitdiff
path: root/cross-build/beos-sig.h
diff options
context:
space:
mode:
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,
+};