summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-05 12:34:49 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-05 12:34:49 +0000
commit520488b020d41b97b45465c0d86740c0354b996e (patch)
treea2956764deba589bdbd396713da6c62ac337b3c9 /src
parent79ba7ac3971ebbbcd10f43c6b8b71d800589a6b0 (diff)
downloadskalibs-520488b020d41b97b45465c0d86740c0354b996e.tar.xz
Add tain_zero
Diffstat (limited to 'src')
-rw-r--r--src/include/skalibs/tai.h1
-rw-r--r--src/libstddjb/tain_zero.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/skalibs/tai.h b/src/include/skalibs/tai.h
index cce5670..8a3f777 100644
--- a/src/include/skalibs/tai.h
+++ b/src/include/skalibs/tai.h
@@ -68,6 +68,7 @@ struct tain_s
#define TAIN_NANO500 { .sec = TAI_ZERO, .nano = 500 }
extern tain_t STAMP ; /* the global process wallclock */
+extern tain_t const tain_zero ;
extern tain_t const tain_infinite_relative ;
extern tain_t const tain_nano500 ;
diff --git a/src/libstddjb/tain_zero.c b/src/libstddjb/tain_zero.c
new file mode 100644
index 0000000..4a82f08
--- /dev/null
+++ b/src/libstddjb/tain_zero.c
@@ -0,0 +1,5 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+tain_t const tain_zero = TAIN_ZERO ;