Home | History | Annotate | only in /external/bzip2
Up to higher level directory
NameDateSize
Android.mk13-Nov-20121.2K
blocksort.c13-Nov-201230K
bz-common.xsl13-Nov-20121K
bz-fo.xsl13-Nov-201210.3K
bz-html.xsl13-Nov-2012646
bzdiff13-Nov-20122.1K
bzdiff.113-Nov-2012897
bzgrep13-Nov-20121.6K
bzgrep.113-Nov-20121.3K
bzip.css13-Nov-20121.7K
bzip2.113-Nov-201215.9K
bzip2.1.preformatted13-Nov-201220.4K
bzip2.c13-Nov-201257.2K
bzip2.txt13-Nov-201218.5K
bzip2recover.c13-Nov-201214.6K
bzlib.c13-Nov-201244.9K
bzlib.h13-Nov-20126.1K
bzlib_private.h13-Nov-201212.9K
bzmore13-Nov-20121.2K
bzmore.113-Nov-20124.2K
CHANGES13-Nov-201211.1K
CleanSpec.mk13-Nov-20122.2K
compress.c13-Nov-201220.1K
crctable.c13-Nov-20124.7K
decompress.c13-Nov-201220.4K
dlltest.c13-Nov-20124.3K
dlltest.dsp13-Nov-20123.4K
entities.xml13-Nov-2012240
format.pl13-Nov-20121.6K
huffman.c13-Nov-20126.8K
libbz2.def13-Nov-2012517
libbz2.dsp13-Nov-20124.2K
LICENSE13-Nov-20121.9K
Makefile13-Nov-20126.2K
Makefile-libbz2_so13-Nov-20121.7K
makefile.msc13-Nov-20121.6K
manual.html13-Nov-2012125K
manual.pdf13-Nov-2012250.9K
manual.ps13-Nov-20121.1M
manual.xml13-Nov-2012108.7K
mk251.c13-Nov-2012919
MODULE_LICENSE_BSD_LIKE13-Nov-20120
NOTICE13-Nov-20121.9K
randtable.c13-Nov-20123.8K
README13-Nov-20127.4K
README.android13-Nov-2012266
README.COMPILATION.PROBLEMS13-Nov-20122.5K
README.XML.STUFF13-Nov-20121.3K
sample1.bz213-Nov-201231.6K
sample1.ref13-Nov-201296.4K
sample2.bz213-Nov-201272K
sample2.ref13-Nov-2012207.4K
sample3.bz213-Nov-2012235
sample3.ref13-Nov-2012117.4K
spewG.c13-Nov-20121.7K
unzcrash.c13-Nov-20123.6K
words013-Nov-2012376
words113-Nov-2012103
words213-Nov-2012186
words313-Nov-2012945
xmlproc.sh13-Nov-20122.8K

