siginfo-arch.h 729 B

1234567891011121314151617
  1. /* Architecture-specific adjustments to siginfo_t. x86 version. */
  2. #ifndef _BITS_SIGINFO_ARCH_H
  3. #define _BITS_SIGINFO_ARCH_H 1
  4. #if defined __x86_64__ && __WORDSIZE == 32
  5. /* si_utime and si_stime must be 4 byte aligned for x32 to match the
  6. kernel. We align siginfo_t to 8 bytes so that si_utime and
  7. si_stime are actually aligned to 8 bytes since their offsets are
  8. multiple of 8 bytes. Note: with some compilers, the alignment
  9. attribute would be ignored if it were put in __SI_CLOCK_T instead
  10. of encapsulated in a typedef. */
  11. typedef __clock_t __attribute__ ((__aligned__ (4))) __sigchld_clock_t;
  12. # define __SI_ALIGNMENT __attribute__ ((__aligned__ (8)))
  13. # define __SI_CLOCK_T __sigchld_clock_t
  14. #endif
  15. #endif