diff options
Diffstat (limited to '')
-rw-r--r-- | src/mds.h | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -27,13 +27,29 @@ */ int spawn_and_respawn_server(int fd); +/** + * Create a directory owned by the root user and root group + * + * @param pathname The pathname of the directory to create + * @return Non-zero on error + */ +int create_directory_root(const char* pathname); + +/** + * Create a directory owned by the real user and nobody group + * + * @param pathname The pathname of the directory to create + * @return Non-zero on error + */ +int create_directory_user(const char* pathname); /** - * Create directory for socket files, PID files and such + * Recursively remove a directory * - * @return Non-zero on error + * @param pathname The pathname of the directory to remove + * @return Non-zero on error */ -int create_runtime_root_directory(void); +int unlink_recursive(const char* pathname); #endif |