11.25Smartin/* $NetBSD: linux_sigarray.c,v 1.25 2008/04/28 20:23:42 martin Exp $ */ 21.14Serh 31.14Serh/*- 41.16Sfvdl * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. 51.14Serh * All rights reserved. 61.14Serh * 71.14Serh * This code is derived from software contributed to The NetBSD Foundation 81.16Sfvdl * by Frank van der Linden and Eric Haszlakiewicz. 91.14Serh * 101.14Serh * Redistribution and use in source and binary forms, with or without 111.14Serh * modification, are permitted provided that the following conditions 121.14Serh * are met: 131.14Serh * 1. Redistributions of source code must retain the above copyright 141.14Serh * notice, this list of conditions and the following disclaimer. 151.14Serh * 2. Redistributions in binary form must reproduce the above copyright 161.14Serh * notice, this list of conditions and the following disclaimer in the 171.14Serh * documentation and/or other materials provided with the distribution. 181.14Serh * 191.14Serh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.14Serh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.14Serh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.14Serh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.14Serh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.14Serh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.14Serh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.14Serh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.14Serh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.14Serh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.14Serh * POSSIBILITY OF SUCH DAMAGE. 301.1Sfvdl */ 311.19Slukem 321.25Smartin__KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.25 2008/04/28 20:23:42 martin Exp $"); 331.1Sfvdl 341.22Schristosconst int linux_to_native_signo[LINUX__NSIG] = { 351.20Schristos 0, /* 0 */ 361.20Schristos SIGHUP, /* 1 */ 371.20Schristos SIGINT, /* 2 */ 381.20Schristos SIGQUIT, /* 3 */ 391.20Schristos SIGILL, /* 4 */ 401.20Schristos SIGTRAP, /* 5 */ 411.20Schristos SIGABRT, /* 6 */ 421.20Schristos SIGBUS, /* 7 */ 431.20Schristos SIGFPE, /* 8 */ 441.20Schristos SIGKILL, /* 9 */ 451.20Schristos SIGUSR1, /* 10 */ 461.20Schristos SIGSEGV, /* 11 */ 471.20Schristos SIGUSR2, /* 12 */ 481.20Schristos SIGPIPE, /* 13 */ 491.20Schristos SIGALRM, /* 14 */ 501.20Schristos SIGTERM, /* 15 */ 511.20Schristos 0, /* 16 SIGSTKFLT */ 521.20Schristos SIGCHLD, /* 17 */ 531.20Schristos SIGCONT, /* 18 */ 541.20Schristos SIGSTOP, /* 19 */ 551.20Schristos SIGTSTP, /* 20 */ 561.20Schristos SIGTTIN, /* 21 */ 571.20Schristos SIGTTOU, /* 22 */ 581.20Schristos SIGURG, /* 23 */ 591.20Schristos SIGXCPU, /* 24 */ 601.20Schristos SIGXFSZ, /* 25 */ 611.20Schristos SIGVTALRM, /* 26 */ 621.20Schristos SIGPROF, /* 27 */ 631.20Schristos SIGWINCH, /* 28 */ 641.20Schristos SIGIO, /* 29 */ 651.20Schristos SIGPWR, /* 30 */ 661.20Schristos SIGSYS, /* 31 */ 671.20Schristos SIGRTMIN + 0, /* 32 */ 681.20Schristos SIGRTMIN + 1, /* 33 */ 691.20Schristos SIGRTMIN + 2, /* 34 */ 701.20Schristos SIGRTMIN + 3, /* 35 */ 711.20Schristos SIGRTMIN + 4, /* 36 */ 721.20Schristos SIGRTMIN + 5, /* 37 */ 731.20Schristos SIGRTMIN + 6, /* 38 */ 741.20Schristos SIGRTMIN + 7, /* 39 */ 751.20Schristos SIGRTMIN + 8, /* 40 */ 761.20Schristos SIGRTMIN + 9, /* 41 */ 771.20Schristos SIGRTMIN + 10, /* 42 */ 781.20Schristos SIGRTMIN + 11, /* 43 */ 791.20Schristos SIGRTMIN + 12, /* 44 */ 801.20Schristos SIGRTMIN + 13, /* 45 */ 811.20Schristos SIGRTMIN + 14, /* 46 */ 821.20Schristos SIGRTMIN + 15, /* 47 */ 831.20Schristos SIGRTMIN + 16, /* 48 */ 841.20Schristos SIGRTMIN + 17, /* 49 */ 851.20Schristos SIGRTMIN + 18, /* 50 */ 861.20Schristos SIGRTMIN + 19, /* 51 */ 871.20Schristos SIGRTMIN + 20, /* 52 */ 881.20Schristos SIGRTMIN + 21, /* 53 */ 891.20Schristos SIGRTMIN + 22, /* 54 */ 901.20Schristos SIGRTMIN + 23, /* 55 */ 911.20Schristos SIGRTMIN + 24, /* 56 */ 921.20Schristos SIGRTMIN + 25, /* 57 */ 931.20Schristos SIGRTMIN + 26, /* 58 */ 941.20Schristos SIGRTMIN + 27, /* 59 */ 951.20Schristos SIGRTMIN + 28, /* 60 */ 961.20Schristos SIGRTMIN + 29, /* 61 */ 971.20Schristos SIGRTMIN + 30, /* 62 */ 981.20Schristos 0 /* 63 */ 991.6Smycroft}; 100