Lines Matching defs:fp
47 int sep, FILE *__restrict fp)
53 FLOCKFILE(fp);
64 _SET_ORIENTATION(fp, -1);
68 if (fp->_r <= 0 && __srefill(fp)) {
69 if (__sferror(fp))
76 p = memchr(fp->_p, sep, (size_t)fp->_r);
78 len = fp->_r;
80 len = (p - fp->_p) + 1;
113 (void)memcpy((*buf + off), fp->_p, len);
114 /* Safe, len is never greater than what fp->_r can fit. */
115 fp->_r -= (int)len;
116 fp->_p += (int)len;
120 FUNLOCKFILE(fp);
131 fp->_flags |= __SERR;
132 FUNLOCKFILE(fp);