toaruos/libc/dirent/mkdir.c

11 lines
248 B
C
Raw Normal View History

#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <sys/stat.h>
DEFN_SYSCALL2(mkdir, SYS_MKDIR, char *, unsigned int);
int mkdir(const char *pathname, mode_t mode) {
2018-07-18 04:25:01 +03:00
__sets_errno(syscall_mkdir((char *)pathname, mode));
}