[PATCH 1/3] system_data_types.7: time_t: Add Versions note

Zack Weinberg zackw@panix.com
Sun Oct 18 02:32:08 GMT 2020


On Sat, Oct 17, 2020 at 9:05 PM Paul Eggert <eggert@cs.ucla.edu> wrote:

> On 10/17/20 2:37 PM, Alejandro Colomar via Libc-alpha wrote:
> >   since POSIX.1-2008.
> > +.PP
> > +Prior to POSIX.1-2008,
> > +the type was either an integer type or a real-floating type.
>
> No actual POSIXish implementation ever made it a real-floating type,
> though, and
> that point should be made lest some conscientious programmer worry about a
> nonexistent porting issue.


It should, at this point, be possible to compile an *exhaustive* list of
all the operating systems where time_t wassn’t an integer and/or didn’t
 count from 1 Jan 1970. Perhaps that list would effectively make the point
that this is not a real portability concern.

zw

>


More information about the Libc-alpha mailing list