1 /* $NetBSD: svr4_signo.c,v 1.1 2002/03/31 22:22:49 christos Exp $ */
2
3 /*-
4 * Copyright (c) 2002. The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
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.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #include <sys/cdefs.h>
40 __KERNEL_RCSID(0, "$NetBSD: svr4_signo.c,v 1.1 2002/03/31 22:22:49 christos Exp $");
41
42 #include <sys/types.h>
43 #include <sys/signal.h>
44
45 #include <compat/svr4/svr4_types.h>
46 #include <compat/svr4/svr4_signal.h>
47
48 const int native_to_svr4_signo[NSIG] = {
49 0, /* 0 */
50 SVR4_SIGHUP, /* 1 */
51 SVR4_SIGINT, /* 2 */
52 SVR4_SIGQUIT, /* 3 */
53 SVR4_SIGILL, /* 4 */
54 SVR4_SIGTRAP, /* 5 */
55 SVR4_SIGABRT, /* 6 */
56 SVR4_SIGEMT, /* 7 */
57 SVR4_SIGFPE, /* 8 */
58 SVR4_SIGKILL, /* 9 */
59 SVR4_SIGBUS, /* 10 */
60 SVR4_SIGSEGV, /* 11 */
61 SVR4_SIGSYS, /* 12 */
62 SVR4_SIGPIPE, /* 13 */
63 SVR4_SIGALRM, /* 14 */
64 SVR4_SIGTERM, /* 15 */
65 SVR4_SIGURG, /* 16 */
66 SVR4_SIGSTOP, /* 17 */
67 SVR4_SIGTSTP, /* 18 */
68 SVR4_SIGCONT, /* 19 */
69 SVR4_SIGCHLD, /* 20 */
70 SVR4_SIGTTIN, /* 21 */
71 SVR4_SIGTTOU, /* 22 */
72 SVR4_SIGIO, /* 23 */
73 SVR4_SIGXCPU, /* 24 */
74 SVR4_SIGXFSZ, /* 25 */
75 SVR4_SIGVTALRM, /* 26 */
76 SVR4_SIGPROF, /* 27 */
77 SVR4_SIGWINCH, /* 28 */
78 0, /* 29 SIGINFO */
79 SVR4_SIGUSR1, /* 30 */
80 SVR4_SIGUSR2, /* 31 */
81 SVR4_SIGPWR, /* 32 */
82 SVR4_SIGRTMIN + 0, /* 33 */
83 SVR4_SIGRTMIN + 1, /* 34 */
84 SVR4_SIGRTMIN + 2, /* 35 */
85 SVR4_SIGRTMIN + 3, /* 36 */
86 SVR4_SIGRTMIN + 4, /* 37 */
87 SVR4_SIGRTMIN + 5, /* 38 */
88 SVR4_SIGRTMIN + 6, /* 39 */
89 SVR4_SIGRTMIN + 7, /* 40 */
90 SVR4_SIGRTMIN + 8, /* 41 */
91 SVR4_SIGRTMIN + 9, /* 42 */
92 SVR4_SIGRTMIN + 10, /* 43 */
93 SVR4_SIGRTMIN + 11, /* 44 */
94 SVR4_SIGRTMIN + 12, /* 45 */
95 SVR4_SIGRTMIN + 13, /* 46 */
96 SVR4_SIGRTMIN + 14, /* 47 */
97 SVR4_SIGRTMIN + 15, /* 48 */
98 SVR4_SIGRTMIN + 16, /* 49 */
99 SVR4_SIGRTMIN + 17, /* 50 */
100 SVR4_SIGRTMIN + 18, /* 51 */
101 SVR4_SIGRTMIN + 19, /* 52 */
102 SVR4_SIGRTMIN + 20, /* 53 */
103 SVR4_SIGRTMIN + 21, /* 54 */
104 SVR4_SIGRTMIN + 22, /* 55 */
105 SVR4_SIGRTMIN + 23, /* 56 */
106 SVR4_SIGRTMIN + 24, /* 57 */
107 SVR4_SIGRTMIN + 25, /* 58 */
108 SVR4_SIGRTMIN + 26, /* 59 */
109 SVR4_SIGRTMIN + 27, /* 60 */
110 SVR4_SIGRTMIN + 28, /* 61 */
111 SVR4_SIGRTMIN + 29, /* 62 */
112 SVR4_SIGRTMIN + 30, /* 63 */
113 };
114
115 const int svr4_to_native_signo[SVR4_NSIG] = {
116 0, /* 0 */
117 SIGHUP, /* 1 */
118 SIGINT, /* 2 */
119 SIGQUIT, /* 3 */
120 SIGILL, /* 4 */
121 SIGTRAP, /* 5 */
122 SIGABRT, /* 6 */
123 SIGEMT, /* 7 */
124 SIGFPE, /* 8 */
125 SIGKILL, /* 9 */
126 SIGBUS, /* 10 */
127 SIGSEGV, /* 11 */
128 SIGSYS, /* 12 */
129 SIGPIPE, /* 13 */
130 SIGALRM, /* 14 */
131 SIGTERM, /* 15 */
132 SIGUSR1, /* 16 */
133 SIGUSR2, /* 17 */
134 SIGCHLD, /* 18 */
135 SIGPWR, /* 19 */
136 SIGWINCH, /* 20 */
137 SIGURG, /* 21 */
138 SIGIO, /* 22 */
139 SIGSTOP, /* 23 */
140 SIGTSTP, /* 24 */
141 SIGCONT, /* 25 */
142 SIGTTIN, /* 26 */
143 SIGTTOU, /* 27 */
144 SIGVTALRM, /* 28 */
145 SIGPROF, /* 29 */
146 SIGXCPU, /* 30 */
147 SIGXFSZ, /* 31 */
148 SIGRTMIN + 0, /* 32 */
149 SIGRTMIN + 1, /* 33 */
150 SIGRTMIN + 2, /* 34 */
151 SIGRTMIN + 3, /* 35 */
152 SIGRTMIN + 4, /* 36 */
153 SIGRTMIN + 5, /* 37 */
154 SIGRTMIN + 6, /* 38 */
155 SIGRTMIN + 7, /* 39 */
156 SIGRTMIN + 8, /* 40 */
157 SIGRTMIN + 9, /* 41 */
158 SIGRTMIN + 10, /* 42 */
159 SIGRTMIN + 11, /* 43 */
160 SIGRTMIN + 12, /* 44 */
161 SIGRTMIN + 13, /* 45 */
162 SIGRTMIN + 14, /* 46 */
163 SIGRTMIN + 15, /* 47 */
164 SIGRTMIN + 16, /* 48 */
165 SIGRTMIN + 17, /* 49 */
166 SIGRTMIN + 18, /* 50 */
167 SIGRTMIN + 19, /* 51 */
168 SIGRTMIN + 20, /* 52 */
169 SIGRTMIN + 21, /* 53 */
170 SIGRTMIN + 22, /* 54 */
171 SIGRTMIN + 23, /* 55 */
172 SIGRTMIN + 24, /* 56 */
173 SIGRTMIN + 25, /* 57 */
174 SIGRTMIN + 26, /* 58 */
175 SIGRTMIN + 27, /* 59 */
176 SIGRTMIN + 28, /* 60 */
177 SIGRTMIN + 29, /* 61 */
178 SIGRTMIN + 30, /* 62 */
179 0, /* 63 */
180 };
Cache object: 0376ea551637c960e7531477122da6ba
|