1 #ifndef _ASMPPC_SIGNAL_H
2 #define _ASMPPC_SIGNAL_H
5 #include <linux/types.h>
6 #endif /* __KERNEL__ */
8 /* Avoid too many header ordering problems. */
11 /* Most things should be clean enough to redefine this at will, if care
12 is taken to make libc match. */
16 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
18 typedef unsigned long old_sigset_t
; /* at least 32 bits */
21 unsigned long sig
[_NSIG_WORDS
];
62 /* These should not be considered constants from userland. */
64 #define SIGRTMAX _NSIG
69 * SA_ONSTACK is not currently supported, but will allow sigaltstack(2).
70 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
71 * SA_RESTART flag to get restarting signals (which were the default long ago)
72 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
73 * SA_RESETHAND clears the handler when the signal is delivered.
74 * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
75 * SA_NODEFER prevents the current signal from being masked in the handler.
77 * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
78 * Unix names RESETHAND and NODEFER respectively.
80 #define SA_NOCLDSTOP 0x00000001
81 #define SA_NOCLDWAIT 0x00000002
82 #define SA_SIGINFO 0x00000004
83 #define SA_ONSTACK 0x08000000
84 #define SA_RESTART 0x10000000
85 #define SA_NODEFER 0x40000000
86 #define SA_RESETHAND 0x80000000
88 #define SA_NOMASK SA_NODEFER
89 #define SA_ONESHOT SA_RESETHAND
90 #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */
92 #define SA_RESTORER 0x04000000
95 * sigaltstack controls
100 #define MINSIGSTKSZ 2048
101 #define SIGSTKSZ 8192
103 #include <asm-generic/signal.h>
105 struct old_sigaction
{
106 __sighandler_t sa_handler
;
107 old_sigset_t sa_mask
;
108 unsigned long sa_flags
;
109 __sigrestore_t sa_restorer
;
113 __sighandler_t sa_handler
;
114 unsigned long sa_flags
;
115 __sigrestore_t sa_restorer
;
116 sigset_t sa_mask
; /* mask last for extensibility */
123 typedef struct sigaltstack
{
130 #include <asm/sigcontext.h>
131 #define ptrace_signal_deliver(regs, cookie) do { } while (0)
132 #endif /* __KERNEL__ */
135 * These are parameters to dbg_sigreturn syscall. They enable or
136 * disable certain debugging things that can be done from signal
137 * handlers. The dbg_sigreturn syscall *must* be called from a
138 * SA_SIGINFO signal so the ucontext can be passed to it. It takes an
139 * array of struct sig_dbg_op, which has the debug operations to
140 * perform before returning from the signal.
144 unsigned long dbg_value
;
147 /* Enable or disable single-stepping. The value sets the state. */
148 #define SIG_DBG_SINGLE_STEPPING 1
150 /* Enable or disable branch tracing. The value sets the state. */
151 #define SIG_DBG_BRANCH_TRACING 2