signal.h 769 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _UAPI_ASM_SIGNAL_H
  2. #define _UAPI_ASM_SIGNAL_H
  3. #include <linux/types.h>
  4. #ifndef __KERNEL__
  5. /* Here we must cater to libcs that poke about in kernel headers. */
  6. #define NSIG 32
  7. typedef unsigned long sigset_t;
  8. #endif /* !__KERNEL__ */
  9. #define SA_RESTORER 0x04000000 /* to get struct sigaction correct */
  10. #include <asm-generic/signal.h>
  11. #ifndef __KERNEL__
  12. /* Here we must cater to libcs that poke about in kernel headers. */
  13. struct sigaction {
  14. union {
  15. __sighandler_t _sa_handler;
  16. void (*_sa_sigaction)(int, struct siginfo *, void *);
  17. } _u;
  18. sigset_t sa_mask;
  19. unsigned long sa_flags;
  20. void (*sa_restorer)(void);
  21. };
  22. #define sa_handler _u._sa_handler
  23. #define sa_sigaction _u._sa_sigaction
  24. #endif /* __KERNEL__ */
  25. #endif /* _UAPI_ASM_SIGNAL_H */