linux_sigarray.c revision 1.16
11.16Sfvdl/*	$NetBSD: linux_sigarray.c,v 1.16 1998/10/04 00:02:27 fvdl 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 * 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.1Sfvdl */
381.1Sfvdl
391.1Sfvdl#include <sys/param.h>
401.1Sfvdl#include <sys/systm.h>
411.1Sfvdl#include <sys/kernel.h>
421.1Sfvdl#include <sys/signal.h>
431.1Sfvdl
441.15Schristos#include <compat/linux/common/linux_signal.h>
451.6Smycroft
461.12Smycroftint linux_to_native_sig[LINUX_NSIG] = {
471.6Smycroft	0,
481.6Smycroft	SIGHUP,
491.6Smycroft	SIGINT,
501.6Smycroft	SIGQUIT,
511.6Smycroft	SIGILL,
521.6Smycroft	SIGTRAP,
531.6Smycroft	SIGABRT,
541.6Smycroft	SIGBUS,
551.6Smycroft	SIGFPE,
561.6Smycroft	SIGKILL,
571.6Smycroft	SIGUSR1,
581.6Smycroft	SIGSEGV,
591.6Smycroft	SIGUSR2,
601.6Smycroft	SIGPIPE,
611.6Smycroft	SIGALRM,
621.6Smycroft	SIGTERM,
631.12Smycroft	0,			/* SIGSTKFLT */
641.6Smycroft	SIGCHLD,
651.6Smycroft	SIGCONT,
661.6Smycroft	SIGSTOP,
671.6Smycroft	SIGTSTP,
681.6Smycroft	SIGTTIN,
691.6Smycroft	SIGTTOU,
701.6Smycroft	SIGURG,
711.6Smycroft	SIGXCPU,
721.6Smycroft	SIGXFSZ,
731.6Smycroft	SIGVTALRM,
741.6Smycroft	SIGPROF,
751.6Smycroft	SIGWINCH,
761.6Smycroft	SIGIO,
771.12Smycroft	SIGPWR,
781.12Smycroft	0,			/* SIGUNUSED */
791.6Smycroft};
801.1Sfvdl
81