10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*6812Sraf  * Common Development and Distribution License (the "License").
6*6812Sraf  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
21*6812Sraf 
220Sstevel@tonic-gate /*
23*6812Sraf  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate  * Use is subject to license terms.
250Sstevel@tonic-gate  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate /*	Copyright (c) 1988 AT&T	*/
280Sstevel@tonic-gate /*	  All Rights Reserved  	*/
290Sstevel@tonic-gate 
300Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
310Sstevel@tonic-gate 
32*6812Sraf #include "lint.h"
330Sstevel@tonic-gate #include <signal.h>
340Sstevel@tonic-gate #include <siginfo.h>
350Sstevel@tonic-gate 
360Sstevel@tonic-gate #undef _sys_siginfolist
370Sstevel@tonic-gate #define	OLDNSIG 34
380Sstevel@tonic-gate 
390Sstevel@tonic-gate const char *_sys_traplist[NSIGTRAP] = {
400Sstevel@tonic-gate 	"breakpoint trap",
410Sstevel@tonic-gate 	"trace trap",
420Sstevel@tonic-gate 	"read access trap",
430Sstevel@tonic-gate 	"write access trap",
440Sstevel@tonic-gate 	"execute access trap",
450Sstevel@tonic-gate 	"dtrace trap"
460Sstevel@tonic-gate };
470Sstevel@tonic-gate 
480Sstevel@tonic-gate const char *_sys_illlist[NSIGILL] = {
490Sstevel@tonic-gate 	"illegal opcode",
500Sstevel@tonic-gate 	"illegal operand",
510Sstevel@tonic-gate 	"illegal addressing mode",
520Sstevel@tonic-gate 	"illegal trap",
530Sstevel@tonic-gate 	"privileged instruction",
540Sstevel@tonic-gate 	"privileged register",
550Sstevel@tonic-gate 	"co-processor",
560Sstevel@tonic-gate 	"bad stack"
570Sstevel@tonic-gate };
580Sstevel@tonic-gate 
590Sstevel@tonic-gate const char *_sys_fpelist[NSIGFPE] = {
600Sstevel@tonic-gate 	"integer divide by zero",
610Sstevel@tonic-gate 	"integer overflow",
620Sstevel@tonic-gate 	"floating point divide by zero",
630Sstevel@tonic-gate 	"floating point overflow",
640Sstevel@tonic-gate 	"floating point underflow",
650Sstevel@tonic-gate 	"floating point inexact result",
660Sstevel@tonic-gate 	"invalid floating point operation",
670Sstevel@tonic-gate 	"subscript out of range"
680Sstevel@tonic-gate };
690Sstevel@tonic-gate 
700Sstevel@tonic-gate const char *_sys_segvlist[NSIGSEGV] = {
710Sstevel@tonic-gate 	"address not mapped to object",
720Sstevel@tonic-gate 	"invalid permissions",
730Sstevel@tonic-gate };
740Sstevel@tonic-gate 
750Sstevel@tonic-gate const char *_sys_buslist[NSIGBUS] = {
760Sstevel@tonic-gate 	"invalid address alignment",
770Sstevel@tonic-gate 	"non-existent physical address",
780Sstevel@tonic-gate 	"object specific"
790Sstevel@tonic-gate };
800Sstevel@tonic-gate 
810Sstevel@tonic-gate const char *_sys_cldlist[NSIGCLD] = {
820Sstevel@tonic-gate 	"child has exited",
830Sstevel@tonic-gate 	"child was killed",
840Sstevel@tonic-gate 	"child has coredumped",
850Sstevel@tonic-gate 	"traced child has trapped",
860Sstevel@tonic-gate 	"child has stopped",
870Sstevel@tonic-gate 	"stopped child has continued"
880Sstevel@tonic-gate };
890Sstevel@tonic-gate 
900Sstevel@tonic-gate const char *_sys_polllist[NSIGPOLL] = {
910Sstevel@tonic-gate 	"input available",
920Sstevel@tonic-gate 	"output possible",
930Sstevel@tonic-gate 	"message available",
940Sstevel@tonic-gate 	"I/O error",
950Sstevel@tonic-gate 	"high priority input available",
960Sstevel@tonic-gate 	"device disconnected"
970Sstevel@tonic-gate };
980Sstevel@tonic-gate 
990Sstevel@tonic-gate struct siginfolist _sys_siginfolist[OLDNSIG-1] = {
1000Sstevel@tonic-gate 	0,		0,			/* SIGHUP */
1010Sstevel@tonic-gate 	0,		0,			/* SIGINT */
1020Sstevel@tonic-gate 	0,		0,			/* SIGQUIT */
1030Sstevel@tonic-gate 	NSIGILL,	(char **)_sys_illlist,	/* SIGILL */
1040Sstevel@tonic-gate 	NSIGTRAP,	(char **)_sys_traplist,	/* SIGTRAP */
1050Sstevel@tonic-gate 	0,		0,			/* SIGABRT */
1060Sstevel@tonic-gate 	0,		0,			/* SIGEMT */
1070Sstevel@tonic-gate 	NSIGFPE,	(char **)_sys_fpelist,	/* SIGFPE */
1080Sstevel@tonic-gate 	0,		0,			/* SIGKILL */
1090Sstevel@tonic-gate 	NSIGBUS,	(char **)_sys_buslist,	/* SIGBUS */
1100Sstevel@tonic-gate 	NSIGSEGV,	(char **)_sys_segvlist,	/* SIGSEGV */
1110Sstevel@tonic-gate 	0,		0,			/* SIGSYS */
1120Sstevel@tonic-gate 	0,		0,			/* SIGPIPE */
1130Sstevel@tonic-gate 	0,		0,			/* SIGALRM */
1140Sstevel@tonic-gate 	0,		0,			/* SIGTERM */
1150Sstevel@tonic-gate 	0,		0,			/* SIGUSR1 */
1160Sstevel@tonic-gate 	0,		0,			/* SIGUSR2 */
1170Sstevel@tonic-gate 	NSIGCLD,	(char **)_sys_cldlist,	/* SIGCLD */
1180Sstevel@tonic-gate 	0,		0,			/* SIGPWR */
1190Sstevel@tonic-gate 	0,		0,			/* SIGWINCH */
1200Sstevel@tonic-gate 	0,		0,			/* SIGURG */
1210Sstevel@tonic-gate 	NSIGPOLL,	(char **)_sys_polllist,	/* SIGPOLL */
1220Sstevel@tonic-gate 	0,		0,			/* SIGSTOP */
1230Sstevel@tonic-gate 	0,		0,			/* SIGTSTP */
1240Sstevel@tonic-gate 	0,		0,			/* SIGCONT */
1250Sstevel@tonic-gate 	0,		0,			/* SIGTTIN */
1260Sstevel@tonic-gate 	0,		0,			/* SIGTTOU */
1270Sstevel@tonic-gate 	0,		0,			/* SIGVTALRM */
1280Sstevel@tonic-gate 	0,		0,			/* SIGPROF */
1290Sstevel@tonic-gate 	0,		0,			/* SIGXCPU */
1300Sstevel@tonic-gate 	0,		0,			/* SIGXFSZ */
1310Sstevel@tonic-gate 	0,		0,			/* SIGWAITING */
1320Sstevel@tonic-gate 	0,		0,			/* SIGLWP */
1330Sstevel@tonic-gate };
1340Sstevel@tonic-gate 
1350Sstevel@tonic-gate static const struct siginfolist _sys_siginfolist_data[NSIG-1] = {
1360Sstevel@tonic-gate 	0,		0,			/* SIGHUP */
1370Sstevel@tonic-gate 	0,		0,			/* SIGINT */
1380Sstevel@tonic-gate 	0,		0,			/* SIGQUIT */
1390Sstevel@tonic-gate 	NSIGILL,	(char **)_sys_illlist,	/* SIGILL */
1400Sstevel@tonic-gate 	NSIGTRAP,	(char **)_sys_traplist,	/* SIGTRAP */
1410Sstevel@tonic-gate 	0,		0,			/* SIGABRT */
1420Sstevel@tonic-gate 	0,		0,			/* SIGEMT */
1430Sstevel@tonic-gate 	NSIGFPE,	(char **)_sys_fpelist,	/* SIGFPE */
1440Sstevel@tonic-gate 	0,		0,			/* SIGKILL */
1450Sstevel@tonic-gate 	NSIGBUS,	(char **)_sys_buslist,	/* SIGBUS */
1460Sstevel@tonic-gate 	NSIGSEGV,	(char **)_sys_segvlist,	/* SIGSEGV */
1470Sstevel@tonic-gate 	0,		0,			/* SIGSYS */
1480Sstevel@tonic-gate 	0,		0,			/* SIGPIPE */
1490Sstevel@tonic-gate 	0,		0,			/* SIGALRM */
1500Sstevel@tonic-gate 	0,		0,			/* SIGTERM */
1510Sstevel@tonic-gate 	0,		0,			/* SIGUSR1 */
1520Sstevel@tonic-gate 	0,		0,			/* SIGUSR2 */
1530Sstevel@tonic-gate 	NSIGCLD,	(char **)_sys_cldlist,	/* SIGCLD */
1540Sstevel@tonic-gate 	0,		0,			/* SIGPWR */
1550Sstevel@tonic-gate 	0,		0,			/* SIGWINCH */
1560Sstevel@tonic-gate 	0,		0,			/* SIGURG */
1570Sstevel@tonic-gate 	NSIGPOLL,	(char **)_sys_polllist,	/* SIGPOLL */
1580Sstevel@tonic-gate 	0,		0,			/* SIGSTOP */
1590Sstevel@tonic-gate 	0,		0,			/* SIGTSTP */
1600Sstevel@tonic-gate 	0,		0,			/* SIGCONT */
1610Sstevel@tonic-gate 	0,		0,			/* SIGTTIN */
1620Sstevel@tonic-gate 	0,		0,			/* SIGTTOU */
1630Sstevel@tonic-gate 	0,		0,			/* SIGVTALRM */
1640Sstevel@tonic-gate 	0,		0,			/* SIGPROF */
1650Sstevel@tonic-gate 	0,		0,			/* SIGXCPU */
1660Sstevel@tonic-gate 	0,		0,			/* SIGXFSZ */
1670Sstevel@tonic-gate 	0,		0,			/* SIGWAITING */
1680Sstevel@tonic-gate 	0,		0,			/* SIGLWP */
1690Sstevel@tonic-gate 	0,		0,			/* SIGFREEZE */
1700Sstevel@tonic-gate 	0,		0,			/* SIGTHAW */
1710Sstevel@tonic-gate 	0,		0,			/* SIGCANCEL */
1720Sstevel@tonic-gate 	0,		0,			/* SIGLOST */
1730Sstevel@tonic-gate 	0,		0,			/* SIGXRES */
1740Sstevel@tonic-gate 	0,		0,			/* SIGJVM1 */
1750Sstevel@tonic-gate 	0,		0,			/* SIGJVM2 */
1760Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN */
1770Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN+1 */
1780Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN+2 */
1790Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN+3 */
1800Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX-3 */
1810Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX-2 */
1820Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX-1 */
1830Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX */
1840Sstevel@tonic-gate };
1850Sstevel@tonic-gate 
1860Sstevel@tonic-gate const struct siginfolist *_sys_siginfolistp = _sys_siginfolist_data;
187