Lines Matching defs:fd
144 register int exitval=0,n, fd = 1;
174 fd = shp->coutpipe;
184 fd = sffileno(shp->gd->hist_ptr->histfp);
195 fd = (int)strtol(opt_info.arg,&opt_info.arg,10);
197 fd = -1;
198 else if(!sh_iovalidfd(shp,fd))
199 fd = -1;
200 else if(!(shp->inuse_bits&(1<<fd)) && (sh_inuse(shp,fd) || (shp->gd->hist_ptr && fd==sffileno(shp->gd->hist_ptr->histfp))))
202 fd = -1;
253 if(fd < 0)
258 else if(!(n=shp->fdstatus[fd]))
259 n = sh_iocheckfd(shp,fd);
263 if(fd==1)
267 if(!(outfile=shp->sftable[fd]))
271 shp->sftable[fd] = outfile = sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fd,n);