/ast/src/cmd/pack/ |
H A D | huffgethdr.c | 33 Huff_t *huffgethdr(register Sfio_t *infile) argument 44 if(sfgetc(infile)!=HUFFMAG1 || sfgetc(infile)!=HUFFMAG2) 48 hp->insize = (hp->insize<<CHAR_BIT)+ sfgetc(infile); 50 hp->maxlev = sfgetc(infile); 55 hp->insize = (hp->insize<<CHAR_BIT)+ sfgetc(infile); 56 hp->maxlev = sfgetc(infile); 63 if((c=sfgetc(infile)) < 0) 78 if((c=sfgetc(infile)) < 0) 83 if((c=sfgetc(infile)) < [all...] |
H A D | pack.c | 94 register char *infile,*outfile; local 121 while (infile = *argv++) 123 if(*infile == '-') 126 switch(infile[1]) 140 if(!(outfile = outname(infile))) 142 if (!(fpin=sfopen((Sfio_t*)0,infile,"r"))) 143 error(ERROR_system(0), "%s: cannot open", infile); 145 error(ERROR_system(0), "%s: cannot stat", infile); 147 error(2, "%s: cannot pack a directory", infile); 149 error(2, "%s: has links", infile); 204 outname(char *infile) argument [all...] |
H A D | unpack.c | 89 register char *infile,*outfile; local 146 if(!(infile = inname(outfile))) 148 if(!(fpin=sfopen((Sfio_t*)0,infile,"r"))) 150 error(ERROR_system(0), "%s: cannot open", infile); 158 error(ERROR_system(0), "%s: cannot stat", infile); 160 error(2, "%s: cannot pack a directory", infile); 162 error(2, "%s: has links", infile); 179 error(2, "%s: read error", infile); 187 sfprintf(sfstdout,"%s: %s: unpacked\n",command, infile); 189 if(remove(infile) < [all...] |
H A D | huffencode.c | 54 * encode <size> bytes of <infile> using <hp> encoding and write 59 Sfoff_t huffencode(register Huff_t *hp,Sfio_t *infile,Sfio_t *outfile,int size) argument 89 if(!(inbuff=(unsigned char*)sfreserve(infile,SF_UNBOUND,0))) 91 if((n=sfvalue(infile))==0) 98 n = sfvalue(infile);
|
H A D | huffdecode.c | 53 static Sfio_t *infile; variable 94 infile = input; 95 if(!(inp=inbuff=(unsigned char*)sfreserve(infile,SF_UNBOUND,0))) 96 return(sfvalue(infile)); 97 inend = inp + sfvalue(infile); 145 sfread(infile, inbuff,inp-inbuff); 218 if(cp=(unsigned char*)sfreserve(infile,SF_UNBOUND,0)) 220 n = sfvalue(infile);
|
H A D | huffinit.c | 44 Huff_t *huffinit(Sfio_t *infile, Sfoff_t insize) argument 60 while(inbuff=(unsigned char*)sfreserve(infile,SF_UNBOUND,0)) 62 n = sfvalue(infile);
|
/ast/src/cmd/ksh93/sh/ |
H A D | trestore.c | 43 static Sfio_t *infile; variable 50 infile = in; 59 long l = sfgetl(infile); 80 t->fork.forkline = sfgetu(infile); 106 t->ar.arline = sfgetu(infile); 116 t->for_.forline = sfgetu(infile); 125 t->sw.swline = sfgetu(infile); 140 t->funct.functline = sfgetu(infile); 162 t->tst.tstline = sfgetu(infile); 182 while((l=sfgetu(infile))> [all...] |
H A D | deparse.c | 588 Sfio_t *infile; local 595 infile = sfnew((Sfio_t*)0,iop->ioname,iop->iosize,-1,SF_STRING|SF_READ); 597 sfseek(infile=sh.heredocs,iop->iooffset,SEEK_SET); 598 sfmove(infile,outfile,iop->iosize,-1); 600 sfclose(infile);
|
H A D | macro.c | 266 * Expand here document which is stored in <infile> or <string> 269 void sh_machere(Shell_t *shp,Sfio_t *infile, Sfio_t *outfile, char *string) argument 288 if(infile) 289 fcfopen(infile);
|
H A D | io.c | 1554 register Sfio_t *infile = 0, *outfile, *tmp; local 1585 infile = subopen(shp,shp->heredocs,iop->iooffset,iop->iosize); 1599 sfmove(infile,tmp,SF_UNBOUND,-1); 1600 sfclose(infile); 1610 infile = tmp; 1615 sh_machere(shp,infile,outfile,iop->ioname); 1617 if(infile) 1618 sfclose(infile);
|
/ast/src/lib/libz/ |
H A D | minigzip.c | 227 char *infile, *outfile; local 235 infile = file; 240 infile = buf; 241 strcat(infile, GZ_SUFFIX); 243 in = gzopen(infile, "rb"); 245 fprintf(stderr, "%s: can't gzopen %s\n", prog, infile); 256 unlink(infile);
|
/ast/src/cmd/builtin/ |
H A D | pr.c | 107 Sfio_t *infile; member in struct:_pr_ 226 if((n=sfmove(pp->infile,out,pp->pagelen,'\n')) != pp->pagelen) 230 if(!sfreserve(pp->infile,0,0)||sfvalue(pp->infile)<0) 369 if(sfmove(pp->infile, NiL, n, '\n')!=n) 372 while(cp = sfgetr(pp->infile,'\n',0)) 374 n = sfvalue(pp->infile); 481 register Sfio_t *fp=pp->infile; 890 pp->infile = fp;
|
/ast/src/lib/libcmd/ |
H A D | tail.c | 201 pipetail(Sfio_t* infile, Sfio_t* outfile, Sfoff_t number, int delim) argument 216 while ((n = sfmove(infile, out, number, delim)) > 0)
|