README

      1 
      2 This is the README for bzip2/libzip2.
      3 This version is fully compatible with the previous public releases.
      4 
      5 ------------------------------------------------------------------
      6 This file is part of bzip2/libbzip2, a program and library for
      7 lossless, block-sorting data compression.
      8 
      9 bzip2/libbzip2 version 1.0.6 of 6 September 2010
     10 Copyright (C) 1996-2010 Julian Seward <jseward (a] bzip.org>
     11 
     12 Please read the WARNING, DISCLAIMER and PATENTS sections in this file.
     13 
     14 This program is released under the terms of the license contained
     15 in the file LICENSE.
     16 ------------------------------------------------------------------
     17 
     18 Complete documentation is available in Postscript form (manual.ps),
     19 PDF (manual.pdf) or html (manual.html).  A plain-text version of the
     20 manual page is available as bzip2.txt.
     21 
     22 
     23 HOW TO BUILD -- UNIX
     24 
     25 Type 'make'.  This builds the library libbz2.a and then the programs
     26 bzip2 and bzip2recover.  Six self-tests are run.  If the self-tests
     27 complete ok, carry on to installation:
     28 
     29 To install in /usr/local/bin, /usr/local/lib, /usr/local/man and
     30 /usr/local/include, type
     31 
     32    make install
     33 
     34 To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type
     35 
     36    make install PREFIX=/xxx/yyy
     37 
     38 If you are (justifiably) paranoid and want to see what 'make install'
     39 is going to do, you can first do
     40 
     41    make -n install                      or
     42    make -n install PREFIX=/xxx/yyy      respectively.
     43 
     44 The -n instructs make to show the commands it would execute, but not
     45 actually execute them.
     46 
     47 
     48 HOW TO BUILD -- UNIX, shared library libbz2.so.
     49 
     50 Do 'make -f Makefile-libbz2_so'.  This Makefile seems to work for
     51 Linux-ELF (RedHat 7.2 on an x86 box), with gcc.  I make no claims
     52 that it works for any other platform, though I suspect it probably
     53 will work for most platforms employing both ELF and gcc.
     54 
     55 bzip2-shared, a client of the shared library, is also built, but not
     56 self-tested.  So I suggest you also build using the normal Makefile,
     57 since that conducts a self-test.  A second reason to prefer the
     58 version statically linked to the library is that, on x86 platforms,
     59 building shared objects makes a valuable register (%ebx) unavailable
     60 to gcc, resulting in a slowdown of 10%-20%, at least for bzip2.
     61 
     62 Important note for people upgrading .so's from 0.9.0/0.9.5 to version
     63 1.0.X.  All the functions in the library have been renamed, from (eg)
     64 bzCompress to BZ2_bzCompress, to avoid namespace pollution.
     65 Unfortunately this means that the libbz2.so created by
     66 Makefile-libbz2_so will not work with any program which used an older
     67 version of the library.  I do encourage library clients to make the
     68 effort to upgrade to use version 1.0, since it is both faster and more
     69 robust than previous versions.
     70 
     71 
     72 HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc.
     73 
     74 It's difficult for me to support compilation on all these platforms.
     75 My approach is to collect binaries for these platforms, and put them
     76 on the master web site (http://www.bzip.org).  Look there.  However
     77 (FWIW), bzip2-1.0.X is very standard ANSI C and should compile
     78 unmodified with MS Visual C.  If you have difficulties building, you
     79 might want to read README.COMPILATION.PROBLEMS.
     80 
     81 At least using MS Visual C++ 6, you can build from the unmodified
     82 sources by issuing, in a command shell: 
     83 
     84    nmake -f makefile.msc
     85 
     86 (you may need to first run the MSVC-provided script VCVARS32.BAT
     87  so as to set up paths to the MSVC tools correctly).
     88 
     89 
     90 VALIDATION
     91 
     92 Correct operation, in the sense that a compressed file can always be
     93 decompressed to reproduce the original, is obviously of paramount
     94 importance.  To validate bzip2, I used a modified version of Mark
     95 Nelson's churn program.  Churn is an automated test driver which
     96 recursively traverses a directory structure, using bzip2 to compress
     97 and then decompress each file it encounters, and checking that the
     98 decompressed data is the same as the original.
     99 
    100 
    101 
    102 Please read and be aware of the following:
    103 
    104 WARNING:
    105 
    106    This program and library (attempts to) compress data by 
    107    performing several non-trivial transformations on it.  
    108    Unless you are 100% familiar with *all* the algorithms 
    109    contained herein, and with the consequences of modifying them, 
    110    you should NOT meddle with the compression or decompression 
    111    machinery.  Incorrect changes can and very likely *will* 
    112    lead to disastrous loss of data.
    113 
    114 
    115 DISCLAIMER:
    116 
    117    I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE
    118    USE OF THIS PROGRAM/LIBRARY, HOWSOEVER CAUSED.
    119 
    120    Every compression of a file implies an assumption that the
    121    compressed file can be decompressed to reproduce the original.
    122    Great efforts in design, coding and testing have been made to
    123    ensure that this program works correctly.  However, the complexity
    124    of the algorithms, and, in particular, the presence of various
    125    special cases in the code which occur with very low but non-zero
    126    probability make it impossible to rule out the possibility of bugs
    127    remaining in the program.  DO NOT COMPRESS ANY DATA WITH THIS
    128    PROGRAM UNLESS YOU ARE PREPARED TO ACCEPT THE POSSIBILITY, HOWEVER
    129    SMALL, THAT THE DATA WILL NOT BE RECOVERABLE.
    130 
    131    That is not to say this program is inherently unreliable.  
    132    Indeed, I very much hope the opposite is true.  bzip2/libbzip2 
    133    has been carefully constructed and extensively tested.
    134 
    135 
    136 PATENTS:
    137 
    138    To the best of my knowledge, bzip2/libbzip2 does not use any 
    139    patented algorithms.  However, I do not have the resources 
    140    to carry out a patent search.  Therefore I cannot give any 
    141    guarantee of the above statement.
    142 
    143 
    144 
    145 WHAT'S NEW IN 0.9.0 (as compared to 0.1pl2) ?
    146 
    147    * Approx 10% faster compression, 30% faster decompression
    148    * -t (test mode) is a lot quicker
    149    * Can decompress concatenated compressed files
    150    * Programming interface, so programs can directly read/write .bz2 files
    151    * Less restrictive (BSD-style) licensing
    152    * Flag handling more compatible with GNU gzip
    153    * Much more documentation, i.e., a proper user manual
    154    * Hopefully, improved portability (at least of the library)
    155 
    156 WHAT'S NEW IN 0.9.5 ?
    157 
    158    * Compression speed is much less sensitive to the input
    159      data than in previous versions.  Specifically, the very
    160      slow performance caused by repetitive data is fixed.
    161    * Many small improvements in file and flag handling.
    162    * A Y2K statement.
    163 
    164 WHAT'S NEW IN 1.0.0 ?
    165 
    166    See the CHANGES file.
    167 
    168 WHAT'S NEW IN 1.0.2 ?
    169 
    170    See the CHANGES file.
    171 
    172 WHAT'S NEW IN 1.0.3 ?
    173 
    174    See the CHANGES file.
    175 
    176 WHAT'S NEW IN 1.0.4 ?
    177 
    178    See the CHANGES file.
    179 
    180 WHAT'S NEW IN 1.0.5 ?
    181 
    182    See the CHANGES file.
    183 
    184 WHAT'S NEW IN 1.0.6 ?
    185 
    186    See the CHANGES file.
    187 
    188 
    189 I hope you find bzip2 useful.  Feel free to contact me at
    190    jseward (a] bzip.org
    191 if you have any suggestions or queries.  Many people mailed me with
    192 comments, suggestions and patches after the releases of bzip-0.15,
    193 bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1,
    194 1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this
    195 feedback.  I thank you for your comments.
    196 
    197 bzip2's "home" is http://www.bzip.org/
    198 
    199 Julian Seward
    200 jseward (a] bzip.org
    201 Cambridge, UK.
    202 
    203 18     July 1996 (version 0.15)
    204 25   August 1996 (version 0.21)
    205  7   August 1997 (bzip2, version 0.1)
    206 29   August 1997 (bzip2, version 0.1pl2)
    207 23   August 1998 (bzip2, version 0.9.0)
    208  8     June 1999 (bzip2, version 0.9.5)
    209  4     Sept 1999 (bzip2, version 0.9.5d)
    210  5      May 2000 (bzip2, version 1.0pre8)
    211 30 December 2001 (bzip2, version 1.0.2pre1)
    212 15 February 2005 (bzip2, version 1.0.3)
    213 20 December 2006 (bzip2, version 1.0.4)
    214 10 December 2007 (bzip2, version 1.0.5)
    215  6     Sept 2010 (bzip2, version 1.0.6)
    216 

README.android

      1 This is bzip-1.0.6 from http://www.bzip.org/.
      2 
      3 No changes were made apart from the following:
      4 
      5 * added README.android (this file)
      6 * added Android.mk
      7 * added CleanSpec.mk
      8 * added ThirdPartyProject.prop
      9 * copied LICENSE to NOTICE
     10 * added empty MODULE_LICENSE_BSD_LIKE
     11 

README.COMPILATION.PROBLEMS

      1 ------------------------------------------------------------------
      2 This file is part of bzip2/libbzip2, a program and library for
      3 lossless, block-sorting data compression.
      4 
      5 bzip2/libbzip2 version 1.0.6 of 6 September 2010
      6 Copyright (C) 1996-2010 Julian Seward <jseward (a] bzip.org>
      7 
      8 Please read the WARNING, DISCLAIMER and PATENTS sections in the 
      9 README file.
     10 
     11 This program is released under the terms of the license contained
     12 in the file LICENSE.
     13 ------------------------------------------------------------------
     14 
     15 bzip2-1.0.6 should compile without problems on the vast majority of
     16 platforms.  Using the supplied Makefile, I've built and tested it
     17 myself for x86-linux and amd64-linux.  With makefile.msc, Visual C++
     18 6.0 and nmake, you can build a native Win32 version too.  Large file
     19 support seems to work correctly on at least on amd64-linux.
     20 
     21 When I say "large file" I mean a file of size 2,147,483,648 (2^31)
     22 bytes or above.  Many older OSs can't handle files above this size,
     23 but many newer ones can.  Large files are pretty huge -- most files
     24 you'll encounter are not Large Files.
     25 
     26 Early versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide variety
     27 of platforms without difficulty, and I hope this version will continue
     28 in that tradition.  However, in order to support large files, I've had
     29 to include the define -D_FILE_OFFSET_BITS=64 in the Makefile.  This
     30 can cause problems.
     31 
     32 The technique of adding -D_FILE_OFFSET_BITS=64 to get large file
     33 support is, as far as I know, the Recommended Way to get correct large
     34 file support.  For more details, see the Large File Support
     35 Specification, published by the Large File Summit, at
     36 
     37    http://ftp.sas.com/standards/large.file
     38 
     39 As a general comment, if you get compilation errors which you think
     40 are related to large file support, try removing the above define from
     41 the Makefile, ie, delete the line
     42 
     43    BIGFILES=-D_FILE_OFFSET_BITS=64 
     44 
     45 from the Makefile, and do 'make clean ; make'.  This will give you a
     46 version of bzip2 without large file support, which, for most
     47 applications, is probably not a problem.  
     48 
     49 Alternatively, try some of the platform-specific hints listed below.
     50 
     51 You can use the spewG.c program to generate huge files to test bzip2's
     52 large file support, if you are feeling paranoid.  Be aware though that
     53 any compilation problems which affect bzip2 will also affect spewG.c,
     54 alas.
     55 
     56 AIX: I have reports that for large file support, you need to specify
     57 -D_LARGE_FILES rather than -D_FILE_OFFSET_BITS=64.  I have not tested
     58 this myself.
     59 

README.XML.STUFF

      1   ----------------------------------------------------------------
      2   This file is part of bzip2/libbzip2, a program and library for
      3   lossless, block-sorting data compression.
      4 
      5   bzip2/libbzip2 version 1.0.6 of 6 September 2010
      6   Copyright (C) 1996-2010 Julian Seward <jseward (a] bzip.org>
      7 
      8   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
      9   README file.
     10 
     11   This program is released under the terms of the license contained
     12   in the file LICENSE.
     13   ----------------------------------------------------------------
     14 
     15 The script xmlproc.sh takes an xml file as input,
     16 and processes it to create .pdf, .html or .ps output.
     17 It uses format.pl, a perl script to format <pre> blocks nicely,
     18  and add CDATA tags so writers do not have to use eg. &lt; 
     19 
     20 The file "entities.xml" must be edited to reflect current
     21 version, year, etc.
     22 
     23 
     24 Usage:
     25 
     26   ./xmlproc.sh -v manual.xml
     27   Validates an xml file to ensure no dtd-compliance errors
     28 
     29   ./xmlproc.sh -html manual.xml
     30   Output: manual.html
     31 
     32   ./xmlproc.sh -pdf manual.xml
     33   Output: manual.pdf
     34 
     35   ./xmlproc.sh -ps manual.xml
     36   Output: manual.ps
     37 
     38 
     39 Notum bene: 
     40 - pdfxmltex barfs if given a filename with an underscore in it
     41 
     42 - xmltex won't work yet - there's a bug in passivetex
     43     which we are all waiting for Sebastian to fix.
     44   So we are going the xml -> pdf -> ps route for the time being,
     45     using pdfxmltex.
     46