Lines Matching refs:curoff
52 fpos_t target, curoff;
84 curoff = fp->_offset;
86 curoff = (*seekfn)(fp->_cookie, (fpos_t)0, SEEK_CUR);
87 if (curoff == (fpos_t)-1) {
93 curoff -= fp->_r;
95 curoff -= fp->_ur;
97 curoff += fp->_p - fp->_bf._base;
99 offset += curoff;
106 curoff = 0; /* XXX just to keep gcc quiet */
153 curoff = fp->_offset;
155 curoff = (*seekfn)(fp->_cookie, (fpos_t)0, SEEK_CUR);
156 if (curoff == POS_ERR)
159 curoff -= fp->_r;
161 curoff -= fp->_ur;
171 curoff += fp->_r; /* kill off ungetc */
173 curoff -= n;
177 curoff -= n;
188 target >= curoff && target < (fpos_t)(curoff + n)) {
189 int o = target - curoff;
208 curoff = target & ~(fp->_blksize - 1);
209 if ((*seekfn)(fp->_cookie, curoff, SEEK_SET) == POS_ERR)
216 n = target - curoff;