#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
use num_derive::FromPrimitive;
#[repr(u32)]
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinux {
SIGHUP = 0x1u32,
SIGINT = 0x2,
SIGQUIT = 0x3,
SIGILL = 0x4,
SIGTRAP = 0x5,
SIGABRT = 0x6,
SIGBUS = 0x7,
SIGFPE = 0x8,
SIGKILL = 0x9,
SIGUSR1 = 0xa,
SIGSEGV = 0xb,
SIGUSR2 = 0xc,
SIGPIPE = 0xd,
SIGALRM = 0xe,
SIGTERM = 0xf,
SIGSTKFLT = 0x10,
SIGCHLD = 0x11,
SIGCONT = 0x12,
SIGSTOP = 0x13,
SIGTSTP = 0x14,
SIGTTIN = 0x15,
SIGTTOU = 0x16,
SIGURG = 0x17,
SIGXCPU = 0x18,
SIGXFSZ = 0x19,
SIGVTALRM = 0x1a,
SIGPROF = 0x1b,
SIGWINCH = 0x1c,
SIGIO = 0x1d,
SIGPWR = 0x1e,
SIGSYS = 0x1f,
DUMP_REQUESTED = 0xffffffff,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
#[repr(i32)]
pub enum ExceptionCodeLinuxSicode {
SI_USER = 0,
SI_KERNEL = 0x80,
SI_QUEUE = -1i32,
SI_TIMER = -2i32,
SI_MESGQ = -3i32,
SI_ASYNCIO = -4i32,
SI_SIGIO = -5i32,
SI_TKILL = -6i32,
SI_DETHREAD = -7i32,
SI_ASYNCNL = -60i32,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinuxSigillKind {
ILL_ILLOPC = 1,
ILL_ILLOPN = 2,
ILL_ILLADR = 3,
ILL_ILLTRP = 4,
ILL_PRVOPC = 5,
ILL_PRVREG = 6,
ILL_COPROC = 7,
ILL_BADSTK = 8,
ILL_BADIADDR = 9,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinuxSigtrapKind {
TRAP_BRKPT = 1,
TRAP_TRACE = 2,
TRAP_BRANCH = 3,
TRAP_HWBKPT = 4,
TRAP_UNK = 5,
TRAP_PERF = 6,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinuxSigfpeKind {
FPE_INTDIV = 1,
FPE_INTOVF = 2,
FPE_FLTDIV = 3,
FPE_FLTOVF = 4,
FPE_FLTUND = 5,
FPE_FLTRES = 6,
FPE_FLTINV = 7,
FPE_FLTSUB = 8,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinuxSigsegvKind {
SEGV_MAPERR = 1,
SEGV_ACCERR = 2,
SEGV_BNDERR = 3,
SEGV_PKUERR = 4,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinuxSigbusKind {
BUS_ADRALN = 1,
BUS_ADRERR = 2,
BUS_OBJERR = 3,
BUS_MCEERR_AR = 4,
BUS_MCEERR_AO = 5,
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, FromPrimitive)]
pub enum ExceptionCodeLinuxSigsysKind {
SYS_SECCOMP = 1,
SYS_USER_DISPATCH = 2,
}