diff options
Diffstat (limited to 'boost/interprocess/detail/os_file_functions.hpp')
-rw-r--r-- | boost/interprocess/detail/os_file_functions.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/boost/interprocess/detail/os_file_functions.hpp b/boost/interprocess/detail/os_file_functions.hpp index bcb9576a19..7a41868188 100644 --- a/boost/interprocess/detail/os_file_functions.hpp +++ b/boost/interprocess/detail/os_file_functions.hpp @@ -102,6 +102,9 @@ inline file_handle_t file_handle_from_mapping_handle(mapping_handle_t hnd) inline bool create_directory(const char *path) { return winapi::create_directory(path); } +inline bool remove_directory(const char *path) +{ return winapi::remove_directory(path); } + inline bool get_temporary_path(char *buffer, std::size_t buf_len, std::size_t &required_len) { required_len = 0; @@ -422,6 +425,9 @@ inline file_handle_t file_handle_from_mapping_handle(mapping_handle_t hnd) inline bool create_directory(const char *path) { return ::mkdir(path, 0777) == 0 && ::chmod(path, 0777) == 0; } +inline bool remove_directory(const char *path) +{ return ::rmdir(path) == 0; } + inline bool get_temporary_path(char *buffer, std::size_t buf_len, std::size_t &required_len) { required_len = 5u; |