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 /include/sys | |
parent | 30a0b167d347dd80807d167ee85bf58264fb8b76 (diff) | |
download | glibc-5d8aa97da2332a818579bbb24880f9d44715448a.zip glibc-5d8aa97da2332a818579bbb24880f9d44715448a.tar.gz glibc-5d8aa97da2332a818579bbb24880f9d44715448a.tar.bz2 |
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 'include/sys')
-rw-r--r-- | include/sys/timeb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sys/timeb.h b/include/sys/timeb.h index 9f4509c..2b01daf 100644 --- a/include/sys/timeb.h +++ b/include/sys/timeb.h @@ -1 +1,13 @@ #include <time/sys/timeb.h> + +#ifndef _ISOMAC +# if __TIMESIZE == 64 +# define __timeb64 timeb +# define __ftime64 ftime +# else +# include <struct___timeb64.h> + +extern int __ftime64 (struct __timeb64 *) __nonnull ((1)); +libc_hidden_proto (__ftime64); +# endif +#endif |