From patchwork Mon Mar 11 14:59:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zack Weinberg X-Patchwork-Id: 1054507 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-100540-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=panix.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="d6Ln1+sg"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 44J1WJ4lqNz9s4V for ; Tue, 12 Mar 2019 02:00:44 +1100 (AEDT) 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:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=ML4PakiiCHiinF0NrJoHQdOc5mjjgavf0cTMxFftl2D c9rwVmybgYKhpIxsRRO0FQf2SGi52vmJH+4BOZ1HlMnXbkQO1UsODX3y9NzRT2QF tXEddR/mgUWMLoNCrmYFBUGbkTJaqDcDW8Cvujh4SAnLoCINbCB4K2J3T2Ts55dI = 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:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=CRFlpjO4TjDllYJGEv9OTpxdbu8=; b=d6Ln1+sgUSJv5yNNd Lqrx2ySEIcK3UB3WeFp8I+cv8tdnZYyI375XTqbFlga01SzTSqqJNcF91bCpeLcX /4IDUigrTVgr5QTavq5zuwEmQuoRqqwWz3aJOD4NTOHlsuwaEfH4rchCm+h+r9uI m7wh5gsPTXbLyKGnCC6VV8vhxc= Received: (qmail 29470 invoked by alias); 11 Mar 2019 14:59:58 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 29343 invoked by uid 89); 11 Mar 2019 14:59:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy=resource, measurement, unconditionally, epoch X-HELO: l2mail1.panix.com From: Zack Weinberg To: libc-alpha@sourceware.org Subject: [PATCH 5/8] Simplify definition of __time64_t. Date: Mon, 11 Mar 2019 10:59:49 -0400 Message-Id: <0ce3e22e38068c9857553dcd287c67d792a9f56b.1552315664.git.zackw@panix.com> In-Reply-To: References: MIME-Version: 1.0 bits/time64.h always sets __TIME64_T_TYPE to be __time_t when __TIMESIZE == 64, so we can unconditionally use __TIME64_T_TYPE to define __time64_t; we don’t need another conditional in bits/types.h. Also move the definition of __time64_t next to the definition of __time_t. * posix/bits/types.h (__time64_t): Unconditionally define as __TIME64_T_TYPE. Move definition next to __time_t. --- posix/bits/types.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/posix/bits/types.h b/posix/bits/types.h index 9ddbe8733c..1f079505a7 100644 --- a/posix/bits/types.h +++ b/posix/bits/types.h @@ -158,6 +158,7 @@ __STD_TYPE __RLIM_T_TYPE __rlim_t; /* Type for resource measurement. */ __STD_TYPE __RLIM64_T_TYPE __rlim64_t; /* Type for resource measurement (LFS). */ __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */ __STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */ +__STD_TYPE __TIME64_T_TYPE __time64_t; /* Seconds since the Epoch (Y2038). */ __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */ __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */ @@ -213,12 +214,6 @@ __STD_TYPE __U32_TYPE __socklen_t; It is not currently necessary for this to be machine-specific. */ typedef int __sig_atomic_t; -#if __TIMESIZE == 64 -# define __time64_t __time_t -#else -__STD_TYPE __TIME64_T_TYPE __time64_t; /* Seconds since the Epoch. */ -#endif - /* BSD: Size of a general-purpose integer register. */ __STD_TYPE __REGISTER_T_TYPE __register_t;