14 lines
243 B
C++
14 lines
243 B
C++
|
#include <bits/errno-return.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <sys/syscall.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
int mkdir(const char* path, mode_t)
|
||
|
{
|
||
|
long rc = syscall(SYS_mkdir, path);
|
||
|
__errno_return(rc, int);
|
||
|
}
|
||
|
}
|