Project

General

Profile

Statistics
| Branch: | Revision:

scoutos / prex-0.9.0 / usr / lib / posix / signal / siglist.c @ 03e9c04a

History | View | Annotate | Download (3.54 KB)

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