1 #ifndef _ASMPPC64_SIGNAL_H
2 #define _ASMPPC64_SIGNAL_H
4 #include <linux/types.h>
5 #include <linux/compiler.h>
6 #include <asm/siginfo.h>
8 /* Avoid too many header ordering problems. */
13 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
15 typedef unsigned long old_sigset_t
; /* at least 32 bits */
18 unsigned long sig
[_NSIG_WORDS
];
59 /* These should not be considered constants from userland. */
61 #define SIGRTMAX _NSIG
66 * SA_ONSTACK is not currently supported, but will allow sigaltstack(2).
67 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
68 * SA_RESTART flag to get restarting signals (which were the default long ago)
69 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
70 * SA_RESETHAND clears the handler when the signal is delivered.
71 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
72 * SA_NODEFER prevents the current signal from being masked in the handler.
74 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
75 * Unix names RESETHAND and NODEFER respectively.
77 #define SA_NOCLDSTOP 0x00000001u
78 #define SA_NOCLDWAIT 0x00000002u
79 #define SA_SIGINFO 0x00000004u
80 #define SA_ONSTACK 0x08000000u
81 #define SA_RESTART 0x10000000u
82 #define SA_NODEFER 0x40000000u
83 #define SA_RESETHAND 0x80000000u
85 #define SA_NOMASK SA_NODEFER
86 #define SA_ONESHOT SA_RESETHAND
87 #define SA_INTERRUPT 0x20000000u /* dummy -- ignored */
89 #define SA_RESTORER 0x04000000u
92 * sigaltstack controls
97 #define MINSIGSTKSZ 2048
100 #include <asm-generic/signal.h>
102 struct old_sigaction
{
103 __sighandler_t sa_handler
;
104 old_sigset_t sa_mask
;
105 unsigned long sa_flags
;
106 __sigrestore_t sa_restorer
;
110 __sighandler_t sa_handler
;
111 unsigned long sa_flags
;
112 __sigrestore_t sa_restorer
;
113 sigset_t sa_mask
; /* mask last for extensibility */
120 typedef struct sigaltstack
{
128 extern int do_signal(sigset_t
*oldset
, struct pt_regs
*regs
);
129 extern int do_signal32(sigset_t
*oldset
, struct pt_regs
*regs
);
130 #define ptrace_signal_deliver(regs, cookie) do { } while (0)
132 #endif /* _ASMPPC64_SIGNAL_H */