signal.h 986 B

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