Lines Matching defs:outfile
143 register Sfio_t *outfile;
267 if(!(outfile=shp->sftable[fd]))
271 shp->sftable[fd] = outfile = sfnew(NIL(Sfio_t*),shp->outbuff,IOBSIZE,fd,n);
273 sfpool(outfile,shp->outpool,SF_WRITE);
276 n = sfset(outfile,SF_SHARE|SF_PUBLIC,0);
294 sfprintf(outfile,"%!",&pdata);
297 sfwrite(outfile,stakptr(staktell()),pdata.argsize);
298 if(sffileno(outfile)!=sffileno(sfstderr))
299 sfsync(outfile);
307 fmtbase64(outfile,*argv++,vflag=='C');
309 sfputc(outfile,'\n');
317 else if(sh_echolist(outfile,rflag,argv) && !nflag)
318 sfputc(outfile,'\n');
327 sfset(outfile,SF_SHARE|SF_PUBLIC,1);
328 sfsync(outfile);
334 * echo the argument list onto <outfile>
339 int sh_echolist(Sfio_t *outfile, int raw, char *argv[])
351 sfwrite(outfile,stakptr(staktell()),n);
354 sfputr(outfile,cp,-1);
356 sfputc(outfile,' ');