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: First draft of the Y2038 design document


On Mon, Oct 26, 2015 at 07:30:18PM -0700, Paul Eggert wrote:
> Joseph Myers wrote:
> >The following initial comments relate to version 23 of the wiki page.
> 
> Thanks, and I agree with most of these initial comments. One minor issue:
> 
> >An important issue you don't mention is the type of microseconds /
> >nanoseconds fields in timeval / timespec.  Those should continue to be
> >"long" where specified as such by POSIX.
> 
> Although I tend to agree, the x32 port doesn't conform to POSIX
> here, and I suppose this quirk needs to be addressed too.

Yes, this needs to be fixed. suseconds_t (tv_usec) can be kept as
whatever it is, or changed if convenient, but tv_nsec needs to be
long. This is not just a POSIX conformance issue but C11 too.

Rich


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