From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D82CC4338F for ; Sat, 24 Jul 2021 16:59:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5ADB460C51 for ; Sat, 24 Jul 2021 16:59:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbhGXQTD (ORCPT ); Sat, 24 Jul 2021 12:19:03 -0400 Received: from 2.mo52.mail-out.ovh.net ([178.33.105.233]:60435 "EHLO 2.mo52.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhGXQTD (ORCPT ); Sat, 24 Jul 2021 12:19:03 -0400 X-Greylist: delayed 1187 seconds by postgrey-1.27 at vger.kernel.org; Sat, 24 Jul 2021 12:19:03 EDT Received: from mxplan6.mail.ovh.net (unknown [10.109.143.186]) by mo52.mail-out.ovh.net (Postfix) with ESMTPS id 0F6352855B0; Sat, 24 Jul 2021 18:39:47 +0200 (CEST) Received: from jwilk.net (37.59.142.101) by DAG4EX2.mxp6.local (172.16.2.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Sat, 24 Jul 2021 18:39:46 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-101G00451778917-4855-4d75-96d8-5ea852f7ca32, 8D5CC3B75530A0E1625F73973F455CDD864D3173) smtp.auth=jwilk@jwilk.net X-OVh-ClientIp: 5.173.65.118 Date: Sat, 24 Jul 2021 18:39:44 +0200 From: Jakub Wilk To: Viet Than CC: , Michael Kerrisk , Alejandro Colomar Subject: Re: [PATCH] time.2: wfix regarding year-2038 Message-ID: <20210724163944.cqp66jrpipj2khn6@jwilk.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Originating-IP: [37.59.142.101] X-ClientProxiedBy: DAG4EX1.mxp6.local (172.16.2.31) To DAG4EX2.mxp6.local (172.16.2.32) X-Ovh-Tracer-GUID: 8733785d-ad68-42fa-afda-30e448bd3e2d X-Ovh-Tracer-Id: 4778882156541171680 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrgedtgddutdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffukfhfgggtuggjfghisehttdertddtredvnecuhfhrohhmpeflrghkuhgsucghihhlkhcuoehjfihilhhksehjfihilhhkrdhnvghtqeenucggtffrrghtthgvrhhnpefhfedvfeehvefhkeeltdejgeelteefvdefvdduvdefgfduueeitdeitedvtdehgfenucfkpheptddrtddrtddrtddpfeejrdehledrudegvddruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehmgihplhgrnheirdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepjhifihhlkhesjhifihhlkhdrnhgvthdprhgtphhtthhopegrlhigrdhmrghnphgrghgvshesghhmrghilhdrtghomh Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org * Viet Than , 2021-07-24, 11:52: >The old description led me to believe 2038-01-19 03:14:08 UTC==2**31 This is correct. >therefore would still be valid, No, 2**31 is the first value that doesn't fit 32-bit time_t. > is a signed 32-bit integer and the clock ticks past the time 2**31 >-(2038-01-19 03:14:08 UTC, ignoring leap seconds). I suppose this should say "...the clock reaches the time 2**31", and then we can keep the parenthetical as is. -- Jakub Wilk