From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id C55AA3AA943F; Thu, 4 Mar 2021 17:38:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C55AA3AA943F 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/azanella/y2038] y2038: Add __USE_TIME_BITS64 support for struct utimbuf X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/y2038 X-Git-Oldrev: d798b1583d55cab875a3bc3fb42b2840c77f5d8d X-Git-Newrev: 20cfc367eba2e5e70c99c0846c5130bd0a6ea831 Message-Id: <20210304173845.C55AA3AA943F@sourceware.org> Date: Thu, 4 Mar 2021 17:38:45 +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: Thu, 04 Mar 2021 17:38:45 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=20cfc367eba2e5e70c99c0846c5130bd0a6ea831 commit 20cfc367eba2e5e70c99c0846c5130bd0a6ea831 Author: Adhemerval Zanella Date: Wed Feb 17 16:20:18 2021 -0300 y2038: Add __USE_TIME_BITS64 support for struct utimbuf The __USE_TIME_BITS64 is not defined internally yet. Diff: --- io/utime.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/io/utime.h b/io/utime.h index df2299e406..c7612d0838 100644 --- a/io/utime.h +++ b/io/utime.h @@ -35,8 +35,13 @@ __BEGIN_DECLS /* Structure describing file times. */ struct utimbuf { +#ifdef __USE_TIME_BITS64 + __time64_t actime; /* Access time. */ + __time64_t modtime; /* Modification time. */ +#else __time_t actime; /* Access time. */ __time_t modtime; /* Modification time. */ +#endif }; /* Set the access and modification times of FILE to those given in