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