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 B6ECB3858D39 for ; Wed, 8 Feb 2023 10:11:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B6ECB3858D39 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 E4A6120AC7 for ; Wed, 8 Feb 2023 10:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1675851085; 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=yFT9jmXWyprK+NfhQCbm/4ubOjJXaf1Lw1Of12wwsmM=; b=iMQGx6KYsjU56B2iVMYqFA/D9Y+Gm8QD4lR5l3Z3QuQiKiWxFZiU8864Z7aY7m3hIX9+pg uh8GAOp3Ck/7YlVQya2zp5UgsHGDx7Xn8LMbsNwSx2LnT5/MhuzYXFoaNzj9hUYtxmLbS+ U8io/I5+EG+ZL+Gv4QXzlnITQDdtHo8= Received: from kukuk-phex.future.suse.de (unknown [10.162.233.67]) by relay2.suse.de (Postfix) with ESMTP id DA7C22C142 for ; Wed, 8 Feb 2023 10:11:25 +0000 (UTC) Received: by kukuk-phex.future.suse.de (Postfix, from userid 358) id C994A5F133; Wed, 8 Feb 2023 11:11:25 +0100 (CET) Date: Wed, 8 Feb 2023 11:11:25 +0100 From: Thorsten Kukuk To: Thorsten Kukuk via Libc-alpha Subject: Re: 64-bit time_t and __WORDSIZE_TIME64_COMPAT32 Message-ID: <20230208101125.GA5099@suse.com> References: <20230208091821.GA2282@suse.com> <0869a6f98f29405eb431f63db593c490@DB6PR04MB3255.eurprd04.prod.outlook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0869a6f98f29405eb431f63db593c490@DB6PR04MB3255.eurprd04.prod.outlook.com> 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: > > > I think the only solution would be additional functions like for other > > 32bit time_t functions and use symbol versioning for it? > > That won't work as is because struct lastlog and struct utmp describe > the layout of the lastlog and utmp/wtmp files. That's the whole reason > for the existence of the __WORDSIZE_TIME64_COMPAT32 knob. That's solveable with e.g. creating a new name for them (.e.g /run/utmp64 instead of /run/utmp) 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)