Lines Matching refs:fp
52 ftell(fp)
53 FILE *fp;
57 rv = ftello(fp);
69 ftello(fp)
70 FILE *fp;
75 FLOCKFILE(fp);
76 ret = _ftello(fp, &rv);
77 FUNLOCKFILE(fp);
88 _ftello(fp, offset)
89 FILE *fp;
95 if (fp->_seek == NULL) {
104 if (fp->_flags & __SOFF)
105 pos = fp->_offset;
107 pos = _sseek(fp, (fpos_t)0, SEEK_CUR);
111 if (fp->_flags & __SRD) {
117 if ((pos -= (HASUB(fp) ? fp->_ur : fp->_r)) < 0) {
118 fp->_flags |= __SERR;
122 if (HASUB(fp))
123 pos -= fp->_r; /* Can be negative at this point. */
124 } else if ((fp->_flags & __SWR) && fp->_p != NULL) {
130 n = fp->_p - fp->_bf._base;