xref: /netbsd-src/sys/compat/linux/arch/amd64/linux_sigarray.c (revision 21709ad01db1a91e3c201ed96d7d83992cdf0208)
1*21709ad0Sriastradh /*	$NetBSD: linux_sigarray.c,v 1.3 2024/10/01 16:35:42 riastradh Exp $	*/
253fb6703Smanu 
353fb6703Smanu /*-
453fb6703Smanu  * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
553fb6703Smanu  *
653fb6703Smanu  * Redistribution and use in source and binary forms, with or without
753fb6703Smanu  * modification, are permitted provided that the following conditions
853fb6703Smanu  * are met:
953fb6703Smanu  * 1. Redistributions of source code must retain the above copyright
1053fb6703Smanu  *    notice, this list of conditions and the following disclaimer.
1153fb6703Smanu  * 2. Redistributions in binary form must reproduce the above copyright
1253fb6703Smanu  *    notice, this list of conditions and the following disclaimer in the
1353fb6703Smanu  *    documentation and/or other materials provided with the distribution.
1453fb6703Smanu  * 3. All advertising materials mentioning features or use of this software
1553fb6703Smanu  *    must display the following acknowledgement:
1653fb6703Smanu  *	This product includes software developed by Emmanuel Dreyfus
1753fb6703Smanu  * 4. The name of the author may not be used to endorse or promote
1853fb6703Smanu  *    products derived from this software without specific prior written
1953fb6703Smanu  *    permission.
2053fb6703Smanu  *
2153fb6703Smanu  * THIS SOFTWARE IS PROVIDED BY THE THE AUTHOR AND CONTRIBUTORS ``AS IS''
2253fb6703Smanu  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
2353fb6703Smanu  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2453fb6703Smanu  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
2553fb6703Smanu  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2653fb6703Smanu  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2753fb6703Smanu  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2853fb6703Smanu  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2953fb6703Smanu  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3053fb6703Smanu  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3153fb6703Smanu  * POSSIBILITY OF SUCH DAMAGE.
3253fb6703Smanu  */
3353fb6703Smanu 
34*21709ad0Sriastradh __KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.3 2024/10/01 16:35:42 riastradh Exp $");
3553fb6703Smanu 
3653fb6703Smanu const int linux_to_native_signo[LINUX__NSIG] = {
3753fb6703Smanu 	0,		/* 0 */
3853fb6703Smanu 	SIGHUP,		/* 1 */
3953fb6703Smanu 	SIGINT,		/* 2 */
4053fb6703Smanu 	SIGQUIT,	/* 3 */
4153fb6703Smanu 	SIGILL,		/* 4 */
4253fb6703Smanu 	SIGTRAP,	/* 5 */
4353fb6703Smanu 	SIGABRT,	/* 6 */
4453fb6703Smanu 	SIGBUS,		/* 7 */
4553fb6703Smanu 	SIGFPE,		/* 8 */
4653fb6703Smanu 	SIGKILL,	/* 9 */
4753fb6703Smanu 	SIGUSR1,	/* 10 */
4853fb6703Smanu 	SIGSEGV,	/* 11 */
4953fb6703Smanu 	SIGUSR2,	/* 12 */
5053fb6703Smanu 	SIGPIPE,	/* 13 */
5153fb6703Smanu 	SIGALRM,	/* 14 */
5253fb6703Smanu 	SIGTERM,	/* 15 */
5353fb6703Smanu 	0,		/* 16 SIGSTKFLT */
5453fb6703Smanu 	SIGCHLD,	/* 17 */
5553fb6703Smanu 	SIGCONT,	/* 18 */
5653fb6703Smanu 	SIGSTOP,	/* 19 */
5753fb6703Smanu 	SIGTSTP,	/* 20 */
5853fb6703Smanu 	SIGTTIN,	/* 21 */
5953fb6703Smanu 	SIGTTOU,	/* 22 */
6053fb6703Smanu 	SIGURG,		/* 23 */
6153fb6703Smanu 	SIGXCPU,	/* 24 */
6253fb6703Smanu 	SIGXFSZ,	/* 25 */
6353fb6703Smanu 	SIGVTALRM,	/* 26 */
6453fb6703Smanu 	SIGPROF,	/* 27 */
6553fb6703Smanu 	SIGWINCH,	/* 28 */
6653fb6703Smanu 	SIGIO,		/* 29 */
6753fb6703Smanu 	SIGPWR,		/* 30 */
6853fb6703Smanu 	SIGSYS,		/* 31 */
6953fb6703Smanu 	SIGRTMIN + 0,	/* 32 */
7053fb6703Smanu 	SIGRTMIN + 1,	/* 33 */
7153fb6703Smanu 	SIGRTMIN + 2,	/* 34 */
7253fb6703Smanu 	SIGRTMIN + 3,	/* 35 */
7353fb6703Smanu 	SIGRTMIN + 4,	/* 36 */
7453fb6703Smanu 	SIGRTMIN + 5,	/* 37 */
7553fb6703Smanu 	SIGRTMIN + 6,	/* 38 */
7653fb6703Smanu 	SIGRTMIN + 7,	/* 39 */
7753fb6703Smanu 	SIGRTMIN + 8,	/* 40 */
7853fb6703Smanu 	SIGRTMIN + 9,	/* 41 */
7953fb6703Smanu 	SIGRTMIN + 10,	/* 42 */
8053fb6703Smanu 	SIGRTMIN + 11,	/* 43 */
8153fb6703Smanu 	SIGRTMIN + 12,	/* 44 */
8253fb6703Smanu 	SIGRTMIN + 13,	/* 45 */
8353fb6703Smanu 	SIGRTMIN + 14,	/* 46 */
8453fb6703Smanu 	SIGRTMIN + 15,	/* 47 */
8553fb6703Smanu 	SIGRTMIN + 16,	/* 48 */
8653fb6703Smanu 	SIGRTMIN + 17,	/* 49 */
8753fb6703Smanu 	SIGRTMIN + 18,	/* 50 */
8853fb6703Smanu 	SIGRTMIN + 19,	/* 51 */
8953fb6703Smanu 	SIGRTMIN + 20,	/* 52 */
9053fb6703Smanu 	SIGRTMIN + 21,	/* 53 */
9153fb6703Smanu 	SIGRTMIN + 22,	/* 54 */
9253fb6703Smanu 	SIGRTMIN + 23,	/* 55 */
9353fb6703Smanu 	SIGRTMIN + 24,	/* 56 */
9453fb6703Smanu 	SIGRTMIN + 25,	/* 57 */
9553fb6703Smanu 	SIGRTMIN + 26,	/* 58 */
9653fb6703Smanu 	SIGRTMIN + 27,	/* 59 */
9753fb6703Smanu 	SIGRTMIN + 28,	/* 60 */
9853fb6703Smanu 	SIGRTMIN + 29,	/* 61 */
9953fb6703Smanu 	SIGRTMIN + 30,	/* 62 */
10053fb6703Smanu 	0		/* 63 */
10153fb6703Smanu };
102