glibc/include/sys/timeb.h
Adhemerval Zanella 5d8aa97da2 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>
2020-10-27 09:54:50 -03:00

14 lines
266 B
C

#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