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: [[PATCH RFC 2] 02/63] Y2038: add function __difftime64


On 05/02/2018 12:46 AM, Florian Weimer wrote:

Yes, you can simplify the code if you want, assuming that time_t doesn't have padding bits, and even hard-code the matching unsigned type.

The simplified code is already in difftime.c. All he needs to do is to compile difftime.c with the right flags, and perhaps make some trivial changes to it that won't affect its current use.

I'd be more impressed by his request to rewrite the code from scratch if his attempt to do so hadn't been so buggy. Really, we'll all be better off using the code we already have, as that code should work in this new environment with only trivial changes, and we can then focus on what our main problem is rather than have to delve back into the intricacies of time_t arithmetic and calendars and whatnot.


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