Luna/libc/src/sys/stat.cpp
apio d66506256d
All checks were successful
continuous-integration/drone/push Build is passing
kernel/VFS+libc: Introduce modes
2023-03-12 16:55:46 +01:00

14 lines
254 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 mode)
{
long rc = syscall(SYS_mkdir, path, mode);
__errno_return(rc, int);
}
}