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] | |
Hi Paul, > Lukasz Majewski wrote: > > > Shouldn't we have: return s == t; ? > > Yes, absolutely. Thanks for catching that. I tested only the Gnulib > version, and Gnulib doesn't use that code. > > Do you have glibc tests to catch bugs like this? If no, please add > writing some tests to your lists of things to do. Please find some patches to be applied on top of your patch to make the Y2038 system working: https://github.com/lmajewski/y2038_glibc/commits/mktime_v3_fixes In short: - The __time64_t needs to be exported to user space as it is a building block for Y2038 safe 32 bit systems' structures (like struct __timeval64). In the above use case the "normal" timeval is implicitly replaced with __timeval64. - The correct condition for "in_time_t_range()" - Some fixes necessary to make glibc building Please consider merging those changes to your patch. > > > In the time/mktime.c there is: > > weak_alias (mktime, timelocal), which makes the timelocal calls > > aliases to mktime for time_t 32 and 64 bit (for Y2038 the proper > > __REDIRECT will be added). > > Sorry, I'm a bit lost here. How will that __REDIRECT work, exactly? > Should it be part of this patch, or part of a later patch? > > >> Come to think of it, user code shouldn't see __time64_t > >> either.... > > > > Is that the reason for removing __time64_t definition from > > posix/bits/types.h ? > > Yes. > > In the time/mktime-internal.h you added a comment regarding BeOS > > users and posix time_t - do you know any :-) ? > > Just one. :-) See: > > https://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00470.html > > Bruno's most recent BeOS-related submission to Gnulib was in October > 2017: > > https://lists.gnu.org/r/bug-gnulib/2017-10/msg00098.html Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
Attachment:
pgpaznuHhn2ea.pgp
Description: OpenPGP digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |