1 /* $OpenBSD: osf1_cvt_signal.c,v 1.1 2000/08/04 15:47:54 ericj Exp $ */ 2 /* $NetBSD: osf1_signal.c,v 1.13 1999/04/30 05:24:04 cgd Exp $ */ 3 4 /* 5 * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgement: 17 * This product includes software developed by Christopher G. Demetriou 18 * for the NetBSD Project. 19 * 4. The name of the author may not be used to endorse or promote products 20 * derived from this software without specific prior written permission 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34 #include <compat/osf1/osf1.h> 35 #include <compat/osf1/osf1_cvt.h> 36 37 /* 38 * These tables are used to translate between NetBSD and OSF/1 signal 39 * numbers. 40 * 41 * XXX IT IS NOT UP TO DATE. 42 */ 43 44 const int osf1_signal_rxlist[] = { 45 0, 46 OSF1_SIGHUP, 47 OSF1_SIGINT, 48 OSF1_SIGQUIT, 49 OSF1_SIGILL, 50 OSF1_SIGTRAP, 51 OSF1_SIGABRT, 52 OSF1_SIGEMT, 53 OSF1_SIGFPE, 54 OSF1_SIGKILL, 55 OSF1_SIGBUS, 56 OSF1_SIGSEGV, 57 OSF1_SIGSYS, 58 OSF1_SIGPIPE, 59 OSF1_SIGALRM, 60 OSF1_SIGTERM, 61 OSF1_SIGURG, 62 OSF1_SIGSTOP, 63 OSF1_SIGTSTP, 64 OSF1_SIGCONT, 65 OSF1_SIGCHLD, 66 OSF1_SIGTTIN, 67 OSF1_SIGTTOU, 68 OSF1_SIGIO, 69 OSF1_SIGXCPU, 70 OSF1_SIGXFSZ, 71 OSF1_SIGVTALRM, 72 OSF1_SIGPROF, 73 OSF1_SIGWINCH, 74 OSF1_SIGINFO, 75 OSF1_SIGUSR1, 76 OSF1_SIGUSR2, 77 }; 78 79 const int osf1_signal_xlist[] = { 80 0, 81 SIGHUP, 82 SIGINT, 83 SIGQUIT, 84 SIGILL, 85 SIGTRAP, 86 SIGABRT, 87 SIGEMT, 88 SIGFPE, 89 SIGKILL, 90 SIGBUS, 91 SIGSEGV, 92 SIGSYS, 93 SIGPIPE, 94 SIGALRM, 95 SIGTERM, 96 SIGURG, 97 SIGSTOP, 98 SIGTSTP, 99 SIGCONT, 100 SIGCHLD, 101 SIGTTIN, 102 SIGTTOU, 103 SIGIO, 104 SIGXCPU, 105 SIGXFSZ, 106 SIGVTALRM, 107 SIGPROF, 108 SIGWINCH, 109 SIGINFO, 110 SIGUSR1, 111 SIGUSR2, 112 };