From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 27F7A1F5A2 for ; Fri, 7 Feb 2020 13:01:23 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=Een5+MoZ+m1FBvxo/VagD3tiRXcj78ufItsRpMxW2tvajKmOiy8Fh 9X0kldt2T8sb9q0UlFJDj1KqSezCRg+LActqtAsMuX9VitVpHNksoZOy4lAroZy6 ctAcGoXWwU4REF98RLoo4URF6TtW6VlXei9pEQEw1anxUPFcsMc/IA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=VsJow+Rxhw3HqgAWPip24cLpExM=; b=yni3RHB6ikAvq2qpWxYyQBmtc3is i4Usty4FNxydSUlRODUZSNsymHTY3gklC0dKqeVRXJBLvFXhyQmNbQeoxhaYD7NV qMz7UM0EZUfGFGIHXeUYxPj73at/RL1rBtCaTY3u9E2DxoYiuqeiHTN7VWog4mZV 0XQhQop77VXngyo= Received: (qmail 118381 invoked by alias); 7 Feb 2020 13:01:04 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 118148 invoked by uid 89); 7 Feb 2020 13:00:43 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-out.m-online.net From: Lukasz Majewski To: Joseph Myers , Paul Eggert , Adhemerval Zanella Cc: Alistair Francis , Alistair Francis , GNU C Library , Siddhesh Poyarekar , Florian Weimer , Florian Weimer , Zack Weinberg , Carlos O'Donell , Andreas Schwab , Lukasz Majewski Subject: [PATCH 1/3] y2038: Introduce struct __utimbuf64 - new internal glibc type Date: Fri, 7 Feb 2020 14:00:07 +0100 Message-Id: <20200207130009.19396-2-lukma@denx.de> In-Reply-To: <20200207130009.19396-1-lukma@denx.de> References: <20200207130009.19396-1-lukma@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This type is a glibc's "internal" type to store file's access and modification times in __time64_t rather than __time_t, which makes it Y2038-proof. Build tests: ./src/scripts/build-many-glibcs.py glibcs --- include/time.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/time.h b/include/time.h index 389355a5a5..e38f5e32e6 100644 --- a/include/time.h +++ b/include/time.h @@ -109,6 +109,18 @@ struct __timeval64 }; #endif +#if __TIMESIZE == 64 +# define __utimbuf64 utimbuf +#else +/* The glibc Y2038-proof struct __utimbuf64 structure for file's access + and modification time values. */ +struct __utimbuf64 +{ + __time64_t actime; /* Access time. */ + __time64_t modtime; /* Modification time. */ +}; +#endif + #if __TIMESIZE == 64 # define __itimerval64 itimerval #else -- 2.20.1