summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-18 14:31:58 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-18 14:31:58 +0000
commit8e6215ee13dc507f2c0a4ab8a02e2d974265d83d (patch)
tree3a46becbfc943479877da4db2a7bdbe389583bd2
parent0f81e50733845b5b67156bff6392c5e8db3c169d (diff)
downloadskalibs-8e6215ee13dc507f2c0a4ab8a02e2d974265d83d.tar.xz
Add tain_infinite
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--package/deps.mak1
-rw-r--r--src/include/skalibs/tai.h1
-rw-r--r--src/libstddjb/tain_infinite.c5
3 files changed, 7 insertions, 0 deletions
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 <skalibs/tai.h>
+
+tain const tain_infinite = TAIN_INFINITE ;