[PATCH 00/12] Y2038 preparation: use clock_[gs]ettime to implement the other time-getting and -setting functions

Paul Eggert eggert@cs.ucla.edu
Tue Aug 20 18:55:00 GMT 2019


Zack Weinberg wrote:

> If a 64-bit tv_sec value returned by
> the kernel is found to be greater than INT32_MAX, the caller will
> receive a saturated 32-bit struct timeval, { INT32_MAX, 0 },

Shouldn't that saturated value be { INT32_MAX, 999999 }?

PS. Thanks for all this work. The idea looks good.



More information about the Libc-alpha mailing list