1180059Sjhb/*
2180059Sjhb * Copyright (c) 1983, 1993
3180059Sjhb *	The Regents of the University of California.  All rights reserved.
4180059Sjhb *
5180059Sjhb * Redistribution and use in source and binary forms, with or without
6180059Sjhb * modification, are permitted provided that the following conditions
7180059Sjhb * are met:
8180059Sjhb * 1. Redistributions of source code must retain the above copyright
9180059Sjhb *    notice, this list of conditions and the following disclaimer.
10180059Sjhb * 2. Redistributions in binary form must reproduce the above copyright
11180059Sjhb *    notice, this list of conditions and the following disclaimer in the
12180059Sjhb *    documentation and/or other materials provided with the distribution.
13180059Sjhb * 4. Neither the name of the University nor the names of its contributors
14180059Sjhb *    may be used to endorse or promote products derived from this software
15180059Sjhb *    without specific prior written permission.
16180059Sjhb *
17180059Sjhb * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18180059Sjhb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19180059Sjhb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20180059Sjhb * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21180059Sjhb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22180059Sjhb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23180059Sjhb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24180059Sjhb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25180059Sjhb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26180059Sjhb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27180059Sjhb * SUCH DAMAGE.
28180059Sjhb */
29180059Sjhb
30180059Sjhb#if defined(LIBC_SCCS) && !defined(lint)
31180059Sjhbstatic char sccsid[] = "@(#)siglist.c	8.1 (Berkeley) 6/4/93";
32180059Sjhb#endif /* LIBC_SCCS and not lint */
33180059Sjhb#include <sys/cdefs.h>
34180059Sjhb__FBSDID("$FreeBSD$");
35180059Sjhb
36180059Sjhb#include <signal.h>
37180059Sjhb
38180059Sjhbconst char *const sys_signame[NSIG] = {
39180059Sjhb	"Signal 0",
40180059Sjhb	"HUP",				/* SIGHUP */
41180059Sjhb	"INT",				/* SIGINT */
42180059Sjhb	"QUIT",				/* SIGQUIT */
43180059Sjhb	"ILL",				/* SIGILL */
44180059Sjhb	"TRAP",				/* SIGTRAP */
45180059Sjhb	"ABRT",				/* SIGABRT */
46180059Sjhb	"EMT",				/* SIGEMT */
47180059Sjhb	"FPE",				/* SIGFPE */
48180059Sjhb	"KILL",				/* SIGKILL */
49180059Sjhb	"BUS",				/* SIGBUS */
50180059Sjhb	"SEGV",				/* SIGSEGV */
51180059Sjhb	"SYS",				/* SIGSYS */
52180059Sjhb	"PIPE",				/* SIGPIPE */
53180059Sjhb	"ALRM",				/* SIGALRM */
54180059Sjhb	"TERM",				/* SIGTERM */
55180059Sjhb	"URG",				/* SIGURG */
56180059Sjhb	"STOP",				/* SIGSTOP */
57180059Sjhb	"TSTP",				/* SIGTSTP */
58180059Sjhb	"CONT",				/* SIGCONT */
59180059Sjhb	"CHLD",				/* SIGCHLD */
60	"TTIN",				/* SIGTTIN */
61	"TTOU",				/* SIGTTOU */
62	"IO",				/* SIGIO */
63	"XCPU",				/* SIGXCPU */
64	"XFSZ",				/* SIGXFSZ */
65	"VTALRM",			/* SIGVTALRM */
66	"PROF",				/* SIGPROF */
67	"WINCH",			/* SIGWINCH */
68	"INFO",				/* SIGINFO */
69	"USR1",				/* SIGUSR1 */
70	"USR2"				/* SIGUSR2 */
71};
72
73const char *const sys_siglist[NSIG] = {
74	"Signal 0",
75	"Hangup",			/* SIGHUP */
76	"Interrupt",			/* SIGINT */
77	"Quit",				/* SIGQUIT */
78	"Illegal instruction",		/* SIGILL */
79	"Trace/BPT trap",		/* SIGTRAP */
80	"Abort trap",			/* SIGABRT */
81	"EMT trap",			/* SIGEMT */
82	"Floating point exception",	/* SIGFPE */
83	"Killed",			/* SIGKILL */
84	"Bus error",			/* SIGBUS */
85	"Segmentation fault",		/* SIGSEGV */
86	"Bad system call",		/* SIGSYS */
87	"Broken pipe",			/* SIGPIPE */
88	"Alarm clock",			/* SIGALRM */
89	"Terminated",			/* SIGTERM */
90	"Urgent I/O condition",		/* SIGURG */
91	"Suspended (signal)",		/* SIGSTOP */
92	"Suspended",			/* SIGTSTP */
93	"Continued",			/* SIGCONT */
94	"Child exited",			/* SIGCHLD */
95	"Stopped (tty input)",		/* SIGTTIN */
96	"Stopped (tty output)",		/* SIGTTOU */
97	"I/O possible",			/* SIGIO */
98	"Cputime limit exceeded",	/* SIGXCPU */
99	"Filesize limit exceeded",	/* SIGXFSZ */
100	"Virtual timer expired",	/* SIGVTALRM */
101	"Profiling timer expired",	/* SIGPROF */
102	"Window size changes",		/* SIGWINCH */
103	"Information request",		/* SIGINFO */
104	"User defined signal 1",	/* SIGUSR1 */
105	"User defined signal 2"		/* SIGUSR2 */
106};
107const int sys_nsig = sizeof(sys_siglist) / sizeof(sys_siglist[0]);
108