1/*	$NetBSD: siglist.c,v 1.16 2005/09/13 01:44:09 christos Exp $	*/
2
3/*
4 * Copyright (c) 1983, 1993
5 *	The Regents of the University of California.  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
35static char sccsid[] = "@(#)siglist.c	8.1 (Berkeley) 6/4/93";
36#else
37__RCSID("$NetBSD: siglist.c,v 1.16 2005/09/13 01:44:09 christos Exp $");
38#endif
39#endif /* LIBC_SCCS and not lint */
40
41#include <signal.h>
42
43static const char *const __siglist14[] = {
44	"Signal 0",			/* 0 */
45	"Hangup",			/* 1 SIGHUP */
46	"Interrupt",			/* 2 SIGINT */
47	"Quit",				/* 3 SIGQUIT */
48	"Illegal instruction",		/* 4 SIGILL */
49	"Trace/BPT trap",		/* 5 SIGTRAP */
50	"Abort trap",			/* 6 SIGABRT */
51	"EMT trap",			/* 7 SIGEMT */
52	"Floating point exception",	/* 8 SIGFPE */
53	"Killed",			/* 9 SIGKILL */
54	"Bus error",			/* 10 SIGBUS */
55	"Segmentation fault",		/* 11 SIGSEGV */
56	"Bad system call",		/* 12 SIGSYS */
57	"Broken pipe",			/* 13 SIGPIPE */
58	"Alarm clock",			/* 14 SIGALRM */
59	"Terminated",			/* 15 SIGTERM */
60	"Urgent I/O condition",		/* 16 SIGURG */
61	"Suspended (signal)",		/* 17 SIGSTOP */
62	"Suspended",			/* 18 SIGTSTP */
63	"Continued",			/* 19 SIGCONT */
64	"Child exited",			/* 20 SIGCHLD */
65	"Stopped (tty input)",		/* 21 SIGTTIN */
66	"Stopped (tty output)",		/* 22 SIGTTOU */
67	"I/O possible",			/* 23 SIGIO */
68	"Cputime limit exceeded",	/* 24 SIGXCPU */
69	"Filesize limit exceeded",	/* 25 SIGXFSZ */
70	"Virtual timer expired",	/* 26 SIGVTALRM */
71	"Profiling timer expired",	/* 27 SIGPROF */
72	"Window size changes",		/* 28 SIGWINCH */
73	"Information request",		/* 29 SIGINFO */
74	"User defined signal 1",	/* 30 SIGUSR1 */
75	"User defined signal 2",	/* 31 SIGUSR2 */
76	"Power fail/restart",		/* 32 SIGPWR */
77	"Real time signal 0",		/* 33 SIGRTMIN + 0 */
78	"Real time signal 1",		/* 34 SIGRTMIN + 1 */
79	"Real time signal 2",		/* 35 SIGRTMIN + 2 */
80	"Real time signal 3",		/* 36 SIGRTMIN + 3 */
81	"Real time signal 4",		/* 37 SIGRTMIN + 4 */
82	"Real time signal 5",		/* 38 SIGRTMIN + 5 */
83	"Real time signal 6",		/* 39 SIGRTMIN + 6 */
84	"Real time signal 7",		/* 40 SIGRTMIN + 7 */
85	"Real time signal 8",		/* 41 SIGRTMIN + 8 */
86	"Real time signal 9",		/* 42 SIGRTMIN + 9 */
87	"Real time signal 10",		/* 43 SIGRTMIN + 10 */
88	"Real time signal 11",		/* 44 SIGRTMIN + 11 */
89	"Real time signal 12",		/* 45 SIGRTMIN + 12 */
90	"Real time signal 13",		/* 46 SIGRTMIN + 13 */
91	"Real time signal 14",		/* 47 SIGRTMIN + 14 */
92	"Real time signal 15",		/* 48 SIGRTMIN + 15 */
93	"Real time signal 16",		/* 49 SIGRTMIN + 16 */
94	"Real time signal 17",		/* 50 SIGRTMIN + 17 */
95	"Real time signal 18",		/* 51 SIGRTMIN + 18 */
96	"Real time signal 19",		/* 52 SIGRTMIN + 19 */
97	"Real time signal 20",		/* 53 SIGRTMIN + 20 */
98	"Real time signal 21",		/* 54 SIGRTMIN + 21 */
99	"Real time signal 22",		/* 55 SIGRTMIN + 22 */
100	"Real time signal 23",		/* 56 SIGRTMIN + 23 */
101	"Real time signal 24",		/* 57 SIGRTMIN + 24 */
102	"Real time signal 25",		/* 58 SIGRTMIN + 25 */
103	"Real time signal 26",		/* 59 SIGRTMIN + 26 */
104	"Real time signal 27",		/* 60 SIGRTMIN + 27 */
105	"Real time signal 28",		/* 61 SIGRTMIN + 28 */
106	"Real time signal 29",		/* 62 SIGRTMIN + 29 */
107	"Real time signal 30",		/* 63 SIGRTMIN + 30 */
108};
109
110const int __sys_nsig14 = sizeof(__siglist14) / sizeof(__siglist14[0]);
111
112const char * const *__sys_siglist14 = __siglist14;
113