signal.h 887 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Modified 1998-2001, 2003
  3. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  4. *
  5. * Unfortunately, this file is being included by bits/signal.h in
  6. * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness.
  7. */
  8. #ifndef _ASM_IA64_SIGNAL_H
  9. #define _ASM_IA64_SIGNAL_H
  10. #include <uapi/asm/signal.h>
  11. #define _NSIG 64
  12. #define _NSIG_BPW 64
  13. #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
  14. # ifndef __ASSEMBLY__
  15. /* Most things should be clean enough to redefine this at will, if care
  16. is taken to make libc match. */
  17. typedef unsigned long old_sigset_t;
  18. typedef struct {
  19. unsigned long sig[_NSIG_WORDS];
  20. } sigset_t;
  21. struct sigaction {
  22. __sighandler_t sa_handler;
  23. unsigned long sa_flags;
  24. sigset_t sa_mask; /* mask last for extensibility */
  25. };
  26. struct k_sigaction {
  27. struct sigaction sa;
  28. };
  29. # include <asm/sigcontext.h>
  30. # endif /* !__ASSEMBLY__ */
  31. #endif /* _ASM_IA64_SIGNAL_H */