linux_sigarray.c revision 1.14
11.14Serh/* $NetBSD: linux_sigarray.c,v 1.14 1998/10/01 02:27:33 erh Exp $ */ 21.14Serh 31.14Serh/*- 41.14Serh * Copyright (c) 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.14Serh * by 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 * 3. All advertising materials mentioning features or use of this software 191.14Serh * must display the following acknowledgement: 201.14Serh * This product includes software developed by the NetBSD 211.14Serh * Foundation, Inc. and its contributors. 221.14Serh * 4. Neither the name of The NetBSD Foundation nor the names of its 231.14Serh * contributors may be used to endorse or promote products derived 241.14Serh * from this software without specific prior written permission. 251.14Serh * 261.14Serh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 271.14Serh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 281.14Serh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 291.14Serh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 301.14Serh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 311.14Serh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 321.14Serh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 331.14Serh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 341.14Serh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 351.14Serh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 361.14Serh * POSSIBILITY OF SUCH DAMAGE. 371.14Serh */ 381.1Sfvdl 391.1Sfvdl/* 401.1Sfvdl * Copyright (c) 1995 Frank van der Linden 411.1Sfvdl * All rights reserved. 421.1Sfvdl * 431.1Sfvdl * Redistribution and use in source and binary forms, with or without 441.1Sfvdl * modification, are permitted provided that the following conditions 451.1Sfvdl * are met: 461.1Sfvdl * 1. Redistributions of source code must retain the above copyright 471.1Sfvdl * notice, this list of conditions and the following disclaimer. 481.1Sfvdl * 2. Redistributions in binary form must reproduce the above copyright 491.1Sfvdl * notice, this list of conditions and the following disclaimer in the 501.1Sfvdl * documentation and/or other materials provided with the distribution. 511.1Sfvdl * 3. All advertising materials mentioning features or use of this software 521.1Sfvdl * must display the following acknowledgement: 531.1Sfvdl * This product includes software developed for the NetBSD Project 541.1Sfvdl * by Frank van der Linden 551.1Sfvdl * 4. The name of the author may not be used to endorse or promote products 561.1Sfvdl * derived from this software without specific prior written permission 571.1Sfvdl * 581.1Sfvdl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 591.1Sfvdl * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 601.1Sfvdl * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 611.1Sfvdl * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 621.1Sfvdl * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 631.1Sfvdl * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 641.1Sfvdl * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 651.1Sfvdl * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 661.1Sfvdl * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 671.1Sfvdl * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 681.1Sfvdl * 691.1Sfvdl * heavily from: svr4_signal.c,v 1.7 1995/01/09 01:04:21 christos Exp 701.1Sfvdl */ 711.1Sfvdl 721.1Sfvdl#include <sys/param.h> 731.1Sfvdl#include <sys/systm.h> 741.1Sfvdl#include <sys/kernel.h> 751.1Sfvdl#include <sys/signal.h> 761.1Sfvdl 771.7Smycroft#include <compat/linux/linux_signal.h> 781.6Smycroft 791.12Smycroftint linux_to_native_sig[LINUX_NSIG] = { 801.6Smycroft 0, 811.6Smycroft SIGHUP, 821.6Smycroft SIGINT, 831.6Smycroft SIGQUIT, 841.6Smycroft SIGILL, 851.6Smycroft SIGTRAP, 861.6Smycroft SIGABRT, 871.6Smycroft SIGBUS, 881.6Smycroft SIGFPE, 891.6Smycroft SIGKILL, 901.6Smycroft SIGUSR1, 911.6Smycroft SIGSEGV, 921.6Smycroft SIGUSR2, 931.6Smycroft SIGPIPE, 941.6Smycroft SIGALRM, 951.6Smycroft SIGTERM, 961.12Smycroft 0, /* SIGSTKFLT */ 971.6Smycroft SIGCHLD, 981.6Smycroft SIGCONT, 991.6Smycroft SIGSTOP, 1001.6Smycroft SIGTSTP, 1011.6Smycroft SIGTTIN, 1021.6Smycroft SIGTTOU, 1031.6Smycroft SIGURG, 1041.6Smycroft SIGXCPU, 1051.6Smycroft SIGXFSZ, 1061.6Smycroft SIGVTALRM, 1071.6Smycroft SIGPROF, 1081.6Smycroft SIGWINCH, 1091.6Smycroft SIGIO, 1101.12Smycroft SIGPWR, 1111.12Smycroft 0, /* SIGUNUSED */ 1121.6Smycroft}; 1131.1Sfvdl 114