On Tue, Feb 26, 2013 at 8:03 PM, Xin Li <delp...@delphij.net> 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 <j...@freebsd.org> >> 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 <delp...@delphij.net> 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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"