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