signal.h 816 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _H8300_SIGNAL_H
  2. #define _H8300_SIGNAL_H
  3. #include <uapi/asm/signal.h>
  4. /* Most things should be clean enough to redefine this at will, if care
  5. is taken to make libc match. */
  6. #define _NSIG 64
  7. #define _NSIG_BPW 32
  8. #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
  9. typedef unsigned long old_sigset_t; /* at least 32 bits */
  10. typedef struct {
  11. unsigned long sig[_NSIG_WORDS];
  12. } sigset_t;
  13. struct old_sigaction {
  14. __sighandler_t sa_handler;
  15. old_sigset_t sa_mask;
  16. unsigned long sa_flags;
  17. void (*sa_restorer)(void);
  18. };
  19. struct sigaction {
  20. __sighandler_t sa_handler;
  21. unsigned long sa_flags;
  22. void (*sa_restorer)(void);
  23. sigset_t sa_mask; /* mask last for extensibility */
  24. };
  25. struct k_sigaction {
  26. struct sigaction sa;
  27. };
  28. #include <asm/sigcontext.h>
  29. #undef __HAVE_ARCH_SIG_BITOPS
  30. #endif /* _H8300_SIGNAL_H */