Lines Matching refs:fp
86 int __svfscanf(FILE* fp, const char* fmt0, va_list ap) { in __svfscanf() argument
107 _SET_ORIENTATION(fp, -1); in __svfscanf()
115 while ((fp->_r > 0 || __srefill(fp) == 0) && isspace(*fp->_p)) nread++, fp->_r--, fp->_p++; in __svfscanf()
130 if (fp->_r <= 0 && __srefill(fp)) goto input_failure; in __svfscanf()
131 if (*fp->_p != c) goto match_failure; in __svfscanf()
132 fp->_r--, fp->_p++; in __svfscanf()
306 if (fp->_r <= 0 && __srefill(fp)) goto input_failure; in __svfscanf()
313 while (isspace(*fp->_p)) { in __svfscanf()
315 if (--fp->_r > 0) { in __svfscanf()
316 fp->_p++; in __svfscanf()
317 } else if (__srefill(fp)) { in __svfscanf()
347 fp->_flags |= __SERR; in __svfscanf()
350 buf[bytes++] = *fp->_p; in __svfscanf()
351 fp->_p++; in __svfscanf()
352 fp->_r--; in __svfscanf()
356 fp->_flags |= __SERR; in __svfscanf()
366 if (fp->_r <= 0 && __srefill(fp)) { in __svfscanf()
368 fp->_flags |= __SERR; in __svfscanf()
382 if ((n = fp->_r) < width) { in __svfscanf()
385 fp->_p += n; in __svfscanf()
386 if (__srefill(fp)) { in __svfscanf()
392 fp->_r -= width; in __svfscanf()
393 fp->_p += width; in __svfscanf()
405 size_t r = fread(p, 1, width, fp); in __svfscanf()
434 while ((c == CT_CCL || !isspace(*fp->_p)) && width != 0) { in __svfscanf()
436 fp->_flags |= __SERR; in __svfscanf()
439 buf[bytes++] = *fp->_p; in __svfscanf()
440 fp->_p++; in __svfscanf()
441 fp->_r--; in __svfscanf()
446 fp->_flags |= __SERR; in __svfscanf()
453 ungetc(buf[bytes], fp); in __svfscanf()
470 if (fp->_r <= 0 && __srefill(fp)) { in __svfscanf()
472 fp->_flags |= __SERR; in __svfscanf()
479 fp->_flags |= __SERR; in __svfscanf()
488 while (ccltab[*fp->_p]) { in __svfscanf()
489 n++, fp->_r--, fp->_p++; in __svfscanf()
491 if (fp->_r <= 0 && __srefill(fp)) { in __svfscanf()
506 while (ccltab[*fp->_p]) { in __svfscanf()
507 fp->_r--; in __svfscanf()
508 p[n++] = *fp->_p++; in __svfscanf()
516 if (fp->_r <= 0 && __srefill(fp)) { in __svfscanf()
549 c = *fp->_p; in __svfscanf()
650 if (--fp->_r > 0) in __svfscanf()
651 fp->_p++; in __svfscanf()
652 else if (__srefill(fp)) in __svfscanf()
662 if (p > buf) (void)ungetc(*(u_char*)--p, fp); in __svfscanf()
668 (void)ungetc(c, fp); in __svfscanf()
706 if ((width = parsefloat(fp, buf, buf + width)) == 0) goto match_failure; in __svfscanf()