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 10/27/2015 07:10 AM, Rich Felker wrote:
POSIX does not permit the TZ variable to affect the result of gmtime

Sure it does. If an application sets TZ to a value prohibited by POSIX, then the program is not a conforming application (in the POSIX sense), which means the implementation can do as it likes. The implementation can dump core, for example. Or the implementation's time functions can all start counting leap seconds, which is what glibc and several other C libraries do.

This sort of thing is routine. POSIX allows extensions like leap seconds, so long as the extensions don't get in the way of conforming applications.


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