1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_ASM_X86_SIGNAL_H
3 #define _UAPI_ASM_X86_SIGNAL_H
6 #include <linux/types.h>
7 #include <linux/compiler.h>
9 /* Avoid too many header ordering problems. */
13 /* Here we must cater to libcs that poke about in kernel headers. */
16 typedef unsigned long sigset_t
;
18 #endif /* __KERNEL__ */
19 #endif /* __ASSEMBLY__ */
60 /* These should not be considered constants from userland. */
62 #define SIGRTMAX _NSIG
64 #define SA_RESTORER 0x04000000
66 #define MINSIGSTKSZ 2048
69 #include <asm-generic/signal-defs.h>
75 /* Here we must cater to libcs that poke about in kernel headers. */
80 __sighandler_t _sa_handler
;
81 void (*_sa_sigaction
)(int, struct siginfo
*, void *);
84 unsigned long sa_flags
;
85 void (*sa_restorer
)(void);
88 #define sa_handler _u._sa_handler
89 #define sa_sigaction _u._sa_sigaction
94 __sighandler_t sa_handler
;
95 unsigned long sa_flags
;
96 __sigrestore_t sa_restorer
;
97 sigset_t sa_mask
; /* mask last for extensibility */
100 #endif /* !__i386__ */
101 # endif /* ! __KERNEL__ */
103 typedef struct sigaltstack
{
106 __kernel_size_t ss_size
;
109 #endif /* __ASSEMBLY__ */
111 #endif /* _UAPI_ASM_X86_SIGNAL_H */