Lines Matching refs:fp
44 __swsetup(FILE *fp) in __swsetup() argument
53 if ((fp->_flags & __SWR) == 0) { in __swsetup()
54 if ((fp->_flags & __SRW) == 0) in __swsetup()
56 if (fp->_flags & __SRD) { in __swsetup()
58 if (HASUB(fp)) in __swsetup()
59 FREEUB(fp); in __swsetup()
60 fp->_flags &= ~(__SRD|__SEOF); in __swsetup()
61 fp->_r = 0; in __swsetup()
62 fp->_p = fp->_bf._base; in __swsetup()
64 fp->_flags |= __SWR; in __swsetup()
70 if (fp->_bf._base == NULL) { in __swsetup()
71 if ((fp->_flags & (__SSTR | __SALC)) == __SSTR) in __swsetup()
73 __smakebuf(fp); in __swsetup()
75 if (fp->_flags & __SLBF) { in __swsetup()
81 fp->_w = 0; in __swsetup()
82 fp->_lbfsize = -fp->_bf._size; in __swsetup()
84 fp->_w = fp->_flags & __SNBF ? 0 : fp->_bf._size; in __swsetup()