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