mirror of
https://github.com/tribes2/engine.git
synced 2026-03-04 21:10:24 +00:00
25 lines
406 B
C++
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);
|
||
|
|
}
|