blob: c8e4ec5a65824f54e729b26a09a23eca72f8f419 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_PARISC_SIGNAL_H
2#define _ASM_PARISC_SIGNAL_H
3
David Howells70c16742012-10-16 21:28:05 +01004#include <uapi/asm/signal.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7#define _NSIG 64
8/* bits-per-word, where word apparently means 'long' not 'int' */
9#define _NSIG_BPW BITS_PER_LONG
10#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012# ifndef __ASSEMBLY__
Helge Deller513e7ec2007-01-28 15:09:20 +010013#ifdef CONFIG_64BIT
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#else
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#endif
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017/* Most things should be clean enough to redefine this at will, if care
18 is taken to make libc match. */
19
20typedef unsigned long old_sigset_t; /* at least 32 bits */
21
22typedef struct {
23 /* next_signal() assumes this is a long - no choice */
24 unsigned long sig[_NSIG_WORDS];
25} sigset_t;
26
Al Viro574c4862012-11-25 22:24:19 -050027#ifndef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -070028struct sigaction {
29 __sighandler_t sa_handler;
30 unsigned long sa_flags;
31 sigset_t sa_mask; /* mask last for extensibility */
32};
Al Viro574c4862012-11-25 22:24:19 -050033#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#include <asm/sigcontext.h>
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037#endif /* !__ASSEMBLY */
38#endif /* _ASM_PARISC_SIGNAL_H */