Lines Matching full:iop
71 io_init(struct io_state *iop, FILE *fp) in io_init() argument
74 iop->uio.uio_iov = iop->iov; in io_init()
75 iop->uio.uio_resid = 0; in io_init()
76 iop->uio.uio_iovcnt = 0; in io_init()
77 iop->fp = fp; in io_init()
85 io_print(struct io_state *iop, const CHAR * __restrict ptr, int len, locale_t locale) in io_print() argument
88 iop->iov[iop->uio.uio_iovcnt].iov_base = (char *)ptr; in io_print()
89 iop->iov[iop->uio.uio_iovcnt].iov_len = len; in io_print()
90 iop->uio.uio_resid += len; in io_print()
91 if (++iop->uio.uio_iovcnt >= NIOV) in io_print()
92 return (__sprint(iop->fp, &iop->uio, locale)); in io_print()
113 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with, in io_pad() argument
120 if (io_print(iop, with, n, locale)) in io_pad()
132 io_printandpad(struct io_state *iop, const CHAR *p, const CHAR *ep, in io_printandpad() argument
141 if (io_print(iop, p, p_len, locale)) in io_printandpad()
146 return (io_pad(iop, len - p_len, with, locale)); in io_printandpad()
150 io_flush(struct io_state *iop, locale_t locale) in io_flush() argument
153 return (__sprint(iop->fp, &iop->uio, locale)); in io_flush()