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)
4a7000
#define MINSIGSTKSZ	4096
4a7000
#define SIGSTKSZ	8192
cfe6f1
#endif
cfe6f1
87820a
typedef struct {
a858f4
	unsigned long	uc_low;
a858f4
	signed long	uc_high;
a858f4
} uc_m128a_t;
a858f4
a858f4
typedef struct {
a858f4
	unsigned short		uc_control_word;		/* 0x000 */
a858f4
	unsigned short		uc_status_word;			/* 0x002 */
a858f4
	unsigned char		uc_tag_word;			/* 0x004 */
a858f4
	unsigned char		uc_reserved1;			/* 0x005 */
a858f4
	unsigned short		uc_error_opcode;		/* 0x006 */
a858f4
	unsigned int		uc_error_offset;		/* 0x008 */
a858f4
	unsigned short		uc_error_selector;		/* 0x00c */
a858f4
	unsigned short		uc_reserved2;			/* 0x00e */
a858f4
	unsigned int		uc_data_offset;			/* 0x010 */
a858f4
	unsigned short		uc_data_selector;		/* 0x014 */
a858f4
	unsigned short		uc_reserved3;			/* 0x016 */
a858f4
	unsigned int		uc_mx_csr;			/* 0x018 */
a858f4
	unsigned int		uc_mx_csr_mask;			/* 0x01c */
a858f4
	uc_m128a_t		uc_float_registers[8];		/* 0x020 */
a858f4
} uc_xsave_fmt_t;
a858f4
a858f4
typedef struct {
a858f4
	unsigned long		uc_p1_home;			/* 0x000 */
a858f4
	unsigned long		uc_p2_home;			/* 0x008 */
a858f4
	unsigned long		uc_p3_home;			/* 0x010 */
a858f4
	unsigned long		uc_p4_home;			/* 0x018 */
a858f4
	unsigned long		uc_p5_home;			/* 0x020 */
a858f4
	unsigned long		uc_p6_home;			/* 0x028 */
a858f4
	unsigned int		uc_context_flags;		/* 0x030 */
a858f4
	unsigned int		uc_mx_csr;			/* 0x034 */
a858f4
	unsigned short		uc_seg_cs;			/* 0x038 */
a858f4
	unsigned short		uc_seg_ds;			/* 0x03a */
a858f4
	unsigned short		uc_seg_es;			/* 0x03c */
a858f4
	unsigned short		uc_seg_fs;			/* 0x03e */
a858f4
	unsigned short		uc_seg_gs;			/* 0x040 */
a858f4
	unsigned short		uc_seg_ss;			/* 0x042 */
a858f4
	unsigned int		uc_eflags;			/* 0x044 */
a858f4
	unsigned long		uc_dr0;				/* 0x048 */
a858f4
	unsigned long		uc_dr1;				/* 0x050 */
a858f4
	unsigned long		uc_dr2;				/* 0x058 */
a858f4
	unsigned long		uc_dr3;				/* 0x060 */
a858f4
	unsigned long		uc_dr6;				/* 0x068 */
a858f4
	unsigned long		uc_dr7;				/* 0x070 */
a858f4
	unsigned long		uc_rax;				/* 0x078 */
a858f4
	unsigned long		uc_rcx;				/* 0x080 */
a858f4
	unsigned long		uc_rdx;				/* 0x088 */
a858f4
	unsigned long		uc_rbx;				/* 0x090 */
a858f4
	unsigned long		uc_rsp;				/* 0x098 */
a858f4
	unsigned long		uc_rbp;				/* 0x0a0 */
a858f4
	unsigned long		uc_rsi;				/* 0x0a8 */
a858f4
	unsigned long		uc_rdi;				/* 0x0b0 */
a858f4
	unsigned long		uc_r8;				/* 0x0b8 */
a858f4
	unsigned long		uc_r9;				/* 0x0c0 */
a858f4
	unsigned long		uc_r10;				/* 0x0c8 */
a858f4
	unsigned long		uc_r11;				/* 0x0d0 */
a858f4
	unsigned long		uc_r12;				/* 0x0d8 */
a858f4
	unsigned long		uc_r13;				/* 0x0e0 */
a858f4
	unsigned long		uc_r14;				/* 0x0e8 */
a858f4
	unsigned long		uc_r15;				/* 0x0f0 */
a858f4
	unsigned long		uc_rip;				/* 0x0f8 */
a858f4
a858f4
	union {
a858f4
		uc_xsave_fmt_t		uc_flt_save;		/* 0x100 */
a858f4
a858f4
		struct {
a858f4
			uc_m128a_t	uc_header[2];		/* 0x100 */
a858f4
			uc_m128a_t	uc_legacy[8];		/* 0x120 */
a858f4
		} uc_hdr;
a858f4
	} uc_flt;
a858f4
a858f4
	uc_m128a_t		uc_xmm0;			/* 0x1a0 */
a858f4
	uc_m128a_t		uc_xmm1;			/* 0x1b0 */
a858f4
	uc_m128a_t		uc_xmm2;			/* 0x1c0 */
a858f4
	uc_m128a_t		uc_xmm3;			/* 0x1d0 */
a858f4
	uc_m128a_t		uc_xmm4;			/* 0x1e0 */
a858f4
	uc_m128a_t		uc_xmm5;			/* 0x1f0 */
a858f4
	uc_m128a_t		uc_xmm6;			/* 0x200 */
a858f4
	uc_m128a_t		uc_xmm7;			/* 0x210 */
a858f4
	uc_m128a_t		uc_xmm8;			/* 0x220 */
a858f4
	uc_m128a_t		uc_xmm9;			/* 0x230 */
a858f4
	uc_m128a_t		uc_xmm10;			/* 0x240 */
a858f4
	uc_m128a_t		uc_xmm11;			/* 0x250 */
a858f4
	uc_m128a_t		uc_xmm12;			/* 0x260 */
a858f4
	uc_m128a_t		uc_xmm13;			/* 0x270 */
a858f4
	uc_m128a_t		uc_xmm14;			/* 0x280 */
a858f4
	uc_m128a_t		uc_xmm15;			/* 0x290 */
a858f4
	uc_m128a_t		uc_vector_register[26];		/* 0x300 */
a858f4
	unsigned long		uc_vector_control;		/* 0x4a0 */
a858f4
	unsigned long		uc_debug_control;		/* 0x4a8 */
a858f4
	unsigned long		uc_last_branch_to_rip;		/* 0x4b0 */
a858f4
	unsigned long		uc_last_branch_from_rip;	/* 0x4b8 */
a858f4
	unsigned long		uc_last_exception_to_rip;	/* 0x4c0 */
a858f4
	unsigned long		uc_last_exception_from_rip;	/* 0x4c8 */
31aa57
	unsigned long		uc_reserved[6];			/* 0x4d0 */
87820a
} mcontext_t;
87820a
87820a
struct sigaltstack {
0c7e93
	void *	ss_sp;
0c7e93
	int	ss_flags;
0c7e93
	size_t	ss_size;
87820a
};
87820a
87820a
typedef struct __ucontext {
afc9a8
	unsigned int		uc_csize;
afc9a8
	unsigned int		uc_msize;
afc9a8
	unsigned int		uc_pad[2];
afc9a8
	unsigned long		uc_flags;
afc9a8
	unsigned long		uc_opaquef[3];
afc9a8
	unsigned int		uc_opaquec[8];
afc9a8
	unsigned long		uc_reserved[32];
afc9a8
	unsigned long		uc_align[2];
afc9a8
	stack_t			uc_stack;
afc9a8
	struct __ucontext *	uc_link;
afc9a8
	sigset_t		uc_sigmask;
afc9a8
	mcontext_t		uc_mcontext;
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