glibc/time
Paul Eggert cafef3eb21 difftime can throw exceptions
difftime can signal an inexact conversion when converting to double,
so it should not be marked as pure or nothrow (BZ 31808).

Although we could do something more complicated, in which difftime is
plain on modern platforms but const and nothrow on obsolescent
platforms with 32-bit time_t, it hardly seems worth the trouble.
difftime is used so rarely that it's not worth taking pains to
optimize calls to it on obsolescent platforms.

Reviewed-by: DJ Delorie <dj@redhat.com>
2024-06-04 09:04:04 -07:00
..
bits/types Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03:00
sys Always define __USE_TIME_BITS64 when 64 bit time_t is used 2024-04-02 15:28:36 -03: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 [BZ #1468] 2005-10-14 17:20:58 +00:00
bug-asctime.c [BZ #1460] 2005-10-14 15:17:40 +00:00
bug-getdate1.c support: Introduce new subdirectory for test infrastructure 2016-12-09 08:18:27 +01:00
bug-mktime1.c [BZ #2821] 2006-09-09 16:56:29 +00:00
bug-mktime4.c mktime: new test for mktime failure 2018-11-15 22:59:33 +01:00
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 Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
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 * time/Makefile (tst-getdate-ENV): Add TZDIR to environment. 2001-07-18 09:43:36 +00:00
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 difftime can throw exceptions 2024-06-04 09:04:04 -07: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-01 09:03:26 -04:00
timespec_getres.c time: Allow later version licensing. 2024-05-01 09:03:26 -04:00
tst_wcsftime.c Don't use the argument to time. 2019-08-21 08:26:36 -04:00
tst-adjtime-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-adjtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock2-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-clock2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock_nanosleep-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock_settime-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-clock_settime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-clock-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-clock.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-cpuclock1-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-cpuclock1.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-ctime-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-ctime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-difftime-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-difftime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-ftime_l.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
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 y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-gmtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-itimer-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-itimer.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mktime2.c time/tst-mktime2: Improve test error reporting 2018-10-23 11:25:05 +02:00
tst-mktime3.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-mktime4-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-mktime4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-mktime.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-posixtz.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-settimeofday-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
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 Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 2023-02-07 10:15:09 +01:00
tst-strftime4.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-strftime.c Use '%z' instead of '%Z' on printf functions 2022-09-22 08:48:04 -03:00
tst-strptime2.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
tst-strptime3.c time: ensure failing strptime() tests are reported correctly 2015-03-06 06:06:26 -05:00
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 y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-timegm.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-timespec_get-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
tst-timespec_get.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-timespec_getres-time64.c y2038: Add test coverage 2021-06-15 10:42:11 -03:00
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 y2038: Add test coverage 2021-06-15 10:42:11 -03:00
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 Add C2X timespec_getres 2021-05-17 20:55:21 +00:00
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