1 #ifndef _UAPI_ASMAXP_SIGNAL_H
2 #define _UAPI_ASMAXP_SIGNAL_H
4 #include <linux/types.h>
6 /* Avoid too many header ordering problems. */
10 /* Here we must cater to libcs that poke about in kernel headers. */
13 typedef unsigned long sigset_t
;
15 #endif /* __KERNEL__ */
19 * Linux/AXP has different signal numbers that Linux/i386: I'm trying
20 * to make it OSF/1 binary compatible, at least for normal binaries.
55 #define SIGPWR SIGINFO
56 #define SIGIOT SIGABRT
58 /* These should not be considered constants from userland. */
60 #define SIGRTMAX _NSIG
65 * SA_ONSTACK indicates that a registered stack_t will be used.
66 * SA_RESTART flag to get restarting signals (which were the default long ago)
67 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
68 * SA_RESETHAND clears the handler when the signal is delivered.
69 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
70 * SA_NODEFER prevents the current signal from being masked in the handler.
72 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
73 * Unix names RESETHAND and NODEFER respectively.
76 #define SA_ONSTACK 0x00000001
77 #define SA_RESTART 0x00000002
78 #define SA_NOCLDSTOP 0x00000004
79 #define SA_NODEFER 0x00000008
80 #define SA_RESETHAND 0x00000010
81 #define SA_NOCLDWAIT 0x00000020
82 #define SA_SIGINFO 0x00000040
84 #define SA_ONESHOT SA_RESETHAND
85 #define SA_NOMASK SA_NODEFER
87 #define MINSIGSTKSZ 4096
88 #define SIGSTKSZ 16384
90 #define SIG_BLOCK 1 /* for blocking signals */
91 #define SIG_UNBLOCK 2 /* for unblocking signals */
92 #define SIG_SETMASK 3 /* for setting the signal mask */
94 #include <asm-generic/signal-defs.h>
97 /* Here we must cater to libcs that poke about in kernel headers. */
101 __sighandler_t _sa_handler
;
102 void (*_sa_sigaction
)(int, struct siginfo
*, void *);
108 #define sa_handler _u._sa_handler
109 #define sa_sigaction _u._sa_sigaction
111 #endif /* __KERNEL__ */
113 typedef struct sigaltstack
{
119 /* sigstack(2) is deprecated, and will be withdrawn in a future version
120 of the X/Open CAE Specification. Use sigaltstack instead. It is only
121 implemented here for OSF/1 compatibility. */
129 #endif /* _UAPI_ASMAXP_SIGNAL_H */