]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - include/monotonic.h
findmnt: (verify) ignore passno for XFS
[thirdparty/util-linux.git] / include / monotonic.h
index bbebfe0b97ea208b898e87f8db8221265d90bfb0..296173ecec3dc61711365a3ad9afb799b9b511fb 100644 (file)
@@ -1,18 +1,16 @@
-#ifndef UTIL_LINUX_BOOTTIME_H
-#define UTIL_LINUX_BOOTTIME_H
+#ifndef UTIL_LINUX_MONOTONIC_H
+#define UTIL_LINUX_MONOTONIC_H
+
+# ifdef CLOCK_MONOTONIC_RAW
+#  define UL_CLOCK_MONOTONIC   CLOCK_MONOTONIC_RAW
+# else
+#  define UL_CLOCK_MONOTONIC   CLOCK_MONOTONIC
+# endif
 
-/*
- * Uses clock_gettime() that requires $CLOCKGETTIME_LIBS
- */
-#include <signal.h>
 #include <sys/time.h>
 
 extern int get_boot_time(struct timeval *boot_time);
 
 extern int gettime_monotonic(struct timeval *tv);
 
-extern int setup_timer(timer_t * t_id, struct itimerval *timeout,
-                      void (*timeout_handler)(int, siginfo_t *, void *));
-extern void cancel_timer(timer_t * t_id);
-
-#endif /* UTIL_LINUX_BOOTTIME_H */
+#endif /* UTIL_LINUX_MONOTONIC_H */