1 #ifndef _ASMAXP_SIGNAL_H
2 #define _ASMAXP_SIGNAL_H
4 #include <linux/types.h>
6 /* Avoid too many header ordering problems. */
10 /* Digital Unix defines 64 signals. Most things should be clean enough
11 to redefine this at will, if care is taken to make libc match. */
15 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
17 typedef unsigned long old_sigset_t; /* at least 32 bits */
20 unsigned long sig[_NSIG_WORDS];
24 /* Here we must cater to libcs that poke about in kernel headers. */
27 typedef unsigned long sigset_t;
29 #endif /* __KERNEL__ */
33 * Linux/AXP has different signal numbers that Linux/i386: I'm trying
34 * to make it OSF/1 binary compatible, at least for normal binaries.
69 #define SIGPWR SIGINFO
70 #define SIGIOT SIGABRT
72 /* These should not be considered constants from userland. */
74 #define SIGRTMAX _NSIG
79 * SA_ONSTACK indicates that a registered stack_t will be used.
80 * SA_RESTART flag to get restarting signals (which were the default long ago)
81 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
82 * SA_RESETHAND clears the handler when the signal is delivered.
83 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
84 * SA_NODEFER prevents the current signal from being masked in the handler.
86 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
87 * Unix names RESETHAND and NODEFER respectively.
90 #define SA_ONSTACK 0x00000001
91 #define SA_RESTART 0x00000002
92 #define SA_NOCLDSTOP 0x00000004
93 #define SA_NODEFER 0x00000008
94 #define SA_RESETHAND 0x00000010
95 #define SA_NOCLDWAIT 0x00000020
96 #define SA_SIGINFO 0x00000040
98 #define SA_ONESHOT SA_RESETHAND
99 #define SA_NOMASK SA_NODEFER
102 * sigaltstack controls
107 #define MINSIGSTKSZ 4096
108 #define SIGSTKSZ 16384
110 #define SIG_BLOCK 1 /* for blocking signals */
111 #define SIG_UNBLOCK 2 /* for unblocking signals */
112 #define SIG_SETMASK 3 /* for setting the signal mask */
114 #include <asm-generic/signal.h>
117 struct osf_sigaction {
118 __sighandler_t sa_handler;
119 old_sigset_t sa_mask;
124 __sighandler_t sa_handler;
125 unsigned long sa_flags;
126 sigset_t sa_mask; /* mask last for extensibility */
131 __sigrestore_t ka_restorer;
134 /* Here we must cater to libcs that poke about in kernel headers. */
138 __sighandler_t _sa_handler;
139 void (*_sa_sigaction)(int, struct siginfo *, void *);
145 #define sa_handler _u._sa_handler
146 #define sa_sigaction _u._sa_sigaction
148 #endif /* __KERNEL__ */
150 typedef struct sigaltstack {
156 /* sigstack(2) is deprecated, and will be withdrawn in a future version
157 of the X/Open CAE Specification. Use sigaltstack instead. It is only
158 implemented here for OSF/1 compatibility. */
166 #include <asm/sigcontext.h>
168 #define ptrace_signal_deliver(regs, cookie) do { } while (0)