1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <fcntl.h>
5 #include <sys/types.h>
6
7 #include "mkdir.h"
8
9 int mkdirat_label(int dirfd, const char *path, mode_t mode);
10
mkdir_label(const char * path,mode_t mode)11 static inline int mkdir_label(const char *path, mode_t mode) {
12 return mkdirat_label(AT_FDCWD, path, mode);
13 }
14
15 int mkdir_safe_label(const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags);
16 int mkdir_parents_label(const char *path, mode_t mod);
17 int mkdir_p_label(const char *path, mode_t mode);
18