aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds.h')
-rw-r--r--src/mds.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/mds.h b/src/mds.h
index cc84f29..20b5f66 100644
--- a/src/mds.h
+++ b/src/mds.h
@@ -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