blob: a5ba4a217fb96cf7aa0c83baa9ad3942239fdddf [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_M32R_SIGNAL_H
2#define _ASM_M32R_SIGNAL_H
3
David Howellsf7f4dc12012-12-19 16:07:18 +00004#include <uapi/asm/signal.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/* Most things should be clean enough to redefine this at will, if care
7 is taken to make libc match. */
8
9#define _NSIG 64
10#define _NSIG_BPW 32
11#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
12
13typedef unsigned long old_sigset_t; /* at least 32 bits */
14
15typedef struct {
16 unsigned long sig[_NSIG_WORDS];
17} sigset_t;
18
Linus Torvalds1da177e2005-04-16 15:20:36 -070019struct sigaction {
20 __sighandler_t sa_handler;
21 unsigned long sa_flags;
22 __sigrestore_t sa_restorer;
23 sigset_t sa_mask; /* mask last for extensibility */
24};
25
26struct k_sigaction {
27 struct sigaction sa;
28};
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#include <asm/sigcontext.h>
30
31#undef __HAVE_ARCH_SIG_BITOPS
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#endif /* _ASM_M32R_SIGNAL_H */