Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1152768ybl; Fri, 10 Jan 2020 13:05:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyExh8HQ9dSyYh3UPVBnMI1V95YfJoTt8U5RLm0+aQ4yT62Yg19ebwUa5cUlDyuyz/9S5U+ X-Received: by 2002:aca:2114:: with SMTP id 20mr3914855oiz.9.1578690339574; Fri, 10 Jan 2020 13:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578690339; cv=none; d=google.com; s=arc-20160816; b=AYdNLgs6xW+4sAoTuTM2GXXGinzZL1psOPn56d6yuKmmKj7D8K0qcehop0VBLuO9zR ILLx6pv/2lxFiGTc09DbH3sY62pSSPX+J4g0wlbHsq+iT2N6o8j+aN5scKRKp6Bwyj0A AG43Z1t/1z2EbzdKrduvBIctCU32DyYr4+ySBR1qfcvF4eeOcvItd+k4iAOTvr8hs8QO qniP2wj4Rq9xjuPLeikOvfEg4VTTiVXMMUzGclIAzeMQYgPhZMXmRiNX53RbeWM7viun mnBMB6RaeLxZa7kUe7j89H8sSxhpWDTNo8j+Y1P4HAf1wkqMK2zBH45tYkGwQIFMYto1 3Dsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Y3TbxI9v/bDsmWtd9fBeqY+0xi04Jw9MZ6y3jBgiO7Q=; b=0LENNtzj1PnHYtMiCxsWV5T+pxkbEkmX7ToOmwZDEteeXGEKJlLvqa9ZO5Balj15dc K5ZXVlz8cqEgyAMCA19qVun5v9E+3o07wrcAHc5tqlUCtTi77wuBC9R3hQo0YWyKrEgj Dd66X85NgdL5bRgSGkeomYlC6bcHGFa1EkBHiUk7/b7L175BM65E5aPZarob2siHP7d9 tyiKM/oDsanq5RQoAVpYqhsKd4NRKfUqDcfZ04+Ok7b1brGauj13Zd9ak7zV90CGkKMO BIWlhRICIOOaXhZqNxzQRQ+ap0WlDhbj7I8Yj8MAoVR2+uXI+6VPJGZp8WOckogIUCRR V+Lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=libc.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si1571334oip.248.2020.01.10.13.05.17; Fri, 10 Jan 2020 13:05:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=libc.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgAJVFQ (ORCPT + 99 others); Fri, 10 Jan 2020 16:05:16 -0500 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:52242 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbgAJVFP (ORCPT ); Fri, 10 Jan 2020 16:05:15 -0500 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1iq1Sy-0002du-00; Fri, 10 Jan 2020 21:05:12 +0000 Date: Fri, 10 Jan 2020 16:05:12 -0500 From: Rich Felker To: Arnd Bergmann Cc: Bluez mailing list , y2038 Mailman List , Johan Hedberg , Linux Kernel Mailing List , Deepa Dinamani , Guy Harris Subject: Re: [PATCH] hcidump: add support for time64 based libc Message-ID: <20200110210512.GB30412@brightrain.aerifal.cx> References: <20200110204903.3495832-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110204903.3495832-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Fri, Jan 10, 2020 at 09:49:03PM +0100, Arnd Bergmann wrote: > musl is moving to a default of 64-bit time_t on all architectures, > glibc will follow later. This breaks reading timestamps through cmsg > data with the HCI_TIME_STAMP socket option. > > Change both copies of hcidump to work on all architectures. This also > fixes x32, which has never worked, and carefully avoids breaking sparc64, > which is another special case. Won't it be broken on rv32 though? Based on my (albeit perhaps incomplete) reading of the thread, I think use of HCI_TIME_STAMP should just be dropped entirely in favor of using SO_TIMESTAMPNS -- my understanding was that it works with bluetooth sockets too. Rich