banan-os/libc/fcntl.cpp

10 lines
171 B
C++
Raw Normal View History

2023-04-23 14:32:37 +03:00
#include <fcntl.h>
#include <errno.h>
#include <sys/syscall.h>
#include <unistd.h>
int open(const char* path, int oflag, ...)
{
return syscall(SYS_OPEN, path, oflag);
2023-04-23 14:32:37 +03:00
}