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