Planeshift

minidump_exception_solaris.h

Go to the documentation of this file.
00001 /* Copyright (c) 2006, Google Inc.
00002  * All rights reserved.
00003  *
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are
00006  * met:
00007  *
00008  *     * Redistributions of source code must retain the above copyright
00009  * notice, this list of conditions and the following disclaimer.
00010  *     * Redistributions in binary form must reproduce the above
00011  * copyright notice, this list of conditions and the following disclaimer
00012  * in the documentation and/or other materials provided with the
00013  * distribution.
00014  *     * Neither the name of Google Inc. nor the names of its
00015  * contributors may be used to endorse or promote products derived from
00016  * this software without specific prior written permission.
00017  *
00018  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00019  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00020  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00021  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00022  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00023  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00024  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00025  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00026  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00027  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00028  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
00029 
00030 /* minidump_exception_solaris.h: A definition of exception codes for
00031  * Solaris
00032  *
00033  * (This is C99 source, please don't corrupt it with C++.)
00034  *
00035  * Author: Mark Mentovai
00036  * Split into its own file: Neal Sidhwaney */
00037 
00038 
00039 #ifndef GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_SOLARIS_H__
00040 #define GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_SOLARIS_H__
00041 
00042 #include <stddef.h>
00043 
00044 #include "google_breakpad/common/breakpad_types.h"
00045 
00046 /* For (MDException).exception_code.  These values come from sys/iso/signal_iso.h
00047  */
00048 typedef enum {
00049   MD_EXCEPTION_CODE_SOL_SIGHUP = 1,      /* Hangup */
00050   MD_EXCEPTION_CODE_SOL_SIGINT = 2,      /* interrupt (rubout) */
00051   MD_EXCEPTION_CODE_SOL_SIGQUIT = 3,     /* quit (ASCII FS) */
00052   MD_EXCEPTION_CODE_SOL_SIGILL = 4,      /* illegal instruction (not reset when caught) */
00053   MD_EXCEPTION_CODE_SOL_SIGTRAP = 5,     /* trace trap (not reset when caught) */
00054   MD_EXCEPTION_CODE_SOL_SIGIOT = 6,      /* IOT instruction */
00055   MD_EXCEPTION_CODE_SOL_SIGABRT = 6,     /* used by abort, replace SIGIOT in the future */
00056   MD_EXCEPTION_CODE_SOL_SIGEMT = 7,      /* EMT instruction */
00057   MD_EXCEPTION_CODE_SOL_SIGFPE = 8,      /* floating point exception */
00058   MD_EXCEPTION_CODE_SOL_SIGKILL = 9,     /* kill (cannot be caught or ignored) */
00059   MD_EXCEPTION_CODE_SOL_SIGBUS = 10,     /* bus error */
00060   MD_EXCEPTION_CODE_SOL_SIGSEGV = 11,    /* segmentation violation */
00061   MD_EXCEPTION_CODE_SOL_SIGSYS = 12,     /* bad argument to system call */
00062   MD_EXCEPTION_CODE_SOL_SIGPIPE = 13,    /* write on a pipe with no one to read it */
00063   MD_EXCEPTION_CODE_SOL_SIGALRM = 14,    /* alarm clock */
00064   MD_EXCEPTION_CODE_SOL_SIGTERM = 15,    /* software termination signal from kill */
00065   MD_EXCEPTION_CODE_SOL_SIGUSR1 = 16,    /* user defined signal 1 */
00066   MD_EXCEPTION_CODE_SOL_SIGUSR2 = 17,    /* user defined signal 2 */
00067   MD_EXCEPTION_CODE_SOL_SIGCLD = 18,     /* child status change */
00068   MD_EXCEPTION_CODE_SOL_SIGCHLD = 18,    /* child status change alias (POSIX) */
00069   MD_EXCEPTION_CODE_SOL_SIGPWR = 19,     /* power-fail restart */
00070   MD_EXCEPTION_CODE_SOL_SIGWINCH = 20,   /* window size change */
00071   MD_EXCEPTION_CODE_SOL_SIGURG = 21,     /* urgent socket condition */
00072   MD_EXCEPTION_CODE_SOL_SIGPOLL = 22,    /* pollable event occurred */
00073   MD_EXCEPTION_CODE_SOL_SIGIO = 22,      /* socket I/O possible (SIGPOLL alias) */
00074   MD_EXCEPTION_CODE_SOL_SIGSTOP = 23,    /* stop (cannot be caught or ignored) */
00075   MD_EXCEPTION_CODE_SOL_SIGTSTP = 24,    /* user stop requested from tty */
00076   MD_EXCEPTION_CODE_SOL_SIGCONT = 25,    /* stopped process has been continued */
00077   MD_EXCEPTION_CODE_SOL_SIGTTIN = 26,    /* background tty read attempted */
00078   MD_EXCEPTION_CODE_SOL_SIGTTOU = 27,    /* background tty write attempted */
00079   MD_EXCEPTION_CODE_SOL_SIGVTALRM = 28,  /* virtual timer expired */
00080   MD_EXCEPTION_CODE_SOL_SIGPROF = 29,    /* profiling timer expired */
00081   MD_EXCEPTION_CODE_SOL_SIGXCPU = 30,    /* exceeded cpu limit */
00082   MD_EXCEPTION_CODE_SOL_SIGXFSZ = 31,    /* exceeded file size limit */
00083   MD_EXCEPTION_CODE_SOL_SIGWAITING = 32, /* reserved signal no longer used by threading code */
00084   MD_EXCEPTION_CODE_SOL_SIGLWP = 33,     /* reserved signal no longer used by threading code */
00085   MD_EXCEPTION_CODE_SOL_SIGFREEZE = 34,  /* special signal used by CPR */
00086   MD_EXCEPTION_CODE_SOL_SIGTHAW = 35,    /* special signal used by CPR */
00087   MD_EXCEPTION_CODE_SOL_SIGCANCEL = 36,  /* reserved signal for thread cancellation */
00088   MD_EXCEPTION_CODE_SOL_SIGLOST = 37,    /* resource lost (eg, record-lock lost) */
00089   MD_EXCEPTION_CODE_SOL_SIGXRES = 38,    /* resource control exceeded */
00090   MD_EXCEPTION_CODE_SOL_SIGJVM1 = 39,    /* reserved signal for Java Virtual Machine */
00091   MD_EXCEPTION_CODE_SOL_SIGJVM2 = 40     /* reserved signal for Java Virtual Machine */
00092 } MDExceptionCodeSolaris;
00093 
00094 #endif  /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_SOLARIS_H__ */