ARM: Special-case "struct sigaction".
* include/signal.h (struct sigaction): Special-case for ARM.
This commit is contained in:
parent
24299d80ff
commit
21bf8a0d92
|
@ -126,6 +126,7 @@ typedef long sighandler_t;
|
|||
typedef void (*sighandler_t) (int);
|
||||
#endif
|
||||
|
||||
#if __i386__ || __x86_64__
|
||||
struct sigaction
|
||||
{
|
||||
union
|
||||
|
@ -144,7 +145,18 @@ struct sigaction
|
|||
//unsigned long sa_flags; // x86?
|
||||
void (*sa_restorer) (void);
|
||||
};
|
||||
|
||||
#else /* uapi */
|
||||
struct sigaction {
|
||||
union
|
||||
{
|
||||
sighandler_t sa_handler;
|
||||
void (*sa_sigaction) (int signum, siginfo_t *, void *);
|
||||
};
|
||||
unsigned long sa_flags;
|
||||
void (*sa_restorer) (void);
|
||||
sigset_t sa_mask;
|
||||
};
|
||||
#endif
|
||||
|
||||
#define SIG_DFL ((sighandler_t)0)
|
||||
#define SIG_IGN ((sighandler_t)1)
|
||||
|
|
Loading…
Reference in New Issue