Lines Matching refs:fp
47 int sep, FILE *__restrict fp) in getdelim() argument
53 FLOCKFILE(fp); in getdelim()
64 _SET_ORIENTATION(fp, -1); in getdelim()
68 if (fp->_r <= 0 && __srefill(fp)) { in getdelim()
69 if (__sferror(fp)) in getdelim()
76 p = memchr(fp->_p, sep, fp->_r); in getdelim()
78 len = fp->_r; in getdelim()
80 len = (p - fp->_p) + 1; in getdelim()
113 (void)memcpy((*buf + off), fp->_p, len); in getdelim()
115 fp->_r -= (int)len; in getdelim()
116 fp->_p += (int)len; in getdelim()
120 FUNLOCKFILE(fp); in getdelim()
131 fp->_flags |= __SERR; in getdelim()
132 FUNLOCKFILE(fp); in getdelim()