This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add x32 support to <sys/user.h>


>    struct user_regs_struct*	u_ar0;
> +# ifdef __ILP32__
> +  unsigned int			pad0;
> +# endif
>    struct user_fpregs_struct*	u_fpstate;
> -  unsigned long int		magic;
> +# ifdef __ILP32__
> +  unsigned int			pad1;
> +# endif
> +  __extension__ unsigned long long int	magic;

For consistency all fields should have names starting with "u_".
But I prefer the union trick over #ifdef'd padding fields.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]