Use anonymous union in x86_64/sys/user.h

This commit is contained in:
H.J. Lu 2012-05-18 04:07:51 -07:00
parent 37fb1dc057
commit 3707636e48
2 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2012-05-18 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
anonymous union.
2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use

View File

@ -82,14 +82,16 @@ struct user
__extension__ unsigned long long int start_stack;
__extension__ long long int signal;
int reserved;
__extension__ union
{
struct user_regs_struct* u_ar0;
# ifdef __ILP32__
unsigned int pad0;
# endif
__extension__ unsigned long long int __u_ar0_word;
};
__extension__ union
{
struct user_fpregs_struct* u_fpstate;
# ifdef __ILP32__
unsigned int pad1;
# endif
__extension__ unsigned long long int __u_fpstate_word;
};
__extension__ unsigned long long int magic;
char u_comm [32];
__extension__ unsigned long long int u_debugreg [8];