toaruos/libc/dirent/mkdir.c
2018-07-18 10:25:01 +09:00

8 lines
166 B
C

#include <errno.h>
#include <syscall.h>
#include <sys/stat.h>
int mkdir(const char *pathname, mode_t mode) {
__sets_errno(syscall_mkdir((char *)pathname, mode));
}