({ \
extern struct v3_file_hooks * file_hooks; \
((file_hooks) && (file_hooks)->file_read) ? \
- (file_hooks)->file_read((fd), (start), (buf), (len)) : -1; \
+ (file_hooks)->file_read((fd), (buf), (len), (start)) : -1; \
})
#define V3_FileWrite(fd,start,buf,len) \
({ \
extern struct v3_file_hooks * file_hooks; \
((file_hooks) && (file_hooks)->file_write) ? \
- (file_hooks)->file_write((fd), (start), (buf), (len)) : -1; \
+ (file_hooks)->file_write((fd), (buf), (len), (start)) : -1; \
})
long long (*file_size)(int fd);
// blocking reads and writes
- long long (*file_read)(int fd, long long start, void * buffer, long long length);
- long long (*file_write)(int fd, long long start, void * buffer, long long length);
+ long long (*file_read)(int fd, void * buffer, long long length, long long offset);
+ long long (*file_write)(int fd, void * buffer, long long length, long long offset);
};