18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_GENERIC_SIGNAL_DEFS_H 38c2ecf20Sopenharmony_ci#define __ASM_GENERIC_SIGNAL_DEFS_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/compiler.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef SIG_BLOCK 88c2ecf20Sopenharmony_ci#define SIG_BLOCK 0 /* for blocking signals */ 98c2ecf20Sopenharmony_ci#endif 108c2ecf20Sopenharmony_ci#ifndef SIG_UNBLOCK 118c2ecf20Sopenharmony_ci#define SIG_UNBLOCK 1 /* for unblocking signals */ 128c2ecf20Sopenharmony_ci#endif 138c2ecf20Sopenharmony_ci#ifndef SIG_SETMASK 148c2ecf20Sopenharmony_ci#define SIG_SETMASK 2 /* for setting the signal mask */ 158c2ecf20Sopenharmony_ci#endif 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 188c2ecf20Sopenharmony_citypedef void __signalfn_t(int); 198c2ecf20Sopenharmony_citypedef __signalfn_t __user *__sighandler_t; 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_citypedef void __restorefn_t(void); 228c2ecf20Sopenharmony_citypedef __restorefn_t __user *__sigrestore_t; 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */ 258c2ecf20Sopenharmony_ci#define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */ 268c2ecf20Sopenharmony_ci#define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */ 278c2ecf20Sopenharmony_ci#endif 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#endif /* __ASM_GENERIC_SIGNAL_DEFS_H */ 30