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