Lines Matching defs:curoff
66 off_t target, curoff;
102 curoff = fp->_offset;
104 curoff = (*seekfn)(fp->_cookie, (off_t)0, SEEK_CUR);
105 if (curoff == POS_ERR) {
111 curoff -= fp->_r;
113 curoff -= fp->_ur;
115 curoff += fp->_p - fp->_bf._base;
117 offset += curoff;
135 curoff = 0; /* XXX just to keep gcc quiet */
182 curoff = fp->_offset;
184 curoff = (*seekfn)(fp->_cookie, (off_t)0, SEEK_CUR);
185 if (curoff == POS_ERR)
188 curoff -= fp->_r;
190 curoff -= fp->_ur;
200 curoff += fp->_r; /* kill off ungetc */
202 curoff -= n;
206 curoff -= n;
217 target >= curoff && target < curoff + (off_t)n) {
218 int o = (int)(target - curoff);
238 curoff = target & ~(fp->_blksize - 1);
239 if ((*seekfn)(fp->_cookie, curoff, SEEK_SET) == POS_ERR)
246 n = (int)(target - curoff);