1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #if defined(LIBC_SCCS) && !defined(lint) 9 static char sccsid[] = "@(#)siglist.c 5.7 (Berkeley) 09/01/91"; 10 #endif /* LIBC_SCCS and not lint */ 11 12 #include <signal.h> 13 14 char *sys_signame[NSIG] = { 15 "Signal 0", 16 "hup", /* SIGHUP */ 17 "int", /* SIGINT */ 18 "quit", /* SIGQUIT */ 19 "ill", /* SIGILL */ 20 "trap", /* SIGTRAP */ 21 "abrt", /* SIGABRT */ 22 "emt", /* SIGEMT */ 23 "fpe", /* SIGFPE */ 24 "kill", /* SIGKILL */ 25 "bus", /* SIGBUS */ 26 "segv", /* SIGSEGV */ 27 "sys", /* SIGSYS */ 28 "pipe", /* SIGPIPE */ 29 "alrm", /* SIGALRM */ 30 "term", /* SIGTERM */ 31 "urg", /* SIGURG */ 32 "stop", /* SIGSTOP */ 33 "tstp", /* SIGTSTP */ 34 "cont", /* SIGCONT */ 35 "chld", /* SIGCHLD */ 36 "ttin", /* SIGTTIN */ 37 "ttou", /* SIGTTOU */ 38 "io", /* SIGIO */ 39 "xcpu", /* SIGXCPU */ 40 "xfsz", /* SIGXFSZ */ 41 "vtalrm", /* SIGVTALRM */ 42 "prof", /* SIGPROF */ 43 "winch", /* SIGWINCH */ 44 "info", /* SIGINFO */ 45 "usr1", /* SIGUSR1 */ 46 "usr2", /* SIGUSR2 */ 47 }; 48 49 char *sys_siglist[NSIG] = { 50 "Signal 0", 51 "Hangup", /* SIGHUP */ 52 "Interrupt", /* SIGINT */ 53 "Quit", /* SIGQUIT */ 54 "Illegal instruction", /* SIGILL */ 55 "Trace/BPT trap", /* SIGTRAP */ 56 "Abort trap", /* SIGABRT */ 57 "EMT trap", /* SIGEMT */ 58 "Floating point exception", /* SIGFPE */ 59 "Killed", /* SIGKILL */ 60 "Bus error", /* SIGBUS */ 61 "Segmentation fault", /* SIGSEGV */ 62 "Bad system call", /* SIGSYS */ 63 "Broken pipe", /* SIGPIPE */ 64 "Alarm clock", /* SIGALRM */ 65 "Terminated", /* SIGTERM */ 66 "Urgent I/O condition", /* SIGURG */ 67 "Suspended (signal)", /* SIGSTOP */ 68 "Suspended", /* SIGTSTP */ 69 "Continued", /* SIGCONT */ 70 "Child exited", /* SIGCHLD */ 71 "Stopped (tty input)", /* SIGTTIN */ 72 "Stopped (tty output)", /* SIGTTOU */ 73 "I/O possible", /* SIGIO */ 74 "Cputime limit exceeded", /* SIGXCPU */ 75 "Filesize limit exceeded", /* SIGXFSZ */ 76 "Virtual timer expired", /* SIGVTALRM */ 77 "Profiling timer expired", /* SIGPROF */ 78 "Window size changes", /* SIGWINCH */ 79 "Information request", /* SIGINFO */ 80 "User defined signal 1", /* SIGUSR1 */ 81 "User defined signal 2" /* SIGUSR2 */ 82 }; 83