From owner-svn-src-head@FreeBSD.ORG Tue Feb 26 20:13:11 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A6E178D9; Tue, 26 Feb 2013 20:13:11 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by mx1.freebsd.org (Postfix) with ESMTP id AA8F01CD3; Tue, 26 Feb 2013 20:13:10 +0000 (UTC) Received: by mail-wi0-f173.google.com with SMTP id hq4so5379436wib.6 for ; Tue, 26 Feb 2013 12:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5XixmqRwAL3QcXC0xiGkwjLvpKPuO07FZ9n5CxfiBN4=; b=VKr1H0YW3/6IBwdQe/YIN+xrsn/lXwiWHH+GQ5VpUyBacnN8/3NqXgspGUs0bTiQGK /RdZyZVUHdKXRUikSEKs2QIeqLiSO09S5O7gWO/CTXI1Z6sM2v5CjDkA/KQ5pIi9hnOk kAM6jSBUOGABdyHT8np9ZEZ3KqxKogVRiTftKh0bNGXoIEYJ9J5dkpRjroxoo1e91YiD czPh/iXAOehRzY8uhsFIdxz3RIgfaCRAJu/mxJDWD67kF9wDPB6E7S0Xd/YjfPRnsd14 RyZM98BqtDu3R3oWLlGGVUKtvN7s2QJ3IfgJmnvzfFVN74eM2wbrswdx4OfG6kWOqhPx cJ/Q== MIME-Version: 1.0 X-Received: by 10.194.62.170 with SMTP id z10mr28981326wjr.34.1361909584067; Tue, 26 Feb 2013 12:13:04 -0800 (PST) Sender: davide.italiano@gmail.com Received: by 10.180.105.197 with HTTP; Tue, 26 Feb 2013 12:13:03 -0800 (PST) In-Reply-To: <512D071E.8090306@delphij.net> References: <201302260213.r1Q2D2N1016801@svn.freebsd.org> <201302260941.52534.jhb@freebsd.org> <512D071E.8090306@delphij.net> Date: Tue, 26 Feb 2013 21:13:03 +0100 X-Google-Sender-Auth: DjA3xebRUg0WkjqKp_mLoq8YsOw Message-ID: Subject: Re: svn commit: r247300 - in head: sys/sys usr.bin/truss From: Davide Italiano To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Xin LI , John Baldwin X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 20:13:11 -0000 On Tue, Feb 26, 2013 at 8:03 PM, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On 02/26/13 09:09, Davide Italiano wrote: >> On Tue, Feb 26, 2013 at 3:41 PM, John Baldwin >> wrote: >>> On Monday, February 25, 2013 9:13:02 pm Xin LI wrote: >>>> Author: delphij Date: Tue Feb 26 02:13:02 2013 New Revision: >>>> 247300 URL: http://svnweb.freebsd.org/changeset/base/247300 >>>> >>>> Log: Expose timespec and timeval macros when __BSD_VISIBLE is >>>> defined. This allows userland application to use the following >>>> macros: >>>> >>>> timespecclear, timespecisset, timespeccmp, timespecadd, >>>> timespecsub; >>>> >>>> timevalclear, timevalisset, timevalcmp. >>> >>> Why not fix truss to use the stock functions instead of keeping >>> private "unusual" versions? >>> >>> -- John Baldwin >> >> time.h is already a mess in terms of namespace pollution, and this >> exposure might not help thing. Other details here: >> http://permalink.gmane.org/gmane.os.freebsd.architechture/15518 > > What would be the preferred way of doing these operations on a > timespec structure then? Should the caller duplicate these macros? > > Cheers, > - -- > Xin LI https://www.delphij.net/ > FreeBSD - The Power to Serve! Live free or die > -----BEGIN PGP SIGNATURE----- > > iQEcBAEBCgAGBQJRLQceAAoJEG80Jeu8UPuzYQIIAIf9vJ6TS2Lmk+vkC0O9oXFi > 1W+msaOn/Onhi9TSbpdPlhfQI2VB8bkdDCA63ll3LC64jjDaRObobSYxYn7mKhz9 > +o0sdRXl8AvDkHNofSmrtO0h3JormzJjGIxNLi0DsTgrUDuOiVT34WtzTY6uvvnG > Y4zpxoY/KI9ftaAabxhfTG8RcMkWbAHrQXmah/UujuMID57665I0NwxBap5lyyng > lMygEBfAZ8bZqbh2IcUZi9qKBsIkFJugxYZc95WkU73A4rCGBJSJXpYWAghJxthy > nDHNA6I5DxoeXpf3hEscG4WjHgLubZen8HwEs/3uA4mRkmAkI7pwT56wo7kVnwU= > =JZjk > -----END PGP SIGNATURE----- Well, it may be. And maybe this might be a topic for a larger discussion. What's your use-case? -- Davide "There are no solved problems; there are only problems that are more or less solved" -- Henri Poincare