Lines Matching defs:pv
790 static int arg_pipe(register int pv[])
794 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0)
796 pv[0] = sh_iomovefd(pv[0]);
797 pv[1] = sh_iomovefd(pv[1]);
798 shp->fdstatus[pv[0]] = IONOSEEK|IOREAD;
799 shp->fdstatus[pv[1]] = IONOSEEK|IOWRITE;
800 sh_subsavefd(pv[0]);
801 sh_subsavefd(pv[1]);
810 int monitor, fd, pv[3];
816 pv[2] = 0;
817 sh_pipe(pv);
821 sfputr(shp->stk,fmtbase((long)pv[fd],10,0),0);
829 shp->inpipe = pv;
834 shp->outpipe = pv;
840 close(pv[1-fd]);
841 sh_iosave(shp,-pv[fd], shp->topfd, (char*)0);