Lines Matching defs:iop
94 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file)
109 exfile(shp, iop, fd);
125 register Sfio_t *iop;
159 iop = (Sfio_t*)0;
202 sh_source(shp, iop, e_sysprofile);
206 while ((name = *files++) && !sh_source(shp, iop, sh_mactry(shp,name)));
219 sh_source(shp, iop, e_bash_sysrc);
221 sh_source(shp, iop, shp->gd->rcfile ? shp->gd->rcfile : sh_mactry(shp,(char*)e_bash_rc));
230 sh_source(shp, iop, e_sysrc);
234 sh_source(shp, iop, name);
240 sh_source(shp, iop, e_suidprofile);
250 iop = sfnew(NIL(Sfio_t*),shp->comdiv,strlen(shp->comdiv),0,SF_STRING|SF_READ);
353 exfile(shp,iop,fdin);
360 * iop is not null when the input is a string
364 static void exfile(register Shell_t *shp, register Sfio_t *iop,register int fno)
374 if(!iop)
387 iop = sh_iostream((void*)shp,fno);
390 iop = sfstdin;
443 while(top=sfstack(iop,SF_POPSTACK))
452 sfclrerr(iop);
462 if(sfeof(iop))
528 if(tdone || !sfreserve(iop,0,0))
531 if(sh_isstate(SH_INTERACTIVE) && !sferror(iop))
536 sfclrerr(iop);
543 if(errno==0 && sferror(iop) && --maxtry>0)
545 sfclrlock(iop);
546 sfclrerr(iop);
563 t = (Shnode_t*)sh_parse(shp,iop,0);
576 && !sfreserve(iop,0,0))