From 5d8aa97da2332a818579bbb24880f9d44715448a Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 19 Oct 2020 11:51:48 -0300 Subject: [PATCH] time: Add 64-bit time_t support for ftime It basically calls the 64-bit __clock_gettime64 and adds the overflow check. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Lukasz Majewski --- include/bits/types/struct_timeb.h | 1 + include/struct___timeb64.h | 16 ++++++++++++++++ include/sys/timeb.h | 12 ++++++++++++ time/Makefile | 2 +- time/bits/types/struct_timeb.h | 15 +++++++++++++++ time/ftime.c | 28 ++++++++++++++++++++++++---- time/sys/timeb.h | 12 +----------- 7 files changed, 70 insertions(+), 16 deletions(-) create mode 100644 include/bits/types/struct_timeb.h create mode 100644 include/struct___timeb64.h create mode 100644 time/bits/types/struct_timeb.h diff --git a/include/bits/types/struct_timeb.h b/include/bits/types/struct_timeb.h new file mode 100644 index 0000000000..fef74d2f44 --- /dev/null +++ b/include/bits/types/struct_timeb.h @@ -0,0 +1 @@ +#include