Commit | Line | Data |
---|---|---|
bb0cfa24 | 1 | /* |
3cee8e9d KB |
2 | * Copyright (c) 1983 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
269a7923 | 5 | * %sccs.include.redist.c% |
bb0cfa24 DF |
6 | */ |
7 | ||
2ce81398 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
d9d2488c | 9 | static char sccsid[] = "@(#)siglist.c 5.9 (Berkeley) %G%"; |
3cee8e9d | 10 | #endif /* LIBC_SCCS and not lint */ |
5c9e5b54 | 11 | |
8c56883f | 12 | #include <sys/cdefs.h> |
5c9e5b54 | 13 | #include <signal.h> |
21c45276 | 14 | |
d9d2488c | 15 | const char *const sys_signame[NSIG] = { |
93dfd5b9 KB |
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 | ||
d9d2488c | 50 | const char *const sys_siglist[NSIG] = { |
21c45276 SL |
51 | "Signal 0", |
52 | "Hangup", /* SIGHUP */ | |
53 | "Interrupt", /* SIGINT */ | |
54 | "Quit", /* SIGQUIT */ | |
55 | "Illegal instruction", /* SIGILL */ | |
56 | "Trace/BPT trap", /* SIGTRAP */ | |
9de85070 | 57 | "Abort trap", /* SIGABRT */ |
21c45276 SL |
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 */ | |
93dfd5b9 KB |
68 | "Suspended (signal)", /* SIGSTOP */ |
69 | "Suspended", /* SIGTSTP */ | |
21c45276 SL |
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 */ | |
ed147c30 | 79 | "Window size changes", /* SIGWINCH */ |
9de85070 | 80 | "Information request", /* SIGINFO */ |
ed147c30 KM |
81 | "User defined signal 1", /* SIGUSR1 */ |
82 | "User defined signal 2" /* SIGUSR2 */ | |
21c45276 | 83 | }; |