1 /* Copyright (c) 2006, Google Inc.
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  *     * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *     * Redistributions in binary form must reproduce the above
11  * copyright notice, this list of conditions and the following disclaimer
12  * in the documentation and/or other materials provided with the
13  * distribution.
14  *     * Neither the name of Google Inc. nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
29 
30 /* minidump_exception_solaris.h: A definition of exception codes for
31  * Solaris
32  *
33  * (This is C99 source, please don't corrupt it with C++.)
34  *
35  * Author: Mark Mentovai
36  * Split into its own file: Neal Sidhwaney */
37 
38 
39 #ifndef GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_SOLARIS_H__
40 #define GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_SOLARIS_H__
41 
42 #include <stddef.h>
43 
44 #include "google_breakpad/common/breakpad_types.h"
45 
46 /* For (MDException).exception_code.  These values come from sys/iso/signal_iso.h
47  */
48 typedef enum {
49   MD_EXCEPTION_CODE_SOL_SIGHUP = 1,      /* Hangup */
50   MD_EXCEPTION_CODE_SOL_SIGINT = 2,      /* interrupt (rubout) */
51   MD_EXCEPTION_CODE_SOL_SIGQUIT = 3,     /* quit (ASCII FS) */
52   MD_EXCEPTION_CODE_SOL_SIGILL = 4,      /* illegal instruction (not reset when caught) */
53   MD_EXCEPTION_CODE_SOL_SIGTRAP = 5,     /* trace trap (not reset when caught) */
54   MD_EXCEPTION_CODE_SOL_SIGIOT = 6,      /* IOT instruction */
55   MD_EXCEPTION_CODE_SOL_SIGABRT = 6,     /* used by abort, replace SIGIOT in the future */
56   MD_EXCEPTION_CODE_SOL_SIGEMT = 7,      /* EMT instruction */
57   MD_EXCEPTION_CODE_SOL_SIGFPE = 8,      /* floating point exception */
58   MD_EXCEPTION_CODE_SOL_SIGKILL = 9,     /* kill (cannot be caught or ignored) */
59   MD_EXCEPTION_CODE_SOL_SIGBUS = 10,     /* bus error */
60   MD_EXCEPTION_CODE_SOL_SIGSEGV = 11,    /* segmentation violation */
61   MD_EXCEPTION_CODE_SOL_SIGSYS = 12,     /* bad argument to system call */
62   MD_EXCEPTION_CODE_SOL_SIGPIPE = 13,    /* write on a pipe with no one to read it */
63   MD_EXCEPTION_CODE_SOL_SIGALRM = 14,    /* alarm clock */
64   MD_EXCEPTION_CODE_SOL_SIGTERM = 15,    /* software termination signal from kill */
65   MD_EXCEPTION_CODE_SOL_SIGUSR1 = 16,    /* user defined signal 1 */
66   MD_EXCEPTION_CODE_SOL_SIGUSR2 = 17,    /* user defined signal 2 */
67   MD_EXCEPTION_CODE_SOL_SIGCLD = 18,     /* child status change */
68   MD_EXCEPTION_CODE_SOL_SIGCHLD = 18,    /* child status change alias (POSIX) */
69   MD_EXCEPTION_CODE_SOL_SIGPWR = 19,     /* power-fail restart */
70   MD_EXCEPTION_CODE_SOL_SIGWINCH = 20,   /* window size change */
71   MD_EXCEPTION_CODE_SOL_SIGURG = 21,     /* urgent socket condition */
72   MD_EXCEPTION_CODE_SOL_SIGPOLL = 22,    /* pollable event occurred */
73   MD_EXCEPTION_CODE_SOL_SIGIO = 22,      /* socket I/O possible (SIGPOLL alias) */
74   MD_EXCEPTION_CODE_SOL_SIGSTOP = 23,    /* stop (cannot be caught or ignored) */
75   MD_EXCEPTION_CODE_SOL_SIGTSTP = 24,    /* user stop requested from tty */
76   MD_EXCEPTION_CODE_SOL_SIGCONT = 25,    /* stopped process has been continued */
77   MD_EXCEPTION_CODE_SOL_SIGTTIN = 26,    /* background tty read attempted */
78   MD_EXCEPTION_CODE_SOL_SIGTTOU = 27,    /* background tty write attempted */
79   MD_EXCEPTION_CODE_SOL_SIGVTALRM = 28,  /* virtual timer expired */
80   MD_EXCEPTION_CODE_SOL_SIGPROF = 29,    /* profiling timer expired */
81   MD_EXCEPTION_CODE_SOL_SIGXCPU = 30,    /* exceeded cpu limit */
82   MD_EXCEPTION_CODE_SOL_SIGXFSZ = 31,    /* exceeded file size limit */
83   MD_EXCEPTION_CODE_SOL_SIGWAITING = 32, /* reserved signal no longer used by threading code */
84   MD_EXCEPTION_CODE_SOL_SIGLWP = 33,     /* reserved signal no longer used by threading code */
85   MD_EXCEPTION_CODE_SOL_SIGFREEZE = 34,  /* special signal used by CPR */
86   MD_EXCEPTION_CODE_SOL_SIGTHAW = 35,    /* special signal used by CPR */
87   MD_EXCEPTION_CODE_SOL_SIGCANCEL = 36,  /* reserved signal for thread cancellation */
88   MD_EXCEPTION_CODE_SOL_SIGLOST = 37,    /* resource lost (eg, record-lock lost) */
89   MD_EXCEPTION_CODE_SOL_SIGXRES = 38,    /* resource control exceeded */
90   MD_EXCEPTION_CODE_SOL_SIGJVM1 = 39,    /* reserved signal for Java Virtual Machine */
91   MD_EXCEPTION_CODE_SOL_SIGJVM2 = 40     /* reserved signal for Java Virtual Machine */
92 } MDExceptionCodeSolaris;
93 
94 #endif  /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_SOLARIS_H__ */
95