From 8e6215ee13dc507f2c0a4ab8a02e2d974265d83d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 18 Aug 2021 14:31:58 +0000 Subject: Add tain_infinite Signed-off-by: Laurent Bercot --- package/deps.mak | 1 + src/include/skalibs/tai.h | 1 + src/libstddjb/tain_infinite.c | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 src/libstddjb/tain_infinite.c diff --git a/package/deps.mak b/package/deps.mak index 75192e9..a661837 100644 --- a/package/deps.mak +++ b/package/deps.mak @@ -611,6 +611,7 @@ src/libstddjb/tain_from_timespec_sysclock.o src/libstddjb/tain_from_timespec_sys src/libstddjb/tain_from_timeval.o src/libstddjb/tain_from_timeval.lo: src/libstddjb/tain_from_timeval.c src/include/skalibs/tai.h src/libstddjb/tain_from_timeval_sysclock.o src/libstddjb/tain_from_timeval_sysclock.lo: src/libstddjb/tain_from_timeval_sysclock.c src/include/skalibs/tai.h src/libstddjb/tain_half.o src/libstddjb/tain_half.lo: src/libstddjb/tain_half.c src/include/skalibs/tai.h +src/libstddjb/tain_infinite.o src/libstddjb/tain_infinite.lo: src/libstddjb/tain_infinite.c src/include/skalibs/tai.h src/libstddjb/tain_infinite_relative.o src/libstddjb/tain_infinite_relative.lo: src/libstddjb/tain_infinite_relative.c src/include/skalibs/tai.h src/libstddjb/tain_less.o src/libstddjb/tain_less.lo: src/libstddjb/tain_less.c src/include/skalibs/tai.h src/libstddjb/tain_nano500.o src/libstddjb/tain_nano500.lo: src/libstddjb/tain_nano500.c src/include/skalibs/tai.h diff --git a/src/include/skalibs/tai.h b/src/include/skalibs/tai.h index bb75972..8bf2386 100644 --- a/src/include/skalibs/tai.h +++ b/src/include/skalibs/tai.h @@ -67,6 +67,7 @@ struct tain_s extern tain STAMP ; /* the global process wallclock */ extern tain const tain_zero ; extern tain const tain_infinite_relative ; +extern tain const tain_infinite ; extern tain const tain_nano500 ; #define tain_sec(a) ((a)->sec) diff --git a/src/libstddjb/tain_infinite.c b/src/libstddjb/tain_infinite.c new file mode 100644 index 0000000..74dee9f --- /dev/null +++ b/src/libstddjb/tain_infinite.c @@ -0,0 +1,5 @@ +/* ISC license. */ + +#include + +tain const tain_infinite = TAIN_INFINITE ; -- cgit v1.2.3