1 /*	$NetBSD: linux_sigarray.c,v 1.24 2002/04/10 09:53:01 itojun Exp $	*/
2 
3 /*-
4  * Copyright (c) 1995, 1998 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 and Eric Haszlakiewicz.
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 __KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.24 2002/04/10 09:53:01 itojun Exp $");
40 
41 const int linux_to_native_signo[LINUX__NSIG] = {
42 	0,		/* 0 */
43 	SIGHUP,		/* 1 */
44 	SIGINT,		/* 2 */
45 	SIGQUIT,	/* 3 */
46 	SIGILL,		/* 4 */
47 	SIGTRAP,	/* 5 */
48 	SIGABRT,	/* 6 */
49 	SIGBUS,		/* 7 */
50 	SIGFPE,		/* 8 */
51 	SIGKILL,	/* 9 */
52 	SIGUSR1,	/* 10 */
53 	SIGSEGV,	/* 11 */
54 	SIGUSR2,	/* 12 */
55 	SIGPIPE,	/* 13 */
56 	SIGALRM,	/* 14 */
57 	SIGTERM,	/* 15 */
58 	0,		/* 16 SIGSTKFLT */
59 	SIGCHLD,	/* 17 */
60 	SIGCONT,	/* 18 */
61 	SIGSTOP,	/* 19 */
62 	SIGTSTP,	/* 20 */
63 	SIGTTIN,	/* 21 */
64 	SIGTTOU,	/* 22 */
65 	SIGURG,		/* 23 */
66 	SIGXCPU,	/* 24 */
67 	SIGXFSZ,	/* 25 */
68 	SIGVTALRM,	/* 26 */
69 	SIGPROF,	/* 27 */
70 	SIGWINCH,	/* 28 */
71 	SIGIO,		/* 29 */
72 	SIGPWR,		/* 30 */
73 	SIGSYS,		/* 31 */
74 	SIGRTMIN + 0,	/* 32 */
75 	SIGRTMIN + 1,	/* 33 */
76 	SIGRTMIN + 2,	/* 34 */
77 	SIGRTMIN + 3,	/* 35 */
78 	SIGRTMIN + 4,	/* 36 */
79 	SIGRTMIN + 5,	/* 37 */
80 	SIGRTMIN + 6,	/* 38 */
81 	SIGRTMIN + 7,	/* 39 */
82 	SIGRTMIN + 8,	/* 40 */
83 	SIGRTMIN + 9,	/* 41 */
84 	SIGRTMIN + 10,	/* 42 */
85 	SIGRTMIN + 11,	/* 43 */
86 	SIGRTMIN + 12,	/* 44 */
87 	SIGRTMIN + 13,	/* 45 */
88 	SIGRTMIN + 14,	/* 46 */
89 	SIGRTMIN + 15,	/* 47 */
90 	SIGRTMIN + 16,	/* 48 */
91 	SIGRTMIN + 17,	/* 49 */
92 	SIGRTMIN + 18,	/* 50 */
93 	SIGRTMIN + 19,	/* 51 */
94 	SIGRTMIN + 20,	/* 52 */
95 	SIGRTMIN + 21,	/* 53 */
96 	SIGRTMIN + 22,	/* 54 */
97 	SIGRTMIN + 23,	/* 55 */
98 	SIGRTMIN + 24,	/* 56 */
99 	SIGRTMIN + 25,	/* 57 */
100 	SIGRTMIN + 26,	/* 58 */
101 	SIGRTMIN + 27,	/* 59 */
102 	SIGRTMIN + 28,	/* 60 */
103 	SIGRTMIN + 29,	/* 61 */
104 	SIGRTMIN + 30,	/* 62 */
105 	0		/* 63 */
106 };
107