signal-defs.h 737 B

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