This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: First draft of the Y2038 design document
- From: Rich Felker <dalias at libc dot org>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: Joseph Myers <joseph at codesourcery dot com>, Albert ARIBAUD <albert dot aribaud at 3adev dot fr>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 26 Oct 2015 23:38:07 -0400
- Subject: Re: First draft of the Y2038 design document
- Authentication-results: sourceware.org; auth=none
- References: <20151026001252 dot 590e09c1 dot albert dot aribaud at 3adev dot fr> <alpine dot DEB dot 2 dot 10 dot 1510261313320 dot 22465 at digraph dot polyomino dot org dot uk> <562EE1BA dot 3010506 at cs dot ucla dot edu>
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