glibc/time
Adhemerval Zanella dd535f4f19 Always define __USE_TIME_BITS64 when 64 bit time_t is used
It was raised on libc-help [1] that some Linux kernel interfaces expect
the libc to define __USE_TIME_BITS64 to indicate the time_t size for the
kABI.  Different than defined by the initial y2038 design document [2],
the __USE_TIME_BITS64 is only defined for ABIs that support more than
one time_t size (by defining the _TIME_BITS for each module).

The 64 bit time_t redirects are now enabled using a different internal
define (__USE_TIME64_REDIRECTS). There is no expected change in semantic
or code generation.

Checked on x86_64-linux-gnu, i686-linux-gnu, aarch64-linux-gnu, and
arm-linux-gnueabi

[1] https://sourceware.org/pipermail/libc-help/2024-January/006557.html
[2] https://sourceware.org/glibc/wiki/Y2038ProofnessDesign

Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit a4ed0471d7)
2024-05-28 07:30:07 +02:00
..
bits/types Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-05-28 07:30:07 +02:00
sys Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-05-28 07:30:07 +02:00
adjtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
alt_digit.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
asctime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
bug-asctime_r.c
bug-asctime.c
bug-getdate1.c
bug-mktime1.c
bug-mktime4.c
clock_getcpuclockid.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock_getres.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock_gettime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock_settime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clocktest.c
ctime_r.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ctime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Depend
difftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
dysize.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
era.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
ftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
getdate.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
getitimer.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gettimeofday.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gmtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
lc-time-cleanup.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
localtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mktime-internal.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mktime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
offtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
setitimer.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
settimeofday.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
settimezone.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
stime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
strftime_l.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
strftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
strptime_l.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
strptime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test_time.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
time.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
time.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-05-28 07:30:07 +02:00
timegm.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
timespec_get.c time: Allow later version licensing. 2024-05-03 10:15:11 +02:00
timespec_getres.c time: Allow later version licensing. 2024-05-03 10:15:11 +02:00
tst_wcsftime.c
tst-adjtime-time64.c
tst-adjtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock2-time64.c
tst-clock2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock_nanosleep-time64.c
tst-clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock_settime-time64.c
tst-clock_settime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock-time64.c
tst-clock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cpuclock1-time64.c
tst-cpuclock1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-ctime-time64.c
tst-ctime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-difftime-time64.c
tst-difftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-ftime_l.c
tst-ftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-getdate.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-gmtime-time64.c
tst-gmtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-itimer-time64.c
tst-itimer.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mktime2.c
tst-mktime3.c
tst-mktime4-time64.c
tst-mktime4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mktime.c
tst-posixtz.c
tst-settimeofday-time64.c
tst-settimeofday.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-strftime2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-strftime3.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-strftime4-time64.c
tst-strftime4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-strftime.c
tst-strptime2.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
tst-strptime3.c
tst-strptime-whitespace.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-strptime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-timegm-time64.c
tst-timegm.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-timespec_get-time64.c
tst-timespec_get.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-timespec_getres-time64.c
tst-timespec_getres.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-tzname.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-y2039-time64.c
tst-y2039.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tzfile.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tzset.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Versions
wcsftime_l.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wcsftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00