From ba58914cb1476b94d1b6b2e42bc12471c37ea6b3 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 28 Mar 2023 02:34:23 +0200 Subject: Allow user to specify OS-specific file mode flags --- private_include/mkdir_r_private.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'private_include') diff --git a/private_include/mkdir_r_private.h b/private_include/mkdir_r_private.h index 12efdbb..b2e4482 100644 --- a/private_include/mkdir_r_private.h +++ b/private_include/mkdir_r_private.h @@ -19,10 +19,12 @@ /** * Creates a directory using OS-specific API. * @param dir 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 ENOTDIR if one of the elements from @c path is not * a directory. */ -int mkdir_r_port(const char *const dir); +int mkdir_r_port(const char *const dir, int flags); #endif /* MKDIR_R_PRIVATE_H */ -- cgit v1.2.3