Lines Matching refs:curoff
84 off_t target, curoff;
148 curoff = fp->f_lseekoff;
151 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
152 if (curoff == -1L)
160 curoff -= fp->f_r;
162 curoff -= fp->f_ur;
165 curoff += fp->f_p - fp->f_bf.smb_base;
167 offset += curoff;
175 curoff = 0; /* XXX just to keep gcc quiet */
227 curoff = fp->f_lseekoff;
230 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
231 if (curoff == POS_ERR)
234 curoff -= fp->f_r;
236 curoff -= fp->f_ur;
248 curoff += fp->f_r; /* kill off ungetc */
250 curoff -= n;
256 curoff -= n;
267 if (target >= curoff && target < curoff + (off_t) n)
269 register int o = target - curoff;
289 curoff = target & ~(fp->f_blksize - 1);
290 if ((*seekfn)(fp, curoff, SM_IO_SEEK_SET) == POS_ERR)
297 n = target - curoff;