Remove advertising header from lib/ and libexec/
[dragonfly.git] / lib / libc / gen / siglist.c
1 /*
2  * Copyright (c) 1983, 1993
3  *      The Regents of the University of California.  All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the University nor the names of its contributors
14  *    may be used to endorse or promote products derived from this software
15  *    without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  *
29  * @(#)siglist.c        8.1 (Berkeley) 6/4/93
30  */
31
32 #include <signal.h>
33
34 const char *const sys_signame[NSIG] = {
35         "Signal 0",
36         "hup",                          /* SIGHUP */
37         "int",                          /* SIGINT */
38         "quit",                         /* SIGQUIT */
39         "ill",                          /* SIGILL */
40         "trap",                         /* SIGTRAP */
41         "abrt",                         /* SIGABRT */
42         "emt",                          /* SIGEMT */
43         "fpe",                          /* SIGFPE */
44         "kill",                         /* SIGKILL */
45         "bus",                          /* SIGBUS */
46         "segv",                         /* SIGSEGV */
47         "sys",                          /* SIGSYS */
48         "pipe",                         /* SIGPIPE */
49         "alrm",                         /* SIGALRM */
50         "term",                         /* SIGTERM */
51         "urg",                          /* SIGURG */
52         "stop",                         /* SIGSTOP */
53         "tstp",                         /* SIGTSTP */
54         "cont",                         /* SIGCONT */
55         "chld",                         /* SIGCHLD */
56         "ttin",                         /* SIGTTIN */
57         "ttou",                         /* SIGTTOU */
58         "io",                           /* SIGIO */
59         "xcpu",                         /* SIGXCPU */
60         "xfsz",                         /* SIGXFSZ */
61         "vtalrm",                       /* SIGVTALRM */
62         "prof",                         /* SIGPROF */
63         "winch",                        /* SIGWINCH */
64         "info",                         /* SIGINFO */
65         "usr1",                         /* SIGUSR1 */
66         "usr2",                         /* SIGUSR2 */
67
68         /* 32-63 */
69
70         "thrd",                         /* 32 */
71         "ckpt",                         /* 33 */
72         "ckptx",                        /* 34 */
73         "Signal35",                     /* 35 */
74         "Signal36",                     /* 36 */
75         "Signal37",                     /* 37 */
76         "Signal38",                     /* 38 */
77         "Signal39",                     /* 39 */
78         "Signal40",                     /* 40 */
79         "Signal41",                     /* 41 */
80         "Signal42",                     /* 42 */
81         "Signal43",                     /* 43 */
82         "Signal44",                     /* 44 */
83         "Signal45",                     /* 45 */
84         "Signal46",                     /* 46 */
85         "Signal47",                     /* 47 */
86         "Signal48",                     /* 48 */
87         "Signal49",                     /* 49 */
88         "Signal50",                     /* 50 */
89         "Signal51",                     /* 51 */
90         "Signal52",                     /* 52 */
91         "Signal53",                     /* 53 */
92         "Signal54",                     /* 54 */
93         "Signal55",                     /* 55 */
94         "Signal56",                     /* 56 */
95         "Signal57",                     /* 57 */
96         "Signal58",                     /* 58 */
97         "Signal59",                     /* 59 */
98         "Signal60",                     /* 60 */
99         "Signal61",                     /* 61 */
100         "Signal62",                     /* 62 */
101         "Signal63"                      /* 63 */
102 };
103
104 const char *const sys_siglist[NSIG] = {
105         "Signal 0",
106         "Hangup",                       /* SIGHUP */
107         "Interrupt",                    /* SIGINT */
108         "Quit",                         /* SIGQUIT */
109         "Illegal instruction",          /* SIGILL */
110         "Trace/BPT trap",               /* SIGTRAP */
111         "Abort trap",                   /* SIGABRT */
112         "EMT trap",                     /* SIGEMT */
113         "Floating point exception",     /* SIGFPE */
114         "Killed",                       /* SIGKILL */
115         "Bus error",                    /* SIGBUS */
116         "Segmentation fault",           /* SIGSEGV */
117         "Bad system call",              /* SIGSYS */
118         "Broken pipe",                  /* SIGPIPE */
119         "Alarm clock",                  /* SIGALRM */
120         "Terminated",                   /* SIGTERM */
121         "Urgent I/O condition",         /* SIGURG */
122         "Suspended (signal)",           /* SIGSTOP */
123         "Suspended",                    /* SIGTSTP */
124         "Continued",                    /* SIGCONT */
125         "Child exited",                 /* SIGCHLD */
126         "Stopped (tty input)",          /* SIGTTIN */
127         "Stopped (tty output)",         /* SIGTTOU */
128         "I/O possible",                 /* SIGIO */
129         "Cputime limit exceeded",       /* SIGXCPU */
130         "Filesize limit exceeded",      /* SIGXFSZ */
131         "Virtual timer expired",        /* SIGVTALRM */
132         "Profiling timer expired",      /* SIGPROF */
133         "Window size changes",          /* SIGWINCH */
134         "Information request",          /* SIGINFO */
135         "User defined signal 1",        /* SIGUSR1 */
136         "User defined signal 2",        /* SIGUSR2 */
137
138         /* 32-63 */
139
140         "Thread Scheduler",             /* SIGTHR */
141         "CheckPoint",                   /* SIGCKPT */
142         "CheckPointExit",               /* SIGCKPTEXIT */
143         "Signal35",                     /* 35 */
144         "Signal36",                     /* 36 */
145         "Signal37",                     /* 37 */
146         "Signal38",                     /* 38 */
147         "Signal39",                     /* 39 */
148         "Signal40",                     /* 40 */
149         "Signal41",                     /* 41 */
150         "Signal42",                     /* 42 */
151         "Signal43",                     /* 43 */
152         "Signal44",                     /* 44 */
153         "Signal45",                     /* 45 */
154         "Signal46",                     /* 46 */
155         "Signal47",                     /* 47 */
156         "Signal48",                     /* 48 */
157         "Signal49",                     /* 49 */
158         "Signal50",                     /* 50 */
159         "Signal51",                     /* 51 */
160         "Signal52",                     /* 52 */
161         "Signal53",                     /* 53 */
162         "Signal54",                     /* 54 */
163         "Signal55",                     /* 55 */
164         "Signal56",                     /* 56 */
165         "Signal57",                     /* 57 */
166         "Signal58",                     /* 58 */
167         "Signal59",                     /* 59 */
168         "Signal60",                     /* 60 */
169         "Signal61",                     /* 61 */
170         "Signal62",                     /* 62 */
171         "Signal63"                      /* 63 */
172 };
173 const int sys_nsig = sizeof(sys_siglist) / sizeof(sys_siglist[0]);