xref: /titanic_51/usr/src/lib/libc/sparcv9/gen/siginfolst.c (revision 8b464eb836173b92f2b7a65623cd06c8c3c59289)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 /*	Copyright (c) 1988 AT&T	*/
30 /*	  All Rights Reserved  	*/
31 
32 
33 #include "synonyms.h"
34 #include <signal.h>
35 #include <siginfo.h>
36 
37 #undef	_sys_siginfolist
38 #define	OLDNSIG	34
39 
40 const char *_sys_traplist[NSIGTRAP] = {
41 	"breakpoint trap",
42 	"trace trap",
43 	"read access trap",
44 	"write access trap",
45 	"execute access trap",
46 	"dtrace trap"
47 };
48 
49 const char *_sys_illlist[NSIGILL] = {
50 	"illegal opcode",
51 	"illegal operand",
52 	"illegal addressing mode",
53 	"illegal trap",
54 	"privileged opcode",
55 	"privileged register",
56 	"co-processor",
57 	"bad stack"
58 };
59 
60 const char *_sys_fpelist[NSIGFPE] = {
61 	"integer divide by zero",
62 	"integer overflow",
63 	"floating point divide by zero",
64 	"floating point overflow",
65 	"floating point underflow",
66 	"floating point inexact result",
67 	"invalid floating point operation",
68 	"subscript out of range"
69 };
70 
71 const char *_sys_segvlist[NSIGSEGV] = {
72 	"address not mapped to object",
73 	"invalid permissions"
74 };
75 
76 const char *_sys_buslist[NSIGBUS] = {
77 	"invalid address alignment",
78 	"non-existent physical address",
79 	"object specific"
80 };
81 
82 const char *_sys_cldlist[NSIGCLD] = {
83 	"child has exited",
84 	"child was killed",
85 	"child has coredumped",
86 	"traced child has trapped",
87 	"child has stopped",
88 	"stopped child has continued"
89 };
90 
91 const char *_sys_polllist[NSIGPOLL] = {
92 	"input available",
93 	"output possible",
94 	"message available",
95 	"I/O error",
96 	"high priority input available",
97 	"device disconnected"
98 };
99 
100 struct siginfolist _sys_siginfolist[OLDNSIG-1] = {
101 	0,		0,			/* SIGHUP */
102 	0,		0,			/* SIGINT */
103 	0,		0,			/* SIGQUIT */
104 	NSIGILL,	(char **)_sys_illlist,	/* SIGILL */
105 	NSIGTRAP,	(char **)_sys_traplist,	/* SIGTRAP */
106 	0,		0,			/* SIGABRT */
107 	0,		0,			/* SIGEMT */
108 	NSIGFPE,	(char **)_sys_fpelist,	/* SIGFPE */
109 	0,		0,			/* SIGKILL */
110 	NSIGBUS,	(char **)_sys_buslist,	/* SIGBUS */
111 	NSIGSEGV,	(char **)_sys_segvlist,	/* SIGSEGV */
112 	0,		0,			/* SIGSYS */
113 	0,		0,			/* SIGPIPE */
114 	0,		0,			/* SIGALRM */
115 	0,		0,			/* SIGTERM */
116 	0,		0,			/* SIGUSR1 */
117 	0,		0,			/* SIGUSR2 */
118 	NSIGCLD,	(char **)_sys_cldlist,	/* SIGCLD */
119 	0,		0,			/* SIGPWR */
120 	0,		0,			/* SIGWINCH */
121 	0,		0,			/* SIGURG */
122 	NSIGPOLL,	(char **)_sys_polllist,	/* SIGPOLL */
123 	0,		0,			/* SIGSTOP */
124 	0,		0,			/* SIGTSTP */
125 	0,		0,			/* SIGCONT */
126 	0,		0,			/* SIGTTIN */
127 	0,		0,			/* SIGTTOU */
128 	0,		0,			/* SIGVTALRM */
129 	0,		0,			/* SIGPROF */
130 	0,		0,			/* SIGXCPU */
131 	0,		0,			/* SIGXFSZ */
132 	0,		0,			/* SIGWAITING */
133 	0,		0,			/* SIGLWP */
134 };
135 
136 static const struct siginfolist _sys_siginfolist_data[NSIG-1] = {
137 	0,		0,			/* SIGHUP */
138 	0,		0,			/* SIGINT */
139 	0,		0,			/* SIGQUIT */
140 	NSIGILL,	(char **)_sys_illlist,	/* SIGILL */
141 	NSIGTRAP,	(char **)_sys_traplist,	/* SIGTRAP */
142 	0,		0,			/* SIGABRT */
143 	0,		0,			/* SIGEMT */
144 	NSIGFPE,	(char **)_sys_fpelist,	/* SIGFPE */
145 	0,		0,			/* SIGKILL */
146 	NSIGBUS,	(char **)_sys_buslist,	/* SIGBUS */
147 	NSIGSEGV,	(char **)_sys_segvlist,	/* SIGSEGV */
148 	0,		0,			/* SIGSYS */
149 	0,		0,			/* SIGPIPE */
150 	0,		0,			/* SIGALRM */
151 	0,		0,			/* SIGTERM */
152 	0,		0,			/* SIGUSR1 */
153 	0,		0,			/* SIGUSR2 */
154 	NSIGCLD,	(char **)_sys_cldlist,	/* SIGCLD */
155 	0,		0,			/* SIGPWR */
156 	0,		0,			/* SIGWINCH */
157 	0,		0,			/* SIGURG */
158 	NSIGPOLL,	(char **)_sys_polllist,	/* SIGPOLL */
159 	0,		0,			/* SIGSTOP */
160 	0,		0,			/* SIGTSTP */
161 	0,		0,			/* SIGCONT */
162 	0,		0,			/* SIGTTIN */
163 	0,		0,			/* SIGTTOU */
164 	0,		0,			/* SIGVTALRM */
165 	0,		0,			/* SIGPROF */
166 	0,		0,			/* SIGXCPU */
167 	0,		0,			/* SIGXFSZ */
168 	0,		0,			/* SIGWAITING */
169 	0,		0,			/* SIGLWP */
170 	0,		0,			/* SIGFREEZE */
171 	0,		0,			/* SIGTHAW */
172 	0,		0,			/* SIGCANCEL */
173 	0,		0,			/* SIGLOST */
174 	0,		0,			/* SIGXRES */
175 	0,		0,			/* SIGJVM1 */
176 	0,		0,			/* SIGJVM2 */
177 	0,		0,			/* SIGRTMIN */
178 	0,		0,			/* SIGRTMIN+1 */
179 	0,		0,			/* SIGRTMIN+2 */
180 	0,		0,			/* SIGRTMIN+3 */
181 	0,		0,			/* SIGRTMAX-3 */
182 	0,		0,			/* SIGRTMAX-2 */
183 	0,		0,			/* SIGRTMAX-1 */
184 	0,		0,			/* SIGRTMAX */
185 };
186 
187 const struct siginfolist *_sys_siginfolistp = _sys_siginfolist_data;
188