1 /* $NetBSD: ibcs2_signal.c,v 1.14 2001/11/13 02:08:27 lukem Exp $ */
4 * Copyright (c) 1995 Scott Bartram
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
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. The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #include <sys/cdefs.h>
31 __KERNEL_RCSID(0, "$NetBSD: ibcs2_signal.c,v 1.14 2001/11/13 02:08:27 lukem Exp $");
33 #include <sys/types.h>
34 #include <sys/signal.h>
36 #include <compat/ibcs2/ibcs2_types.h>
37 #include <compat/ibcs2/ibcs2_signal.h>
39 const int native_to_ibcs2_signo
[NSIG
] = {
43 IBCS2_SIGQUIT
, /* 3 */
45 IBCS2_SIGTRAP
, /* 5 */
46 IBCS2_SIGABRT
, /* 6 */
49 IBCS2_SIGKILL
, /* 9 */
50 IBCS2_SIGBUS
, /* 10 */
51 IBCS2_SIGSEGV
, /* 11 */
52 IBCS2_SIGSYS
, /* 12 */
53 IBCS2_SIGPIPE
, /* 13 */
54 IBCS2_SIGALRM
, /* 14 */
55 IBCS2_SIGTERM
, /* 15 */
57 IBCS2_SIGSTOP
, /* 17 */
58 IBCS2_SIGTSTP
, /* 18 */
59 IBCS2_SIGCONT
, /* 19 */
60 IBCS2_SIGCLD
, /* 20 */
61 IBCS2_SIGTTIN
, /* 21 */
62 IBCS2_SIGTTOU
, /* 22 */
63 IBCS2_SIGPOLL
, /* 23 */
64 IBCS2_SIGXCPU
, /* 24 */
65 IBCS2_SIGXFSZ
, /* 25 */
66 IBCS2_SIGVTALRM
, /* 26 */
67 IBCS2_SIGPROF
, /* 27 */
68 IBCS2_SIGWINCH
, /* 28 */
70 IBCS2_SIGUSR1
, /* 30 */
71 IBCS2_SIGUSR2
, /* 31 */
72 IBCS2_SIGPWR
, /* 32 */
75 const int ibcs2_to_native_signo
[IBCS2_NSIG
] = {
97 0, /* 21 - SIGPHONE */