off_t corsaro_file_rseek(corsaro_file_in_t *file, off_t offset, int whence) { /* refuse to read from a libtrace file */ assert(file->mode == CORSARO_FILE_MODE_ASCII || file->mode == CORSARO_FILE_MODE_BINARY || file->mode == CORSARO_FILE_MODE_UNKNOWN); assert(file->wand_io != NULL); return wandio_seek(file->wand_io, offset, whence); }
static int64_t peek_seek(io_t *io, int64_t offset, int whence) { /* Again, we don't have a genuine read offset so we need to pass this * one on to the child */ return wandio_seek(DATA(io)->child,offset,whence); }