siginfo.h 546 B

1234567891011121314151617181920212223
  1. /*
  2. * Based on <asm-i386/siginfo.h>.
  3. *
  4. * Modified 1998-2002
  5. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  6. */
  7. #ifndef _ASM_IA64_SIGINFO_H
  8. #define _ASM_IA64_SIGINFO_H
  9. #include <linux/string.h>
  10. #include <uapi/asm/siginfo.h>
  11. static inline void
  12. copy_siginfo (siginfo_t *to, siginfo_t *from)
  13. {
  14. if (from->si_code < 0)
  15. memcpy(to, from, sizeof(siginfo_t));
  16. else
  17. /* _sigchld is currently the largest know union member */
  18. memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld));
  19. }
  20. #endif /* _ASM_IA64_SIGINFO_H */