engine/platformX86UNIX/x86UNIXIO.cc
2024-01-07 04:36:33 +00:00

25 lines
406 B
C++

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int x86UNIXOpen(const char *path, int oflag)
{
return open(path, oflag);
}
int x86UNIXClose(int fd)
{
return close(fd);
}
ssize_t x86UNIXRead(int fd, void *buf, size_t nbytes)
{
return read(fd, buf, nbytes);
}
ssize_t x86UNIXWrite(int fd, const void *buf, size_t nbytes)
{
return write(fd, buf, nbytes);
}