ARM: Special-case "struct sigaction".

* include/signal.h (struct sigaction): Special-case for ARM.
This commit is contained in:
Danny Milosavljevic 2019-03-14 00:32:56 +01:00 committed by Jan Nieuwenhuizen
parent 24299d80ff
commit 21bf8a0d92
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 13 additions and 1 deletions

View File

@ -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)