Lines Matching defs:iop
249 pioact(struct shf *shf, struct ioword *iop)
251 unsigned short flag = iop->ioflag;
257 (type == IODUP && (iop->unit == !(flag & IORDUP))) ? iop->unit :
258 iop->unit + 1;
259 if (iop->unit != expected)
260 shf_fprintf(shf, Tf_d, (int)iop->unit);
274 if (iop->heredoc /* nil when tracing */) {
282 shf_puts(iop->heredoc, &ptree_heredoc);
283 /* iop->delim is set before iop->heredoc */
284 shf_puts(evalstr(iop->delim, 0), &ptree_heredoc);
288 if (iop->delim && !(iop->ioflag & IONDELIM))
289 wdvarput(shf, iop->delim, 0, WDS_TPUTS);
307 if (iop->ioname) {
309 print_value_quoted(shf, iop->ioname);
311 wdvarput(shf, iop->ioname, 0, WDS_TPUTS);
758 struct ioword **iop;
761 iop = iow;
762 while ((p = *iop++) != NULL) {
944 struct ioword **ioact, *iop;
950 while ((iop = *ioact++) != NULL) {
951 unsigned short type = iop->ioflag & IOTYPE;
953 #define DB(x) if (iop->ioflag & x) shf_puts("|" #x, shf);
974 shf_fprintf(shf, ",unit=%d", (int)iop->unit);
975 if (iop->delim && !(iop->ioflag & IONDELIM)) {
977 dumpwdvar(shf, iop->delim);
980 if (iop->ioname) {
981 if (iop->ioflag & IONAMEXP) {
983 print_value_quoted(shf, iop->ioname);
986 dumpwdvar(shf, iop->ioname);
990 if (iop->heredoc) {
992 print_value_quoted(shf, iop->heredoc);