summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/cutils/fs.h')
-rw-r--r--include/cutils/fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cutils/fs.h b/include/cutils/fs.h
index fd5296bb9..d1d4cf28d 100644
--- a/include/cutils/fs.h
+++ b/include/cutils/fs.h
@@ -55,6 +55,14 @@ extern int fs_read_atomic_int(const char* path, int* value);
55 */ 55 */
56extern int fs_write_atomic_int(const char* path, int value); 56extern int fs_write_atomic_int(const char* path, int value);
57 57
58/*
59 * Ensure that all directories along given path exist, creating parent
60 * directories as needed. Validates that given path is absolute and that
61 * it contains no relative "." or ".." paths or symlinks. Last path segment
62 * is treated as filename and ignored, unless the path ends with "/".
63 */
64extern int fs_mkdirs(const char* path, mode_t mode);
65
58#ifdef __cplusplus 66#ifdef __cplusplus
59} 67}
60#endif 68#endif