Lines Matching refs:iop
45 _PROTOTYPE(int iosetup, (struct ioword *iop, int pipein, int pipeout ));
365 iosetup(iop, pipein, pipeout)
366 register struct ioword *iop;
372 if (iop->io_unit == IODEFAULT) /* take default */
373 iop->io_unit = iop->io_flag&(IOREAD|IOHERE)? 0: 1;
374 if (pipein && iop->io_unit == 0)
376 if (pipeout && iop->io_unit == 1)
378 msg = iop->io_flag&(IOREAD|IOHERE)? "open": "create";
379 if ((iop->io_flag & IOHERE) == 0) {
380 cp = iop->io_name;
384 if (iop->io_flag & IODUP) {
391 iop->io_flag = IOCLOSE;
392 iop->io_flag &= ~(IOREAD|IOWRITE);
394 switch (iop->io_flag) {
401 u = herein(iop->io_name, iop->io_flag&IOXHERE);
415 u = dup2(*cp-'0', iop->io_unit);
419 close(iop->io_unit);
428 if (u != iop->io_unit) {
429 dup2(u, iop->io_unit);
642 e.iobase = e.iop;