xref: /csrg-svn/lib/libc/gen/siglist.c (revision 61111)
121359Sdist /*
2*61111Sbostic  * Copyright (c) 1983, 1993
3*61111Sbostic  *	The Regents of the University of California.  All rights reserved.
435286Sbostic  *
542626Sbostic  * %sccs.include.redist.c%
621359Sdist  */
710902Ssam 
826591Sdonn #if defined(LIBC_SCCS) && !defined(lint)
9*61111Sbostic static char sccsid[] = "@(#)siglist.c	8.1 (Berkeley) 06/04/93";
1035286Sbostic #endif /* LIBC_SCCS and not lint */
1121359Sdist 
1257745Sbostic #include <sys/cdefs.h>
1310903Ssam #include <signal.h>
1410903Ssam 
1559791Sbostic const char *const sys_signame[NSIG] = {
1610902Ssam 	"Signal 0",
1750946Sbostic 	"hup",				/* SIGHUP */
1850946Sbostic 	"int",				/* SIGINT */
1950946Sbostic 	"quit",				/* SIGQUIT */
2050946Sbostic 	"ill",				/* SIGILL */
2150946Sbostic 	"trap",				/* SIGTRAP */
2250946Sbostic 	"abrt",				/* SIGABRT */
2350946Sbostic 	"emt",				/* SIGEMT */
2450946Sbostic 	"fpe",				/* SIGFPE */
2550946Sbostic 	"kill",				/* SIGKILL */
2650946Sbostic 	"bus",				/* SIGBUS */
2750946Sbostic 	"segv",				/* SIGSEGV */
2850946Sbostic 	"sys",				/* SIGSYS */
2950946Sbostic 	"pipe",				/* SIGPIPE */
3050946Sbostic 	"alrm",				/* SIGALRM */
3150946Sbostic 	"term",				/* SIGTERM */
3250946Sbostic 	"urg",				/* SIGURG */
3350946Sbostic 	"stop",				/* SIGSTOP */
3450946Sbostic 	"tstp",				/* SIGTSTP */
3550946Sbostic 	"cont",				/* SIGCONT */
3650946Sbostic 	"chld",				/* SIGCHLD */
3750946Sbostic 	"ttin",				/* SIGTTIN */
3850946Sbostic 	"ttou",				/* SIGTTOU */
3950946Sbostic 	"io",				/* SIGIO */
4050946Sbostic 	"xcpu",				/* SIGXCPU */
4150946Sbostic 	"xfsz",				/* SIGXFSZ */
4250946Sbostic 	"vtalrm",			/* SIGVTALRM */
4350946Sbostic 	"prof",				/* SIGPROF */
4450946Sbostic 	"winch",			/* SIGWINCH */
4550946Sbostic 	"info",				/* SIGINFO */
4650946Sbostic 	"usr1",				/* SIGUSR1 */
4750946Sbostic 	"usr2",				/* SIGUSR2 */
4850946Sbostic };
4950946Sbostic 
5059791Sbostic const char *const sys_siglist[NSIG] = {
5150946Sbostic 	"Signal 0",
5210902Ssam 	"Hangup",			/* SIGHUP */
5310902Ssam 	"Interrupt",			/* SIGINT */
5410902Ssam 	"Quit",				/* SIGQUIT */
5510902Ssam 	"Illegal instruction",		/* SIGILL */
5610902Ssam 	"Trace/BPT trap",		/* SIGTRAP */
5738788Skarels 	"Abort trap",			/* SIGABRT */
5810902Ssam 	"EMT trap",			/* SIGEMT */
5910902Ssam 	"Floating point exception",	/* SIGFPE */
6010902Ssam 	"Killed",			/* SIGKILL */
6110902Ssam 	"Bus error",			/* SIGBUS */
6210902Ssam 	"Segmentation fault",		/* SIGSEGV */
6310902Ssam 	"Bad system call",		/* SIGSYS */
6410902Ssam 	"Broken pipe",			/* SIGPIPE */
6510902Ssam 	"Alarm clock",			/* SIGALRM */
6610902Ssam 	"Terminated",			/* SIGTERM */
6710902Ssam 	"Urgent I/O condition",		/* SIGURG */
6850946Sbostic 	"Suspended (signal)",		/* SIGSTOP */
6950946Sbostic 	"Suspended",			/* SIGTSTP */
7010902Ssam 	"Continued",			/* SIGCONT */
7110902Ssam 	"Child exited",			/* SIGCHLD */
7210902Ssam 	"Stopped (tty input)",		/* SIGTTIN */
7310902Ssam 	"Stopped (tty output)",		/* SIGTTOU */
7410902Ssam 	"I/O possible",			/* SIGIO */
7510902Ssam 	"Cputime limit exceeded",	/* SIGXCPU */
7610902Ssam 	"Filesize limit exceeded",	/* SIGXFSZ */
7710902Ssam 	"Virtual timer expired",	/* SIGVTALRM */
7810902Ssam 	"Profiling timer expired",	/* SIGPROF */
7921006Smckusick 	"Window size changes",		/* SIGWINCH */
8038788Skarels 	"Information request",		/* SIGINFO */
8121006Smckusick 	"User defined signal 1",	/* SIGUSR1 */
8221006Smckusick 	"User defined signal 2"		/* SIGUSR2 */
8310902Ssam };
84