chiark / gitweb /
tmpfiles: integrate kay's directory cleanup code and otherwise beef up tmpfiles quite...
[elogind.git] / src / util.h
index 2bf86d997951d27d731386440fafc6f6d878a04c..e87fb23bf8a42a7a4a5c0faa3ae2e20fb16d87eb 100644 (file)
@@ -32,6 +32,7 @@
 #include <sched.h>
 #include <limits.h>
 #include <sys/stat.h>
+#include <dirent.h>
 
 #include "macro.h"
 
@@ -361,6 +362,8 @@ _noreturn_ void freeze(void);
 
 bool null_or_empty(struct stat *st);
 
+DIR *xopendirat(int dirfd, const char *name);
+
 #define NULSTR_FOREACH(i, l) \
         for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)