11 lines
193 B
C++
11 lines
193 B
C++
|
#include <fcntl.h>
|
||
|
#include <sys/syscall.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
int open(const char* pathname, int flags)
|
||
|
{
|
||
|
return (int)syscall(SYS_open, pathname, flags);
|
||
|
}
|
||
|
}
|