• Home
  • Raw
  • Download

Lines Matching refs:fp

40 lflush(FILE *fp)  in lflush()  argument
42 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) in lflush()
43 return (__sflush_locked(fp)); /* ignored... */ in lflush()
52 __srefill(FILE *fp) in __srefill() argument
59 fp->_r = 0; /* largely a convenience for callers */ in __srefill()
62 if (fp->_flags & __SEOF) in __srefill()
66 if ((fp->_flags & __SRD) == 0) { in __srefill()
67 if ((fp->_flags & __SRW) == 0) { in __srefill()
69 fp->_flags |= __SERR; in __srefill()
73 if (fp->_flags & __SWR) { in __srefill()
74 if (__sflush(fp)) in __srefill()
76 fp->_flags &= ~__SWR; in __srefill()
77 fp->_w = 0; in __srefill()
78 fp->_lbfsize = 0; in __srefill()
80 fp->_flags |= __SRD; in __srefill()
88 if (HASUB(fp)) { in __srefill()
89 FREEUB(fp); in __srefill()
90 if ((fp->_r = fp->_ur) != 0) { in __srefill()
91 fp->_p = fp->_up; in __srefill()
97 if (fp->_bf._base == NULL) in __srefill()
98 __smakebuf(fp); in __srefill()
105 if (fp->_flags & (__SLBF|__SNBF)) { in __srefill()
107 fp->_flags |= __SIGN; in __srefill()
109 fp->_flags &= ~__SIGN; in __srefill()
112 if ((fp->_flags & (__SLBF|__SWR)) == (__SLBF|__SWR)) in __srefill()
113 __sflush(fp); in __srefill()
115 fp->_p = fp->_bf._base; in __srefill()
116 fp->_r = (*fp->_read)(fp->_cookie, (char *)fp->_p, fp->_bf._size); in __srefill()
117 fp->_flags &= ~__SMOD; /* buffer contents are again pristine */ in __srefill()
118 if (fp->_r <= 0) { in __srefill()
119 if (fp->_r == 0) in __srefill()
120 fp->_flags |= __SEOF; in __srefill()
122 fp->_r = 0; in __srefill()
123 fp->_flags |= __SERR; in __srefill()