2019-06-09 12:32:53 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2019-06-03 01:57:25 +00:00
|
|
|
#include "io.h"
|
|
|
|
|
|
|
|
#ifdef unix
|
|
|
|
ssize_t pang_write(int fd, const void *buf, size_t count) {
|
|
|
|
return write(fd, buf, count);
|
|
|
|
}
|
|
|
|
|
|
|
|
ssize_t pang_read(int fd, void *buf, size_t count) {
|
|
|
|
return read(fd, buf, count);
|
|
|
|
}
|
|
|
|
|
|
|
|
off_t pang_seek(int fd, off_t offset, int whence) {
|
|
|
|
return lseek(fd, offset, whence);
|
|
|
|
}
|
2019-06-09 12:32:53 +00:00
|
|
|
|
|
|
|
int pang_open(const char *pathname, int flags) {
|
|
|
|
return open(pathname, flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
int pang_close(int fd) {
|
|
|
|
return close(fd);
|
|
|
|
}
|
|
|
|
|
2019-06-03 01:57:25 +00:00
|
|
|
#endif
|