Lines Matching defs:strm
193 of buffered input at next. strm is used for passing error information back
197 file, read error, or write error (a write error indicated by strm->next_in
201 int outfile, z_stream *strm)
230 strm->msg = (char *)"unknown lzw flags set";
235 strm->msg = (char *)"lzw bits out of range";
255 strm->msg = (char *)"invalid lzw code";
282 strm->next_in = outbuf; /* signal write error */
322 strm->msg = (char *)"invalid lzw code";
354 strm->next_in = outbuf; /* signal write error */
371 /* Decompress a gzip file from infile to outfile. strm is assumed to have been
383 local int gunpipe(z_stream *strm, int infile, int outfile)
399 strm->next_in = Z_NULL; /* so Z_BUF_ERROR means EOF */
407 strm
415 ret = lunpipe(have, next, indp, outfile, strm);
423 strm->msg = (char *)"unknown compression method";
436 strm->msg = (char *)"unknown header flags set";
473 strm->next_in = next;
474 strm->avail_in = have;
475 ret = inflateBack(strm, in, indp, out, &outd);
477 next = strm->next_in;
478 have = strm->avail_in;
479 strm->next_in = Z_NULL; /* so Z_BUF_ERROR means EOF */
489 strm->msg = (char *)"incorrect data check";
500 strm->msg = (char *)"incorrect length check";
541 an empty string, write to stdout. strm is a pre-initialized inflateBack
548 local int gunzip(z_stream *strm, char *inname, char *outname, int test)
582 ret = gunpipe(strm, infile, outfile);
600 fprintf(stderr, "gun data error on %s: %s\n", inname, strm->msg);
608 if (strm->next_in != Z_NULL) {
636 z_stream strm;
640 strm.zalloc = Z_NULL;
641 strm.zfree = Z_NULL;
642 strm.opaque = Z_NULL;
643 ret = inflateBackInit(&strm, 15, window);
692 ret = gunzip(&strm, *argv, outname, test);
697 ret = gunzip(&strm, NULL, NULL, test);
700 inflateBackEnd(&strm);