Home | History | Annotate | Line # | Download | only in i386
      1 /*	$NetBSD: linux_sigarray.c,v 1.25 2008/04/28 20:23:42 martin 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  *
     19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  * POSSIBILITY OF SUCH DAMAGE.
     30  */
     31 
     32 __KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.25 2008/04/28 20:23:42 martin Exp $");
     33 
     34 const int linux_to_native_signo[LINUX__NSIG] = {
     35 	0,		/* 0 */
     36 	SIGHUP,		/* 1 */
     37 	SIGINT,		/* 2 */
     38 	SIGQUIT,	/* 3 */
     39 	SIGILL,		/* 4 */
     40 	SIGTRAP,	/* 5 */
     41 	SIGABRT,	/* 6 */
     42 	SIGBUS,		/* 7 */
     43 	SIGFPE,		/* 8 */
     44 	SIGKILL,	/* 9 */
     45 	SIGUSR1,	/* 10 */
     46 	SIGSEGV,	/* 11 */
     47 	SIGUSR2,	/* 12 */
     48 	SIGPIPE,	/* 13 */
     49 	SIGALRM,	/* 14 */
     50 	SIGTERM,	/* 15 */
     51 	0,		/* 16 SIGSTKFLT */
     52 	SIGCHLD,	/* 17 */
     53 	SIGCONT,	/* 18 */
     54 	SIGSTOP,	/* 19 */
     55 	SIGTSTP,	/* 20 */
     56 	SIGTTIN,	/* 21 */
     57 	SIGTTOU,	/* 22 */
     58 	SIGURG,		/* 23 */
     59 	SIGXCPU,	/* 24 */
     60 	SIGXFSZ,	/* 25 */
     61 	SIGVTALRM,	/* 26 */
     62 	SIGPROF,	/* 27 */
     63 	SIGWINCH,	/* 28 */
     64 	SIGIO,		/* 29 */
     65 	SIGPWR,		/* 30 */
     66 	SIGSYS,		/* 31 */
     67 	SIGRTMIN + 0,	/* 32 */
     68 	SIGRTMIN + 1,	/* 33 */
     69 	SIGRTMIN + 2,	/* 34 */
     70 	SIGRTMIN + 3,	/* 35 */
     71 	SIGRTMIN + 4,	/* 36 */
     72 	SIGRTMIN + 5,	/* 37 */
     73 	SIGRTMIN + 6,	/* 38 */
     74 	SIGRTMIN + 7,	/* 39 */
     75 	SIGRTMIN + 8,	/* 40 */
     76 	SIGRTMIN + 9,	/* 41 */
     77 	SIGRTMIN + 10,	/* 42 */
     78 	SIGRTMIN + 11,	/* 43 */
     79 	SIGRTMIN + 12,	/* 44 */
     80 	SIGRTMIN + 13,	/* 45 */
     81 	SIGRTMIN + 14,	/* 46 */
     82 	SIGRTMIN + 15,	/* 47 */
     83 	SIGRTMIN + 16,	/* 48 */
     84 	SIGRTMIN + 17,	/* 49 */
     85 	SIGRTMIN + 18,	/* 50 */
     86 	SIGRTMIN + 19,	/* 51 */
     87 	SIGRTMIN + 20,	/* 52 */
     88 	SIGRTMIN + 21,	/* 53 */
     89 	SIGRTMIN + 22,	/* 54 */
     90 	SIGRTMIN + 23,	/* 55 */
     91 	SIGRTMIN + 24,	/* 56 */
     92 	SIGRTMIN + 25,	/* 57 */
     93 	SIGRTMIN + 26,	/* 58 */
     94 	SIGRTMIN + 27,	/* 59 */
     95 	SIGRTMIN + 28,	/* 60 */
     96 	SIGRTMIN + 29,	/* 61 */
     97 	SIGRTMIN + 30,	/* 62 */
     98 	0		/* 63 */
     99 };
    100