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