Lines Matching refs:fp
100 ** fp -- file pointer for input data
111 sm_vfscanf(fp, timeout, fmt0, ap)
112 register SM_FILE_T *fp;
125 int nread; /* number of characters consumed from fp */
139 timeout = fp->f_timeout;
177 while ((fp->f_r > 0 || sm_refill(fp, SM_TIME_FOREVER)
179 isspace(*fp->f_p))
180 nread++, fp->f_r--, fp->f_p++;
198 if (fp->f_r <= 0 && sm_refill(fp, SM_TIME_FOREVER))
200 if (*fp->f_p != c)
202 fp->f_r--, fp->f_p++;
335 if (fp->f_r <= 0 && sm_refill(fp, SM_TIME_FOREVER))
345 while (isspace(*fp->f_p))
348 if (--fp->f_r > 0)
349 fp->f_p++;
350 else if (sm_refill(fp, SM_TIME_FOREVER))
372 if ((size_t) (n = fp->f_r) < width)
376 fp->f_p += n;
377 if (sm_refill(fp,
388 fp->f_r -= width;
389 fp->f_p += width;
399 r = sm_io_read(fp, SM_TIME_FOREVER,
418 while (ccltab[*fp->f_p] != '\0')
420 n++, fp->f_r--, fp->f_p++;
423 if (fp->f_r <= 0 &&
424 sm_refill(fp, SM_TIME_FOREVER))
437 while (ccltab[*fp->f_p] != '\0')
439 fp->f_r--;
440 *p++ = *fp->f_p++;
443 if (fp->f_r <= 0 &&
444 sm_refill(fp, SM_TIME_FOREVER))
467 while (!isspace(*fp->f_p))
469 n++, fp->f_r--, fp->f_p++;
472 if (fp->f_r <= 0 &&
473 sm_refill(fp, SM_TIME_FOREVER))
481 while (!isspace(*fp->f_p))
483 fp->f_r--;
484 *p++ = *fp->f_p++;
487 if (fp->f_r <= 0 &&
488 sm_refill(fp, SM_TIME_FOREVER))
511 c = *fp->f_p;
602 if (--fp->f_r > 0)
603 fp->f_p++;
604 else if (sm_refill(fp, SM_TIME_FOREVER))
618 (void) sm_io_ungetc(fp, SM_TIME_DEFAULT,
626 (void) sm_io_ungetc(fp, SM_TIME_DEFAULT, c);
657 c = *fp->f_p;
702 if (--fp->f_r > 0)
703 fp->f_p++;
704 else if (sm_refill(fp, SM_TIME_FOREVER))
720 (void) sm_io_ungetc(fp,
730 (void) sm_io_ungetc(fp, SM_TIME_DEFAULT,
734 (void) sm_io_ungetc(fp, SM_TIME_DEFAULT, c);