1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_ASMAXP_SIGNAL_H
3 #define _UAPI_ASMAXP_SIGNAL_H
5 #include <linux/types.h>
7 /* Avoid too many header ordering problems. */
11 /* Here we must cater to libcs that poke about in kernel headers. */
14 typedef unsigned long sigset_t;
16 #endif /* __KERNEL__ */
20 * Linux/AXP has different signal numbers that Linux/i386: I'm trying
21 * to make it OSF/1 binary compatible, at least for normal binaries.
56 #define SIGPWR SIGINFO
57 #define SIGIOT SIGABRT
59 /* These should not be considered constants from userland. */
61 #define SIGRTMAX _NSIG
63 #define SA_ONSTACK 0x00000001
64 #define SA_RESTART 0x00000002
65 #define SA_NOCLDSTOP 0x00000004
66 #define SA_NODEFER 0x00000008
67 #define SA_RESETHAND 0x00000010
68 #define SA_NOCLDWAIT 0x00000020
69 #define SA_SIGINFO 0x00000040
71 #define SA_ONESHOT SA_RESETHAND
72 #define SA_NOMASK SA_NODEFER
74 #define MINSIGSTKSZ 4096
75 #define SIGSTKSZ 16384
77 #define SIG_BLOCK 1 /* for blocking signals */
78 #define SIG_UNBLOCK 2 /* for unblocking signals */
79 #define SIG_SETMASK 3 /* for setting the signal mask */
81 #include <asm-generic/signal-defs.h>
84 /* Here we must cater to libcs that poke about in kernel headers. */
88 __sighandler_t _sa_handler;
89 void (*_sa_sigaction)(int, struct siginfo *, void *);
95 #define sa_handler _u._sa_handler
96 #define sa_sigaction _u._sa_sigaction
98 #endif /* __KERNEL__ */
100 typedef struct sigaltstack {
103 __kernel_size_t ss_size;
106 /* sigstack(2) is deprecated, and will be withdrawn in a future version
107 of the X/Open CAE Specification. Use sigaltstack instead. It is only
108 implemented here for OSF/1 compatibility. */
116 #endif /* _UAPI_ASMAXP_SIGNAL_H */