Blame arch/nt64/bits/signal.h

87820a
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
87820a
 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
87820a
cfe6f1
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
cfe6f1
#define MINSIGSTKSZ 2048
cfe6f1
#define SIGSTKSZ 8192
cfe6f1
#endif
cfe6f1
87820a
#ifdef _GNU_SOURCE
87820a
#define REG_R8          0
87820a
#define REG_R9          1
87820a
#define REG_R10         2
87820a
#define REG_R11         3
87820a
#define REG_R12         4
87820a
#define REG_R13         5
87820a
#define REG_R14         6
87820a
#define REG_R15         7
87820a
#define REG_RDI         8
87820a
#define REG_RSI         9
87820a
#define REG_RBP         10
87820a
#define REG_RBX         11
87820a
#define REG_RDX         12
87820a
#define REG_RAX         13
87820a
#define REG_RCX         14
87820a
#define REG_RSP         15
87820a
#define REG_RIP         16
87820a
#define REG_EFL         17
87820a
#define REG_CSGSFS      18
87820a
#define REG_ERR         19
87820a
#define REG_TRAPNO      20
87820a
#define REG_OLDMASK     21
87820a
#define REG_CR2         22
87820a
#endif
87820a
87820a
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
87820a
typedef long long greg_t, gregset_t[23];
87820a
typedef struct _fpstate {
87820a
	unsigned short cwd, swd, ftw, fop;
87820a
	unsigned long long rip, rdp;
87820a
	unsigned mxcsr, mxcr_mask;
87820a
	struct {
87820a
		unsigned short significand[4], exponent, padding[3];
87820a
	} _st[8];
87820a
	struct {
87820a
		unsigned element[4];
87820a
	} _xmm[16];
87820a
	unsigned padding[24];
87820a
} *fpregset_t;
87820a
struct sigcontext {
87820a
	unsigned long r8, r9, r10, r11, r12, r13, r14, r15;
87820a
	unsigned long rdi, rsi, rbp, rbx, rdx, rax, rcx, rsp, rip, eflags;
87820a
	unsigned short cs, gs, fs, __pad0;
87820a
	unsigned long err, trapno, oldmask, cr2;
87820a
	struct _fpstate *fpstate;
87820a
	unsigned long __reserved1[8];
87820a
};
87820a
typedef struct {
87820a
	gregset_t gregs;
87820a
	fpregset_t fpregs;
87820a
	unsigned long long __reserved1[8];
87820a
} mcontext_t;
87820a
#else
87820a
typedef struct {
87820a
	unsigned long __space[32];
87820a
} mcontext_t;
87820a
#endif
87820a
87820a
struct sigaltstack {
87820a
	void *ss_sp;
87820a
	int ss_flags;
87820a
	size_t ss_size;
87820a
};
87820a
87820a
typedef struct __ucontext {
87820a
	unsigned long uc_flags;
87820a
	struct __ucontext *uc_link;
87820a
	stack_t uc_stack;
87820a
	mcontext_t uc_mcontext;
87820a
	sigset_t uc_sigmask;
87820a
	unsigned long __fpregs_mem[64];
87820a
} ucontext_t;
87820a
87820a
#define SA_NOCLDSTOP  1
87820a
#define SA_NOCLDWAIT  2
87820a
#define SA_SIGINFO    4
87820a
#define SA_ONSTACK    0x08000000
87820a
#define SA_RESTART    0x10000000
87820a
#define SA_NODEFER    0x40000000
87820a
#define SA_RESETHAND  0x80000000
87820a
#define SA_RESTORER   0x04000000
87820a
87820a
#endif
87820a
87820a
#define SIGHUP    1
87820a
#define SIGINT    2
87820a
#define SIGQUIT   3
87820a
#define SIGILL    4
87820a
#define SIGTRAP   5
87820a
#define SIGABRT   6
87820a
#define SIGIOT    SIGABRT
87820a
#define SIGBUS    7
87820a
#define SIGFPE    8
87820a
#define SIGKILL   9
87820a
#define SIGUSR1   10
87820a
#define SIGSEGV   11
87820a
#define SIGUSR2   12
87820a
#define SIGPIPE   13
87820a
#define SIGALRM   14
87820a
#define SIGTERM   15
87820a
#define SIGSTKFLT 16
87820a
#define SIGCHLD   17
87820a
#define SIGCONT   18
87820a
#define SIGSTOP   19
87820a
#define SIGTSTP   20
87820a
#define SIGTTIN   21
87820a
#define SIGTTOU   22
87820a
#define SIGURG    23
87820a
#define SIGXCPU   24
87820a
#define SIGXFSZ   25
87820a
#define SIGVTALRM 26
87820a
#define SIGPROF   27
87820a
#define SIGWINCH  28
87820a
#define SIGIO     29
87820a
#define SIGPOLL   29
87820a
#define SIGPWR    30
87820a
#define SIGSYS    31
87820a
#define SIGUNUSED SIGSYS
87820a
87820a
#define _NSIG 65
87820a