/* update offset */ state->mmap.offset = *offset; return ret; } #else /* !FS_STATE_USE_MMAP */ int fs_stateSeek(struct fs_dump_state * state, afs_uint64 * offset) { int ret = 0; if (afs_lseek(state->fd, *offset, SEEK_SET) == -1) ret = 1; return ret; }
/* update offset */ #ifdef AFS_LARGEFILE_ENV state->mmap.offset = *offset; #else if (hi) ret = 1; state->mmap.offset = lo; #endif return ret; } #else /* !FS_STATE_USE_MMAP */ int fs_stateSeek(struct fs_dump_state * state, afs_uint64 * offset) { int ret = 0; #ifndef AFS_LARGEFILE_ENV afs_uint32 high, low; SplitInt64(*offset, high, low); if (high) { ret = 1; goto done; } if (afs_lseek(state->fd, low, SEEK_SET) == -1) ret = 1; #else if (afs_lseek(state->fd, *offset, SEEK_SET) == -1) ret = 1; #endif return ret; }