Lines Matching refs:iop
73 io_init(struct io_state *iop, FILE *fp)
76 iop->uio.uio_iov = iop->iov;
77 iop->uio.uio_resid = 0;
78 iop->uio.uio_iovcnt = 0;
79 iop->fp = fp;
87 io_print(struct io_state *iop, const CHAR * __restrict ptr, int len, locale_t locale)
90 iop->iov[iop->uio.uio_iovcnt].iov_base = (char *)ptr;
91 iop->iov[iop->uio.uio_iovcnt].iov_len = len;
92 iop->uio.uio_resid += len;
93 if (++iop->uio.uio_iovcnt >= NIOV)
94 return (__sprint(iop->fp, &iop->uio, locale));
115 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with,
122 if (io_print(iop, with, n, locale))
134 io_printandpad(struct io_state *iop, const CHAR *p, const CHAR *ep,
143 if (io_print(iop, p, p_len, locale))
148 return (io_pad(iop, len - p_len, with, locale));
152 io_flush(struct io_state *iop, locale_t locale)
155 return (__sprint(iop->fp, &iop->uio, locale));