kernel_sigaction.h 873 B

123456789101112131415161718192021222324252627282930313233343536
  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. /* In uclibc, userspace struct sigaction is identical to
  17. * "new" struct kernel_sigaction (one from the Linux 2.1.68 kernel).
  18. * See sigaction.h
  19. */
  20. extern int __syscall_sigaction(int, const struct old_kernel_sigaction *,
  21. struct old_kernel_sigaction *);
  22. #endif
  23. extern int __syscall_rt_sigaction(int, const struct sigaction *,
  24. struct sigaction *, size_t);
  25. #endif /* _BITS_SIGACTION_STRUCT_H */