Lines Matching defs:pv
782 static int arg_pipe(register int pv[])
786 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0)
788 pv[0] = sh_iomovefd(pv[0]);
789 pv[1] = sh_iomovefd(pv[1]);
790 shp->fdstatus[pv[0]] = IONOSEEK|IOREAD;
791 shp->fdstatus[pv[1]] = IONOSEEK|IOWRITE;
792 sh_subsavefd(pv[0]);
793 sh_subsavefd(pv[1]);
802 int monitor, fd, pv[3];
808 pv[2] = 0;
809 sh_pipe(pv);
813 sfputr(shp->stk,fmtbase((long)pv[fd],10,0),0);
821 shp->inpipe = pv;
826 shp->outpipe = pv;
832 close(pv[1-fd]);
833 sh_iosave(shp,-pv[fd], shp->topfd, (char*)0);