Lines Matching refs:fno
383 static void exfile(register Shell_t *shp, register Sfio_t *iop,register int fno)
395 if(fno > 0)
398 if(fno < 10 && ((r=sh_fcntl(fno,F_DUPFD,10))>=10))
400 shp->fdstatus[r] = shp->fdstatus[fno];
401 sh_close(fno);
402 fno = r;
404 fcntl(fno,F_SETFD,FD_CLOEXEC);
405 shp->fdstatus[fno] |= IOCLEX;
406 iop = sh_iostream((void*)shp,fno);
412 fno = -1;
413 shp->infd = fno;
554 !sferror(sfstderr) && (shp->fdstatus[fno]&IOTTY))
594 (fno<0 || !(shp->fdstatus[fno]&(IOTTY|IONOSEEK)))
622 if(fno>0)
623 sh_close(fno);