From 9ef3a9f8b2704693496af12120ea3ab40389bf7b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 24 Oct 2016 02:15:36 +0000 Subject: Add the alarm library, first draft. --- src/include/skalibs/alarm.h | 13 +++++++++++++ src/include/skalibs/stddjb.h | 1 + 2 files changed, 14 insertions(+) create mode 100644 src/include/skalibs/alarm.h (limited to 'src/include') diff --git a/src/include/skalibs/alarm.h b/src/include/skalibs/alarm.h new file mode 100644 index 0000000..9c2951a --- /dev/null +++ b/src/include/skalibs/alarm.h @@ -0,0 +1,13 @@ +/* ISC license. */ + +#ifndef ALARM_H +#define ALARM_H + +#include + +extern int alarm_milliseconds (unsigned int) ; +extern int alarm_timeout (tain_t const *) ; +extern int alarm_deadline (tain_t const *) ; +extern void alarm_disable (void) ; + +#endif diff --git a/src/include/skalibs/stddjb.h b/src/include/skalibs/stddjb.h index e265003..3ebd219 100644 --- a/src/include/skalibs/stddjb.h +++ b/src/include/skalibs/stddjb.h @@ -15,6 +15,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3