Blame sysdeps/unix/sysv/linux/x86/bits/siginfo-arch.h
|
Packit |
6c4009 |
/* Architecture-specific adjustments to siginfo_t. x86 version. */
|
|
Packit |
6c4009 |
#ifndef _BITS_SIGINFO_ARCH_H
|
|
Packit |
6c4009 |
#define _BITS_SIGINFO_ARCH_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#if defined __x86_64__ && __WORDSIZE == 32
|
|
Packit |
6c4009 |
/* si_utime and si_stime must be 4 byte aligned for x32 to match the
|
|
Packit |
6c4009 |
kernel. We align siginfo_t to 8 bytes so that si_utime and
|
|
Packit |
6c4009 |
si_stime are actually aligned to 8 bytes since their offsets are
|
|
Packit |
6c4009 |
multiple of 8 bytes. Note: with some compilers, the alignment
|
|
Packit |
6c4009 |
attribute would be ignored if it were put in __SI_CLOCK_T instead
|
|
Packit |
6c4009 |
of encapsulated in a typedef. */
|
|
Packit |
6c4009 |
typedef __clock_t __attribute__ ((__aligned__ (4))) __sigchld_clock_t;
|
|
Packit |
6c4009 |
# define __SI_ALIGNMENT __attribute__ ((__aligned__ (8)))
|
|
Packit |
6c4009 |
# define __SI_CLOCK_T __sigchld_clock_t
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif
|