siginfolst.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
#include "synonyms.h"
#include <signal.h>
#include <siginfo.h>
#undef _sys_siginfolist
#define OLDNSIG 34
const char *_sys_traplist[NSIGTRAP] = {
"breakpoint trap",
"trace trap",
"read access trap",
"write access trap",
"execute access trap",
"dtrace trap"
};
const char *_sys_illlist[NSIGILL] = {
"illegal opcode",
"illegal operand",
"illegal addressing mode",
"illegal trap",
"privileged opcode",
"privileged register",
"co-processor",
"bad stack"
};
const char *_sys_fpelist[NSIGFPE] = {
"integer divide by zero",
"integer overflow",
"floating point divide by zero",
"floating point overflow",
"floating point underflow",
"floating point inexact result",
"invalid floating point operation",
"subscript out of range"
};
const char *_sys_segvlist[NSIGSEGV] = {
"address not mapped to object",
"invalid permissions"
};
const char *_sys_buslist[NSIGBUS] = {
"invalid address alignment",
"non-existent physical address",
"object specific"
};
const char *_sys_cldlist[NSIGCLD] = {
"child has exited",
"child was killed",
"child has coredumped",
"traced child has trapped",
"child has stopped",
"stopped child has continued"
};
const char *_sys_polllist[NSIGPOLL] = {
"input available",
"output possible",
"message available",
"I/O error",
"high priority input available",
"device disconnected"
};
struct siginfolist _sys_siginfolist[OLDNSIG-1] = {
0, 0, /* SIGHUP */
0, 0, /* SIGINT */
0, 0, /* SIGQUIT */
NSIGILL, (char **)_sys_illlist, /* SIGILL */
NSIGTRAP, (char **)_sys_traplist, /* SIGTRAP */
0, 0, /* SIGABRT */
0, 0, /* SIGEMT */
NSIGFPE, (char **)_sys_fpelist, /* SIGFPE */
0, 0, /* SIGKILL */
NSIGBUS, (char **)_sys_buslist, /* SIGBUS */
NSIGSEGV, (char **)_sys_segvlist, /* SIGSEGV */
0, 0, /* SIGSYS */
0, 0, /* SIGPIPE */
0, 0, /* SIGALRM */
0, 0, /* SIGTERM */
0, 0, /* SIGUSR1 */
0, 0, /* SIGUSR2 */
NSIGCLD, (char **)_sys_cldlist, /* SIGCLD */
0, 0, /* SIGPWR */
0, 0, /* SIGWINCH */
0, 0, /* SIGURG */
NSIGPOLL, (char **)_sys_polllist, /* SIGPOLL */
0, 0, /* SIGSTOP */
0, 0, /* SIGTSTP */
0, 0, /* SIGCONT */
0, 0, /* SIGTTIN */
0, 0, /* SIGTTOU */
0, 0, /* SIGVTALRM */
0, 0, /* SIGPROF */
0, 0, /* SIGXCPU */
0, 0, /* SIGXFSZ */
0, 0, /* SIGWAITING */
0, 0, /* SIGLWP */
};
static const struct siginfolist _sys_siginfolist_data[NSIG-1] = {
0, 0, /* SIGHUP */
0, 0, /* SIGINT */
0, 0, /* SIGQUIT */
NSIGILL, (char **)_sys_illlist, /* SIGILL */
NSIGTRAP, (char **)_sys_traplist, /* SIGTRAP */
0, 0, /* SIGABRT */
0, 0, /* SIGEMT */
NSIGFPE, (char **)_sys_fpelist, /* SIGFPE */
0, 0, /* SIGKILL */
NSIGBUS, (char **)_sys_buslist, /* SIGBUS */
NSIGSEGV, (char **)_sys_segvlist, /* SIGSEGV */
0, 0, /* SIGSYS */
0, 0, /* SIGPIPE */
0, 0, /* SIGALRM */
0, 0, /* SIGTERM */
0, 0, /* SIGUSR1 */
0, 0, /* SIGUSR2 */
NSIGCLD, (char **)_sys_cldlist, /* SIGCLD */
0, 0, /* SIGPWR */
0, 0, /* SIGWINCH */
0, 0, /* SIGURG */
NSIGPOLL, (char **)_sys_polllist, /* SIGPOLL */
0, 0, /* SIGSTOP */
0, 0, /* SIGTSTP */
0, 0, /* SIGCONT */
0, 0, /* SIGTTIN */
0, 0, /* SIGTTOU */
0, 0, /* SIGVTALRM */
0, 0, /* SIGPROF */
0, 0, /* SIGXCPU */
0, 0, /* SIGXFSZ */
0, 0, /* SIGWAITING */
0, 0, /* SIGLWP */
0, 0, /* SIGFREEZE */
0, 0, /* SIGTHAW */
0, 0, /* SIGCANCEL */
0, 0, /* SIGLOST */
0, 0, /* SIGXRES */
0, 0, /* SIGJVM1 */
0, 0, /* SIGJVM2 */
0, 0, /* SIGRTMIN */
0, 0, /* SIGRTMIN+1 */
0, 0, /* SIGRTMIN+2 */
0, 0, /* SIGRTMIN+3 */
0, 0, /* SIGRTMAX-3 */
0, 0, /* SIGRTMAX-2 */
0, 0, /* SIGRTMAX-1 */
0, 0, /* SIGRTMAX */
};
const struct siginfolist *_sys_siginfolistp = _sys_siginfolist_data;