blob: 81a5457739712673d60a210b5b4080fbe91f7381 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_PARISC_SIGNAL_H
2#define _ASM_PARISC_SIGNAL_H
3
David Howells70c1674f2012-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#define _NSIG 64
7/* bits-per-word, where word apparently means 'long' not 'int' */
8#define _NSIG_BPW BITS_PER_LONG
9#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011# ifndef __ASSEMBLY__
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Linus Torvalds1da177e2005-04-16 15:20:36 -070013/* Most things should be clean enough to redefine this at will, if care
14 is taken to make libc match. */
15
16typedef unsigned long old_sigset_t; /* at least 32 bits */
17
18typedef struct {
19 /* next_signal() assumes this is a long - no choice */
20 unsigned long sig[_NSIG_WORDS];
21} sigset_t;
22
Al Viro574c4862012-11-25 22:24:19 -050023#ifndef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -070024struct sigaction {
25 __sighandler_t sa_handler;
26 unsigned long sa_flags;
27 sigset_t sa_mask; /* mask last for extensibility */
28};
Al Viro574c4862012-11-25 22:24:19 -050029#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#include <asm/sigcontext.h>
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#endif /* !__ASSEMBLY */
34#endif /* _ASM_PARISC_SIGNAL_H */