Lines 1-22
Link Here
|
1 |
#ifndef _KERNEL_SIGACTION_H |
1 |
/* m68k uses the generic Linux UAPI but defines SA_RESTORER. */ |
2 |
# define _KERNEL_SIGACTION_H |
|
|
3 |
|
4 |
#include <signal.h> |
5 |
|
6 |
#define SA_RESTORER 0x04000000 |
2 |
#define SA_RESTORER 0x04000000 |
|
|
3 |
#include <sysdeps/unix/sysv/linux/kernel_sigaction.h> |
7 |
|
4 |
|
8 |
/* This is the sigaction structure from the Linux 3.2 kernel. */ |
5 |
#define SET_SA_RESTORER(kact, act) \ |
9 |
struct kernel_sigaction |
|
|
10 |
{ |
11 |
__sighandler_t k_sa_handler; |
12 |
sigset_t sa_mask; |
13 |
unsigned long sa_flags; |
14 |
void (*sa_restorer) (void); |
15 |
}; |
16 |
|
17 |
#define SET_SA_RESTORER(kact, act) \ |
18 |
(kact)->sa_restorer = (act)->sa_restorer |
6 |
(kact)->sa_restorer = (act)->sa_restorer |
19 |
#define RESET_SA_RESTORER(act, kact) \ |
7 |
#define RESET_SA_RESTORER(act, kact) \ |
20 |
(act)->sa_restorer = (kact)->sa_restorer |
8 |
(act)->sa_restorer = (kact)->sa_restorer |
21 |
|
|
|
22 |
#endif |
23 |
- |