diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-10-19 11:51:48 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-10-27 09:54:50 -0300 |
commit | 5d8aa97da2332a818579bbb24880f9d44715448a (patch) | |
tree | 649294cdab8924f0905bc9bdc6c03a24627582b9 /time/sys | |
parent | 30a0b167d347dd80807d167ee85bf58264fb8b76 (diff) | |
download | glibc-5d8aa97da2332a818579bbb24880f9d44715448a.tar.gz |
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 <lukma@denx.de>
Diffstat (limited to 'time/sys')
-rw-r--r-- | time/sys/timeb.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/time/sys/timeb.h b/time/sys/timeb.h index d6cdf29111..bbad4eb8c0 100644 --- a/time/sys/timeb.h +++ b/time/sys/timeb.h @@ -20,19 +20,9 @@ #include <features.h> -#include <bits/types/time_t.h> - __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 <bits/types/struct_timeb.h> /* Fill in TIMEBUF with information about the current time. */ |