| 1 | /* $NetBSD: linux_sigarray.c,v 1.2 2005/12/11 12:20:14 christos Exp $ */ |
| 2 | |
| 3 | /*- |
| 4 | * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * 2. Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in the |
| 13 | * documentation and/or other materials provided with the distribution. |
| 14 | * 3. All advertising materials mentioning features or use of this software |
| 15 | * must display the following acknowledgement: |
| 16 | * This product includes software developed by Emmanuel Dreyfus |
| 17 | * 4. The name of the author may not be used to endorse or promote |
| 18 | * products derived from this software without specific prior written |
| 19 | * permission. |
| 20 | * |
| 21 | * THIS SOFTWARE IS PROVIDED BY THE THE AUTHOR AND CONTRIBUTORS ``AS IS'' |
| 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 23 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 24 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS |
| 25 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 26 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 27 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 31 | * POSSIBILITY OF SUCH DAMAGE. |
| 32 | */ |
| 33 | |
| 34 | __KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.2 2005/12/11 12:20:14 christos Exp $" ); |
| 35 | |
| 36 | const int linux_to_native_signo[LINUX__NSIG] = { |
| 37 | 0, /* 0 */ |
| 38 | SIGHUP, /* 1 */ |
| 39 | SIGINT, /* 2 */ |
| 40 | SIGQUIT, /* 3 */ |
| 41 | SIGILL, /* 4 */ |
| 42 | SIGTRAP, /* 5 */ |
| 43 | SIGABRT, /* 6 */ |
| 44 | SIGBUS, /* 7 */ |
| 45 | SIGFPE, /* 8 */ |
| 46 | SIGKILL, /* 9 */ |
| 47 | SIGUSR1, /* 10 */ |
| 48 | SIGSEGV, /* 11 */ |
| 49 | SIGUSR2, /* 12 */ |
| 50 | SIGPIPE, /* 13 */ |
| 51 | SIGALRM, /* 14 */ |
| 52 | SIGTERM, /* 15 */ |
| 53 | 0, /* 16 SIGSTKFLT */ |
| 54 | SIGCHLD, /* 17 */ |
| 55 | SIGCONT, /* 18 */ |
| 56 | SIGSTOP, /* 19 */ |
| 57 | SIGTSTP, /* 20 */ |
| 58 | SIGTTIN, /* 21 */ |
| 59 | SIGTTOU, /* 22 */ |
| 60 | SIGURG, /* 23 */ |
| 61 | SIGXCPU, /* 24 */ |
| 62 | SIGXFSZ, /* 25 */ |
| 63 | SIGVTALRM, /* 26 */ |
| 64 | SIGPROF, /* 27 */ |
| 65 | SIGWINCH, /* 28 */ |
| 66 | SIGIO, /* 29 */ |
| 67 | SIGPWR, /* 30 */ |
| 68 | SIGSYS, /* 31 */ |
| 69 | SIGRTMIN + 0, /* 32 */ |
| 70 | SIGRTMIN + 1, /* 33 */ |
| 71 | SIGRTMIN + 2, /* 34 */ |
| 72 | SIGRTMIN + 3, /* 35 */ |
| 73 | SIGRTMIN + 4, /* 36 */ |
| 74 | SIGRTMIN + 5, /* 37 */ |
| 75 | SIGRTMIN + 6, /* 38 */ |
| 76 | SIGRTMIN + 7, /* 39 */ |
| 77 | SIGRTMIN + 8, /* 40 */ |
| 78 | SIGRTMIN + 9, /* 41 */ |
| 79 | SIGRTMIN + 10, /* 42 */ |
| 80 | SIGRTMIN + 11, /* 43 */ |
| 81 | SIGRTMIN + 12, /* 44 */ |
| 82 | SIGRTMIN + 13, /* 45 */ |
| 83 | SIGRTMIN + 14, /* 46 */ |
| 84 | SIGRTMIN + 15, /* 47 */ |
| 85 | SIGRTMIN + 16, /* 48 */ |
| 86 | SIGRTMIN + 17, /* 49 */ |
| 87 | SIGRTMIN + 18, /* 50 */ |
| 88 | SIGRTMIN + 19, /* 51 */ |
| 89 | SIGRTMIN + 20, /* 52 */ |
| 90 | SIGRTMIN + 21, /* 53 */ |
| 91 | SIGRTMIN + 22, /* 54 */ |
| 92 | SIGRTMIN + 23, /* 55 */ |
| 93 | SIGRTMIN + 24, /* 56 */ |
| 94 | SIGRTMIN + 25, /* 57 */ |
| 95 | SIGRTMIN + 26, /* 58 */ |
| 96 | SIGRTMIN + 27, /* 59 */ |
| 97 | SIGRTMIN + 28, /* 60 */ |
| 98 | SIGRTMIN + 29, /* 61 */ |
| 99 | SIGRTMIN + 30, /* 62 */ |
| 100 | 0 /* 63 */ |
| 101 | }; |
| 102 | |