util: add UTI_IsZeroTimespec()

This commit is contained in:
Miroslav Lichvar
2016-09-16 10:01:37 +02:00
parent 45f86122fa
commit c8373f1649
4 changed files with 14 additions and 3 deletions

3
util.h
View File

@@ -37,6 +37,9 @@
/* Zero a timespec */
extern void UTI_ZeroTimespec(struct timespec *ts);
/* Check if a timespec is zero */
extern int UTI_IsZeroTimespec(struct timespec *ts);
/* Convert a timeval into a timespec */
extern void UTI_TimevalToTimespec(struct timeval *tv, struct timespec *ts);