diff options
author | delphij <delphij@FreeBSD.org> | 2013-02-26 02:13:02 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-02-26 02:13:02 +0000 |
commit | 6eb36900d3b68eef8de23beb09bb58794733617f (patch) | |
tree | 27e9d89610129335f9930bce3cdb6e8339c0c5ee /usr.bin/truss/truss.h | |
parent | cb47f0509be0470c174870a68ed3c1d94eb52ed7 (diff) | |
download | FreeBSD-src-6eb36900d3b68eef8de23beb09bb58794733617f.zip FreeBSD-src-6eb36900d3b68eef8de23beb09bb58794733617f.tar.gz |
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
Diffstat (limited to 'usr.bin/truss/truss.h')
-rw-r--r-- | usr.bin/truss/truss.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; \ |