From 5d8aa97da2332a818579bbb24880f9d44715448a Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 19 Oct 2020 11:51:48 -0300 Subject: 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 --- time/sys/timeb.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'time/sys') diff --git a/time/sys/timeb.h b/time/sys/timeb.h index d6cdf29..bbad4eb 100644 --- a/time/sys/timeb.h +++ b/time/sys/timeb.h @@ -20,19 +20,9 @@ #include -#include - __BEGIN_DECLS -/* Structure returned by the `ftime' function. */ - -struct timeb - { - time_t time; /* Seconds since epoch, as from `time'. */ - unsigned short int millitm; /* Additional milliseconds. */ - short int timezone; /* Minutes west of GMT. */ - short int dstflag; /* Nonzero if Daylight Savings Time used. */ - }; +# include /* Fill in TIMEBUF with information about the current time. */ -- cgit v1.1