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 | |
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')
-rw-r--r-- | include/fs.h | 3 | ||||
-rw-r--r-- | include/libfile.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/fs.h b/include/fs.h index b9d1e6e09a..21490db7b9 100644 --- a/include/fs.h +++ b/include/fs.h @@ -126,9 +126,6 @@ ssize_t pwrite(int fd, const void *buf, size_t count, loff_t offset); loff_t lseek(int fildes, loff_t offset, int whence); int mkdir (const char *pathname, mode_t mode); - -/* Create a directory and its parents */ -int make_directory(const char *pathname); int rmdir (const char *pathname); const char *getcwd(void); 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 */ |