xref: /titanic_52/usr/src/lib/libc/i386/gen/siginfolst.c (revision 19d32b9ab53d17ac6605971e14c45a5281f8d9bb)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5bdf0047cSRoger A. Faulkner  * Common Development and Distribution License (the "License").
6bdf0047cSRoger A. Faulkner  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
21bdf0047cSRoger A. Faulkner 
227c478bd9Sstevel@tonic-gate /*
23bdf0047cSRoger A. Faulkner  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate  */
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate /*	Copyright (c) 1988 AT&T	*/
287c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
297c478bd9Sstevel@tonic-gate 
30bdf0047cSRoger A. Faulkner #include "lint.h"
317c478bd9Sstevel@tonic-gate #include <signal.h>
327c478bd9Sstevel@tonic-gate #include <siginfo.h>
337c478bd9Sstevel@tonic-gate 
347c478bd9Sstevel@tonic-gate #undef	_sys_siginfolist
357c478bd9Sstevel@tonic-gate #define	OLDNSIG	34
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate const char *_sys_traplist[NSIGTRAP] = {
387c478bd9Sstevel@tonic-gate 	"breakpoint trap",
397c478bd9Sstevel@tonic-gate 	"trace trap",
407c478bd9Sstevel@tonic-gate 	"read access trap",
417c478bd9Sstevel@tonic-gate 	"write access trap",
427c478bd9Sstevel@tonic-gate 	"execute access trap",
437c478bd9Sstevel@tonic-gate 	"dtrace trap"
447c478bd9Sstevel@tonic-gate };
457c478bd9Sstevel@tonic-gate 
467c478bd9Sstevel@tonic-gate const char *_sys_illlist[NSIGILL] = {
47bdf0047cSRoger A. Faulkner 	"illegal instruction",
487c478bd9Sstevel@tonic-gate 	"illegal operand",
497c478bd9Sstevel@tonic-gate 	"illegal addressing mode",
507c478bd9Sstevel@tonic-gate 	"illegal trap",
517c478bd9Sstevel@tonic-gate 	"privileged instruction",
527c478bd9Sstevel@tonic-gate 	"privileged register",
537c478bd9Sstevel@tonic-gate 	"co-processor",
547c478bd9Sstevel@tonic-gate 	"bad stack"
557c478bd9Sstevel@tonic-gate };
567c478bd9Sstevel@tonic-gate 
577c478bd9Sstevel@tonic-gate const char *_sys_fpelist[NSIGFPE] = {
587c478bd9Sstevel@tonic-gate 	"integer divide by zero",
597c478bd9Sstevel@tonic-gate 	"integer overflow",
607c478bd9Sstevel@tonic-gate 	"floating point divide by zero",
617c478bd9Sstevel@tonic-gate 	"floating point overflow",
627c478bd9Sstevel@tonic-gate 	"floating point underflow",
637c478bd9Sstevel@tonic-gate 	"floating point inexact result",
647c478bd9Sstevel@tonic-gate 	"invalid floating point operation",
657c478bd9Sstevel@tonic-gate 	"subscript out of range"
667c478bd9Sstevel@tonic-gate };
677c478bd9Sstevel@tonic-gate 
687c478bd9Sstevel@tonic-gate const char *_sys_segvlist[NSIGSEGV] = {
697c478bd9Sstevel@tonic-gate 	"address not mapped to object",
70bdf0047cSRoger A. Faulkner 	"invalid permissions"
717c478bd9Sstevel@tonic-gate };
727c478bd9Sstevel@tonic-gate 
737c478bd9Sstevel@tonic-gate const char *_sys_buslist[NSIGBUS] = {
747c478bd9Sstevel@tonic-gate 	"invalid address alignment",
757c478bd9Sstevel@tonic-gate 	"non-existent physical address",
767c478bd9Sstevel@tonic-gate 	"object specific"
777c478bd9Sstevel@tonic-gate };
787c478bd9Sstevel@tonic-gate 
797c478bd9Sstevel@tonic-gate const char *_sys_cldlist[NSIGCLD] = {
807c478bd9Sstevel@tonic-gate 	"child has exited",
817c478bd9Sstevel@tonic-gate 	"child was killed",
827c478bd9Sstevel@tonic-gate 	"child has coredumped",
837c478bd9Sstevel@tonic-gate 	"traced child has trapped",
847c478bd9Sstevel@tonic-gate 	"child has stopped",
857c478bd9Sstevel@tonic-gate 	"stopped child has continued"
867c478bd9Sstevel@tonic-gate };
877c478bd9Sstevel@tonic-gate 
887c478bd9Sstevel@tonic-gate const char *_sys_polllist[NSIGPOLL] = {
897c478bd9Sstevel@tonic-gate 	"input available",
907c478bd9Sstevel@tonic-gate 	"output possible",
917c478bd9Sstevel@tonic-gate 	"message available",
927c478bd9Sstevel@tonic-gate 	"I/O error",
937c478bd9Sstevel@tonic-gate 	"high priority input available",
947c478bd9Sstevel@tonic-gate 	"device disconnected"
957c478bd9Sstevel@tonic-gate };
967c478bd9Sstevel@tonic-gate 
977c478bd9Sstevel@tonic-gate struct siginfolist _sys_siginfolist[OLDNSIG-1] = {
987c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGHUP */
997c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGINT */
1007c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGQUIT */
1017c478bd9Sstevel@tonic-gate 	NSIGILL,	(char **)_sys_illlist,	/* SIGILL */
1027c478bd9Sstevel@tonic-gate 	NSIGTRAP,	(char **)_sys_traplist,	/* SIGTRAP */
1037c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGABRT */
1047c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGEMT */
1057c478bd9Sstevel@tonic-gate 	NSIGFPE,	(char **)_sys_fpelist,	/* SIGFPE */
1067c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGKILL */
1077c478bd9Sstevel@tonic-gate 	NSIGBUS,	(char **)_sys_buslist,	/* SIGBUS */
1087c478bd9Sstevel@tonic-gate 	NSIGSEGV,	(char **)_sys_segvlist,	/* SIGSEGV */
1097c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGSYS */
1107c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGPIPE */
1117c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGALRM */
1127c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTERM */
1137c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGUSR1 */
1147c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGUSR2 */
1157c478bd9Sstevel@tonic-gate 	NSIGCLD,	(char **)_sys_cldlist,	/* SIGCLD */
1167c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGPWR */
1177c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGWINCH */
1187c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGURG */
1197c478bd9Sstevel@tonic-gate 	NSIGPOLL,	(char **)_sys_polllist,	/* SIGPOLL */
1207c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGSTOP */
1217c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTSTP */
1227c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGCONT */
1237c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTTIN */
1247c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTTOU */
1257c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGVTALRM */
1267c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGPROF */
1277c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGXCPU */
1287c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGXFSZ */
1297c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGWAITING */
1307c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGLWP */
1317c478bd9Sstevel@tonic-gate };
1327c478bd9Sstevel@tonic-gate 
1337c478bd9Sstevel@tonic-gate static const struct siginfolist _sys_siginfolist_data[NSIG-1] = {
1347c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGHUP */
1357c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGINT */
1367c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGQUIT */
1377c478bd9Sstevel@tonic-gate 	NSIGILL,	(char **)_sys_illlist,	/* SIGILL */
1387c478bd9Sstevel@tonic-gate 	NSIGTRAP,	(char **)_sys_traplist,	/* SIGTRAP */
1397c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGABRT */
1407c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGEMT */
1417c478bd9Sstevel@tonic-gate 	NSIGFPE,	(char **)_sys_fpelist,	/* SIGFPE */
1427c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGKILL */
1437c478bd9Sstevel@tonic-gate 	NSIGBUS,	(char **)_sys_buslist,	/* SIGBUS */
1447c478bd9Sstevel@tonic-gate 	NSIGSEGV,	(char **)_sys_segvlist,	/* SIGSEGV */
1457c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGSYS */
1467c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGPIPE */
1477c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGALRM */
1487c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTERM */
1497c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGUSR1 */
1507c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGUSR2 */
1517c478bd9Sstevel@tonic-gate 	NSIGCLD,	(char **)_sys_cldlist,	/* SIGCLD */
1527c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGPWR */
1537c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGWINCH */
1547c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGURG */
1557c478bd9Sstevel@tonic-gate 	NSIGPOLL,	(char **)_sys_polllist,	/* SIGPOLL */
1567c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGSTOP */
1577c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTSTP */
1587c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGCONT */
1597c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTTIN */
1607c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTTOU */
1617c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGVTALRM */
1627c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGPROF */
1637c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGXCPU */
1647c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGXFSZ */
1657c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGWAITING */
1667c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGLWP */
1677c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGFREEZE */
1687c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGTHAW */
1697c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGCANCEL */
1707c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGLOST */
1717c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGXRES */
1727c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGJVM1 */
1737c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGJVM2 */
174*19d32b9aSRobert Mustacchi 	0,		0,			/* SIGINFO */
1757c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN */
1767c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN+1 */
1777c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN+2 */
1787c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMIN+3 */
179bdf0047cSRoger A. Faulkner 	0,		0,
180bdf0047cSRoger A. Faulkner 	0,		0,
181bdf0047cSRoger A. Faulkner 	0,		0,
182bdf0047cSRoger A. Faulkner 	0,		0,
183bdf0047cSRoger A. Faulkner 	0,		0,
184bdf0047cSRoger A. Faulkner 	0,		0,
185bdf0047cSRoger A. Faulkner 	0,		0,
186bdf0047cSRoger A. Faulkner 	0,		0,
187bdf0047cSRoger A. Faulkner 	0,		0,
188bdf0047cSRoger A. Faulkner 	0,		0,
189bdf0047cSRoger A. Faulkner 	0,		0,
190bdf0047cSRoger A. Faulkner 	0,		0,			/* SIGRTMIN+15 */
191bdf0047cSRoger A. Faulkner 	0,		0,			/* SIGRTMAX-15 */
192bdf0047cSRoger A. Faulkner 	0,		0,
193bdf0047cSRoger A. Faulkner 	0,		0,
194bdf0047cSRoger A. Faulkner 	0,		0,
195bdf0047cSRoger A. Faulkner 	0,		0,
196bdf0047cSRoger A. Faulkner 	0,		0,
197bdf0047cSRoger A. Faulkner 	0,		0,
198bdf0047cSRoger A. Faulkner 	0,		0,
199bdf0047cSRoger A. Faulkner 	0,		0,
200bdf0047cSRoger A. Faulkner 	0,		0,
201bdf0047cSRoger A. Faulkner 	0,		0,
202bdf0047cSRoger A. Faulkner 	0,		0,
2037c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX-3 */
2047c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX-2 */
2057c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX-1 */
2067c478bd9Sstevel@tonic-gate 	0,		0,			/* SIGRTMAX */
2077c478bd9Sstevel@tonic-gate };
2087c478bd9Sstevel@tonic-gate 
2097c478bd9Sstevel@tonic-gate const struct siginfolist *_sys_siginfolistp = _sys_siginfolist_data;
210