time: Add 64-bit time_t support for ftime
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 19 Oct 2020 14:51:48 +0000 (11:51 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 27 Oct 2020 12:54:50 +0000 (09:54 -0300)
commit5d8aa97da2332a818579bbb24880f9d44715448a
tree649294cdab8924f0905bc9bdc6c03a24627582b9
parent30a0b167d347dd80807d167ee85bf58264fb8b76
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>
include/bits/types/struct_timeb.h [new file with mode: 0644]
include/struct___timeb64.h [new file with mode: 0644]
include/sys/timeb.h
time/Makefile
time/bits/types/struct_timeb.h [new file with mode: 0644]
time/ftime.c
time/sys/timeb.h