diff options
Diffstat (limited to 'include/sys/stat.h')
-rw-r--r-- | include/sys/stat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h index 037e5f136d..7af49a1d3c 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -1,9 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + #ifndef __STAT_H #define __STAT_H #include <linux/types.h> #include <linux/stat.h> +#include <fcntl.h> + +int mkdirat(int dirfd, const char *pathname, mode_t mode); -int mkdir (const char *pathname, mode_t mode); +static inline int mkdir(const char *pathname, mode_t mode) +{ + return mkdirat(AT_FDCWD, pathname, mode); +} #endif /* __STAT_H */ |