From 2e4d53d859e675a7f1f8fe41b27fd8b9f65b78a4 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 2 Jan 2015 15:29:05 +0000 Subject: Really add it >.> --- src/libunixonacid/skaclient_syncify.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/libunixonacid/skaclient_syncify.c (limited to 'src') diff --git a/src/libunixonacid/skaclient_syncify.c b/src/libunixonacid/skaclient_syncify.c new file mode 100644 index 0000000..08b7b9a --- /dev/null +++ b/src/libunixonacid/skaclient_syncify.c @@ -0,0 +1,13 @@ +/* ISC license. */ + +#include +#include +#include + +int skaclient_syncify (skaclient_t *a, tain_t const *deadline, tain_t *stamp) +{ + register int r ; + if (!skaclient_timed_flush(a, deadline, stamp)) return 0 ; + r = skaclient_timed_supdate(a, deadline, stamp) ; + return r < 0 ? 0 : !r ? (errno = EPIPE, 0) : 1 ; +} -- cgit v1.2.3