summaryrefslogtreecommitdiff
path: root/include/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util/util.h')
-rw-r--r--include/util/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/util/util.h b/include/util/util.h
index 4b05340..af7d196 100644
--- a/include/util/util.h
+++ b/include/util/util.h
@@ -35,4 +35,12 @@ SQFS_INTERNAL sqfs_u32 xxh32(const void *input, const size_t len);
*/
SQFS_INTERNAL bool is_memory_zero(const void *blob, size_t size);
+/*
+ A wrapper around mkdir() that behaves like 'mkdir -p'. It tries to create
+ every component of the given path and skips already existing entries.
+
+ Returns 0 on success.
+*/
+SQFS_INTERNAL int mkdir_p(const char *path);
+
#endif /* SQFS_UTIL_H */