1 /* $NetBSD: signame.c,v 1.13 2005/09/13 01:44:09 christos Exp $ */ 2 3 /* 4 * Copyright (c) 1983 Regents of the University of California. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. Neither the name of the University nor the names of its contributors 16 * may be used to endorse or promote products derived from this software 17 * without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32 #include <sys/cdefs.h> 33 #if defined(LIBC_SCCS) && !defined(lint) 34 #if 0 35 static char sccsid[] = "from: @(#)siglist.c 5.6 (Berkeley) 2/23/91";*/ 36 #else 37 __RCSID("$NetBSD: signame.c,v 1.13 2005/09/13 01:44:09 christos Exp $"); 38 #endif 39 #endif /* LIBC_SCCS and not lint */ 40 41 #include <signal.h> 42 #include <unistd.h> 43 44 static const char *const __signame14[] = { 45 "Signal 0", /* 0 */ 46 "HUP", /* 1 SIGHUP */ 47 "INT", /* 2 SIGINT */ 48 "QUIT", /* 3 SIGQUIT */ 49 "ILL", /* 4 SIGILL */ 50 "TRAP", /* 5 SIGTRAP */ 51 "ABRT", /* 6 SIGABRT */ 52 "EMT", /* 7 SIGEMT */ 53 "FPE", /* 8 SIGFPE */ 54 "KILL", /* 9 SIGKILL */ 55 "BUS", /* 10 SIGBUS */ 56 "SEGV", /* 11 SIGSEGV */ 57 "SYS", /* 12 SIGSYS */ 58 "PIPE", /* 13 SIGPIPE */ 59 "ALRM", /* 14 SIGALRM */ 60 "TERM", /* 15 SIGTERM */ 61 "URG", /* 16 SIGURG */ 62 "STOP", /* 17 SIGSTOP */ 63 "TSTP", /* 18 SIGTSTP */ 64 "CONT", /* 19 SIGCONT */ 65 "CHLD", /* 20 SIGCHLD */ 66 "TTIN", /* 21 SIGTTIN */ 67 "TTOU", /* 22 SIGTTOU */ 68 "IO", /* 23 SIGIO */ 69 "XCPU", /* 24 SIGXCPU */ 70 "XFSZ", /* 25 SIGXFSZ */ 71 "VTALRM", /* 26 SIGVTALRM */ 72 "PROF", /* 27 SIGPROF */ 73 "WINCH", /* 28 SIGWINCH */ 74 "INFO", /* 29 SIGINFO */ 75 "USR1", /* 30 SIGUSR1 */ 76 "USR2", /* 31 SIGUSR2 */ 77 "PWR", /* 32 SIGPWR */ 78 "RT0", /* 33 SIGRTMIN + 0 */ 79 "RT1", /* 34 SIGRTMIN + 1 */ 80 "RT2", /* 35 SIGRTMIN + 2 */ 81 "RT3", /* 36 SIGRTMIN + 3 */ 82 "RT4", /* 37 SIGRTMIN + 4 */ 83 "RT5", /* 38 SIGRTMIN + 5 */ 84 "RT6", /* 39 SIGRTMIN + 6 */ 85 "RT7", /* 40 SIGRTMIN + 7 */ 86 "RT8", /* 41 SIGRTMIN + 8 */ 87 "RT9", /* 42 SIGRTMIN + 9 */ 88 "RT10", /* 43 SIGRTMIN + 10 */ 89 "RT11", /* 44 SIGRTMIN + 11 */ 90 "RT12", /* 45 SIGRTMIN + 12 */ 91 "RT13", /* 46 SIGRTMIN + 13 */ 92 "RT14", /* 47 SIGRTMIN + 14 */ 93 "RT15", /* 48 SIGRTMIN + 15 */ 94 "RT16", /* 49 SIGRTMIN + 16 */ 95 "RT17", /* 50 SIGRTMIN + 17 */ 96 "RT18", /* 51 SIGRTMIN + 18 */ 97 "RT19", /* 52 SIGRTMIN + 19 */ 98 "RT20", /* 53 SIGRTMIN + 20 */ 99 "RT21", /* 54 SIGRTMIN + 21 */ 100 "RT22", /* 55 SIGRTMIN + 22 */ 101 "RT23", /* 56 SIGRTMIN + 23 */ 102 "RT24", /* 57 SIGRTMIN + 24 */ 103 "RT25", /* 58 SIGRTMIN + 25 */ 104 "RT26", /* 59 SIGRTMIN + 26 */ 105 "RT27", /* 60 SIGRTMIN + 27 */ 106 "RT28", /* 61 SIGRTMIN + 28 */ 107 "RT29", /* 62 SIGRTMIN + 29 */ 108 "RT30", /* 63 SIGRTMIN + 30 */ 109 }; 110 111 const char * const *__sys_signame14 = __signame14; 112