xref: /netbsd-src/sys/compat/linux/arch/mips/linux_sigarray.c (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: linux_sigarray.c,v 1.8 2008/04/28 20:23:43 martin Exp $ */
2de40f400Smanu 
3de40f400Smanu /*-
4de40f400Smanu  * Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc.
5de40f400Smanu  * All rights reserved.
6de40f400Smanu  *
7de40f400Smanu  * This code is derived from software contributed to The NetBSD Foundation
8de40f400Smanu  * by Frank van der Linden, Eric Haszlakiewicz and Emmanuel Dreyfus.
9de40f400Smanu  *
10de40f400Smanu  * Redistribution and use in source and binary forms, with or without
11de40f400Smanu  * modification, are permitted provided that the following conditions
12de40f400Smanu  * are met:
13de40f400Smanu  * 1. Redistributions of source code must retain the above copyright
14de40f400Smanu  *    notice, this list of conditions and the following disclaimer.
15de40f400Smanu  * 2. Redistributions in binary form must reproduce the above copyright
16de40f400Smanu  *    notice, this list of conditions and the following disclaimer in the
17de40f400Smanu  *    documentation and/or other materials provided with the distribution.
18de40f400Smanu  *
19de40f400Smanu  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20de40f400Smanu  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21de40f400Smanu  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22de40f400Smanu  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23de40f400Smanu  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24de40f400Smanu  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25de40f400Smanu  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26de40f400Smanu  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27de40f400Smanu  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28de40f400Smanu  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29de40f400Smanu  * POSSIBILITY OF SUCH DAMAGE.
30de40f400Smanu  */
31de40f400Smanu 
32*ce099b40Smartin __KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.8 2008/04/28 20:23:43 martin Exp $");
33de40f400Smanu 
3454eff3d5Smanu /*
3554eff3d5Smanu  * From Linux's include/asm-mips/signal.h
3654eff3d5Smanu  */
37ac29fb37Schristos const int linux_to_native_signo[LINUX__NSIG] = {
38de40f400Smanu 	0,				/* 0 */
39de40f400Smanu 	SIGHUP,
40de40f400Smanu 	SIGINT,
41de40f400Smanu 	SIGQUIT,
42de40f400Smanu 	SIGILL,
43de40f400Smanu 	SIGTRAP,		/* 5 */
44de40f400Smanu 	SIGABRT,
45de40f400Smanu 	SIGEMT,
46de40f400Smanu 	SIGFPE,
47de40f400Smanu 	SIGKILL,
48de40f400Smanu 	SIGBUS,		/* 10 */
49de40f400Smanu 	SIGSEGV,
50de40f400Smanu 	SIGSYS,
51de40f400Smanu 	SIGPIPE,
52de40f400Smanu 	SIGALRM,
53de40f400Smanu 	SIGTERM,		/* 15 */
54de40f400Smanu 	SIGUSR1,
55de40f400Smanu 	SIGUSR2,
56de40f400Smanu 	SIGCHLD,
57de40f400Smanu 	SIGPWR,
58de40f400Smanu 	SIGWINCH,	/* 20 */
59de40f400Smanu 	SIGURG,
60de40f400Smanu 	SIGIO,
61de40f400Smanu 	SIGSTOP,
62de40f400Smanu 	SIGTSTP,
63de40f400Smanu 	SIGCONT,		/* 25 */
64de40f400Smanu 	SIGTTIN,
65de40f400Smanu 	SIGTTOU,
66de40f400Smanu 	SIGVTALRM,
67de40f400Smanu 	SIGPROF,
68de40f400Smanu 	SIGXCPU,		/* 30 */
69de40f400Smanu 	SIGXFSZ,
70de40f400Smanu 	0,
71de40f400Smanu 	0,
72de40f400Smanu 	0,
73de40f400Smanu 	0,				/* 35 */
74de40f400Smanu 	0,
75de40f400Smanu 	0,
76de40f400Smanu 	0,
77de40f400Smanu 	0,
78de40f400Smanu 	0,				/* 40 */
79de40f400Smanu 	0,
80de40f400Smanu 	0,
81de40f400Smanu 	0,
82de40f400Smanu 	0,
83de40f400Smanu 	0,				/* 45 */
84de40f400Smanu 	0,
85de40f400Smanu 	0,
86de40f400Smanu 	0,
87de40f400Smanu 	0,
88de40f400Smanu 	0,				/* 50 */
89de40f400Smanu 	0,
90de40f400Smanu 	0,
91de40f400Smanu 	0,
92de40f400Smanu 	0,
93de40f400Smanu 	0,				/* 55 */
94de40f400Smanu 	0,
95de40f400Smanu 	0,
96de40f400Smanu 	0,
97de40f400Smanu 	0,
98de40f400Smanu 	0,				/* 60 */
99de40f400Smanu 	0,
100de40f400Smanu 	0,
101de40f400Smanu 	0,
102de40f400Smanu };
103