Lines Matching refs:bzerror
378 int bzerror; in bzip() local
396 b = BZ2_bzWriteOpen( &bzerror, f, sh->conf->bzip_blocksize, 0, 0); in bzip()
397 if (bzerror != BZ_OK) { in bzip()
398 BZ2_bzWriteClose ( &bzerror, b, 1, 0, 0 ); in bzip()
408 BZ2_bzWrite ( &bzerror, b, &data[total], len ); in bzip()
409 if (bzerror == BZ_IO_ERROR) { in bzip()
410 BZ2_bzWriteClose ( &bzerror, b, 1, 0, 0 ); in bzip()
416 BZ2_bzWriteClose ( &bzerror, b, 0, 0, 0 ); in bzip()
418 if (bzerror == BZ_IO_ERROR) { in bzip()
436 int bzerror; in bunzip() local
449 bzerror = fread(buf, 1, BZ2_MAGICLEN, f); in bunzip()
451 if ((bzerror != BZ2_MAGICLEN) || memcmp(buf, BZ2_MAGICSTR, BZ2_MAGICLEN)) { in bunzip()
455 b = BZ2_bzReadOpen ( &bzerror, f, 0, sh->conf->bzip_small, NULL, 0 ); in bunzip()
456 if ( bzerror != BZ_OK ) { in bunzip()
467 while ( bzerror == BZ_OK) { in bunzip()
468 nBuf = BZ2_bzRead ( &bzerror, b, buf, bufsize); in bunzip()
469 if (( bzerror == BZ_OK ) || ( bzerror == BZ_STREAM_END )) { in bunzip()
483 if ( bzerror != BZ_STREAM_END ) { in bunzip()
492 BZ2_bzReadClose ( &bzerror, b ); in bunzip()