[RFC 4/6] ARC: Initial port to glibc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux