From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 2B9833858430 for ; Tue, 7 Dec 2021 18:44:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B9833858430 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: aPceLkP7LSEuz3gXTEEJ5Vc5Ve74W9wiVNIBCzR5Ib6INeGfQfX/0Sj0MiPRFQj4ZicUmvdHiA 0vS/hZiN8souVWyEI7sb8m9sHjnIt6dQ3i3isMoDOVad3EspQvdKbMNfiJPwJNBVPXXH6uLrtT PUM8TbVLHnjYafE6HjNKyKINgEkz836cjr906mTuvaozi/W/SJxrf0SpcoloYnfrZdzt605wKN Drr2RSD6GHyFeCy6nEK0om/jrBo2SslxBcFfifqJy8cvnAWkOJQtAhSqSiQJkUWf+pNRWZgRfP zBif1D6bicIQHrEedLjjJBxI X-IronPort-AV: E=Sophos;i="5.87,295,1631606400"; d="scan'208";a="69247592" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 07 Dec 2021 10:44:03 -0800 IronPort-SDR: mn9eVMeLiyZ1P+Q7TRRREpdKP3XZYlZH0velsO2aAjgwhj0M8BywXD7OKq78Z7/qdNrtdGbLZ+ A2jaC2agRUrFBHH9scDaY1LtNI71+8kvb/HHCHY++EprJSPmJu0RsaM+qJ0ByaCogut1JRhmDC esdHMqqZyuOHrYAJQWgvWN0SbC6I7lySxwQX5NEplvWKmzVEuOBJMtLVa3W2DwOAzvQbGOgEbu dV9iyDIiKtF2Wqb7ZultPrZ7dH3/F6OAVNiTI0fPDWHyjSWnjl0HMSdxx7LRpwGwNd8EpZLrN6 K5M= Date: Tue, 7 Dec 2021 18:43:56 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: =?KOI8-R?B?zsHC?= CC: "Alejandro Colomar (man-pages)" , , Zack Weinberg , Subject: Re: [PATCH v3 3/3] system_data_types.7: note struct timespec::tv_nsec type for x32 and portability In-Reply-To: <20211207014114.2ctce657cnnq4frv@tarta.nabijaczleweli.xyz> Message-ID: References: <8ce5f7ace7a64a499d08228c3aeef870310a78ca.1638827989.git.nabijaczleweli@nabijaczleweli.xyz> <539b8054-a29e-32c0-14f0-c772543b2bb3@gmail.com> <20211206233138.ahvjamiftceufvmj@tarta.nabijaczleweli.xyz> <7c29781b-1030-44f9-b078-f5b09a14e321@gmail.com> <20211207014114.2ctce657cnnq4frv@tarta.nabijaczleweli.xyz> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3116.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2021 18:44:05 -0000 On Tue, 7 Dec 2021, наб via Libc-alpha wrote: > Looking through "timespec" on Aardvark for prior art reveals nothing, > except for a likely resolution to any proposal of this sort: > > Although we agree that it would have been better if these functions had > > been designed this way to begin with, we believe that making the change > > now will break existing, conforming code with no real benefit. Geoff Clare said (austin-group-l, Thu, 29 May 2014 16:20:22 +0100): C11 requires tv_nsec to be type long, which means that if we change it to be a new snseconds_t type in Issue 8, we would have to require that snseconds_t is defined as long in order not to conflict with C11. and Rich Felker (Thu, 29 May 2014 13:08:59 -0400): This is just a linux kernel bug which needs to be fixed. They have a number of other such bugs in x32 too. It's possible to work around it in userspace on the library side (we do this in musl libc) but it's a bit costly/painful and glibc does not do so yet. There's an open bug for it which I filed: and I don't see any other responses in that discussion. -- Joseph S. Myers joseph@codesourcery.com