Lines Matching refs:bzerror
407 int bzerror; in bzip() local
425 b = BZ2_bzWriteOpen( &bzerror, f, sh->conf->bzip_blocksize, 0, 0); in bzip()
426 if (bzerror != BZ_OK) { in bzip()
427 BZ2_bzWriteClose ( &bzerror, b, 1, 0, 0 ); in bzip()
437 BZ2_bzWrite ( &bzerror, b, &data[total], len ); in bzip()
438 if (bzerror == BZ_IO_ERROR) { in bzip()
439 BZ2_bzWriteClose ( &bzerror, b, 1, 0, 0 ); in bzip()
445 BZ2_bzWriteClose ( &bzerror, b, 0, 0, 0 ); in bzip()
447 if (bzerror == BZ_IO_ERROR) { in bzip()
465 int bzerror; in bunzip() local
478 bzerror = fread(buf, 1, BZ2_MAGICLEN, f); in bunzip()
480 if ((bzerror != BZ2_MAGICLEN) || memcmp(buf, BZ2_MAGICSTR, BZ2_MAGICLEN)) { in bunzip()
484 b = BZ2_bzReadOpen ( &bzerror, f, 0, sh->conf->bzip_small, NULL, 0 ); in bunzip()
485 if ( bzerror != BZ_OK ) { in bunzip()
496 while ( bzerror == BZ_OK) { in bunzip()
497 nBuf = BZ2_bzRead ( &bzerror, b, buf, bufsize); in bunzip()
498 if (( bzerror == BZ_OK ) || ( bzerror == BZ_STREAM_END )) { in bunzip()
512 if ( bzerror != BZ_STREAM_END ) { in bunzip()
521 BZ2_bzReadClose ( &bzerror, b ); in bunzip()