[RFC 4/6] ARC: Initial port to glibc
Joseph Myers
joseph at codesourcery.com
Tue Jun 27 10:02:31 PDT 2017
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 at codesourcery.com
More information about the linux-snps-arc
mailing list