From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 762473858D39 for ; Wed, 8 Feb 2023 10:22:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 762473858D39 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id A732F20B16 for ; Wed, 8 Feb 2023 10:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1675851746; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ntPzgjgJixvHbIGsTRASpJE91GxcwyI4ulrSDC313UQ=; b=O2HdHXki4tFYjZH4aV/zEOidf2zIiEP6xjYDtsFZU96fwt2jnM8P298ZlTE9D94045uS46 D6smC093in/81jm1L2xIhv0lMKQbtuawnh5IYG1+hOvfoJNHzfqlL9a+7sq8JgUMaCWUPa vEXNV5gL4i9giSk5t0Dzw6l1KBlwwKo= Received: from kukuk-phex.future.suse.de (unknown [10.162.233.67]) by relay2.suse.de (Postfix) with ESMTP id 9D1B42C141 for ; Wed, 8 Feb 2023 10:22:26 +0000 (UTC) Received: by kukuk-phex.future.suse.de (Postfix, from userid 358) id 5C6015F137; Wed, 8 Feb 2023 11:22:25 +0100 (CET) Date: Wed, 8 Feb 2023 11:22:25 +0100 From: Thorsten Kukuk To: Thorsten Kukuk via Libc-alpha Subject: Re: 64-bit time_t and __WORDSIZE_TIME64_COMPAT32 Message-ID: <20230208102225.GA5543@suse.com> References: <20230208091821.GA2282@suse.com> <0869a6f98f29405eb431f63db593c490@DB6PR04MB3255.eurprd04.prod.outlook.com> <20230208101125.GA5099@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Feb 08, Andreas Schwab wrote: > On Feb 08 2023, Thorsten Kukuk via Libc-alpha wrote: > > > That's solveable with e.g. creating a new name for them (.e.g > > /run/utmp64 instead of /run/utmp) > > That needs to be coordinated with all consumers and producers of those > files. If the consumers and producers uses the glibc API for this, you just need to recompile them with the new interface. No need to change any paths in the source code, the fitting ones comes with glibc, too. If they declare utmp and the file locations at their own, you need to modify them anyways. And if you do that, you can change them to use the official glibc API and not their own written one. But at least it's a solution to solve the Y2038 problem in glibc for 64bit architectures like x86-64. And for utmp you can ignore the on disk file format anyways, at it will not survive a reboot. Not sure about lastlog, wtmp is a problem. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)