/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_X86_SIGNAL_H
#define _ASM_X86_SIGNAL_H
/* Avoid too many header ordering problems. */
/* Here we must cater to libcs that poke about in kernel headers. */
typedef unsigned long sigset_t;
#endif /* __ASSEMBLY__ */
/* These should not be considered constants from userland. */
* SA_ONSTACK indicates that a registered stack_t will be used.
* SA_RESTART flag to get restarting signals (which were the default long ago)
* SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
* SA_RESETHAND clears the handler when the signal is delivered.
* SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
* SA_NODEFER prevents the current signal from being masked in the handler.
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
* Unix names RESETHAND and NODEFER respectively.
#define SA_NOCLDSTOP 0x00000001u
#define SA_NOCLDWAIT 0x00000002u
#define SA_SIGINFO 0x00000004u
#define SA_ONSTACK 0x08000000u
#define SA_RESTART 0x10000000u
#define SA_NODEFER 0x40000000u
#define SA_RESETHAND 0x80000000u
#define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND
#define SA_RESTORER 0x04000000
#include <asm-generic/signal-defs.h>
/* Here we must cater to libcs that poke about in kernel headers. */
__sighandler_t _sa_handler;
void (*_sa_sigaction)(int, struct siginfo *, void *);
void (*sa_restorer)(void);
#define sa_handler _u._sa_handler
#define sa_sigaction _u._sa_sigaction
__sighandler_t sa_handler;
__sigrestore_t sa_restorer;
sigset_t sa_mask; /* mask last for extensibility */
typedef struct sigaltstack {
#endif /* __ASSEMBLY__ */
#endif /* _ASM_X86_SIGNAL_H */