Lines Matching refs:dupfd
1057 int dupfd,toclose= -1; in sh_redirect() local
1062 dupfd = strtol(fname,&number,10); in sh_redirect()
1065 toclose = dupfd; in sh_redirect()
1068 if(*number || dupfd > IOUFD) in sh_redirect()
1073 if(shp->subshell && dupfd==1 && (sfset(sfstdout,0,0)&SF_STRING)) in sh_redirect()
1076 dupfd = sffileno(sfstdout); in sh_redirect()
1078 else if(shp->sftable[dupfd]) in sh_redirect()
1079 sfsync(shp->sftable[dupfd]); in sh_redirect()
1089 dupfd = shp->coutpipe; in sh_redirect()
1091 dupfd = shp->cpipe[0]; in sh_redirect()
1093 toclose = dupfd; in sh_redirect()
1102 if((fd=sh_fcntl(dupfd,F_DUPFD,3))<0) in sh_redirect()
1104 sh_iocheckfd(shp,dupfd); in sh_redirect()
1105 shp->fdstatus[fd] = (shp->fdstatus[dupfd]&~IOCLEX); in sh_redirect()
1108 else if(dupfd==shp->cpipe[0]) in sh_redirect()