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