Luna/libs/libc/src/sys/stat.cpp
2022-10-21 18:31:09 +02:00

16 lines
290 B
C++

#include <sys/stat.h>
#include <sys/syscall.h>
#include <unistd.h>
extern "C"
{
int mkdir(const char* pathname, mode_t)
{
return (int)syscall(SYS_mkdir, pathname);
}
int fstat(int fd, struct stat* buf)
{
return (int)syscall(SYS_fstat, fd, buf);
}
}