From patchwork Tue Jun 19 12:16:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Albert ARIBAUD (3ADEV)" X-Patchwork-Id: 931572 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-93399-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=3adev.fr Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="CW7BQbTy"; 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 4196Qd2Tzcz9s37 for ; Tue, 19 Jun 2018 22:16:57 +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; q=dns; s= default; b=WF6kSzk/K5kiJxSsiGG0So6Lj+16NaMIgb37sGhiC5+fXcKXQc/C3 CyqtKnxxxvaliBfqMKQaoxm2oFlC4YmkMOKapSGOFDUXsdxOYQiIKllFd0o/zm3B DiWTj4M0qrKvUcTgNfJigu4VnvtI1VmDY7RTUEFdz3XoDrBxgyYZkI= 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; s=default; bh=mvzVs6Tocw5jHnV2p1odikssRDQ=; b=CW7BQbTyabWk/edb92QEoH3Eb8Sj 4VnWxIXiL03Rx8o2FIPCcPhi+MESJDMQVx2g1ujWbbA8kwMqttYS8+DZ8/laNAZ8 rvDgneZIae0gQX8SAwUyyDiM8GDfyOZ8KXyf4Wa6bin9cFSfOEyLIIa7SQXAEELD rFLDU/nlTgFW844= Received: (qmail 14937 invoked by alias); 19 Jun 2018 12:16:51 -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 14579 invoked by uid 89); 19 Jun 2018 12:16:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: smtp4-g21.free.fr From: "Albert ARIBAUD (3ADEV)" To: libc-alpha@sourceware.org Cc: "Albert ARIBAUD (3ADEV)" Subject: [PATCH 0/1] Y2038 support batch 2 - __mktime_internal Date: Tue, 19 Jun 2018 14:16:25 +0200 Message-Id: <20180619121626.24902-1-albert.aribaud@3adev.fr> This is the second batch of Y2038 support changes. It applies above the first batch. This change batch makes __mktime_internal compatible with 64-bit time. This implies creating 64-bit-time versions of its callers and turning their original versions into wrappers if they were 32-bit-time. These patches are functionally tested as part of the whole Y2038 patch series using the ad hoc framework at https://github.com/3adev/y2038 which runs tests using times below, at and beyond the Y2038 limit. These patches were also run through build-many-glibcs.py to ensure that existing glibc configurations are not broken. The minimal configuration set used is x86_64-linux-gnu, aarch64-linux-gnu, powerpc-linux-gnu, and arm-linux-gnueabi. Albert ARIBAUD (3ADEV) (1): Y2038: make __mktime_internal compatible with 64-bit-time include/time.h | 12 +++++----- time/mktime.c | 62 +++++++++++++++++++++++++++++++------------------- time/timegm.c | 24 ++++++++++++++----- 3 files changed, 63 insertions(+), 35 deletions(-)