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
66 * SA_ONSTACK indicates that a registered stack_t will be used.
67 * SA_RESTART flag to get restarting signals (which were the default long ago)
68 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
69 * SA_RESETHAND clears the handler when the signal is delivered.
70 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
71 * SA_NODEFER prevents the current signal from being masked in the handler.
73 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
74 * Unix names RESETHAND and NODEFER respectively.
77 #define SA_ONSTACK 0x00000001
78 #define SA_RESTART 0x00000002
79 #define SA_NOCLDSTOP 0x00000004
80 #define SA_NODEFER 0x00000008
81 #define SA_RESETHAND 0x00000010
82 #define SA_NOCLDWAIT 0x00000020
83 #define SA_SIGINFO 0x00000040
85 #define SA_ONESHOT SA_RESETHAND
86 #define SA_NOMASK SA_NODEFER
88 #define MINSIGSTKSZ 4096
89 #define SIGSTKSZ 16384
91 #define SIG_BLOCK 1 /* for blocking signals */
92 #define SIG_UNBLOCK 2 /* for unblocking signals */
93 #define SIG_SETMASK 3 /* for setting the signal mask */
95 #include <asm-generic/signal-defs.h>
98 /* Here we must cater to libcs that poke about in kernel headers. */
102 __sighandler_t _sa_handler
;
103 void (*_sa_sigaction
)(int, struct siginfo
*, void *);
109 #define sa_handler _u._sa_handler
110 #define sa_sigaction _u._sa_sigaction
112 #endif /* __KERNEL__ */
114 typedef struct sigaltstack
{
120 /* sigstack(2) is deprecated, and will be withdrawn in a future version
121 of the X/Open CAE Specification. Use sigaltstack instead. It is only
122 implemented here for OSF/1 compatibility. */
130 #endif /* _UAPI_ASMAXP_SIGNAL_H */