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