kernel_sigaction.h 721 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _BITS_SIGACTION_STRUCT_H
  2. #define _BITS_SIGACTION_STRUCT_H
  3. /* This file provides whatever this particular arch's kernel thinks
  4. * the sigaction struct should look like... */
  5. #if defined(__ia64__)
  6. #undef HAVE_SA_RESTORER
  7. #else
  8. #define HAVE_SA_RESTORER
  9. /* This is the sigaction structure from the Linux 2.1.20 kernel. */
  10. struct old_kernel_sigaction {
  11. __sighandler_t k_sa_handler;
  12. unsigned long sa_mask;
  13. unsigned long sa_flags;
  14. void (*sa_restorer)(void);
  15. };
  16. /* This is the sigaction structure from the Linux 2.1.68 kernel. */
  17. struct kernel_sigaction {
  18. __sighandler_t k_sa_handler;
  19. unsigned long sa_flags;
  20. void (*sa_restorer) (void);
  21. sigset_t sa_mask;
  22. };
  23. #endif
  24. #endif /* _BITS_SIGACTION_STRUCT_H */