blob: 8a1ac28cd56208ea4b9db87740f72f3bf061371b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASMAXP_SIGNAL_H
2#define _ASMAXP_SIGNAL_H
3
David Howells96433f6e2012-12-17 13:47:09 +00004#include <uapi/asm/signal.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/* Digital Unix defines 64 signals. Most things should be clean enough
7 to redefine this at will, if care is taken to make libc match. */
8
9#define _NSIG 64
10#define _NSIG_BPW 64
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 osf_sigaction {
20 __sighandler_t sa_handler;
21 old_sigset_t sa_mask;
22 int sa_flags;
23};
24
25struct sigaction {
26 __sighandler_t sa_handler;
27 unsigned long sa_flags;
28 sigset_t sa_mask; /* mask last for extensibility */
29};
30
31struct k_sigaction {
32 struct sigaction sa;
33 __sigrestore_t ka_restorer;
34};
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#include <asm/sigcontext.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070036#endif