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: [RFC 4/6] ARC: Initial port to glibc


On Tue, 27 Jun 2017, Vineet Gupta wrote:

> thx for this link - per comments there the contents of struct sigcontext could
> come from kernel which is
> 
>   struct sigcontext {
> 	struct user_regs_struct regs;
>   };
> 
> Now I'd rather prefer to not duplicate user_regs_struct here, but instead just
> refer to kernel variant, something like ...
> 
>   typedef struct user_regs_struct mcontext_t;
> 
> Will that work or do I absolutely need to redefine this in userspace hdrs ?

You have to redefine.  Neither "user_regs_struct" nor "regs" is an 
identifier permitted here by POSIX.

-- 
Joseph S. Myers
joseph@codesourcery.com


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