1*ca3e8d88SDave Plauger# 2*ca3e8d88SDave Plauger# CDDL HEADER START 3*ca3e8d88SDave Plauger# 4*ca3e8d88SDave Plauger# The contents of this file are subject to the terms of the 5*ca3e8d88SDave Plauger# Common Development and Distribution License (the "License"). 6*ca3e8d88SDave Plauger# You may not use this file except in compliance with the License. 7*ca3e8d88SDave Plauger# 8*ca3e8d88SDave Plauger# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*ca3e8d88SDave Plauger# or http://www.opensolaris.org/os/licensing. 10*ca3e8d88SDave Plauger# See the License for the specific language governing permissions 11*ca3e8d88SDave Plauger# and limitations under the License. 12*ca3e8d88SDave Plauger# 13*ca3e8d88SDave Plauger# When distributing Covered Code, include this CDDL HEADER in each 14*ca3e8d88SDave Plauger# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*ca3e8d88SDave Plauger# If applicable, add the following below this CDDL HEADER, with the 16*ca3e8d88SDave Plauger# fields enclosed by brackets "[]" replaced with your own identifying 17*ca3e8d88SDave Plauger# information: Portions Copyright [yyyy] [name of copyright owner] 18*ca3e8d88SDave Plauger# 19*ca3e8d88SDave Plauger# CDDL HEADER END 20*ca3e8d88SDave Plauger# 21*ca3e8d88SDave Plauger# 22*ca3e8d88SDave Plauger# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*ca3e8d88SDave Plauger# Use is subject to license terms. 24*ca3e8d88SDave Plauger# 25*ca3e8d88SDave Plauger 26*ca3e8d88SDave PlaugerThe source in this directory has been derived from libbzip2 version 27*ca3e8d88SDave Plauger1.0.5 downloaded from http://www.bzip.org. 28*ca3e8d88SDave Plauger 29*ca3e8d88SDave PlaugerIn an effort to provide ease of syncing with the upstream code, this 30*ca3e8d88SDave Plaugersource hasn't changed much. The usual Solaris coding standards have 31*ca3e8d88SDave Plaugerbeen waived. It does not pass cstyle. But, enough modifications were 32*ca3e8d88SDave Plaugermade so that the code does compile and lint cleanly. 33*ca3e8d88SDave Plauger 34*ca3e8d88SDave PlaugerSome modifications have been made for use in the Solaris kernel: 35*ca3e8d88SDave Plauger1) compilation errors were corrected 36*ca3e8d88SDave Plauger2) lint complaints were fixed 37*ca3e8d88SDave Plauger3) a few utility interfaces were added 38*ca3e8d88SDave Plauger BZ2_bzCompressInitSize 39*ca3e8d88SDave Plauger BZ2_bzCompressReset 40*ca3e8d88SDave Plauger BZ2_bzDecompressReset 41*ca3e8d88SDave Plauger BZ2_bzErrorString 42*ca3e8d88SDave Plauger 43*ca3e8d88SDave Plauger 44*ca3e8d88SDave PlaugerHere is a complete list of changes made by Sun to the original 1.0.5 45*ca3e8d88SDave Plaugersource: 46*ca3e8d88SDave Plauger 47*ca3e8d88SDave Plauger------------------------ blocksort.c ------------------------ 48*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/blocksort.c ./blocksort.c 49*ca3e8d88SDave Plauger 50*ca3e8d88SDave Plauger------------------------ bzlib.c ------------------------ 51*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/bzlib.c ./bzlib.c 52*ca3e8d88SDave Plauger98a99,116 53*ca3e8d88SDave Plauger> /* 54*ca3e8d88SDave Plauger> * Added for Solaris kernel 55*ca3e8d88SDave Plauger> */ 56*ca3e8d88SDave Plauger> #define BZES \ 57*ca3e8d88SDave Plauger> BZE(BZ_OK) \ 58*ca3e8d88SDave Plauger> BZE(BZ_RUN_OK) \ 59*ca3e8d88SDave Plauger> BZE(BZ_FLUSH_OK) \ 60*ca3e8d88SDave Plauger> BZE(BZ_FINISH_OK) \ 61*ca3e8d88SDave Plauger> BZE(BZ_STREAM_END) \ 62*ca3e8d88SDave Plauger> BZE(BZ_SEQUENCE_ERROR) \ 63*ca3e8d88SDave Plauger> BZE(BZ_PARAM_ERROR) \ 64*ca3e8d88SDave Plauger> BZE(BZ_MEM_ERROR) \ 65*ca3e8d88SDave Plauger> BZE(BZ_DATA_ERROR) \ 66*ca3e8d88SDave Plauger> BZE(BZ_DATA_ERROR_MAGIC) \ 67*ca3e8d88SDave Plauger> BZE(BZ_IO_ERROR) \ 68*ca3e8d88SDave Plauger> BZE(BZ_UNEXPECTED_EOF) \ 69*ca3e8d88SDave Plauger> BZE(BZ_OUTBUFF_FULL) \ 70*ca3e8d88SDave Plauger> BZE(BZ_CONFIG_ERROR) 71*ca3e8d88SDave Plauger99a118,144 72*ca3e8d88SDave Plauger> BZ_EXTERN const char * BZ_API(BZ2_bzErrorString) ( 73*ca3e8d88SDave Plauger> int error_code 74*ca3e8d88SDave Plauger> ) 75*ca3e8d88SDave Plauger> { 76*ca3e8d88SDave Plauger> switch (error_code) 77*ca3e8d88SDave Plauger> { 78*ca3e8d88SDave Plauger> #define BZE(x) case x: return (#x); 79*ca3e8d88SDave Plauger> BZES 80*ca3e8d88SDave Plauger> #undef BZE 81*ca3e8d88SDave Plauger> } 82*ca3e8d88SDave Plauger> return ("BZ_UNKNOWN_ERROR"); 83*ca3e8d88SDave Plauger> } 84*ca3e8d88SDave Plauger> 85*ca3e8d88SDave Plauger> #include <sys/sysmacros.h> 86*ca3e8d88SDave Plauger> 87*ca3e8d88SDave Plauger> #ifdef _KERNEL 88*ca3e8d88SDave Plauger> 89*ca3e8d88SDave Plauger> #include <sys/types.h> 90*ca3e8d88SDave Plauger> #include <sys/cmn_err.h> 91*ca3e8d88SDave Plauger> #include <sys/kmem.h> 92*ca3e8d88SDave Plauger> 93*ca3e8d88SDave Plauger> void 94*ca3e8d88SDave Plauger> bz_internal_error(int errcode) 95*ca3e8d88SDave Plauger> { 96*ca3e8d88SDave Plauger> panic("bzip2 internal error: %s\n", BZ2_bzErrorString(errcode)); 97*ca3e8d88SDave Plauger> } 98*ca3e8d88SDave Plauger> 99*ca3e8d88SDave Plauger100a146,150 100*ca3e8d88SDave Plauger> typedef struct { 101*ca3e8d88SDave Plauger> char *buf; 102*ca3e8d88SDave Plauger> size_t sz; 103*ca3e8d88SDave Plauger> } bzap; 104*ca3e8d88SDave Plauger> 105*ca3e8d88SDave Plauger103a154,181 106*ca3e8d88SDave Plauger> size_t sz = sizeof (bzap) + BZ2_BZALLOC_ALIGN + (items * size); 107*ca3e8d88SDave Plauger> uintptr_t p = (uintptr_t)kmem_alloc(sz, KM_SLEEP); 108*ca3e8d88SDave Plauger> 109*ca3e8d88SDave Plauger> if (p != NULL) { 110*ca3e8d88SDave Plauger> bzap *pp = (bzap *)((p + sizeof (bzap) + BZ2_BZALLOC_ALIGN - 1) & 111*ca3e8d88SDave Plauger> -BZ2_BZALLOC_ALIGN); 112*ca3e8d88SDave Plauger> pp[-1].buf = (void *)p; 113*ca3e8d88SDave Plauger> pp[-1].sz = sz; 114*ca3e8d88SDave Plauger> return (pp); 115*ca3e8d88SDave Plauger> } 116*ca3e8d88SDave Plauger> return (NULL); 117*ca3e8d88SDave Plauger> } 118*ca3e8d88SDave Plauger> 119*ca3e8d88SDave Plauger> static 120*ca3e8d88SDave Plauger> void default_bzfree ( void* opaque, void* addr ) 121*ca3e8d88SDave Plauger> { 122*ca3e8d88SDave Plauger> if (addr != NULL) { 123*ca3e8d88SDave Plauger> bzap *pp = (bzap *)addr - 1; 124*ca3e8d88SDave Plauger> kmem_free(pp->buf, pp->sz); 125*ca3e8d88SDave Plauger> } 126*ca3e8d88SDave Plauger> } 127*ca3e8d88SDave Plauger> 128*ca3e8d88SDave Plauger> #else 129*ca3e8d88SDave Plauger> 130*ca3e8d88SDave Plauger> /*---------------------------------------------------*/ 131*ca3e8d88SDave Plauger> static 132*ca3e8d88SDave Plauger> void* default_bzalloc ( void* opaque, Int32 items, Int32 size ) 133*ca3e8d88SDave Plauger> { 134*ca3e8d88SDave Plauger112a191 135*ca3e8d88SDave Plauger> #endif /* _KERNEL */ 136*ca3e8d88SDave Plauger114d192 137*ca3e8d88SDave Plauger< 138*ca3e8d88SDave Plauger212a291,298 139*ca3e8d88SDave Plauger> /*---------------------------------------------------*/ 140*ca3e8d88SDave Plauger> /* 141*ca3e8d88SDave Plauger> * returns the BZALLOC size needed for bzCompressInit 142*ca3e8d88SDave Plauger> */ 143*ca3e8d88SDave Plauger> int BZ_API(BZ2_bzCompressInitSize) ( 144*ca3e8d88SDave Plauger> int blockSize100k) 145*ca3e8d88SDave Plauger> { 146*ca3e8d88SDave Plauger> Int32 n, t; 147*ca3e8d88SDave Plauger213a300,312 148*ca3e8d88SDave Plauger> n = 100000 * blockSize100k; 149*ca3e8d88SDave Plauger> t = 0; 150*ca3e8d88SDave Plauger> t += ( sizeof(EState) ); 151*ca3e8d88SDave Plauger> t = P2ROUNDUP(t, BZ2_BZALLOC_ALIGN); 152*ca3e8d88SDave Plauger> t += ( n * sizeof(UInt32) ); 153*ca3e8d88SDave Plauger> t = P2ROUNDUP(t, BZ2_BZALLOC_ALIGN); 154*ca3e8d88SDave Plauger> t += ( (n+BZ_N_OVERSHOOT) * sizeof(UInt32) ); 155*ca3e8d88SDave Plauger> t = P2ROUNDUP(t, BZ2_BZALLOC_ALIGN); 156*ca3e8d88SDave Plauger> t += ( 65537 * sizeof(UInt32) ); 157*ca3e8d88SDave Plauger> t = P2ROUNDUP(t, BZ2_BZALLOC_ALIGN); 158*ca3e8d88SDave Plauger> return (t); 159*ca3e8d88SDave Plauger> } 160*ca3e8d88SDave Plauger> 161*ca3e8d88SDave Plauger214a314,376 162*ca3e8d88SDave Plauger> /* 163*ca3e8d88SDave Plauger> * added to allow reuse of bz_stream without malloc/free 164*ca3e8d88SDave Plauger> */ 165*ca3e8d88SDave Plauger> int BZ_API(BZ2_bzCompressReset) ( bz_stream *strm ) 166*ca3e8d88SDave Plauger> { 167*ca3e8d88SDave Plauger> EState* s = strm->state; 168*ca3e8d88SDave Plauger> 169*ca3e8d88SDave Plauger> if (!bz_config_ok()) return BZ_CONFIG_ERROR; 170*ca3e8d88SDave Plauger> 171*ca3e8d88SDave Plauger> if (s == NULL) return BZ_MEM_ERROR; 172*ca3e8d88SDave Plauger> s->strm = strm; 173*ca3e8d88SDave Plauger> 174*ca3e8d88SDave Plauger> s->blockNo = 0; 175*ca3e8d88SDave Plauger> s->state = BZ_S_INPUT; 176*ca3e8d88SDave Plauger> s->mode = BZ_M_RUNNING; 177*ca3e8d88SDave Plauger> s->combinedCRC = 0; 178*ca3e8d88SDave Plauger> s->nblockMAX = 100000 * s->blockSize100k - 19; 179*ca3e8d88SDave Plauger> 180*ca3e8d88SDave Plauger> s->block = (UChar*)s->arr2; 181*ca3e8d88SDave Plauger> s->mtfv = (UInt16*)s->arr1; 182*ca3e8d88SDave Plauger> s->zbits = NULL; 183*ca3e8d88SDave Plauger> s->ptr = (UInt32*)s->arr1; 184*ca3e8d88SDave Plauger> 185*ca3e8d88SDave Plauger> strm->state = s; 186*ca3e8d88SDave Plauger> strm->total_in_lo32 = 0; 187*ca3e8d88SDave Plauger> strm->total_in_hi32 = 0; 188*ca3e8d88SDave Plauger> strm->total_out_lo32 = 0; 189*ca3e8d88SDave Plauger> strm->total_out_hi32 = 0; 190*ca3e8d88SDave Plauger> init_RL ( s ); 191*ca3e8d88SDave Plauger> prepare_new_block ( s ); 192*ca3e8d88SDave Plauger> return BZ_OK; 193*ca3e8d88SDave Plauger> } 194*ca3e8d88SDave Plauger> 195*ca3e8d88SDave Plauger> int BZ_API(BZ2_bzDecompressReset) ( bz_stream* strm ) 196*ca3e8d88SDave Plauger> { 197*ca3e8d88SDave Plauger> DState* s = strm->state; 198*ca3e8d88SDave Plauger> 199*ca3e8d88SDave Plauger> if (!bz_config_ok()) return BZ_CONFIG_ERROR; 200*ca3e8d88SDave Plauger> 201*ca3e8d88SDave Plauger> if (strm == NULL) return BZ_PARAM_ERROR; 202*ca3e8d88SDave Plauger> 203*ca3e8d88SDave Plauger> s->strm = strm; 204*ca3e8d88SDave Plauger> 205*ca3e8d88SDave Plauger> s->state = BZ_X_MAGIC_1; 206*ca3e8d88SDave Plauger> s->bsLive = 0; 207*ca3e8d88SDave Plauger> s->bsBuff = 0; 208*ca3e8d88SDave Plauger> s->calculatedCombinedCRC = 0; 209*ca3e8d88SDave Plauger> strm->total_in_lo32 = 0; 210*ca3e8d88SDave Plauger> strm->total_in_hi32 = 0; 211*ca3e8d88SDave Plauger> strm->total_out_lo32 = 0; 212*ca3e8d88SDave Plauger> strm->total_out_hi32 = 0; 213*ca3e8d88SDave Plauger> 214*ca3e8d88SDave Plauger> s->ll4 = NULL; 215*ca3e8d88SDave Plauger> s->ll16 = NULL; 216*ca3e8d88SDave Plauger> s->tt = NULL; 217*ca3e8d88SDave Plauger> s->currBlockNo = 0; 218*ca3e8d88SDave Plauger> 219*ca3e8d88SDave Plauger> 220*ca3e8d88SDave Plauger> return BZ_OK; 221*ca3e8d88SDave Plauger> } 222*ca3e8d88SDave Plauger> 223*ca3e8d88SDave Plauger> 224*ca3e8d88SDave Plauger> /*---------------------------------------------------*/ 225*ca3e8d88SDave Plauger854a1017 226*ca3e8d88SDave Plauger> #if 0 227*ca3e8d88SDave Plauger857a1021 228*ca3e8d88SDave Plauger> #endif 229*ca3e8d88SDave Plauger1081c1245 230*ca3e8d88SDave Plauger< BZ2_bzCompressEnd ( &(bzf->strm) ); 231*ca3e8d88SDave Plauger--- 232*ca3e8d88SDave Plauger> (void) BZ2_bzCompressEnd ( &(bzf->strm) ); 233*ca3e8d88SDave Plauger1155c1319 234*ca3e8d88SDave Plauger< (void)BZ2_bzDecompressEnd ( &(bzf->strm) ); 235*ca3e8d88SDave Plauger--- 236*ca3e8d88SDave Plauger> (void) BZ2_bzDecompressEnd ( &(bzf->strm) ); 237*ca3e8d88SDave Plauger1285c1449 238*ca3e8d88SDave Plauger< BZ2_bzCompressEnd ( &strm ); 239*ca3e8d88SDave Plauger--- 240*ca3e8d88SDave Plauger> (void) BZ2_bzCompressEnd ( &strm ); 241*ca3e8d88SDave Plauger1289c1453 242*ca3e8d88SDave Plauger< BZ2_bzCompressEnd ( &strm ); 243*ca3e8d88SDave Plauger--- 244*ca3e8d88SDave Plauger> (void) BZ2_bzCompressEnd ( &strm ); 245*ca3e8d88SDave Plauger1293c1457 246*ca3e8d88SDave Plauger< BZ2_bzCompressEnd ( &strm ); 247*ca3e8d88SDave Plauger--- 248*ca3e8d88SDave Plauger> (void) BZ2_bzCompressEnd ( &strm ); 249*ca3e8d88SDave Plauger1333c1497 250*ca3e8d88SDave Plauger< BZ2_bzDecompressEnd ( &strm ); 251*ca3e8d88SDave Plauger--- 252*ca3e8d88SDave Plauger> (void) BZ2_bzDecompressEnd ( &strm ); 253*ca3e8d88SDave Plauger1338c1502 254*ca3e8d88SDave Plauger< BZ2_bzDecompressEnd ( &strm ); 255*ca3e8d88SDave Plauger--- 256*ca3e8d88SDave Plauger> (void) BZ2_bzDecompressEnd ( &strm ); 257*ca3e8d88SDave Plauger1341c1505 258*ca3e8d88SDave Plauger< BZ2_bzDecompressEnd ( &strm ); 259*ca3e8d88SDave Plauger--- 260*ca3e8d88SDave Plauger> (void) BZ2_bzDecompressEnd ( &strm ); 261*ca3e8d88SDave Plauger1343c1507 262*ca3e8d88SDave Plauger< }; 263*ca3e8d88SDave Plauger--- 264*ca3e8d88SDave Plauger> } 265*ca3e8d88SDave Plauger1346c1510 266*ca3e8d88SDave Plauger< BZ2_bzDecompressEnd ( &strm ); 267*ca3e8d88SDave Plauger--- 268*ca3e8d88SDave Plauger> (void) BZ2_bzDecompressEnd ( &strm ); 269*ca3e8d88SDave Plauger 270*ca3e8d88SDave Plauger------------------------ bzlib.h ------------------------ 271*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/bzlib.h ./bzlib.h 272*ca3e8d88SDave Plauger21d20 273*ca3e8d88SDave Plauger< 274*ca3e8d88SDave Plauger24a24,27 275*ca3e8d88SDave Plauger> #ifdef _KERNEL 276*ca3e8d88SDave Plauger> #define BZ_NO_STDIO 277*ca3e8d88SDave Plauger> #endif 278*ca3e8d88SDave Plauger> 279*ca3e8d88SDave Plauger99a103,104 280*ca3e8d88SDave Plauger> #define BZ2_BZALLOC_ALIGN (64) 281*ca3e8d88SDave Plauger> 282*ca3e8d88SDave Plauger106a112,119 283*ca3e8d88SDave Plauger> BZ_EXTERN int BZ_API(BZ2_bzCompressInitSize) ( 284*ca3e8d88SDave Plauger> int blockSize100k 285*ca3e8d88SDave Plauger> ); 286*ca3e8d88SDave Plauger> 287*ca3e8d88SDave Plauger> BZ_EXTERN int BZ_API(BZ2_bzCompressReset) ( 288*ca3e8d88SDave Plauger> bz_stream* strm 289*ca3e8d88SDave Plauger> ); 290*ca3e8d88SDave Plauger> 291*ca3e8d88SDave Plauger121a135,138 292*ca3e8d88SDave Plauger> BZ_EXTERN int BZ_API(BZ2_bzDecompressReset) ( 293*ca3e8d88SDave Plauger> bz_stream* strm 294*ca3e8d88SDave Plauger> ); 295*ca3e8d88SDave Plauger> 296*ca3e8d88SDave Plauger129a147,149 297*ca3e8d88SDave Plauger> BZ_EXTERN const char * BZ_API(BZ2_bzErrorString) ( 298*ca3e8d88SDave Plauger> int error_code 299*ca3e8d88SDave Plauger> ); 300*ca3e8d88SDave Plauger131a152 301*ca3e8d88SDave Plauger> 302*ca3e8d88SDave Plauger278,279d298 303*ca3e8d88SDave Plauger< #endif 304*ca3e8d88SDave Plauger< 305*ca3e8d88SDave Plauger282a302 306*ca3e8d88SDave Plauger> #endif /* _BZLIB_H */ 307*ca3e8d88SDave Plauger 308*ca3e8d88SDave Plauger------------------------ bzlib_private.h ------------------------ 309*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/bzlib_private.h ./bzlib_private.h 310*ca3e8d88SDave Plauger24a25,27 311*ca3e8d88SDave Plauger> #ifdef _KERNEL 312*ca3e8d88SDave Plauger> #define BZ_NO_STDIO 313*ca3e8d88SDave Plauger> #else 314*ca3e8d88SDave Plauger25a29 315*ca3e8d88SDave Plauger> #endif 316*ca3e8d88SDave Plauger87a92 317*ca3e8d88SDave Plauger> #pragma weak bz_internal_error 318*ca3e8d88SDave Plauger90c95 319*ca3e8d88SDave Plauger< { if (!(cond)) bz_internal_error ( errcode ); } 320*ca3e8d88SDave Plauger--- 321*ca3e8d88SDave Plauger> { if (!(cond) && &bz_internal_error != NULL) bz_internal_error ( errcode ); } 322*ca3e8d88SDave Plauger159c164 323*ca3e8d88SDave Plauger< crcVar = 0xffffffffL; \ 324*ca3e8d88SDave Plauger--- 325*ca3e8d88SDave Plauger> crcVar = 0xffffffffUL; \ 326*ca3e8d88SDave Plauger495,497d499 327*ca3e8d88SDave Plauger< #endif 328*ca3e8d88SDave Plauger< 329*ca3e8d88SDave Plauger< 330*ca3e8d88SDave Plauger509a512 331*ca3e8d88SDave Plauger> #endif /* _BZLIB_PRIVATE_H */ 332*ca3e8d88SDave Plauger 333*ca3e8d88SDave Plauger------------------------ compress.c ------------------------ 334*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/compress.c ./compress.c 335*ca3e8d88SDave Plauger 336*ca3e8d88SDave Plauger------------------------ crctable.c ------------------------ 337*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/crctable.c ./crctable.c 338*ca3e8d88SDave Plauger35,98c35,98 339*ca3e8d88SDave Plauger< 0x00000000L, 0x04c11db7L, 0x09823b6eL, 0x0d4326d9L, 340*ca3e8d88SDave Plauger< 0x130476dcL, 0x17c56b6bL, 0x1a864db2L, 0x1e475005L, 341*ca3e8d88SDave Plauger< 0x2608edb8L, 0x22c9f00fL, 0x2f8ad6d6L, 0x2b4bcb61L, 342*ca3e8d88SDave Plauger< 0x350c9b64L, 0x31cd86d3L, 0x3c8ea00aL, 0x384fbdbdL, 343*ca3e8d88SDave Plauger< 0x4c11db70L, 0x48d0c6c7L, 0x4593e01eL, 0x4152fda9L, 344*ca3e8d88SDave Plauger< 0x5f15adacL, 0x5bd4b01bL, 0x569796c2L, 0x52568b75L, 345*ca3e8d88SDave Plauger< 0x6a1936c8L, 0x6ed82b7fL, 0x639b0da6L, 0x675a1011L, 346*ca3e8d88SDave Plauger< 0x791d4014L, 0x7ddc5da3L, 0x709f7b7aL, 0x745e66cdL, 347*ca3e8d88SDave Plauger< 0x9823b6e0L, 0x9ce2ab57L, 0x91a18d8eL, 0x95609039L, 348*ca3e8d88SDave Plauger< 0x8b27c03cL, 0x8fe6dd8bL, 0x82a5fb52L, 0x8664e6e5L, 349*ca3e8d88SDave Plauger< 0xbe2b5b58L, 0xbaea46efL, 0xb7a96036L, 0xb3687d81L, 350*ca3e8d88SDave Plauger< 0xad2f2d84L, 0xa9ee3033L, 0xa4ad16eaL, 0xa06c0b5dL, 351*ca3e8d88SDave Plauger< 0xd4326d90L, 0xd0f37027L, 0xddb056feL, 0xd9714b49L, 352*ca3e8d88SDave Plauger< 0xc7361b4cL, 0xc3f706fbL, 0xceb42022L, 0xca753d95L, 353*ca3e8d88SDave Plauger< 0xf23a8028L, 0xf6fb9d9fL, 0xfbb8bb46L, 0xff79a6f1L, 354*ca3e8d88SDave Plauger< 0xe13ef6f4L, 0xe5ffeb43L, 0xe8bccd9aL, 0xec7dd02dL, 355*ca3e8d88SDave Plauger< 0x34867077L, 0x30476dc0L, 0x3d044b19L, 0x39c556aeL, 356*ca3e8d88SDave Plauger< 0x278206abL, 0x23431b1cL, 0x2e003dc5L, 0x2ac12072L, 357*ca3e8d88SDave Plauger< 0x128e9dcfL, 0x164f8078L, 0x1b0ca6a1L, 0x1fcdbb16L, 358*ca3e8d88SDave Plauger< 0x018aeb13L, 0x054bf6a4L, 0x0808d07dL, 0x0cc9cdcaL, 359*ca3e8d88SDave Plauger< 0x7897ab07L, 0x7c56b6b0L, 0x71159069L, 0x75d48ddeL, 360*ca3e8d88SDave Plauger< 0x6b93dddbL, 0x6f52c06cL, 0x6211e6b5L, 0x66d0fb02L, 361*ca3e8d88SDave Plauger< 0x5e9f46bfL, 0x5a5e5b08L, 0x571d7dd1L, 0x53dc6066L, 362*ca3e8d88SDave Plauger< 0x4d9b3063L, 0x495a2dd4L, 0x44190b0dL, 0x40d816baL, 363*ca3e8d88SDave Plauger< 0xaca5c697L, 0xa864db20L, 0xa527fdf9L, 0xa1e6e04eL, 364*ca3e8d88SDave Plauger< 0xbfa1b04bL, 0xbb60adfcL, 0xb6238b25L, 0xb2e29692L, 365*ca3e8d88SDave Plauger< 0x8aad2b2fL, 0x8e6c3698L, 0x832f1041L, 0x87ee0df6L, 366*ca3e8d88SDave Plauger< 0x99a95df3L, 0x9d684044L, 0x902b669dL, 0x94ea7b2aL, 367*ca3e8d88SDave Plauger< 0xe0b41de7L, 0xe4750050L, 0xe9362689L, 0xedf73b3eL, 368*ca3e8d88SDave Plauger< 0xf3b06b3bL, 0xf771768cL, 0xfa325055L, 0xfef34de2L, 369*ca3e8d88SDave Plauger< 0xc6bcf05fL, 0xc27dede8L, 0xcf3ecb31L, 0xcbffd686L, 370*ca3e8d88SDave Plauger< 0xd5b88683L, 0xd1799b34L, 0xdc3abdedL, 0xd8fba05aL, 371*ca3e8d88SDave Plauger< 0x690ce0eeL, 0x6dcdfd59L, 0x608edb80L, 0x644fc637L, 372*ca3e8d88SDave Plauger< 0x7a089632L, 0x7ec98b85L, 0x738aad5cL, 0x774bb0ebL, 373*ca3e8d88SDave Plauger< 0x4f040d56L, 0x4bc510e1L, 0x46863638L, 0x42472b8fL, 374*ca3e8d88SDave Plauger< 0x5c007b8aL, 0x58c1663dL, 0x558240e4L, 0x51435d53L, 375*ca3e8d88SDave Plauger< 0x251d3b9eL, 0x21dc2629L, 0x2c9f00f0L, 0x285e1d47L, 376*ca3e8d88SDave Plauger< 0x36194d42L, 0x32d850f5L, 0x3f9b762cL, 0x3b5a6b9bL, 377*ca3e8d88SDave Plauger< 0x0315d626L, 0x07d4cb91L, 0x0a97ed48L, 0x0e56f0ffL, 378*ca3e8d88SDave Plauger< 0x1011a0faL, 0x14d0bd4dL, 0x19939b94L, 0x1d528623L, 379*ca3e8d88SDave Plauger< 0xf12f560eL, 0xf5ee4bb9L, 0xf8ad6d60L, 0xfc6c70d7L, 380*ca3e8d88SDave Plauger< 0xe22b20d2L, 0xe6ea3d65L, 0xeba91bbcL, 0xef68060bL, 381*ca3e8d88SDave Plauger< 0xd727bbb6L, 0xd3e6a601L, 0xdea580d8L, 0xda649d6fL, 382*ca3e8d88SDave Plauger< 0xc423cd6aL, 0xc0e2d0ddL, 0xcda1f604L, 0xc960ebb3L, 383*ca3e8d88SDave Plauger< 0xbd3e8d7eL, 0xb9ff90c9L, 0xb4bcb610L, 0xb07daba7L, 384*ca3e8d88SDave Plauger< 0xae3afba2L, 0xaafbe615L, 0xa7b8c0ccL, 0xa379dd7bL, 385*ca3e8d88SDave Plauger< 0x9b3660c6L, 0x9ff77d71L, 0x92b45ba8L, 0x9675461fL, 386*ca3e8d88SDave Plauger< 0x8832161aL, 0x8cf30badL, 0x81b02d74L, 0x857130c3L, 387*ca3e8d88SDave Plauger< 0x5d8a9099L, 0x594b8d2eL, 0x5408abf7L, 0x50c9b640L, 388*ca3e8d88SDave Plauger< 0x4e8ee645L, 0x4a4ffbf2L, 0x470cdd2bL, 0x43cdc09cL, 389*ca3e8d88SDave Plauger< 0x7b827d21L, 0x7f436096L, 0x7200464fL, 0x76c15bf8L, 390*ca3e8d88SDave Plauger< 0x68860bfdL, 0x6c47164aL, 0x61043093L, 0x65c52d24L, 391*ca3e8d88SDave Plauger< 0x119b4be9L, 0x155a565eL, 0x18197087L, 0x1cd86d30L, 392*ca3e8d88SDave Plauger< 0x029f3d35L, 0x065e2082L, 0x0b1d065bL, 0x0fdc1becL, 393*ca3e8d88SDave Plauger< 0x3793a651L, 0x3352bbe6L, 0x3e119d3fL, 0x3ad08088L, 394*ca3e8d88SDave Plauger< 0x2497d08dL, 0x2056cd3aL, 0x2d15ebe3L, 0x29d4f654L, 395*ca3e8d88SDave Plauger< 0xc5a92679L, 0xc1683bceL, 0xcc2b1d17L, 0xc8ea00a0L, 396*ca3e8d88SDave Plauger< 0xd6ad50a5L, 0xd26c4d12L, 0xdf2f6bcbL, 0xdbee767cL, 397*ca3e8d88SDave Plauger< 0xe3a1cbc1L, 0xe760d676L, 0xea23f0afL, 0xeee2ed18L, 398*ca3e8d88SDave Plauger< 0xf0a5bd1dL, 0xf464a0aaL, 0xf9278673L, 0xfde69bc4L, 399*ca3e8d88SDave Plauger< 0x89b8fd09L, 0x8d79e0beL, 0x803ac667L, 0x84fbdbd0L, 400*ca3e8d88SDave Plauger< 0x9abc8bd5L, 0x9e7d9662L, 0x933eb0bbL, 0x97ffad0cL, 401*ca3e8d88SDave Plauger< 0xafb010b1L, 0xab710d06L, 0xa6322bdfL, 0xa2f33668L, 402*ca3e8d88SDave Plauger< 0xbcb4666dL, 0xb8757bdaL, 0xb5365d03L, 0xb1f740b4L 403*ca3e8d88SDave Plauger--- 404*ca3e8d88SDave Plauger> 0x00000000UL, 0x04c11db7UL, 0x09823b6eUL, 0x0d4326d9UL, 405*ca3e8d88SDave Plauger> 0x130476dcUL, 0x17c56b6bUL, 0x1a864db2UL, 0x1e475005UL, 406*ca3e8d88SDave Plauger> 0x2608edb8UL, 0x22c9f00fUL, 0x2f8ad6d6UL, 0x2b4bcb61UL, 407*ca3e8d88SDave Plauger> 0x350c9b64UL, 0x31cd86d3UL, 0x3c8ea00aUL, 0x384fbdbdUL, 408*ca3e8d88SDave Plauger> 0x4c11db70UL, 0x48d0c6c7UL, 0x4593e01eUL, 0x4152fda9UL, 409*ca3e8d88SDave Plauger> 0x5f15adacUL, 0x5bd4b01bUL, 0x569796c2UL, 0x52568b75UL, 410*ca3e8d88SDave Plauger> 0x6a1936c8UL, 0x6ed82b7fUL, 0x639b0da6UL, 0x675a1011UL, 411*ca3e8d88SDave Plauger> 0x791d4014UL, 0x7ddc5da3UL, 0x709f7b7aUL, 0x745e66cdUL, 412*ca3e8d88SDave Plauger> 0x9823b6e0UL, 0x9ce2ab57UL, 0x91a18d8eUL, 0x95609039UL, 413*ca3e8d88SDave Plauger> 0x8b27c03cUL, 0x8fe6dd8bUL, 0x82a5fb52UL, 0x8664e6e5UL, 414*ca3e8d88SDave Plauger> 0xbe2b5b58UL, 0xbaea46efUL, 0xb7a96036UL, 0xb3687d81UL, 415*ca3e8d88SDave Plauger> 0xad2f2d84UL, 0xa9ee3033UL, 0xa4ad16eaUL, 0xa06c0b5dUL, 416*ca3e8d88SDave Plauger> 0xd4326d90UL, 0xd0f37027UL, 0xddb056feUL, 0xd9714b49UL, 417*ca3e8d88SDave Plauger> 0xc7361b4cUL, 0xc3f706fbUL, 0xceb42022UL, 0xca753d95UL, 418*ca3e8d88SDave Plauger> 0xf23a8028UL, 0xf6fb9d9fUL, 0xfbb8bb46UL, 0xff79a6f1UL, 419*ca3e8d88SDave Plauger> 0xe13ef6f4UL, 0xe5ffeb43UL, 0xe8bccd9aUL, 0xec7dd02dUL, 420*ca3e8d88SDave Plauger> 0x34867077UL, 0x30476dc0UL, 0x3d044b19UL, 0x39c556aeUL, 421*ca3e8d88SDave Plauger> 0x278206abUL, 0x23431b1cUL, 0x2e003dc5UL, 0x2ac12072UL, 422*ca3e8d88SDave Plauger> 0x128e9dcfUL, 0x164f8078UL, 0x1b0ca6a1UL, 0x1fcdbb16UL, 423*ca3e8d88SDave Plauger> 0x018aeb13UL, 0x054bf6a4UL, 0x0808d07dUL, 0x0cc9cdcaUL, 424*ca3e8d88SDave Plauger> 0x7897ab07UL, 0x7c56b6b0UL, 0x71159069UL, 0x75d48ddeUL, 425*ca3e8d88SDave Plauger> 0x6b93dddbUL, 0x6f52c06cUL, 0x6211e6b5UL, 0x66d0fb02UL, 426*ca3e8d88SDave Plauger> 0x5e9f46bfUL, 0x5a5e5b08UL, 0x571d7dd1UL, 0x53dc6066UL, 427*ca3e8d88SDave Plauger> 0x4d9b3063UL, 0x495a2dd4UL, 0x44190b0dUL, 0x40d816baUL, 428*ca3e8d88SDave Plauger> 0xaca5c697UL, 0xa864db20UL, 0xa527fdf9UL, 0xa1e6e04eUL, 429*ca3e8d88SDave Plauger> 0xbfa1b04bUL, 0xbb60adfcUL, 0xb6238b25UL, 0xb2e29692UL, 430*ca3e8d88SDave Plauger> 0x8aad2b2fUL, 0x8e6c3698UL, 0x832f1041UL, 0x87ee0df6UL, 431*ca3e8d88SDave Plauger> 0x99a95df3UL, 0x9d684044UL, 0x902b669dUL, 0x94ea7b2aUL, 432*ca3e8d88SDave Plauger> 0xe0b41de7UL, 0xe4750050UL, 0xe9362689UL, 0xedf73b3eUL, 433*ca3e8d88SDave Plauger> 0xf3b06b3bUL, 0xf771768cUL, 0xfa325055UL, 0xfef34de2UL, 434*ca3e8d88SDave Plauger> 0xc6bcf05fUL, 0xc27dede8UL, 0xcf3ecb31UL, 0xcbffd686UL, 435*ca3e8d88SDave Plauger> 0xd5b88683UL, 0xd1799b34UL, 0xdc3abdedUL, 0xd8fba05aUL, 436*ca3e8d88SDave Plauger> 0x690ce0eeUL, 0x6dcdfd59UL, 0x608edb80UL, 0x644fc637UL, 437*ca3e8d88SDave Plauger> 0x7a089632UL, 0x7ec98b85UL, 0x738aad5cUL, 0x774bb0ebUL, 438*ca3e8d88SDave Plauger> 0x4f040d56UL, 0x4bc510e1UL, 0x46863638UL, 0x42472b8fUL, 439*ca3e8d88SDave Plauger> 0x5c007b8aUL, 0x58c1663dUL, 0x558240e4UL, 0x51435d53UL, 440*ca3e8d88SDave Plauger> 0x251d3b9eUL, 0x21dc2629UL, 0x2c9f00f0UL, 0x285e1d47UL, 441*ca3e8d88SDave Plauger> 0x36194d42UL, 0x32d850f5UL, 0x3f9b762cUL, 0x3b5a6b9bUL, 442*ca3e8d88SDave Plauger> 0x0315d626UL, 0x07d4cb91UL, 0x0a97ed48UL, 0x0e56f0ffUL, 443*ca3e8d88SDave Plauger> 0x1011a0faUL, 0x14d0bd4dUL, 0x19939b94UL, 0x1d528623UL, 444*ca3e8d88SDave Plauger> 0xf12f560eUL, 0xf5ee4bb9UL, 0xf8ad6d60UL, 0xfc6c70d7UL, 445*ca3e8d88SDave Plauger> 0xe22b20d2UL, 0xe6ea3d65UL, 0xeba91bbcUL, 0xef68060bUL, 446*ca3e8d88SDave Plauger> 0xd727bbb6UL, 0xd3e6a601UL, 0xdea580d8UL, 0xda649d6fUL, 447*ca3e8d88SDave Plauger> 0xc423cd6aUL, 0xc0e2d0ddUL, 0xcda1f604UL, 0xc960ebb3UL, 448*ca3e8d88SDave Plauger> 0xbd3e8d7eUL, 0xb9ff90c9UL, 0xb4bcb610UL, 0xb07daba7UL, 449*ca3e8d88SDave Plauger> 0xae3afba2UL, 0xaafbe615UL, 0xa7b8c0ccUL, 0xa379dd7bUL, 450*ca3e8d88SDave Plauger> 0x9b3660c6UL, 0x9ff77d71UL, 0x92b45ba8UL, 0x9675461fUL, 451*ca3e8d88SDave Plauger> 0x8832161aUL, 0x8cf30badUL, 0x81b02d74UL, 0x857130c3UL, 452*ca3e8d88SDave Plauger> 0x5d8a9099UL, 0x594b8d2eUL, 0x5408abf7UL, 0x50c9b640UL, 453*ca3e8d88SDave Plauger> 0x4e8ee645UL, 0x4a4ffbf2UL, 0x470cdd2bUL, 0x43cdc09cUL, 454*ca3e8d88SDave Plauger> 0x7b827d21UL, 0x7f436096UL, 0x7200464fUL, 0x76c15bf8UL, 455*ca3e8d88SDave Plauger> 0x68860bfdUL, 0x6c47164aUL, 0x61043093UL, 0x65c52d24UL, 456*ca3e8d88SDave Plauger> 0x119b4be9UL, 0x155a565eUL, 0x18197087UL, 0x1cd86d30UL, 457*ca3e8d88SDave Plauger> 0x029f3d35UL, 0x065e2082UL, 0x0b1d065bUL, 0x0fdc1becUL, 458*ca3e8d88SDave Plauger> 0x3793a651UL, 0x3352bbe6UL, 0x3e119d3fUL, 0x3ad08088UL, 459*ca3e8d88SDave Plauger> 0x2497d08dUL, 0x2056cd3aUL, 0x2d15ebe3UL, 0x29d4f654UL, 460*ca3e8d88SDave Plauger> 0xc5a92679UL, 0xc1683bceUL, 0xcc2b1d17UL, 0xc8ea00a0UL, 461*ca3e8d88SDave Plauger> 0xd6ad50a5UL, 0xd26c4d12UL, 0xdf2f6bcbUL, 0xdbee767cUL, 462*ca3e8d88SDave Plauger> 0xe3a1cbc1UL, 0xe760d676UL, 0xea23f0afUL, 0xeee2ed18UL, 463*ca3e8d88SDave Plauger> 0xf0a5bd1dUL, 0xf464a0aaUL, 0xf9278673UL, 0xfde69bc4UL, 464*ca3e8d88SDave Plauger> 0x89b8fd09UL, 0x8d79e0beUL, 0x803ac667UL, 0x84fbdbd0UL, 465*ca3e8d88SDave Plauger> 0x9abc8bd5UL, 0x9e7d9662UL, 0x933eb0bbUL, 0x97ffad0cUL, 466*ca3e8d88SDave Plauger> 0xafb010b1UL, 0xab710d06UL, 0xa6322bdfUL, 0xa2f33668UL, 467*ca3e8d88SDave Plauger> 0xbcb4666dUL, 0xb8757bdaUL, 0xb5365d03UL, 0xb1f740b4UL 468*ca3e8d88SDave Plauger 469*ca3e8d88SDave Plauger------------------------ decompress.c ------------------------ 470*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/decompress.c ./decompress.c 471*ca3e8d88SDave Plauger41c41 472*ca3e8d88SDave Plauger< { retVal = rrr; goto save_state_and_return; }; 473*ca3e8d88SDave Plauger--- 474*ca3e8d88SDave Plauger> { retVal = rrr; goto save_state_and_return; } 475*ca3e8d88SDave Plauger494c494 476*ca3e8d88SDave Plauger< RETURN(BZ_DATA_ERROR); 477*ca3e8d88SDave Plauger--- 478*ca3e8d88SDave Plauger> RETURN(BZ_DATA_ERROR) 479*ca3e8d88SDave Plauger558c558 480*ca3e8d88SDave Plauger< RETURN(BZ_OK); 481*ca3e8d88SDave Plauger--- 482*ca3e8d88SDave Plauger> RETURN(BZ_OK) 483*ca3e8d88SDave Plauger586c586 484*ca3e8d88SDave Plauger< RETURN(BZ_STREAM_END); 485*ca3e8d88SDave Plauger--- 486*ca3e8d88SDave Plauger> RETURN(BZ_STREAM_END) 487*ca3e8d88SDave Plauger 488*ca3e8d88SDave Plauger------------------------ huffman.c ------------------------ 489*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/huffman.c ./huffman.c 490*ca3e8d88SDave Plauger 491*ca3e8d88SDave Plauger------------------------ randtable.c ------------------------ 492*ca3e8d88SDave Plaugerdiff bzip2-1.0.5/randtable.c ./randtable.c 493