1 #ifndef _ASM_PARISC_SIGNAL_H
2 #define _ASM_PARISC_SIGNAL_H
16 #define SIGSYS 12 /* Linux doesn't use this */
35 #define SIGLOST 30 /* Linux doesn't use this either */
37 #define SIGRESERVE SIGUNUSED
43 /* These should not be considered constants from userland. */
45 #define SIGRTMAX _NSIG /* it's 44 under HP/UX */
50 * SA_ONSTACK indicates that a registered stack_t will be used.
51 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
52 * SA_RESTART flag to get restarting signals (which were the default long ago)
53 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
54 * SA_RESETHAND clears the handler when the signal is delivered.
55 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
56 * SA_NODEFER prevents the current signal from being masked in the handler.
58 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
59 * Unix names RESETHAND and NODEFER respectively.
61 #define SA_ONSTACK 0x00000001
62 #define SA_RESETHAND 0x00000004
63 #define SA_NOCLDSTOP 0x00000008
64 #define SA_SIGINFO 0x00000010
65 #define SA_NODEFER 0x00000020
66 #define SA_RESTART 0x00000040
67 #define SA_NOCLDWAIT 0x00000080
68 #define _SA_SIGGFAULT 0x00000100 /* HPUX */
70 #define SA_NOMASK SA_NODEFER
71 #define SA_ONESHOT SA_RESETHAND
72 #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */
74 #define SA_RESTORER 0x04000000 /* obsolete -- ignored */
77 * sigaltstack controls
82 #define MINSIGSTKSZ 2048
88 /* bits-per-word, where word apparently means 'long' not 'int' */
89 #define _NSIG_BPW BITS_PER_LONG
90 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
93 * These values of sa_flags are used only by the kernel as part of the
94 * irq handling routines.
96 * SA_INTERRUPT is also used by the irq handling routines.
97 * SA_SHIRQ is for shared interrupt support on PCI and EISA.
99 #define SA_PROBE SA_ONESHOT
100 #define SA_SAMPLE_RANDOM SA_RESTART
101 #define SA_SHIRQ 0x04000000
103 #endif /* __KERNEL__ */
105 #define SIG_BLOCK 0 /* for blocking signals */
106 #define SIG_UNBLOCK 1 /* for unblocking signals */
107 #define SIG_SETMASK 2 /* for setting the signal mask */
109 #define SIG_DFL ((__sighandler_t)0) /* default signal handling */
110 #define SIG_IGN ((__sighandler_t)1) /* ignore signal */
111 #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */
113 # ifndef __ASSEMBLY__
115 # include <linux/types.h>
117 /* Avoid too many header ordering problems. */
120 /* Type of a signal handler. */
122 /* function pointers on 64-bit parisc are pointers to little structs and the
123 * compiler doesn't support code which changes or tests the address of
124 * the function in the little struct. This is really ugly -PB
126 typedef __kernel_caddr_t __sighandler_t
;
128 typedef void (*__sighandler_t
)(int);
131 typedef struct sigaltstack
{
139 /* Most things should be clean enough to redefine this at will, if care
140 is taken to make libc match. */
142 typedef unsigned long old_sigset_t
; /* at least 32 bits */
145 /* next_signal() assumes this is a long - no choice */
146 unsigned long sig
[_NSIG_WORDS
];
150 __sighandler_t sa_handler
;
151 unsigned long sa_flags
;
152 sigset_t sa_mask
; /* mask last for extensibility */
159 #define ptrace_signal_deliver(regs, cookie) do { } while (0)
161 #include <asm/sigcontext.h>
163 #endif /* __KERNEL__ */
164 #endif /* !__ASSEMBLY */
165 #endif /* _ASM_PARISC_SIGNAL_H */