From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id CF77D3858D37; Tue, 27 Oct 2020 13:10:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF77D3858D37 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] time: Add 64-bit time_t support for ftime X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: 30a0b167d347dd80807d167ee85bf58264fb8b76 X-Git-Newrev: 5d8aa97da2332a818579bbb24880f9d44715448a Message-Id: <20201027131023.CF77D3858D37@sourceware.org> Date: Tue, 27 Oct 2020 13:10:23 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2020 13:10:23 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5d8aa97da2332a818579bbb24880f9d44715448a commit 5d8aa97da2332a818579bbb24880f9d44715448a Author: Adhemerval Zanella Date: Mon Oct 19 11:51:48 2020 -0300 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 Diff: --- include/bits/types/struct_timeb.h | 1 + include/struct___timeb64.h | 16 ++++++++++++++++ include/sys/timeb.h | 12 ++++++++++++ time/Makefile | 2 +- time/bits/types/struct_timeb.h | 15 +++++++++++++++ time/ftime.c | 28 ++++++++++++++++++++++++---- time/sys/timeb.h | 12 +----------- 7 files changed, 70 insertions(+), 16 deletions(-) diff --git a/include/bits/types/struct_timeb.h b/include/bits/types/struct_timeb.h new file mode 100644 index 0000000000..fef74d2f44 --- /dev/null +++ b/include/bits/types/struct_timeb.h @@ -0,0 +1 @@ +#include