Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
signal.h
Go to the documentation of this file.
1 #ifndef _UAPI_ASM_SIGNAL_H
2 #define _UAPI_ASM_SIGNAL_H
3 
4 #include <linux/types.h>
5 
6 #ifndef __KERNEL__
7 /* Here we must cater to libcs that poke about in kernel headers. */
8 
9 #define NSIG 32
10 typedef unsigned long sigset_t;
11 
12 #endif /* !__KERNEL__ */
13 
14 #define SA_RESTORER 0x04000000 /* to get struct sigaction correct */
15 
16 #include <asm-generic/signal.h>
17 
18 #ifndef __KERNEL__
19 /* Here we must cater to libcs that poke about in kernel headers. */
20 
21 struct sigaction {
22  union {
24  void (*_sa_sigaction)(int, struct siginfo *, void *);
25  } _u;
27  unsigned long sa_flags;
28  void (*sa_restorer)(void);
29 };
30 
31 #define sa_handler _u._sa_handler
32 #define sa_sigaction _u._sa_sigaction
33 
34 #endif /* __KERNEL__ */
35 
36 #endif /* _UAPI_ASM_SIGNAL_H */