[PATCHv6 28/36] posix-clocks: Add align for timens_offsets

Thomas Gleixner tglx at linutronix.de
Fri Aug 16 06:36:29 UTC 2019


On Thu, 15 Aug 2019, Thomas Gleixner wrote:
> So using struct timespec64 for the offset is wrong. You really need to open
> code that offset storage if you don't want to end up with weird workarounds
> for BE.
> 
> Something like this:
> 
> struct timens_offs {
> 	  time64_t	tv_sec;
> 	  s64		tv_nsec;

Actually that should use 'int' for the tv_nsec part.

Thanks,

	tglx


More information about the Containers mailing list