]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/boottime: add a new file
authorKarel Zak <kzak@redhat.com>
Tue, 6 May 2014 14:38:53 +0000 (16:38 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 6 May 2014 14:38:53 +0000 (16:38 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/boottime.h [new file with mode: 0644]

diff --git a/include/boottime.h b/include/boottime.h
new file mode 100644 (file)
index 0000000..3518848
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef UTIL_LINUX_BOOTTIME_H
+#define UTIL_LINUX_BOOTTIME_H
+
+/*
+ * Uses clock_gettime() that requires -lrt
+ */
+extern int get_boot_time(struct timeval *boot_time);
+
+#endif /* UTIL_LINUX_BOOTTIME_H */