summaryrefslogtreecommitdiff
path: root/mkdir_r.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-28 02:34:23 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-28 02:34:23 +0200
commitba58914cb1476b94d1b6b2e42bc12471c37ea6b3 (patch)
tree4145e78eb837fa796b3b5d7b2c54b15ae1c373a5 /mkdir_r.h
parent8843785696053b63aa9113e6030979709bee4d68 (diff)
downloadmkdir_r-ba58914cb1476b94d1b6b2e42bc12471c37ea6b3.tar.gz
Allow user to specify OS-specific file mode flags
Diffstat (limited to 'mkdir_r.h')
-rw-r--r--mkdir_r.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkdir_r.h b/mkdir_r.h
index fb40373..0d7ea7d 100644
--- a/mkdir_r.h
+++ b/mkdir_r.h
@@ -19,6 +19,8 @@
/**
* Recursive directory creation.
* @param path Directory path
+ * @param flags File mode. Might be ignored if the underlying implementation
+ * does not support it.
* @return 0 if successful, -1 otherwise.
* @note Sets @c errno to @c ENOMEM if internal dynamic allocation fails.
* @note Sets @c errno to @c EINVAL if an invalid or empty directory path is
@@ -26,6 +28,6 @@
* @note Sets @c errno to @c ENOTDIR if one of the elements from @c path is not
* a directory.
*/
-int mkdir_r(const char *const path);
+int mkdir_r(const char *const path, int flags);
#endif /* MKDIR_R_H */