signal-defs.h 865 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __ASM_GENERIC_SIGNAL_DEFS_H
  3. #define __ASM_GENERIC_SIGNAL_DEFS_H
  4. #include <linux/compiler.h>
  5. #ifndef SIG_BLOCK
  6. #define SIG_BLOCK 0 /* for blocking signals */
  7. #endif
  8. #ifndef SIG_UNBLOCK
  9. #define SIG_UNBLOCK 1 /* for unblocking signals */
  10. #endif
  11. #ifndef SIG_SETMASK
  12. #define SIG_SETMASK 2 /* for setting the signal mask */
  13. #endif
  14. #ifndef __ASSEMBLY__
  15. typedef void __signalfn_t(int);
  16. typedef __signalfn_t __user *__sighandler_t;
  17. typedef void __restorefn_t(void);
  18. typedef __restorefn_t __user *__sigrestore_t;
  19. #define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */
  20. #define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */
  21. #define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */
  22. #endif
  23. #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */