16 lines
290 B
C++
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);
|
|
}
|
|
} |