Lines Matching refs:iop
221 struct ioword *iop = *ioact++;
224 if ((iop->flag & (IOTYPE | IOHERESTR)) == IOHERE &&
225 iop->heredoc) {
227 shf_puts(iop->heredoc, shf);
229 iop->flag & IONDELIM ? "<<" :
230 evalstr(iop->delim, 0));
247 pioact(struct shf *shf, struct ioword *iop)
249 int flag = iop->flag;
255 (type == IODUP && (iop->unit == !(flag & IORDUP))) ? iop->unit :
256 iop->unit + 1;
257 if (iop->unit != expected)
258 shf_fprintf(shf, "%d", iop->unit);
286 if (iop->delim)
287 wdvarput(shf, iop->delim, 0, WDS_TPUTS);
288 if (iop->flag & IOHERESTR)
290 } else if (iop->name) {
291 if (iop->flag & IONAMEXP)
292 print_value_quoted(shf, iop->name);
294 wdvarput(shf, iop->name, 0, WDS_TPUTS);
730 struct ioword **iop;
733 iop = iow;
734 while ((p = *iop++) != NULL) {
906 struct ioword **ioact, *iop;
912 while ((iop = *ioact++) != NULL) {
913 int type = iop->flag & IOTYPE;
915 #define DB(x) if (iop->flag & x) shf_puts("|" #x, shf);
936 shf_fprintf(shf, ",unit=%d", iop->unit);
937 if (iop->delim) {
939 dumpwdvar(shf, iop->delim);
942 if (iop->name) {
943 if (iop->flag & IONAMEXP) {
945 print_value_quoted(shf, iop->name);
948 dumpwdvar(shf, iop->name);
952 if (iop->heredoc) {
954 print_value_quoted(shf, iop->heredoc);