diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-11 16:12:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-15 12:21:45 +0200 |
commit | 69858c74b2de4c03c969712fc016a8ce8ac09a0a (patch) | |
tree | af32f0c6e2ac5d9ae82bdf2a21e7119880be2859 /include/libfile.h | |
parent | 947fb5adf8af450507c978abf1c7ec9f051e5842 (diff) | |
download | barebox-69858c74b2de4c03c969712fc016a8ce8ac09a0a.tar.gz barebox-69858c74b2de4c03c969712fc016a8ce8ac09a0a.tar.xz |
move make_directory declaration to libfile.h
As a utility function for file handling make_directory() is well
suited for libfile. Move it there.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/libfile.h')
-rw-r--r-- | include/libfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libfile.h b/include/libfile.h index 51fa06008f..3f81718bbd 100644 --- a/include/libfile.h +++ b/include/libfile.h @@ -21,4 +21,7 @@ int compare_file(const char *f1, const char *f2); int open_and_lseek(const char *filename, int mode, loff_t pos); +/* Create a directory and its parents */ +int make_directory(const char *pathname); + #endif /* __LIBFILE_H */ |