Lines Matching refs:iop
51 _filbuf(FILE *iop) in _filbuf() argument
62 if (!(iop->_flag & _IOREAD)) { /* check, correct permissions */ in _filbuf()
63 if (iop->_flag & _IORW) { in _filbuf()
64 iop->_flag |= _IOREAD; /* change direction */ in _filbuf()
72 if (iop->_base == 0) { in _filbuf()
74 if ((endbuf = _findbuf(iop)) == 0) { in _filbuf()
78 endbuf = _bufend(iop); in _filbuf()
85 if (iop->_flag & (_IONBF | _IOLBF)) in _filbuf()
96 if ((flag = iop->_flag) & _IOEOF) { in _filbuf()
105 iop->_cnt = 0; in _filbuf()
113 iop->_ptr = iop->_base; in _filbuf()
117 nbyte = endbuf - iop->_base; in _filbuf()
118 if ((res = _xread(iop, (char *)iop->_base, nbyte)) > 0) { in _filbuf()
119 iop->_cnt = res - 1; in _filbuf()
120 return (*iop->_ptr++); in _filbuf()
123 iop->_cnt = 0; in _filbuf()
125 iop->_flag |= _IOEOF; in _filbuf()
127 iop->_flag |= _IOERR; in _filbuf()