blob: 8c06bd1dfffc951cfce56da3b025163dd1d39a4d [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
Al Viro92a3ce42012-11-25 21:20:05 -050031#define __ARCH_HAS_KA_RESTORER
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#include <asm/sigcontext.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#endif