mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
aa2c47e0a6
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
36 lines
769 B
C
36 lines
769 B
C
#ifndef _UAPI_ASM_SIGNAL_H
|
|
#define _UAPI_ASM_SIGNAL_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#ifndef __KERNEL__
|
|
/* Here we must cater to libcs that poke about in kernel headers. */
|
|
|
|
#define NSIG 32
|
|
typedef unsigned long sigset_t;
|
|
|
|
#endif /* !__KERNEL__ */
|
|
|
|
#define SA_RESTORER 0x04000000 /* to get struct sigaction correct */
|
|
|
|
#include <asm-generic/signal.h>
|
|
|
|
#ifndef __KERNEL__
|
|
/* Here we must cater to libcs that poke about in kernel headers. */
|
|
|
|
struct sigaction {
|
|
union {
|
|
__sighandler_t _sa_handler;
|
|
void (*_sa_sigaction)(int, struct siginfo *, void *);
|
|
} _u;
|
|
sigset_t sa_mask;
|
|
unsigned long sa_flags;
|
|
void (*sa_restorer)(void);
|
|
};
|
|
|
|
#define sa_handler _u._sa_handler
|
|
#define sa_sigaction _u._sa_sigaction
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif /* _UAPI_ASM_SIGNAL_H */
|