Lines Matching defs:iop
65 _dowrite((p), (n), iop, &bufptr); \
73 _dowrite((s), 20, iop, &bufptr); \
143 _dowrite(char *p, ssize_t n, FILE *iop, unsigned char **ptrptr)
145 if (!(iop->_flag & _IOREAD)) {
146 iop->_cnt -= (*ptrptr - iop->_ptr);
147 iop->_ptr = *ptrptr;
148 _bufsync(iop, _bufend(iop));
149 (void) fwrite(p, 1, n, iop);
150 *ptrptr = iop->_ptr;
156 _doprnt(char *format, va_list in_args, FILE *iop)
159 /* bufptr is used inside of doprnt instead of iop->_ptr; */
160 /* bufferend is a copy of _bufend(iop), if it exists. For */
161 /* dummy file descriptors (iop->_flag & _IOREAD), bufferend */
264 /* Note that iop->_base should not equal 0 for sprintf and vsprintf */
265 if (iop->_base == 0 && _findbuf(iop) == 0)
269 bufptr = iop->_ptr;
270 bufferend = (iop->_flag & _IOREAD) ?
272 : _bufend(iop);
293 ptrdiff_t d = bufptr - iop->_ptr;
294 iop->_cnt -= d;
295 iop->_ptr = bufptr;
296 if (bufptr + iop->_cnt > bufferend &&
297 !(iop->_flag & _IOREAD))
298 _bufsync(iop, bufferend);
303 if (iop->_flag & (_IONBF | _IOLBF) &&
304 (iop->_flag & _IONBF ||
307 (void) _xflsbuf(iop);
308 return (ferror(iop) ? EOF : count);