From patchwork Thu Sep 7 22:41:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Albert ARIBAUD (3ADEV)" X-Patchwork-Id: 811195 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-84319-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="YoQRZYT9"; 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 3xpFpH71rsz9sMN for ; Fri, 8 Sep 2017 08:42:47 +1000 (AEST) 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; q=dns; s=default; b=YPKy+33osJR3w/z8OtypMT9To4SDmFs ovxX2xLt8itZDbeUetWdDLsAGxytN1XsudwSBw4rftI7FbKZSi3f3zVEZxbd5Xbt j2z/RwQx6xMNL/l8+hxs6RTQrdc8m3TzmKWc3bi67GsPAPjcv/AoJlFzWhn1I3Vb y0lbYbxHNWbc= 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; s=default; bh=IfE8ePn4WLHKy0187LnjOBZnp5w=; b=YoQRZ YT9SNLdTe9tI3Xu1M+oFcE+UTh4FRGAwxetDyWSddP4j7CDYioZTjMvymTGsaLiv QHsVIMkpTwhOp3aVKUpsLFLFtvvcboYEUzexiX+kA3PWkUCQ+DGcAAgKPnu7514k wxpjdE953A32kQyuQAuA6QRPgfGxxJpeHlbogg= Received: (qmail 56353 invoked by alias); 7 Sep 2017 22:42:34 -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 56212 invoked by uid 89); 7 Sep 2017 22:42:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=HCc:D*fr, Hx-languages-length:1461 X-HELO: smtp6-g21.free.fr From: "Albert ARIBAUD (3ADEV)" To: libc-alpha@sourceware.org Cc: "Albert ARIBAUD (3ADEV)" Subject: [RFC PATCH 01/52] Y2038: add type __time64_t Date: Fri, 8 Sep 2017 00:41:28 +0200 Message-Id: <20170907224219.12483-2-albert.aribaud@3adev.fr> In-Reply-To: <20170907224219.12483-1-albert.aribaud@3adev.fr> References: <20170907224219.12483-1-albert.aribaud@3adev.fr> Signed-off-by: Albert ARIBAUD (3ADEV) --- bits/typesizes.h | 1 + posix/bits/types.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bits/typesizes.h b/bits/typesizes.h index d407bf4067..a916cc1d0d 100644 --- a/bits/typesizes.h +++ b/bits/typesizes.h @@ -48,6 +48,7 @@ #define __ID_T_TYPE __U32_TYPE #define __CLOCK_T_TYPE __SLONGWORD_TYPE #define __TIME_T_TYPE __SLONGWORD_TYPE +#define __TIME64_T_TYPE __SQUAD_TYPE #define __USECONDS_T_TYPE __U32_TYPE #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE #define __DADDR_T_TYPE __S32_TYPE diff --git a/posix/bits/types.h b/posix/bits/types.h index e2f73a89e4..26f1e4542f 100644 --- a/posix/bits/types.h +++ b/posix/bits/types.h @@ -145,7 +145,8 @@ __STD_TYPE __CLOCK_T_TYPE __clock_t; /* Type of CPU usage counts. */ __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 __TIME_T_TYPE __time_t; /* Seconds since the Epoch, Y2038-unsafe. */ +__STD_TYPE __TIME64_T_TYPE __time64_t; /* Seconds since the Epoch, Y2038-safe. */ __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */ __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */