linux_sigarray.c revision 1.22
11.22Schristos/*	$NetBSD: linux_sigarray.c,v 1.22 2002/03/31 22:40:17 christos 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.19Slukem
391.22Schristos__KERNEL_RCSID(1, "$NetBSD: linux_sigarray.c,v 1.22 2002/03/31 22:40:17 christos Exp $");
401.1Sfvdl
411.22Schristosconst int linux_to_native_signo[LINUX__NSIG] = {
421.20Schristos	0,		/* 0 */
431.20Schristos	SIGHUP,		/* 1 */
441.20Schristos	SIGINT,		/* 2 */
451.20Schristos	SIGQUIT,	/* 3 */
461.20Schristos	SIGILL,		/* 4 */
471.20Schristos	SIGTRAP,	/* 5 */
481.20Schristos	SIGABRT,	/* 6 */
491.20Schristos	SIGBUS,		/* 7 */
501.20Schristos	SIGFPE,		/* 8 */
511.20Schristos	SIGKILL,	/* 9 */
521.20Schristos	SIGUSR1,	/* 10 */
531.20Schristos	SIGSEGV,	/* 11 */
541.20Schristos	SIGUSR2,	/* 12 */
551.20Schristos	SIGPIPE,	/* 13 */
561.20Schristos	SIGALRM,	/* 14 */
571.20Schristos	SIGTERM,	/* 15 */
581.20Schristos	0,		/* 16 SIGSTKFLT */
591.20Schristos	SIGCHLD,	/* 17 */
601.20Schristos	SIGCONT,	/* 18 */
611.20Schristos	SIGSTOP,	/* 19 */
621.20Schristos	SIGTSTP,	/* 20 */
631.20Schristos	SIGTTIN,	/* 21 */
641.20Schristos	SIGTTOU,	/* 22 */
651.20Schristos	SIGURG,		/* 23 */
661.20Schristos	SIGXCPU,	/* 24 */
671.20Schristos	SIGXFSZ,	/* 25 */
681.20Schristos	SIGVTALRM,	/* 26 */
691.20Schristos	SIGPROF,	/* 27 */
701.20Schristos	SIGWINCH,	/* 28 */
711.20Schristos	SIGIO,		/* 29 */
721.20Schristos	SIGPWR,		/* 30 */
731.20Schristos	SIGSYS,		/* 31 */
741.20Schristos	SIGRTMIN + 0,	/* 32 */
751.20Schristos	SIGRTMIN + 1,	/* 33 */
761.20Schristos	SIGRTMIN + 2,	/* 34 */
771.20Schristos	SIGRTMIN + 3,	/* 35 */
781.20Schristos	SIGRTMIN + 4,	/* 36 */
791.20Schristos	SIGRTMIN + 5,	/* 37 */
801.20Schristos	SIGRTMIN + 6,	/* 38 */
811.20Schristos	SIGRTMIN + 7,	/* 39 */
821.20Schristos	SIGRTMIN + 8,	/* 40 */
831.20Schristos	SIGRTMIN + 9,	/* 41 */
841.20Schristos	SIGRTMIN + 10,	/* 42 */
851.20Schristos	SIGRTMIN + 11,	/* 43 */
861.20Schristos	SIGRTMIN + 12,	/* 44 */
871.20Schristos	SIGRTMIN + 13,	/* 45 */
881.20Schristos	SIGRTMIN + 14,	/* 46 */
891.20Schristos	SIGRTMIN + 15,	/* 47 */
901.20Schristos	SIGRTMIN + 16,	/* 48 */
911.20Schristos	SIGRTMIN + 17,	/* 49 */
921.20Schristos	SIGRTMIN + 18,	/* 50 */
931.20Schristos	SIGRTMIN + 19,	/* 51 */
941.20Schristos	SIGRTMIN + 20,	/* 52 */
951.20Schristos	SIGRTMIN + 21,	/* 53 */
961.20Schristos	SIGRTMIN + 22,	/* 54 */
971.20Schristos	SIGRTMIN + 23,	/* 55 */
981.20Schristos	SIGRTMIN + 24,	/* 56 */
991.20Schristos	SIGRTMIN + 25,	/* 57 */
1001.20Schristos	SIGRTMIN + 26,	/* 58 */
1011.20Schristos	SIGRTMIN + 27,	/* 59 */
1021.20Schristos	SIGRTMIN + 28,	/* 60 */
1031.20Schristos	SIGRTMIN + 29,	/* 61 */
1041.20Schristos	SIGRTMIN + 30,	/* 62 */
1051.20Schristos	0		/* 63 */
1061.6Smycroft};
107