Lines Matching refs:iop
47 _flsbuf(int ch, FILE *iop) in _flsbuf() argument
52 switch (iop->_flag & (_IOFBF | _IOLBF | _IONBF | in _flsbuf()
55 if (iop->_base != 0 && iop->_ptr > iop->_base) in _flsbuf()
59 if (iop->_ptr >= _bufend(iop)) in _flsbuf()
66 if ((*iop->_ptr++ = (unsigned char)ch) == '\n') in _flsbuf()
67 (void) _xflsbuf(iop); in _flsbuf()
68 iop->_cnt = 0; in _flsbuf()
71 iop->_cnt = 0; in _flsbuf()
73 if (_xwrite(iop, (char *)&uch, 1) != 1) { in _flsbuf()
75 iop->_flag |= _IOERR; in _flsbuf()
80 if (_wrtchk(iop) != 0) /* check, correct permissions */ in _flsbuf()
82 } while (iop->_flag & (_IOLBF | _IONBF)); in _flsbuf()
84 (void) _xflsbuf(iop); in _flsbuf()
85 (void) PUTC(ch, iop); /* recursive call */ in _flsbuf()
88 return ((iop->_flag & _IOERR) ? EOF : (unsigned char)ch); in _flsbuf()