1 /* $NetBSD: svr4_signo.c,v 1.2 2008/04/28 20:23:45 martin Exp $ */
4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #include <sys/cdefs.h>
33 __KERNEL_RCSID(0, "$NetBSD: svr4_signo.c,v 1.2 2008/04/28 20:23:45 martin Exp $");
35 #include <sys/types.h>
36 #include <sys/signal.h>
38 #include <compat/svr4/svr4_types.h>
39 #include <compat/svr4/svr4_signal.h>
41 const int native_to_svr4_signo
[NSIG
] = {
53 SVR4_SIGSEGV
, /* 11 */
55 SVR4_SIGPIPE
, /* 13 */
56 SVR4_SIGALRM
, /* 14 */
57 SVR4_SIGTERM
, /* 15 */
59 SVR4_SIGSTOP
, /* 17 */
60 SVR4_SIGTSTP
, /* 18 */
61 SVR4_SIGCONT
, /* 19 */
62 SVR4_SIGCHLD
, /* 20 */
63 SVR4_SIGTTIN
, /* 21 */
64 SVR4_SIGTTOU
, /* 22 */
66 SVR4_SIGXCPU
, /* 24 */
67 SVR4_SIGXFSZ
, /* 25 */
68 SVR4_SIGVTALRM
, /* 26 */
69 SVR4_SIGPROF
, /* 27 */
70 SVR4_SIGWINCH
, /* 28 */
72 SVR4_SIGUSR1
, /* 30 */
73 SVR4_SIGUSR2
, /* 31 */
75 SVR4_SIGRTMIN
+ 0, /* 33 */
76 SVR4_SIGRTMIN
+ 1, /* 34 */
77 SVR4_SIGRTMIN
+ 2, /* 35 */
78 SVR4_SIGRTMIN
+ 3, /* 36 */
79 SVR4_SIGRTMIN
+ 4, /* 37 */
80 SVR4_SIGRTMIN
+ 5, /* 38 */
81 SVR4_SIGRTMIN
+ 6, /* 39 */
82 SVR4_SIGRTMIN
+ 7, /* 40 */
83 SVR4_SIGRTMIN
+ 8, /* 41 */
84 SVR4_SIGRTMIN
+ 9, /* 42 */
85 SVR4_SIGRTMIN
+ 10, /* 43 */
86 SVR4_SIGRTMIN
+ 11, /* 44 */
87 SVR4_SIGRTMIN
+ 12, /* 45 */
88 SVR4_SIGRTMIN
+ 13, /* 46 */
89 SVR4_SIGRTMIN
+ 14, /* 47 */
90 SVR4_SIGRTMIN
+ 15, /* 48 */
91 SVR4_SIGRTMIN
+ 16, /* 49 */
92 SVR4_SIGRTMIN
+ 17, /* 50 */
93 SVR4_SIGRTMIN
+ 18, /* 51 */
94 SVR4_SIGRTMIN
+ 19, /* 52 */
95 SVR4_SIGRTMIN
+ 20, /* 53 */
96 SVR4_SIGRTMIN
+ 21, /* 54 */
97 SVR4_SIGRTMIN
+ 22, /* 55 */
98 SVR4_SIGRTMIN
+ 23, /* 56 */
99 SVR4_SIGRTMIN
+ 24, /* 57 */
100 SVR4_SIGRTMIN
+ 25, /* 58 */
101 SVR4_SIGRTMIN
+ 26, /* 59 */
102 SVR4_SIGRTMIN
+ 27, /* 60 */
103 SVR4_SIGRTMIN
+ 28, /* 61 */
104 SVR4_SIGRTMIN
+ 29, /* 62 */
105 SVR4_SIGRTMIN
+ 30, /* 63 */
108 const int svr4_to_native_signo
[SVR4_NSIG
] = {
141 SIGRTMIN
+ 0, /* 32 */
142 SIGRTMIN
+ 1, /* 33 */
143 SIGRTMIN
+ 2, /* 34 */
144 SIGRTMIN
+ 3, /* 35 */
145 SIGRTMIN
+ 4, /* 36 */
146 SIGRTMIN
+ 5, /* 37 */
147 SIGRTMIN
+ 6, /* 38 */
148 SIGRTMIN
+ 7, /* 39 */
149 SIGRTMIN
+ 8, /* 40 */
150 SIGRTMIN
+ 9, /* 41 */
151 SIGRTMIN
+ 10, /* 42 */
152 SIGRTMIN
+ 11, /* 43 */
153 SIGRTMIN
+ 12, /* 44 */
154 SIGRTMIN
+ 13, /* 45 */
155 SIGRTMIN
+ 14, /* 46 */
156 SIGRTMIN
+ 15, /* 47 */
157 SIGRTMIN
+ 16, /* 48 */
158 SIGRTMIN
+ 17, /* 49 */
159 SIGRTMIN
+ 18, /* 50 */
160 SIGRTMIN
+ 19, /* 51 */
161 SIGRTMIN
+ 20, /* 52 */
162 SIGRTMIN
+ 21, /* 53 */
163 SIGRTMIN
+ 22, /* 54 */
164 SIGRTMIN
+ 23, /* 55 */
165 SIGRTMIN
+ 24, /* 56 */
166 SIGRTMIN
+ 25, /* 57 */
167 SIGRTMIN
+ 26, /* 58 */
168 SIGRTMIN
+ 27, /* 59 */
169 SIGRTMIN
+ 28, /* 60 */
170 SIGRTMIN
+ 29, /* 61 */
171 SIGRTMIN
+ 30, /* 62 */