From 6eb36900d3b68eef8de23beb09bb58794733617f Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 26 Feb 2013 02:13:02 +0000 Subject: 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. MFC after: 1 month --- usr.bin/truss/truss.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/truss/truss.h') diff --git a/usr.bin/truss/truss.h b/usr.bin/truss/truss.h index dcc86a5..ea954e8 100644 --- a/usr.bin/truss/truss.h +++ b/usr.bin/truss/truss.h @@ -62,7 +62,7 @@ struct trussinfo SLIST_HEAD(, threadinfo) threadlist; }; -#define timespecsubt(tvp, uvp, vvp) \ +#define timespecsubt_to(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ (vvp)->tv_nsec = (tvp)->tv_nsec - (uvp)->tv_nsec; \ @@ -72,7 +72,7 @@ struct trussinfo } \ } while (0) -#define timespecadd(tvp, uvp, vvp) \ +#define timespecadd_to(tvp, uvp, vvp) \ do { \ (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ (vvp)->tv_nsec = (tvp)->tv_nsec + (uvp)->tv_nsec; \ -- cgit v1.1