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