Lines Matching refs:bzerr
336 Int32 bzerr, bzerr_dummy, ret; in compressStream() local
344 bzf = BZ2_bzWriteOpen ( &bzerr, zStream, in compressStream()
346 if (bzerr != BZ_OK) goto errhandler; in compressStream()
355 if (nIbuf > 0) BZ2_bzWrite ( &bzerr, bzf, (void*)ibuf, nIbuf ); in compressStream()
356 if (bzerr != BZ_OK) goto errhandler; in compressStream()
360 BZ2_bzWriteClose64 ( &bzerr, bzf, 0, in compressStream()
363 if (bzerr != BZ_OK) goto errhandler; in compressStream()
413 switch (bzerr) { in compressStream()
436 Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i; in uncompressStream() local
455 &bzerr, zStream, verbosity, in uncompressStream()
458 if (bzf == NULL || bzerr != BZ_OK) goto errhandler; in uncompressStream()
461 while (bzerr == BZ_OK) { in uncompressStream()
462 nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 ); in uncompressStream()
463 if (bzerr == BZ_DATA_ERROR_MAGIC) goto trycat; in uncompressStream()
464 if ((bzerr == BZ_OK || bzerr == BZ_STREAM_END) && nread > 0) in uncompressStream()
468 if (bzerr != BZ_STREAM_END) goto errhandler; in uncompressStream()
470 BZ2_bzReadGetUnused ( &bzerr, bzf, &unusedTmpV, &nUnused ); in uncompressStream()
471 if (bzerr != BZ_OK) panic ( "decompress:bzReadGetUnused" ); in uncompressStream()
476 BZ2_bzReadClose ( &bzerr, bzf ); in uncompressStream()
477 if (bzerr != BZ_OK) panic ( "decompress:bzReadGetUnused" ); in uncompressStream()
519 switch (bzerr) { in uncompressStream()
557 Int32 bzerr, bzerr_dummy, ret, nread, streamNo, i; in testStream() local
573 &bzerr, zStream, verbosity, in testStream()
576 if (bzf == NULL || bzerr != BZ_OK) goto errhandler; in testStream()
579 while (bzerr == BZ_OK) { in testStream()
580 nread = BZ2_bzRead ( &bzerr, bzf, obuf, 5000 ); in testStream()
581 if (bzerr == BZ_DATA_ERROR_MAGIC) goto errhandler; in testStream()
583 if (bzerr != BZ_STREAM_END) goto errhandler; in testStream()
585 BZ2_bzReadGetUnused ( &bzerr, bzf, &unusedTmpV, &nUnused ); in testStream()
586 if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" ); in testStream()
591 BZ2_bzReadClose ( &bzerr, bzf ); in testStream()
592 if (bzerr != BZ_OK) panic ( "test:bzReadGetUnused" ); in testStream()
608 switch (bzerr) { in testStream()