mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 03:34:48 +00:00
25 lines
398 B
C++
25 lines
398 B
C++
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
|
|
int linuxOpen(const char *path, int oflag)
|
|
{
|
|
return open(path, oflag);
|
|
}
|
|
|
|
int linuxClose(int fd)
|
|
{
|
|
return close(fd);
|
|
}
|
|
|
|
ssize_t linuxRead(int fd, void *buf, size_t nbytes)
|
|
{
|
|
return read(fd, buf, nbytes);
|
|
}
|
|
|
|
ssize_t linuxWrite(int fd, const void *buf, size_t nbytes)
|
|
{
|
|
return write(fd, buf, nbytes);
|
|
}
|