109 lines
3.3 KiB
C
109 lines
3.3 KiB
C
|
/* $NetBSD: ibcs2_signo.c,v 1.1 2002/03/31 22:22:44 christos Exp $ */
|
||
|
|
||
|
/*
|
||
|
* Copyright (c) 1995 Scott Bartram
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* Redistribution and use in source and binary forms, with or without
|
||
|
* modification, are permitted provided that the following conditions
|
||
|
* are met:
|
||
|
* 1. Redistributions of source code must retain the above copyright
|
||
|
* notice, this list of conditions and the following disclaimer.
|
||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||
|
* notice, this list of conditions and the following disclaimer in the
|
||
|
* documentation and/or other materials provided with the distribution.
|
||
|
* 3. The name of the author may not be used to endorse or promote products
|
||
|
* derived from this software without specific prior written permission
|
||
|
*
|
||
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
|
||
|
#include <sys/cdefs.h>
|
||
|
__KERNEL_RCSID(0, "$NetBSD: ibcs2_signo.c,v 1.1 2002/03/31 22:22:44 christos Exp $");
|
||
|
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/signal.h>
|
||
|
|
||
|
#include <compat/ibcs2/ibcs2_types.h>
|
||
|
#include <compat/ibcs2/ibcs2_signal.h>
|
||
|
|
||
|
const int native_to_ibcs2_signo[NSIG] = {
|
||
|
0, /* 0 */
|
||
|
IBCS2_SIGHUP, /* 1 */
|
||
|
IBCS2_SIGINT, /* 2 */
|
||
|
IBCS2_SIGQUIT, /* 3 */
|
||
|
IBCS2_SIGILL, /* 4 */
|
||
|
IBCS2_SIGTRAP, /* 5 */
|
||
|
IBCS2_SIGABRT, /* 6 */
|
||
|
IBCS2_SIGEMT, /* 7 */
|
||
|
IBCS2_SIGFPE, /* 8 */
|
||
|
IBCS2_SIGKILL, /* 9 */
|
||
|
IBCS2_SIGBUS, /* 10 */
|
||
|
IBCS2_SIGSEGV, /* 11 */
|
||
|
IBCS2_SIGSYS, /* 12 */
|
||
|
IBCS2_SIGPIPE, /* 13 */
|
||
|
IBCS2_SIGALRM, /* 14 */
|
||
|
IBCS2_SIGTERM, /* 15 */
|
||
|
0, /* 16 - SIGURG */
|
||
|
IBCS2_SIGSTOP, /* 17 */
|
||
|
IBCS2_SIGTSTP, /* 18 */
|
||
|
IBCS2_SIGCONT, /* 19 */
|
||
|
IBCS2_SIGCLD, /* 20 */
|
||
|
IBCS2_SIGTTIN, /* 21 */
|
||
|
IBCS2_SIGTTOU, /* 22 */
|
||
|
IBCS2_SIGPOLL, /* 23 */
|
||
|
IBCS2_SIGXCPU, /* 24 */
|
||
|
IBCS2_SIGXFSZ, /* 25 */
|
||
|
IBCS2_SIGVTALRM, /* 26 */
|
||
|
IBCS2_SIGPROF, /* 27 */
|
||
|
IBCS2_SIGWINCH, /* 28 */
|
||
|
0, /* 29 - SIGINFO */
|
||
|
IBCS2_SIGUSR1, /* 30 */
|
||
|
IBCS2_SIGUSR2, /* 31 */
|
||
|
IBCS2_SIGPWR, /* 32 */
|
||
|
};
|
||
|
|
||
|
const int ibcs2_to_native_signo[IBCS2_NSIG] = {
|
||
|
0, /* 0 */
|
||
|
SIGHUP, /* 1 */
|
||
|
SIGINT, /* 2 */
|
||
|
SIGQUIT, /* 3 */
|
||
|
SIGILL, /* 4 */
|
||
|
SIGTRAP, /* 5 */
|
||
|
SIGABRT, /* 6 */
|
||
|
SIGEMT, /* 7 */
|
||
|
SIGFPE, /* 8 */
|
||
|
SIGKILL, /* 9 */
|
||
|
SIGBUS, /* 10 */
|
||
|
SIGSEGV, /* 11 */
|
||
|
SIGSYS, /* 12 */
|
||
|
SIGPIPE, /* 13 */
|
||
|
SIGALRM, /* 14 */
|
||
|
SIGTERM, /* 15 */
|
||
|
SIGUSR1, /* 16 */
|
||
|
SIGUSR2, /* 17 */
|
||
|
SIGCHLD, /* 18 */
|
||
|
SIGPWR, /* 19 */
|
||
|
SIGWINCH, /* 20 */
|
||
|
0, /* 21 - SIGPHONE */
|
||
|
SIGIO, /* 22 */
|
||
|
SIGSTOP, /* 23 */
|
||
|
SIGTSTP, /* 24 */
|
||
|
SIGCONT, /* 25 */
|
||
|
SIGTTIN, /* 26 */
|
||
|
SIGTTOU, /* 27 */
|
||
|
SIGVTALRM, /* 28 */
|
||
|
SIGPROF, /* 29 */
|
||
|
SIGXCPU, /* 30 */
|
||
|
SIGXFSZ, /* 31 */
|
||
|
};
|