Lines Matching defs:curoff
86 off_t target, curoff;
150 curoff = fp->f_lseekoff;
153 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
154 if (curoff == -1L)
162 curoff -= fp->f_r;
164 curoff -= fp->f_ur;
167 curoff += fp->f_p - fp->f_bf.smb_base;
169 offset += curoff;
177 curoff = 0; /* XXX just to keep gcc quiet */
229 curoff = fp->f_lseekoff;
232 curoff = (*seekfn)(fp, (off_t) 0, SM_IO_SEEK_CUR);
233 if (curoff == POS_ERR)
236 curoff -= fp->f_r;
238 curoff -= fp->f_ur;
250 curoff += fp->f_r; /* kill off ungetc */
252 curoff -= n;
258 curoff -= n;
269 if (target >= curoff && target < curoff + (off_t) n)
271 register int o = target - curoff;
291 curoff = target & ~(fp->f_blksize - 1);
292 if ((*seekfn)(fp, curoff, SM_IO_SEEK_SET) == POS_ERR)
299 n = target - curoff;