signal-defs.h 800 B

1234567891011121314151617181920212223242526272829
  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. #ifndef SIG_BLOCK
  5. #define SIG_BLOCK 0 /* for blocking signals */
  6. #endif
  7. #ifndef SIG_UNBLOCK
  8. #define SIG_UNBLOCK 1 /* for unblocking signals */
  9. #endif
  10. #ifndef SIG_SETMASK
  11. #define SIG_SETMASK 2 /* for setting the signal mask */
  12. #endif
  13. #ifndef __ASSEMBLY__
  14. typedef void __signalfn_t(int);
  15. typedef __signalfn_t *__sighandler_t;
  16. typedef void __restorefn_t(void);
  17. typedef __restorefn_t *__sigrestore_t;
  18. #define SIG_DFL ((__sighandler_t)0) /* default signal handling */
  19. #define SIG_IGN ((__sighandler_t)1) /* ignore signal */
  20. #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */
  21. #endif
  22. #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */