#define FIO_RDONLY ..... #define FIO_WRONLY ..... #define FIO_RDWRITE ..... #define FIO_UNBUFFERED ..... #define FIO_SEEK_SET ..... #define FIO_SEEK_CUR ..... #define FIO_SEEK_END ..... class FileIO { public: FileIO(); ~FileIO(); int Open(const char *name, int flags); int Close(); int64_t Read(void *buf, int64_t count); int64_t Write(void *buf, int64_t count); int64_t LSeek(int64_t pos, int whence); }