linux/arch/x86/include/asm/signal.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_SIGNAL_H
#define _ASM_X86_SIGNAL_H

#ifndef __ASSEMBLY__
#include <linux/linkage.h>

/* Most things should be clean enough to redefine this at will, if care
   is taken to make libc match.  */

#define _NSIG

#ifdef __i386__
#define _NSIG_BPW
#else
#define _NSIG_BPW
#endif

#define _NSIG_WORDS

old_sigset_t;		/* at least 32 bits */

sigset_t;

/* non-uapi in-kernel SA_FLAGS for those indicates ABI for a signal frame */
#define SA_IA32_ABI
#define SA_X32_ABI

#endif /* __ASSEMBLY__ */
#include <uapi/asm/signal.h>
#ifndef __ASSEMBLY__

#define __ARCH_HAS_SA_RESTORER

#include <asm/asm.h>
#include <uapi/asm/sigcontext.h>

#ifdef __i386__

#define __HAVE_ARCH_SIG_BITOPS

#define sigaddset(set,sig)

static inline void __gen_sigaddset(sigset_t *set, int _sig)
{}

static inline void __const_sigaddset(sigset_t *set, int _sig)
{}

#define sigdelset(set, sig)


static inline void __gen_sigdelset(sigset_t *set, int _sig)
{}

static inline void __const_sigdelset(sigset_t *set, int _sig)
{}

static inline int __const_sigismember(sigset_t *set, int _sig)
{}

static inline int __gen_sigismember(sigset_t *set, int _sig)
{}

#define sigismember(set, sig)

struct pt_regs;

#else /* __i386__ */

#undef __HAVE_ARCH_SIG_BITOPS

#endif /* !__i386__ */

#endif /* __ASSEMBLY__ */
#endif /* _ASM_X86_SIGNAL_H */