1*2fe8fb19SBen Gras /* $NetBSD: siglist.c,v 1.17 2007/01/17 23:24:22 hubertf Exp $ */ 2*2fe8fb19SBen Gras 3*2fe8fb19SBen Gras /* 4*2fe8fb19SBen Gras * Copyright (c) 1983, 1993 5*2fe8fb19SBen Gras * The Regents of the University of California. All rights reserved. 6*2fe8fb19SBen Gras * 7*2fe8fb19SBen Gras * Redistribution and use in source and binary forms, with or without 8*2fe8fb19SBen Gras * modification, are permitted provided that the following conditions 9*2fe8fb19SBen Gras * are met: 10*2fe8fb19SBen Gras * 1. Redistributions of source code must retain the above copyright 11*2fe8fb19SBen Gras * notice, this list of conditions and the following disclaimer. 12*2fe8fb19SBen Gras * 2. Redistributions in binary form must reproduce the above copyright 13*2fe8fb19SBen Gras * notice, this list of conditions and the following disclaimer in the 14*2fe8fb19SBen Gras * documentation and/or other materials provided with the distribution. 15*2fe8fb19SBen Gras * 3. Neither the name of the University nor the names of its contributors 16*2fe8fb19SBen Gras * may be used to endorse or promote products derived from this software 17*2fe8fb19SBen Gras * without specific prior written permission. 18*2fe8fb19SBen Gras * 19*2fe8fb19SBen Gras * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20*2fe8fb19SBen Gras * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*2fe8fb19SBen Gras * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*2fe8fb19SBen Gras * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23*2fe8fb19SBen Gras * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24*2fe8fb19SBen Gras * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25*2fe8fb19SBen Gras * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26*2fe8fb19SBen Gras * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27*2fe8fb19SBen Gras * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28*2fe8fb19SBen Gras * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29*2fe8fb19SBen Gras * SUCH DAMAGE. 30*2fe8fb19SBen Gras */ 31*2fe8fb19SBen Gras 32*2fe8fb19SBen Gras #include <sys/cdefs.h> 33*2fe8fb19SBen Gras #if defined(LIBC_SCCS) && !defined(lint) 34*2fe8fb19SBen Gras #if 0 35*2fe8fb19SBen Gras static char sccsid[] = "@(#)siglist.c 8.1 (Berkeley) 6/4/93"; 36*2fe8fb19SBen Gras #else 37*2fe8fb19SBen Gras __RCSID("$NetBSD: siglist.c,v 1.17 2007/01/17 23:24:22 hubertf Exp $"); 38*2fe8fb19SBen Gras #endif 39*2fe8fb19SBen Gras #endif /* LIBC_SCCS and not lint */ 40*2fe8fb19SBen Gras 41*2fe8fb19SBen Gras #include <signal.h> 42*2fe8fb19SBen Gras 43*2fe8fb19SBen Gras static const char *const __siglist14[] = { 44*2fe8fb19SBen Gras "Signal 0", /* 0 */ 45*2fe8fb19SBen Gras "Hangup", /* 1 SIGHUP */ 46*2fe8fb19SBen Gras "Interrupt", /* 2 SIGINT */ 47*2fe8fb19SBen Gras "Quit", /* 3 SIGQUIT */ 48*2fe8fb19SBen Gras "Illegal instruction", /* 4 SIGILL */ 49*2fe8fb19SBen Gras "Trace/BPT trap", /* 5 SIGTRAP */ 50*2fe8fb19SBen Gras "Abort trap", /* 6 SIGABRT */ 51*2fe8fb19SBen Gras "EMT trap", /* 7 SIGEMT */ 52*2fe8fb19SBen Gras "Floating point exception", /* 8 SIGFPE */ 53*2fe8fb19SBen Gras "Killed", /* 9 SIGKILL */ 54*2fe8fb19SBen Gras "Bus error", /* 10 SIGBUS */ 55*2fe8fb19SBen Gras "Segmentation fault", /* 11 SIGSEGV */ 56*2fe8fb19SBen Gras "Bad system call", /* 12 SIGSYS */ 57*2fe8fb19SBen Gras "Broken pipe", /* 13 SIGPIPE */ 58*2fe8fb19SBen Gras "Alarm clock", /* 14 SIGALRM */ 59*2fe8fb19SBen Gras "Terminated", /* 15 SIGTERM */ 60*2fe8fb19SBen Gras "Urgent I/O condition", /* 16 SIGURG */ 61*2fe8fb19SBen Gras "Suspended (signal)", /* 17 SIGSTOP */ 62*2fe8fb19SBen Gras "Suspended", /* 18 SIGTSTP */ 63*2fe8fb19SBen Gras "Continued", /* 19 SIGCONT */ 64*2fe8fb19SBen Gras "Child exited", /* 20 SIGCHLD */ 65*2fe8fb19SBen Gras "Stopped (tty input)", /* 21 SIGTTIN */ 66*2fe8fb19SBen Gras "Stopped (tty output)", /* 22 SIGTTOU */ 67*2fe8fb19SBen Gras "I/O possible", /* 23 SIGIO */ 68*2fe8fb19SBen Gras "Cputime limit exceeded", /* 24 SIGXCPU */ 69*2fe8fb19SBen Gras "Filesize limit exceeded", /* 25 SIGXFSZ */ 70*2fe8fb19SBen Gras "Virtual timer expired", /* 26 SIGVTALRM */ 71*2fe8fb19SBen Gras "Profiling timer expired", /* 27 SIGPROF */ 72*2fe8fb19SBen Gras "Window size changes", /* 28 SIGWINCH */ 73*2fe8fb19SBen Gras "Information request", /* 29 SIGINFO */ 74*2fe8fb19SBen Gras "User defined signal 1", /* 30 SIGUSR1 */ 75*2fe8fb19SBen Gras "User defined signal 2", /* 31 SIGUSR2 */ 76*2fe8fb19SBen Gras "Power fail/restart", /* 32 SIGPWR */ 77*2fe8fb19SBen Gras "Real time signal 0", /* 33 SIGRTMIN + 0 */ 78*2fe8fb19SBen Gras "Real time signal 1", /* 34 SIGRTMIN + 1 */ 79*2fe8fb19SBen Gras "Real time signal 2", /* 35 SIGRTMIN + 2 */ 80*2fe8fb19SBen Gras "Real time signal 3", /* 36 SIGRTMIN + 3 */ 81*2fe8fb19SBen Gras "Real time signal 4", /* 37 SIGRTMIN + 4 */ 82*2fe8fb19SBen Gras "Real time signal 5", /* 38 SIGRTMIN + 5 */ 83*2fe8fb19SBen Gras "Real time signal 6", /* 39 SIGRTMIN + 6 */ 84*2fe8fb19SBen Gras "Real time signal 7", /* 40 SIGRTMIN + 7 */ 85*2fe8fb19SBen Gras "Real time signal 8", /* 41 SIGRTMIN + 8 */ 86*2fe8fb19SBen Gras "Real time signal 9", /* 42 SIGRTMIN + 9 */ 87*2fe8fb19SBen Gras "Real time signal 10", /* 43 SIGRTMIN + 10 */ 88*2fe8fb19SBen Gras "Real time signal 11", /* 44 SIGRTMIN + 11 */ 89*2fe8fb19SBen Gras "Real time signal 12", /* 45 SIGRTMIN + 12 */ 90*2fe8fb19SBen Gras "Real time signal 13", /* 46 SIGRTMIN + 13 */ 91*2fe8fb19SBen Gras "Real time signal 14", /* 47 SIGRTMIN + 14 */ 92*2fe8fb19SBen Gras "Real time signal 15", /* 48 SIGRTMIN + 15 */ 93*2fe8fb19SBen Gras "Real time signal 16", /* 49 SIGRTMIN + 16 */ 94*2fe8fb19SBen Gras "Real time signal 17", /* 50 SIGRTMIN + 17 */ 95*2fe8fb19SBen Gras "Real time signal 18", /* 51 SIGRTMIN + 18 */ 96*2fe8fb19SBen Gras "Real time signal 19", /* 52 SIGRTMIN + 19 */ 97*2fe8fb19SBen Gras "Real time signal 20", /* 53 SIGRTMIN + 20 */ 98*2fe8fb19SBen Gras "Real time signal 21", /* 54 SIGRTMIN + 21 */ 99*2fe8fb19SBen Gras "Real time signal 22", /* 55 SIGRTMIN + 22 */ 100*2fe8fb19SBen Gras "Real time signal 23", /* 56 SIGRTMIN + 23 */ 101*2fe8fb19SBen Gras "Real time signal 24", /* 57 SIGRTMIN + 24 */ 102*2fe8fb19SBen Gras "Real time signal 25", /* 58 SIGRTMIN + 25 */ 103*2fe8fb19SBen Gras "Real time signal 26", /* 59 SIGRTMIN + 26 */ 104*2fe8fb19SBen Gras "Real time signal 27", /* 60 SIGRTMIN + 27 */ 105*2fe8fb19SBen Gras "Real time signal 28", /* 61 SIGRTMIN + 28 */ 106*2fe8fb19SBen Gras "Real time signal 29", /* 62 SIGRTMIN + 29 */ 107*2fe8fb19SBen Gras "Real time signal 30", /* 63 SIGRTMIN + 30 */ 108*2fe8fb19SBen Gras }; 109*2fe8fb19SBen Gras 110*2fe8fb19SBen Gras const int __sys_nsig14 = sizeof(__siglist14) / sizeof(__siglist14[0]); 111*2fe8fb19SBen Gras 112*2fe8fb19SBen Gras const char * const *__sys_siglist14 = __siglist14; 113