xref: /netbsd-src/sys/compat/linux/arch/mips/linux_sigarray.c (revision 1ca5c1b28139779176bd5c13ad7c5f25c0bcd5f8)
1 /*	$NetBSD: linux_sigarray.c,v 1.3 2001/11/13 02:08:44 lukem Exp $ */
2 
3 /*-
4  * Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc.
5  * All rights reserved.
6  *
7  * This code is derived from software contributed to The NetBSD Foundation
8  * by Frank van der Linden, Eric Haszlakiewicz and Emmanuel Dreyfus.
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: linux_sigarray.c,v 1.3 2001/11/13 02:08:44 lukem Exp $");
41 
42 #include <sys/param.h>
43 #include <sys/systm.h>
44 #include <sys/kernel.h>
45 #include <sys/signal.h>
46 
47 #include <compat/linux/common/linux_signal.h>
48 
49 /*
50  * From Linux's include/asm-mips/signal.h
51  */
52 const int linux_to_native_sig[LINUX__NSIG] = {
53 	0,				/* 0 */
54 	SIGHUP,
55 	SIGINT,
56 	SIGQUIT,
57 	SIGILL,
58 	SIGTRAP,		/* 5 */
59 	SIGABRT,
60 	SIGEMT,
61 	SIGFPE,
62 	SIGKILL,
63 	SIGBUS,		/* 10 */
64 	SIGSEGV,
65 	SIGSYS,
66 	SIGPIPE,
67 	SIGALRM,
68 	SIGTERM,		/* 15 */
69 	SIGUSR1,
70 	SIGUSR2,
71 	SIGCHLD,
72 	SIGPWR,
73 	SIGWINCH,	/* 20 */
74 	SIGURG,
75 	SIGIO,
76 	SIGSTOP,
77 	SIGTSTP,
78 	SIGCONT,		/* 25 */
79 	SIGTTIN,
80 	SIGTTOU,
81 	SIGVTALRM,
82 	SIGPROF,
83 	SIGXCPU,		/* 30 */
84 	SIGXFSZ,
85 	0,
86 	0,
87 	0,
88 	0,				/* 35 */
89 	0,
90 	0,
91 	0,
92 	0,
93 	0,				/* 40 */
94 	0,
95 	0,
96 	0,
97 	0,
98 	0,				/* 45 */
99 	0,
100 	0,
101 	0,
102 	0,
103 	0,				/* 50 */
104 	0,
105 	0,
106 	0,
107 	0,
108 	0,				/* 55 */
109 	0,
110 	0,
111 	0,
112 	0,
113 	0,				/* 60 */
114 	0,
115 	0,
116 	0,
117 };
118