xref: /csrg-svn/lib/libc/gen/siglist.c (revision 35286)
121359Sdist /*
2*35286Sbostic  * Copyright (c) 1983 Regents of the University of California.
3*35286Sbostic  * All rights reserved.
4*35286Sbostic  *
5*35286Sbostic  * Redistribution and use in source and binary forms are permitted
6*35286Sbostic  * provided that the above copyright notice and this paragraph are
7*35286Sbostic  * duplicated in all such forms and that any documentation,
8*35286Sbostic  * advertising materials, and other materials related to such
9*35286Sbostic  * distribution and use acknowledge that the software was developed
10*35286Sbostic  * by the University of California, Berkeley.  The name of the
11*35286Sbostic  * University may not be used to endorse or promote products derived
12*35286Sbostic  * from this software without specific prior written permission.
13*35286Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14*35286Sbostic  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15*35286Sbostic  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1621359Sdist  */
1710902Ssam 
1826591Sdonn #if defined(LIBC_SCCS) && !defined(lint)
19*35286Sbostic static char sccsid[] = "@(#)siglist.c	5.3 (Berkeley) 07/26/88";
20*35286Sbostic #endif /* LIBC_SCCS and not lint */
2121359Sdist 
2210903Ssam #include <signal.h>
2310903Ssam 
2410902Ssam char	*sys_siglist[NSIG] = {
2510902Ssam 	"Signal 0",
2610902Ssam 	"Hangup",			/* SIGHUP */
2710902Ssam 	"Interrupt",			/* SIGINT */
2810902Ssam 	"Quit",				/* SIGQUIT */
2910902Ssam 	"Illegal instruction",		/* SIGILL */
3010902Ssam 	"Trace/BPT trap",		/* SIGTRAP */
3110902Ssam 	"IOT trap",			/* SIGIOT */
3210902Ssam 	"EMT trap",			/* SIGEMT */
3310902Ssam 	"Floating point exception",	/* SIGFPE */
3410902Ssam 	"Killed",			/* SIGKILL */
3510902Ssam 	"Bus error",			/* SIGBUS */
3610902Ssam 	"Segmentation fault",		/* SIGSEGV */
3710902Ssam 	"Bad system call",		/* SIGSYS */
3810902Ssam 	"Broken pipe",			/* SIGPIPE */
3910902Ssam 	"Alarm clock",			/* SIGALRM */
4010902Ssam 	"Terminated",			/* SIGTERM */
4110902Ssam 	"Urgent I/O condition",		/* SIGURG */
4210902Ssam 	"Stopped (signal)",		/* SIGSTOP */
4310902Ssam 	"Stopped",			/* SIGTSTP */
4410902Ssam 	"Continued",			/* SIGCONT */
4510902Ssam 	"Child exited",			/* SIGCHLD */
4610902Ssam 	"Stopped (tty input)",		/* SIGTTIN */
4710902Ssam 	"Stopped (tty output)",		/* SIGTTOU */
4810902Ssam 	"I/O possible",			/* SIGIO */
4910902Ssam 	"Cputime limit exceeded",	/* SIGXCPU */
5010902Ssam 	"Filesize limit exceeded",	/* SIGXFSZ */
5110902Ssam 	"Virtual timer expired",	/* SIGVTALRM */
5210902Ssam 	"Profiling timer expired",	/* SIGPROF */
5321006Smckusick 	"Window size changes",		/* SIGWINCH */
5410902Ssam 	"Signal 29",
5521006Smckusick 	"User defined signal 1",	/* SIGUSR1 */
5621006Smckusick 	"User defined signal 2"		/* SIGUSR2 */
5710902Ssam };
58