Lines Matching refs:pv
782 static int arg_pipe(register int pv[]) in arg_pipe() argument
785 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0) in arg_pipe()
787 pv[0] = sh_iomovefd(pv[0]); in arg_pipe()
788 pv[1] = sh_iomovefd(pv[1]); in arg_pipe()
789 sh.fdstatus[pv[0]] = IONOSEEK|IOREAD; in arg_pipe()
790 sh.fdstatus[pv[1]] = IONOSEEK|IOWRITE; in arg_pipe()
791 sh_subsavefd(pv[0]); in arg_pipe()
792 sh_subsavefd(pv[1]); in arg_pipe()
801 int monitor, fd, pv[2]; in sh_argprocsub() local
807 sh_pipe(pv); in sh_argprocsub()
809 sfputr(shp->stk,fmtbase((long)pv[fd],10,0),0); in sh_argprocsub()
817 shp->inpipe = pv; in sh_argprocsub()
822 shp->outpipe = pv; in sh_argprocsub()
828 close(pv[1-fd]); in sh_argprocsub()
829 sh_iosave(shp,-pv[fd], shp->topfd, (char*)0); in sh_argprocsub()