linux: Consolidate sigaction implementation
[glibc.git] / sysdeps / unix / sysv / linux / m68k / kernel_sigaction.h
blob54972feb13bf0b14d35eedaf0b1c38e9dd8867ba
1 #ifndef _KERNEL_SIGACTION_H
2 # define _KERNEL_SIGACTION_H
4 #include <signal.h>
6 #define SA_RESTORER 0x04000000
8 /* This is the sigaction structure from the Linux 3.2 kernel. */
9 struct kernel_sigaction
11 __sighandler_t k_sa_handler;
12 sigset_t sa_mask;
13 unsigned long sa_flags;
14 void (*sa_restorer) (void);
17 #define SET_SA_RESTORER(kact, act) \
18 (kact)->sa_restorer = (act)->sa_restorer
19 #define RESET_SA_RESTORER(act, kact) \
20 (act)->sa_restorer = (kact)->sa_restorer
22 #endif