Lines Matching refs:outfile
173 register Sfio_t *outfile;
301 if(!(outfile=shp->sftable[fd]))
305 shp->sftable[fd] = outfile = sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fd,n);
307 sfpool(outfile,shp->outpool,SF_WRITE);
310 n = sfset(outfile,SF_SHARE|SF_PUBLIC,0);
328 sfprintf(outfile,"%!",&pdata);
331 sfwrite(outfile,stakptr(staktell()),pdata.argsize);
332 if(sffileno(outfile)!=sffileno(sfstderr))
333 sfsync(outfile);
341 fmtbase64(outfile,*argv++,vflag=='C');
343 sfputc(outfile,'\n');
351 else if(sh_echolist(shp,outfile,rflag,argv) && !nflag)
352 sfputc(outfile,'\n');
361 sfset(outfile,SF_SHARE|SF_PUBLIC,1);
362 sfsync(outfile);
368 * echo the argument list onto <outfile>
373 int sh_echolist(Shell_t *shp,Sfio_t *outfile, int raw, char *argv[])
385 sfwrite(outfile,stakptr(staktell()),n);
388 sfputr(outfile,cp,-1);
390 sfputc(outfile,' ');