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