chiark / gitweb /
mount-setup: create full paths when mounting
[elogind.git] / util.h
diff --git a/util.h b/util.h
index b22074edec3d033094e566964dd5be8d6bf9d5c9..df2f3f79663b9396bee47313f19f3975b482d5e6 100644 (file)
--- a/util.h
+++ b/util.h
@@ -41,6 +41,8 @@ typedef uint64_t usec_t;
 #define WHITESPACE " \t\n\r"
 #define NEWLINE "\n\r"
 
+#define FORMAT_TIMESTAMP_MAX 64
+
 usec_t now(clockid_t clock);
 
 usec_t timespec_load(const struct timespec *ts);
@@ -166,6 +168,8 @@ bool ignore_file(const char *filename);
 
 bool chars_intersect(const char *a, const char *b);
 
+char *format_timestamp(char *buf, size_t l, usec_t t);
+
 #define DEFINE_STRING_TABLE_LOOKUP(name,type)                           \
         const char *name##_to_string(type i) {                          \
                 if (i < 0 || i >= (type) ELEMENTSOF(name##_table))      \