signal.h 787 B

12345678910111213141516171819202122232425262728
  1. #ifndef __ASM_GENERIC_SIGNAL_H
  2. #define __ASM_GENERIC_SIGNAL_H
  3. #include <linux/compiler.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 __user *__sighandler_t;
  16. typedef void __restorefn_t(void);
  17. typedef __restorefn_t __user *__sigrestore_t;
  18. #define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */
  19. #define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */
  20. #define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */
  21. #endif
  22. #endif /* __ASM_GENERIC_SIGNAL_H */