- Timestamp:
- Oct 30, 2010, 3:24:42 PM (14 years ago)
- Location:
- bzip2/vendor/current
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified bzip2/vendor/current/CHANGES ¶
r75 r186 3 3 lossless, block-sorting data compression. 4 4 5 bzip2/libbzip2 version 1.0. 5 of 10 December 20076 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>5 bzip2/libbzip2 version 1.0.6 of 6 September 2010 6 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 7 7 8 8 Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 318 318 Security fix only. Fixes CERT-FI 20469 as it applies to bzip2. 319 319 320 321 1.0.6 (6 Sept 10) 322 ~~~~~~~~~~~~~~~~~ 323 324 * Security fix for CVE-2010-0405. This was reported by Mikolaj 325 Izdebski. 326 327 * Make the documentation build on Ubuntu 10.04 -
TabularUnified bzip2/vendor/current/LICENSE ¶
r75 r186 3 3 4 4 This program, "bzip2", the associated library "libbzip2", and all 5 documentation, are copyright (C) 1996-20 07Julian R Seward. All5 documentation, are copyright (C) 1996-2010 Julian R Seward. All 6 6 rights reserved. 7 7 … … 38 38 39 39 Julian Seward, jseward@bzip.org 40 bzip2/libbzip2 version 1.0. 5 of 10 December 200740 bzip2/libbzip2 version 1.0.6 of 6 September 2010 41 41 42 42 -------------------------------------------------------------------------- -
TabularUnified bzip2/vendor/current/Makefile ¶
r75 r186 3 3 # lossless, block-sorting data compression. 4 4 # 5 # bzip2/libbzip2 version 1.0. 5 of 10 December 20076 # Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>5 # bzip2/libbzip2 version 1.0.6 of 6 September 2010 6 # Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 7 7 # 8 8 # Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 138 138 rm -f manual.ps manual.html manual.pdf 139 139 140 DISTNAME=bzip2-1.0. 5140 DISTNAME=bzip2-1.0.6 141 141 dist: check manual 142 142 rm -f $(DISTNAME) -
TabularUnified bzip2/vendor/current/Makefile-libbz2_so ¶
r75 r186 1 1 2 2 # This Makefile builds a shared version of the library, 3 # libbz2.so.1.0. 4, with soname libbz2.so.1.0,3 # libbz2.so.1.0.6, with soname libbz2.so.1.0, 4 4 # at least on x86-Linux (RedHat 7.2), 5 5 # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98). … … 11 11 # lossless, block-sorting data compression. 12 12 # 13 # bzip2/libbzip2 version 1.0. 5 of 10 December 200714 # Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>13 # bzip2/libbzip2 version 1.0.6 of 6 September 2010 14 # Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 15 15 # 16 16 # Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 36 36 37 37 all: $(OBJS) 38 $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0. 4$(OBJS)39 $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0. 438 $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS) 39 $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6 40 40 rm -f libbz2.so.1.0 41 ln -s libbz2.so.1.0. 4libbz2.so.1.041 ln -s libbz2.so.1.0.6 libbz2.so.1.0 42 42 43 43 clean: 44 rm -f $(OBJS) bzip2.o libbz2.so.1.0. 4libbz2.so.1.0 bzip2-shared44 rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared 45 45 46 46 blocksort.o: blocksort.c -
TabularUnified bzip2/vendor/current/README ¶
r75 r186 7 7 lossless, block-sorting data compression. 8 8 9 bzip2/libbzip2 version 1.0. 5 of 10 December 200710 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>9 bzip2/libbzip2 version 1.0.6 of 6 September 2010 10 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 11 11 12 12 Please read the WARNING, DISCLAIMER and PATENTS sections in this file. … … 179 179 180 180 WHAT'S NEW IN 1.0.5 ? 181 182 See the CHANGES file. 183 184 WHAT'S NEW IN 1.0.6 ? 181 185 182 186 See the CHANGES file. … … 209 213 20 December 2006 (bzip2, version 1.0.4) 210 214 10 December 2007 (bzip2, version 1.0.5) 215 6 Sept 2010 (bzip2, version 1.0.6) -
TabularUnified bzip2/vendor/current/README.COMPILATION.PROBLEMS ¶
r75 r186 3 3 lossless, block-sorting data compression. 4 4 5 bzip2/libbzip2 version 1.0. 5 of 10 December 20076 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>5 bzip2/libbzip2 version 1.0.6 of 6 September 2010 6 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 7 7 8 8 Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 13 13 ------------------------------------------------------------------ 14 14 15 bzip2-1.0. 5should compile without problems on the vast majority of15 bzip2-1.0.6 should compile without problems on the vast majority of 16 16 platforms. Using the supplied Makefile, I've built and tested it 17 17 myself for x86-linux and amd64-linux. With makefile.msc, Visual C++ -
TabularUnified bzip2/vendor/current/README.XML.STUFF ¶
r75 r186 3 3 lossless, block-sorting data compression. 4 4 5 bzip2/libbzip2 version 1.0. 5 of 10 December 20076 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>5 bzip2/libbzip2 version 1.0.6 of 6 September 2010 6 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 7 7 8 8 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/blocksort.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/bzip2.1 ¶
r75 r186 2 2 .TH bzip2 1 3 3 .SH NAME 4 bzip2, bunzip2 \- a block-sorting file compressor, v1.0. 44 bzip2, bunzip2 \- a block-sorting file compressor, v1.0.6 5 5 .br 6 6 bzcat \- decompresses files to stdout … … 406 406 what the problem is sometimes seem rather misleading. 407 407 408 This manual page pertains to version 1.0. 4of408 This manual page pertains to version 1.0.6 of 409 409 .I bzip2. 410 410 Compressed data created by this version is entirely forwards and 411 411 backwards compatible with the previous public releases, versions 412 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 1.0.2 and 1.0.3, but with the following412 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 1.0.2 and above, but with the following 413 413 exception: 0.9.0 and above can correctly decompress multiple 414 414 concatenated compressed files. 0.1pl2 cannot do this; it will stop -
TabularUnified bzip2/vendor/current/bzip2.1.preformatted ¶
r75 r186 4 4 5 5 NNAAMMEE 6 bzip2, bunzip2 â a blockâsorting file compressor, v1.0. 46 bzip2, bunzip2 â a blockâsorting file compressor, v1.0.6 7 7 bzcat â decompresses files to stdout 8 8 bzip2recover â recovers data from damaged bzip2 files … … 349 349 rather misleading. 350 350 351 This manual page pertains to version 1.0. 4of _b_z_i_p_2_. ComÂ351 This manual page pertains to version 1.0.6 of _b_z_i_p_2_. Com 352 352 pressed data created by this version is entirely forwards 353 353 and backwards compatible with the previous public 354 354 releases, versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 355 1.0.2 and 1.0.3, but with the following exception: 0.9.0355 1.0.2 and above, but with the following exception: 0.9.0 356 356 and above can correctly decompress multiple concatenated 357 357 compressed files. 0.1pl2 cannot do this; it will stop -
TabularUnified bzip2/vendor/current/bzip2.c ¶
r75 r186 8 8 lossless, block-sorting data compression. 9 9 10 bzip2/libbzip2 version 1.0. 5 of 10 December 200711 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>10 bzip2/libbzip2 version 1.0.6 of 6 September 2010 11 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 12 12 13 13 Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 1606 1606 "Version %s.\n" 1607 1607 " \n" 1608 " Copyright (C) 1996-20 07by Julian Seward.\n"1608 " Copyright (C) 1996-2010 by Julian Seward.\n" 1609 1609 " \n" 1610 1610 " This program is free software; you can redistribute it and/or modify\n" 1611 1611 " it under the terms set out in the LICENSE file, which is included\n" 1612 " in the bzip2-1.0. 5source distribution.\n"1612 " in the bzip2-1.0.6 source distribution.\n" 1613 1613 " \n" 1614 1614 " This program is distributed in the hope that it will be useful,\n" -
TabularUnified bzip2/vendor/current/bzip2.txt ¶
r75 r186 1 1 2 2 NAME 3 bzip2, bunzip2 - a block-sorting file compressor, v1.0. 43 bzip2, bunzip2 - a block-sorting file compressor, v1.0.6 4 4 bzcat - decompresses files to stdout 5 5 bzip2recover - recovers data from damaged bzip2 files … … 346 346 rather misleading. 347 347 348 This manual page pertains to version 1.0. 4of bzip2. Com-348 This manual page pertains to version 1.0.6 of bzip2. Com- 349 349 pressed data created by this version is entirely forwards 350 350 and backwards compatible with the previous public 351 351 releases, versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 352 1.0.2 and 1.0.3, but with the following exception: 0.9.0352 1.0.2 and above, but with the following exception: 0.9.0 353 353 and above can correctly decompress multiple concatenated 354 354 compressed files. 0.1pl2 cannot do this; it will stop -
TabularUnified bzip2/vendor/current/bzip2recover.c ¶
r75 r186 8 8 lossless, block-sorting data compression. 9 9 10 bzip2/libbzip2 version 1.0. 5 of 10 December 200711 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>10 bzip2/libbzip2 version 1.0.6 of 6 September 2010 11 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 12 12 13 13 Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 314 314 315 315 fprintf ( stderr, 316 "bzip2recover 1.0. 5: extracts blocks from damaged .bz2 files.\n" );316 "bzip2recover 1.0.6: extracts blocks from damaged .bz2 files.\n" ); 317 317 318 318 if (argc != 2) { -
TabularUnified bzip2/vendor/current/bzlib.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/bzlib.h ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/bzlib_private.h ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 37 37 /*-- General stuff. --*/ 38 38 39 #define BZ_VERSION "1.0. 5, 10-Dec-2007"39 #define BZ_VERSION "1.0.6, 6-Sept-2010" 40 40 41 41 typedef char Char; -
TabularUnified bzip2/vendor/current/compress.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/crctable.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/decompress.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the … … 382 382 N = 1; 383 383 do { 384 /* Check that N doesn't get too big, so that es doesn't 385 go negative. The maximum value that can be 386 RUNA/RUNB encoded is equal to the block size (post 387 the initial RLE), viz, 900k, so bounding N at 2 388 million should guard against overflow without 389 rejecting any legitimate inputs. */ 390 if (N >= 2*1024*1024) RETURN(BZ_DATA_ERROR); 384 391 if (nextSym == BZ_RUNA) es = es + (0+1) * N; else 385 392 if (nextSym == BZ_RUNB) es = es + (1+1) * N; … … 486 493 487 494 /*-- Set up cftab to facilitate generation of T^(-1) --*/ 495 /* Check: unzftab entries in range. */ 496 for (i = 0; i <= 255; i++) { 497 if (s->unzftab[i] < 0 || s->unzftab[i] > nblock) 498 RETURN(BZ_DATA_ERROR); 499 } 500 /* Actually generate cftab. */ 488 501 s->cftab[0] = 0; 489 502 for (i = 1; i <= 256; i++) s->cftab[i] = s->unzftab[i-1]; 490 503 for (i = 1; i <= 256; i++) s->cftab[i] += s->cftab[i-1]; 504 /* Check: cftab entries in range. */ 491 505 for (i = 0; i <= 256; i++) { 492 506 if (s->cftab[i] < 0 || s->cftab[i] > nblock) { 493 507 /* s->cftab[i] can legitimately be == nblock */ 508 RETURN(BZ_DATA_ERROR); 509 } 510 } 511 /* Check: cftab entries non-descending. */ 512 for (i = 1; i <= 256; i++) { 513 if (s->cftab[i-1] > s->cftab[i]) { 494 514 RETURN(BZ_DATA_ERROR); 495 515 } -
TabularUnified bzip2/vendor/current/entities.xml ¶
r75 r186 2 2 <!ENTITY bz-url "http://www.bzip.org"> 3 3 <!ENTITY bz-email "jseward@bzip.org"> 4 <!ENTITY bz-lifespan "1996-20 07">4 <!ENTITY bz-lifespan "1996-2010"> 5 5 6 <!ENTITY bz-version "1.0. 5">7 <!ENTITY bz-date " 10 December 2007">6 <!ENTITY bz-version "1.0.6"> 7 <!ENTITY bz-date "6 September 2010"> 8 8 9 9 <!ENTITY manual-title "bzip2 Manual"> -
TabularUnified bzip2/vendor/current/format.pl ¶
r75 r186 5 5 # lossless, block-sorting data compression. 6 6 # 7 # bzip2/libbzip2 version 1.0. 5 of 10 December 20078 # Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>7 # bzip2/libbzip2 version 1.0.6 of 6 September 2010 8 # Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 9 9 # 10 10 # Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/huffman.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/manual.html ¶
r75 r186 2 2 <head> 3 3 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 4 <title>bzip2 and libbzip2, version 1.0. 5</title>5 <meta name="generator" content="DocBook XSL Stylesheets V1. 69.1">4 <title>bzip2 and libbzip2, version 1.0.6</title> 5 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> 6 6 <style type="text/css" media="screen">/* Colours: 7 7 #74240f dark brown h1, h2, h3, h4 … … 80 80 </style> 81 81 </head> 82 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en">82 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div lang="en" class="book" title="bzip2 and libbzip2, version 1.0.6"> 83 83 <div class="titlepage"> 84 84 <div> 85 85 <div><h1 class="title"> 86 <a name="userman"></a>bzip2 and libbzip2, version 1.0. 5</h1></div>86 <a name="userman"></a>bzip2 and libbzip2, version 1.0.6</h1></div> 87 87 <div><h2 class="subtitle">A program and library for data compression</h2></div> 88 88 <div><div class="authorgroup"><div class="author"> … … 92 92 <div class="affiliation"><span class="orgname">http://www.bzip.org<br></span></div> 93 93 </div></div></div> 94 <div><p class="releaseinfo">Version 1.0. 5 of 10 December 2007</p></div>95 <div><p class="copyright">Copyright © 1996-20 07Julian Seward</p></div>96 <div><div class="legalnotice" >97 <a name="id 2499833"></a><p>This program, <code class="computeroutput">bzip2</code>, the94 <div><p class="releaseinfo">Version 1.0.6 of 6 September 2010</p></div> 95 <div><p class="copyright">Copyright © 1996-2010 Julian Seward</p></div> 96 <div><div class="legalnotice" title="Legal Notice"> 97 <a name="id537185"></a><p>This program, <code class="computeroutput">bzip2</code>, the 98 98 associated library <code class="computeroutput">libbzip2</code>, and 99 all documentation, are copyright © 1996-20 07Julian Seward.99 all documentation, are copyright © 1996-2010 Julian Seward. 100 100 All rights reserved.</p> 101 101 <p>Redistribution and use in source and binary forms, with 102 102 or without modification, are permitted provided that the 103 103 following conditions are met:</p> 104 <div class="itemizedlist"><ul type="bullet">105 <li style="list-style-type: disc"><p>Redistributions of source code must retain the104 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 105 <li class="listitem" style="list-style-type: disc"><p>Redistributions of source code must retain the 106 106 above copyright notice, this list of conditions and the 107 107 following disclaimer.</p></li> 108 <li style="list-style-type: disc"><p>The origin of this software must not be108 <li class="listitem" style="list-style-type: disc"><p>The origin of this software must not be 109 109 misrepresented; you must not claim that you wrote the original 110 110 software. If you use this software in a product, an 111 111 acknowledgment in the product documentation would be 112 112 appreciated but is not required.</p></li> 113 <li style="list-style-type: disc"><p>Altered source versions must be plainly marked113 <li class="listitem" style="list-style-type: disc"><p>Altered source versions must be plainly marked 114 114 as such, and must not be misrepresented as being the original 115 115 software.</p></li> 116 <li style="list-style-type: disc"><p>The name of the author may not be used to116 <li class="listitem" style="list-style-type: disc"><p>The name of the author may not be used to 117 117 endorse or promote products derived from this software without 118 118 specific prior written permission.</p></li> … … 170 170 <dt><span class="sect1"><a href="#low-level">3.3. Low-level interface</a></span></dt> 171 171 <dd><dl> 172 <dt><span class="sect2"><a href="#bzcompress-init">3.3.1. <code class="computeroutput">BZ2_bzCompressInit</code></a></span></dt>173 <dt><span class="sect2"><a href="#bzCompress">3.3.2. <code class="computeroutput">BZ2_bzCompress</code></a></span></dt>174 <dt><span class="sect2"><a href="#bzCompress-end">3.3.3. <code class="computeroutput">BZ2_bzCompressEnd</code></a></span></dt>175 <dt><span class="sect2"><a href="#bzDecompress-init">3.3.4. <code class="computeroutput">BZ2_bzDecompressInit</code></a></span></dt>176 <dt><span class="sect2"><a href="#bzDecompress">3.3.5. <code class="computeroutput">BZ2_bzDecompress</code></a></span></dt>177 <dt><span class="sect2"><a href="#bzDecompress-end">3.3.6. <code class="computeroutput">BZ2_bzDecompressEnd</code></a></span></dt>172 <dt><span class="sect2"><a href="#bzcompress-init">3.3.1. BZ2_bzCompressInit</a></span></dt> 173 <dt><span class="sect2"><a href="#bzCompress">3.3.2. BZ2_bzCompress</a></span></dt> 174 <dt><span class="sect2"><a href="#bzCompress-end">3.3.3. BZ2_bzCompressEnd</a></span></dt> 175 <dt><span class="sect2"><a href="#bzDecompress-init">3.3.4. BZ2_bzDecompressInit</a></span></dt> 176 <dt><span class="sect2"><a href="#bzDecompress">3.3.5. BZ2_bzDecompress</a></span></dt> 177 <dt><span class="sect2"><a href="#bzDecompress-end">3.3.6. BZ2_bzDecompressEnd</a></span></dt> 178 178 </dl></dd> 179 179 <dt><span class="sect1"><a href="#hl-interface">3.4. High-level interface</a></span></dt> 180 180 <dd><dl> 181 <dt><span class="sect2"><a href="#bzreadopen">3.4.1. <code class="computeroutput">BZ2_bzReadOpen</code></a></span></dt>182 <dt><span class="sect2"><a href="#bzread">3.4.2. <code class="computeroutput">BZ2_bzRead</code></a></span></dt>183 <dt><span class="sect2"><a href="#bzreadgetunused">3.4.3. <code class="computeroutput">BZ2_bzReadGetUnused</code></a></span></dt>184 <dt><span class="sect2"><a href="#bzreadclose">3.4.4. <code class="computeroutput">BZ2_bzReadClose</code></a></span></dt>185 <dt><span class="sect2"><a href="#bzwriteopen">3.4.5. <code class="computeroutput">BZ2_bzWriteOpen</code></a></span></dt>186 <dt><span class="sect2"><a href="#bzwrite">3.4.6. <code class="computeroutput">BZ2_bzWrite</code></a></span></dt>187 <dt><span class="sect2"><a href="#bzwriteclose">3.4.7. <code class="computeroutput">BZ2_bzWriteClose</code></a></span></dt>181 <dt><span class="sect2"><a href="#bzreadopen">3.4.1. BZ2_bzReadOpen</a></span></dt> 182 <dt><span class="sect2"><a href="#bzread">3.4.2. BZ2_bzRead</a></span></dt> 183 <dt><span class="sect2"><a href="#bzreadgetunused">3.4.3. BZ2_bzReadGetUnused</a></span></dt> 184 <dt><span class="sect2"><a href="#bzreadclose">3.4.4. BZ2_bzReadClose</a></span></dt> 185 <dt><span class="sect2"><a href="#bzwriteopen">3.4.5. BZ2_bzWriteOpen</a></span></dt> 186 <dt><span class="sect2"><a href="#bzwrite">3.4.6. BZ2_bzWrite</a></span></dt> 187 <dt><span class="sect2"><a href="#bzwriteclose">3.4.7. BZ2_bzWriteClose</a></span></dt> 188 188 <dt><span class="sect2"><a href="#embed">3.4.8. Handling embedded compressed data streams</a></span></dt> 189 189 <dt><span class="sect2"><a href="#std-rdwr">3.4.9. Standard file-reading/writing code</a></span></dt> … … 191 191 <dt><span class="sect1"><a href="#util-fns">3.5. Utility functions</a></span></dt> 192 192 <dd><dl> 193 <dt><span class="sect2"><a href="#bzbufftobuffcompress">3.5.1. <code class="computeroutput">BZ2_bzBuffToBuffCompress</code></a></span></dt>194 <dt><span class="sect2"><a href="#bzbufftobuffdecompress">3.5.2. <code class="computeroutput">BZ2_bzBuffToBuffDecompress</code></a></span></dt>193 <dt><span class="sect2"><a href="#bzbufftobuffcompress">3.5.1. BZ2_bzBuffToBuffCompress</a></span></dt> 194 <dt><span class="sect2"><a href="#bzbufftobuffdecompress">3.5.2. BZ2_bzBuffToBuffDecompress</a></span></dt> 195 195 </dl></dd> 196 <dt><span class="sect1"><a href="#zlib-compat">3.6. <code class="computeroutput">zlib</code>compatibility functions</a></span></dt>197 <dt><span class="sect1"><a href="#stdio-free">3.7. Using the library in a <code class="computeroutput">stdio</code>-free environment</a></span></dt>196 <dt><span class="sect1"><a href="#zlib-compat">3.6. zlib compatibility functions</a></span></dt> 197 <dt><span class="sect1"><a href="#stdio-free">3.7. Using the library in a stdio-free environment</a></span></dt> 198 198 <dd><dl> 199 <dt><span class="sect2"><a href="#stdio-bye">3.7.1. Getting rid of <code class="computeroutput">stdio</code></a></span></dt>199 <dt><span class="sect2"><a href="#stdio-bye">3.7.1. Getting rid of stdio</a></span></dt> 200 200 <dt><span class="sect2"><a href="#critical-error">3.7.2. Critical error handling</a></span></dt> 201 201 </dl></dd> … … 212 212 </dl> 213 213 </div> 214 <div class="chapter" lang="en">214 <div class="chapter" title="1. Introduction"> 215 215 <div class="titlepage"><div><div><h2 class="title"> 216 216 <a name="intro"></a>1. Introduction</h2></div></div></div> … … 229 229 library, not the program, which is good news if your interest is 230 230 only in the program.</p> 231 <div class="itemizedlist"><ul type="bullet">232 <li style="list-style-type: disc"><p><a href="#using">How to use bzip2</a> describes how to use231 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 232 <li class="listitem" style="list-style-type: disc"><p><a class="xref" href="#using" title="2. How to use bzip2">How to use bzip2</a> describes how to use 233 233 <code class="computeroutput">bzip2</code>; this is the only part 234 234 you need to read if you just want to know how to operate the 235 235 program.</p></li> 236 <li style="list-style-type: disc"><p><a href="#libprog">Programming with libbzip2</a> describes the236 <li class="listitem" style="list-style-type: disc"><p><a class="xref" href="#libprog" title="3. Programming with libbzip2">Programming with libbzip2</a> describes the 237 237 programming interfaces in detail, and</p></li> 238 <li style="list-style-type: disc"><p><a href="#misc">Miscellanea</a> records some238 <li class="listitem" style="list-style-type: disc"><p><a class="xref" href="#misc" title="4. Miscellanea">Miscellanea</a> records some 239 239 miscellaneous notes which I thought ought to be recorded 240 240 somewhere.</p></li> 241 241 </ul></div> 242 242 </div> 243 <div class="chapter" lang="en">243 <div class="chapter" title="2. How to use bzip2"> 244 244 <div class="titlepage"><div><div><h2 class="title"> 245 245 <a name="using"></a>2. How to use bzip2</h2></div></div></div> … … 261 261 <code class="computeroutput">bzip2</code> man page, and nothing 262 262 else.</p> 263 <div class="sect1" lang="en">263 <div class="sect1" title="2.1. NAME"> 264 264 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 265 265 <a name="name"></a>2.1. NAME</h2></div></div></div> 266 <div class="itemizedlist"><ul type="bullet">267 <li style="list-style-type: disc"><p><code class="computeroutput">bzip2</code>,266 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 267 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzip2</code>, 268 268 <code class="computeroutput">bunzip2</code> - a block-sorting file 269 compressor, v1.0. 4</p></li>270 <li style="list-style-type: disc"><p><code class="computeroutput">bzcat</code> -269 compressor, v1.0.6</p></li> 270 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzcat</code> - 271 271 decompresses files to stdout</p></li> 272 <li style="list-style-type: disc"><p><code class="computeroutput">bzip2recover</code> -272 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzip2recover</code> - 273 273 recovers data from damaged bzip2 files</p></li> 274 274 </ul></div> 275 275 </div> 276 <div class="sect1" lang="en">276 <div class="sect1" title="2.2. SYNOPSIS"> 277 277 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 278 278 <a name="synopsis"></a>2.2. SYNOPSIS</h2></div></div></div> 279 <div class="itemizedlist"><ul type="bullet">280 <li style="list-style-type: disc"><p><code class="computeroutput">bzip2</code> [279 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 280 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzip2</code> [ 281 281 -cdfkqstvzVL123456789 ] [ filenames ... ]</p></li> 282 <li style="list-style-type: disc"><p><code class="computeroutput">bunzip2</code> [282 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bunzip2</code> [ 283 283 -fkvsVL ] [ filenames ... ]</p></li> 284 <li style="list-style-type: disc"><p><code class="computeroutput">bzcat</code> [ -s ] [284 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzcat</code> [ -s ] [ 285 285 filenames ... ]</p></li> 286 <li style="list-style-type: disc"><p><code class="computeroutput">bzip2recover</code>286 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzip2recover</code> 287 287 filename</p></li> 288 288 </ul></div> 289 289 </div> 290 <div class="sect1" lang="en">290 <div class="sect1" title="2.3. DESCRIPTION"> 291 291 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 292 292 <a name="description"></a>2.3. DESCRIPTION</h2></div></div></div> … … 330 330 filename for the decompressed file from that of the compressed 331 331 file as follows:</p> 332 <div class="itemizedlist"><ul type="bullet">333 <li style="list-style-type: disc"><p><code class="computeroutput">filename.bz2 </code>332 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 333 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">filename.bz2 </code> 334 334 becomes 335 335 <code class="computeroutput">filename</code></p></li> 336 <li style="list-style-type: disc"><p><code class="computeroutput">filename.bz </code>336 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">filename.bz </code> 337 337 becomes 338 338 <code class="computeroutput">filename</code></p></li> 339 <li style="list-style-type: disc"><p><code class="computeroutput">filename.tbz2</code>339 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">filename.tbz2</code> 340 340 becomes 341 341 <code class="computeroutput">filename.tar</code></p></li> 342 <li style="list-style-type: disc"><p><code class="computeroutput">filename.tbz </code>342 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">filename.tbz </code> 343 343 becomes 344 344 <code class="computeroutput">filename.tar</code></p></li> 345 <li style="list-style-type: disc"><p><code class="computeroutput">anyothername </code>345 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">anyothername </code> 346 346 becomes 347 347 <code class="computeroutput">anyothername.out</code></p></li> … … 408 408 <code class="computeroutput">bzip2</code> to panic.</p> 409 409 </div> 410 <div class="sect1" lang="en">410 <div class="sect1" title="2.4. OPTIONS"> 411 411 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 412 412 <a name="options"></a>2.4. OPTIONS</h2></div></div></div> … … 459 459 short, if your machine is low on memory (8 megabytes or less), 460 460 use <code class="computeroutput">-s</code> for everything. See 461 <a href="#memory-management">MEMORY MANAGEMENT</a> below.</p>461 <a class="xref" href="#memory-management" title="2.5. MEMORY MANAGEMENT">MEMORY MANAGEMENT</a> below.</p> 462 462 </dd> 463 463 <dt><span class="term"><code class="computeroutput">-q --quiet</code></span></dt> … … 479 479 <code class="computeroutput">-best</code>)</span></dt> 480 480 <dd><p>Set the block size to 100 k, 200 k ... 900 k 481 when compressing. Has no effect when decompressing. See <a href="#memory-management">MEMORY MANAGEMENT</a> below. The481 when compressing. Has no effect when decompressing. See <a class="xref" href="#memory-management" title="2.5. MEMORY MANAGEMENT">MEMORY MANAGEMENT</a> below. The 482 482 <code class="computeroutput">--fast</code> and 483 483 <code class="computeroutput">--best</code> aliases are primarily … … 503 503 </dl></div> 504 504 </div> 505 <div class="sect1" lang="en">505 <div class="sect1" title="2.5. MEMORY MANAGEMENT"> 506 506 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 507 507 <a name="memory-management"></a>2.5. MEMORY MANAGEMENT</h2></div></div></div> … … 575 575 -9 7600k 3700k 2350k 828642</pre> 576 576 </div> 577 <div class="sect1" lang="en">577 <div class="sect1" title="2.6. RECOVERING DATA FROM DAMAGED FILES"> 578 578 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 579 579 <a name="recovering"></a>2.6. RECOVERING DATA FROM DAMAGED FILES</h2></div></div></div> … … 613 613 compressing with a smaller block size.</p> 614 614 </div> 615 <div class="sect1" lang="en">615 <div class="sect1" title="2.7. PERFORMANCE NOTES"> 616 616 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 617 617 <a name="performance"></a>2.7. PERFORMANCE NOTES</h2></div></div></div> … … 639 639 machines with very large caches.</p> 640 640 </div> 641 <div class="sect1" lang="en">641 <div class="sect1" title="2.8. CAVEATS"> 642 642 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 643 643 <a name="caveats"></a>2.8. CAVEATS</h2></div></div></div> … … 646 646 errors and exit cleanly, but the details of what the problem is 647 647 sometimes seem rather misleading.</p> 648 <p>This manual page pertains to version 1.0. 5of648 <p>This manual page pertains to version 1.0.6 of 649 649 <code class="computeroutput">bzip2</code>. Compressed data created by 650 650 this version is entirely forwards and backwards compatible with the … … 666 666 unsigned 64-bit integer.</p> 667 667 </div> 668 <div class="sect1" lang="en">668 <div class="sect1" title="2.9. AUTHOR"> 669 669 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 670 670 <a name="author"></a>2.9. AUTHOR</h2></div></div></div> … … 691 691 </div> 692 692 </div> 693 <div class="chapter" lang="en">693 <div class="chapter" title="3. Programming with libbzip2"> 694 694 <div class="titlepage"><div><div><h2 class="title"> 695 695 <a name="libprog"></a>3. … … 708 708 <dt><span class="sect1"><a href="#low-level">3.3. Low-level interface</a></span></dt> 709 709 <dd><dl> 710 <dt><span class="sect2"><a href="#bzcompress-init">3.3.1. <code class="computeroutput">BZ2_bzCompressInit</code></a></span></dt>711 <dt><span class="sect2"><a href="#bzCompress">3.3.2. <code class="computeroutput">BZ2_bzCompress</code></a></span></dt>712 <dt><span class="sect2"><a href="#bzCompress-end">3.3.3. <code class="computeroutput">BZ2_bzCompressEnd</code></a></span></dt>713 <dt><span class="sect2"><a href="#bzDecompress-init">3.3.4. <code class="computeroutput">BZ2_bzDecompressInit</code></a></span></dt>714 <dt><span class="sect2"><a href="#bzDecompress">3.3.5. <code class="computeroutput">BZ2_bzDecompress</code></a></span></dt>715 <dt><span class="sect2"><a href="#bzDecompress-end">3.3.6. <code class="computeroutput">BZ2_bzDecompressEnd</code></a></span></dt>710 <dt><span class="sect2"><a href="#bzcompress-init">3.3.1. BZ2_bzCompressInit</a></span></dt> 711 <dt><span class="sect2"><a href="#bzCompress">3.3.2. BZ2_bzCompress</a></span></dt> 712 <dt><span class="sect2"><a href="#bzCompress-end">3.3.3. BZ2_bzCompressEnd</a></span></dt> 713 <dt><span class="sect2"><a href="#bzDecompress-init">3.3.4. BZ2_bzDecompressInit</a></span></dt> 714 <dt><span class="sect2"><a href="#bzDecompress">3.3.5. BZ2_bzDecompress</a></span></dt> 715 <dt><span class="sect2"><a href="#bzDecompress-end">3.3.6. BZ2_bzDecompressEnd</a></span></dt> 716 716 </dl></dd> 717 717 <dt><span class="sect1"><a href="#hl-interface">3.4. High-level interface</a></span></dt> 718 718 <dd><dl> 719 <dt><span class="sect2"><a href="#bzreadopen">3.4.1. <code class="computeroutput">BZ2_bzReadOpen</code></a></span></dt>720 <dt><span class="sect2"><a href="#bzread">3.4.2. <code class="computeroutput">BZ2_bzRead</code></a></span></dt>721 <dt><span class="sect2"><a href="#bzreadgetunused">3.4.3. <code class="computeroutput">BZ2_bzReadGetUnused</code></a></span></dt>722 <dt><span class="sect2"><a href="#bzreadclose">3.4.4. <code class="computeroutput">BZ2_bzReadClose</code></a></span></dt>723 <dt><span class="sect2"><a href="#bzwriteopen">3.4.5. <code class="computeroutput">BZ2_bzWriteOpen</code></a></span></dt>724 <dt><span class="sect2"><a href="#bzwrite">3.4.6. <code class="computeroutput">BZ2_bzWrite</code></a></span></dt>725 <dt><span class="sect2"><a href="#bzwriteclose">3.4.7. <code class="computeroutput">BZ2_bzWriteClose</code></a></span></dt>719 <dt><span class="sect2"><a href="#bzreadopen">3.4.1. BZ2_bzReadOpen</a></span></dt> 720 <dt><span class="sect2"><a href="#bzread">3.4.2. BZ2_bzRead</a></span></dt> 721 <dt><span class="sect2"><a href="#bzreadgetunused">3.4.3. BZ2_bzReadGetUnused</a></span></dt> 722 <dt><span class="sect2"><a href="#bzreadclose">3.4.4. BZ2_bzReadClose</a></span></dt> 723 <dt><span class="sect2"><a href="#bzwriteopen">3.4.5. BZ2_bzWriteOpen</a></span></dt> 724 <dt><span class="sect2"><a href="#bzwrite">3.4.6. BZ2_bzWrite</a></span></dt> 725 <dt><span class="sect2"><a href="#bzwriteclose">3.4.7. BZ2_bzWriteClose</a></span></dt> 726 726 <dt><span class="sect2"><a href="#embed">3.4.8. Handling embedded compressed data streams</a></span></dt> 727 727 <dt><span class="sect2"><a href="#std-rdwr">3.4.9. Standard file-reading/writing code</a></span></dt> … … 729 729 <dt><span class="sect1"><a href="#util-fns">3.5. Utility functions</a></span></dt> 730 730 <dd><dl> 731 <dt><span class="sect2"><a href="#bzbufftobuffcompress">3.5.1. <code class="computeroutput">BZ2_bzBuffToBuffCompress</code></a></span></dt>732 <dt><span class="sect2"><a href="#bzbufftobuffdecompress">3.5.2. <code class="computeroutput">BZ2_bzBuffToBuffDecompress</code></a></span></dt>731 <dt><span class="sect2"><a href="#bzbufftobuffcompress">3.5.1. BZ2_bzBuffToBuffCompress</a></span></dt> 732 <dt><span class="sect2"><a href="#bzbufftobuffdecompress">3.5.2. BZ2_bzBuffToBuffDecompress</a></span></dt> 733 733 </dl></dd> 734 <dt><span class="sect1"><a href="#zlib-compat">3.6. <code class="computeroutput">zlib</code>compatibility functions</a></span></dt>735 <dt><span class="sect1"><a href="#stdio-free">3.7. Using the library in a <code class="computeroutput">stdio</code>-free environment</a></span></dt>734 <dt><span class="sect1"><a href="#zlib-compat">3.6. zlib compatibility functions</a></span></dt> 735 <dt><span class="sect1"><a href="#stdio-free">3.7. Using the library in a stdio-free environment</a></span></dt> 736 736 <dd><dl> 737 <dt><span class="sect2"><a href="#stdio-bye">3.7.1. Getting rid of <code class="computeroutput">stdio</code></a></span></dt>737 <dt><span class="sect2"><a href="#stdio-bye">3.7.1. Getting rid of stdio</a></span></dt> 738 738 <dt><span class="sect2"><a href="#critical-error">3.7.2. Critical error handling</a></span></dt> 739 739 </dl></dd> … … 745 745 <p>For general background information, particularly about 746 746 memory use and performance aspects, you'd be well advised to read 747 <a href="#using">How to use bzip2</a> as well.</p>748 <div class="sect1" lang="en">747 <a class="xref" href="#using" title="2. How to use bzip2">How to use bzip2</a> as well.</p> 748 <div class="sect1" title="3.1. Top-level structure"> 749 749 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 750 750 <a name="top-level"></a>3.1. Top-level structure</h2></div></div></div> … … 766 766 <code class="computeroutput">#include <bzlib.h></code> 767 767 into your sources.</p> 768 <div class="sect2" lang="en">768 <div class="sect2" title="3.1.1. Low-level summary"> 769 769 <div class="titlepage"><div><div><h3 class="title"> 770 770 <a name="ll-summary"></a>3.1.1. Low-level summary</h3></div></div></div> … … 801 801 of both.</p> 802 802 </div> 803 <div class="sect2" lang="en">803 <div class="sect2" title="3.1.2. High-level summary"> 804 804 <div class="titlepage"><div><div><h3 class="title"> 805 805 <a name="hl-summary"></a>3.1.2. High-level summary</h3></div></div></div> … … 840 840 imposition on the programmer.</p> 841 841 </div> 842 <div class="sect2" lang="en">842 <div class="sect2" title="3.1.3. Utility functions summary"> 843 843 <div class="titlepage"><div><div><h3 class="title"> 844 844 <a name="util-fns-summary"></a>3.1.3. Utility functions summary</h3></div></div></div> … … 872 872 </div> 873 873 </div> 874 <div class="sect1" lang="en">874 <div class="sect1" title="3.2. Error handling"> 875 875 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 876 876 <a name="err-handling"></a>3.2. Error handling</h2></div></div></div> … … 1009 1009 </dl></div> 1010 1010 </div> 1011 <div class="sect1" lang="en">1011 <div class="sect1" title="3.3. Low-level interface"> 1012 1012 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 1013 1013 <a name="low-level"></a>3.3. Low-level interface</h2></div></div></div> 1014 <div class="sect2" lang="en">1014 <div class="sect2" title="3.3.1. BZ2_bzCompressInit"> 1015 1015 <div class="titlepage"><div><div><h3 class="title"> 1016 <a name="bzcompress-init"></a>3.3.1. <code class="computeroutput">BZ2_bzCompressInit</code></h3></div></div></div>1016 <a name="bzcompress-init"></a>3.3.1. BZ2_bzCompressInit</h3></div></div></div> 1017 1017 <pre class="programlisting">typedef struct { 1018 1018 char *next_in; … … 1138 1138 no specific action needed in case of error</pre> 1139 1139 </div> 1140 <div class="sect2" lang="en">1140 <div class="sect2" title="3.3.2. BZ2_bzCompress"> 1141 1141 <div class="titlepage"><div><div><h3 class="title"> 1142 <a name="bzCompress"></a>3.3.2. <code class="computeroutput">BZ2_bzCompress</code></h3></div></div></div>1142 <a name="bzCompress"></a>3.3.2. BZ2_bzCompress</h3></div></div></div> 1143 1143 <pre class="programlisting">int BZ2_bzCompress ( bz_stream *strm, int action );</pre> 1144 1144 <p>Provides more input and/or output buffer space for the … … 1297 1297 <p>That still looks complicated? Well, fair enough. The 1298 1298 usual sequence of calls for compressing a load of data is:</p> 1299 <div class="orderedlist"><ol type="1">1300 <li ><p>Get started with1299 <div class="orderedlist"><ol class="orderedlist" type="1"> 1300 <li class="listitem"><p>Get started with 1301 1301 <code class="computeroutput">BZ2_bzCompressInit</code>.</p></li> 1302 <li ><p>Shovel data in and shlurp out its compressed form1302 <li class="listitem"><p>Shovel data in and shlurp out its compressed form 1303 1303 using zero or more calls of 1304 1304 <code class="computeroutput">BZ2_bzCompress</code> with action = 1305 1305 <code class="computeroutput">BZ_RUN</code>.</p></li> 1306 <li ><p>Finish up. Repeatedly call1306 <li class="listitem"><p>Finish up. Repeatedly call 1307 1307 <code class="computeroutput">BZ2_bzCompress</code> with action = 1308 1308 <code class="computeroutput">BZ_FINISH</code>, copying out the … … 1310 1310 <code class="computeroutput">BZ_STREAM_END</code> is 1311 1311 returned.</p></li> 1312 <li ><p>Close up and go home. Call1312 <li class="listitem"><p>Close up and go home. Call 1313 1313 <code class="computeroutput">BZ2_bzCompressEnd</code>.</p></li> 1314 1314 </ol></div> … … 1330 1330 if strm is NULL, or strm->s is NULL</pre> 1331 1331 </div> 1332 <div class="sect2" lang="en">1332 <div class="sect2" title="3.3.3. BZ2_bzCompressEnd"> 1333 1333 <div class="titlepage"><div><div><h3 class="title"> 1334 <a name="bzCompress-end"></a>3.3.3. <code class="computeroutput">BZ2_bzCompressEnd</code></h3></div></div></div>1334 <a name="bzCompress-end"></a>3.3.3. BZ2_bzCompressEnd</h3></div></div></div> 1335 1335 <pre class="programlisting">int BZ2_bzCompressEnd ( bz_stream *strm );</pre> 1336 1336 <p>Releases all memory associated with a compression … … 1340 1340 BZ_OK otherwise</pre> 1341 1341 </div> 1342 <div class="sect2" lang="en">1342 <div class="sect2" title="3.3.4. BZ2_bzDecompressInit"> 1343 1343 <div class="titlepage"><div><div><h3 class="title"> 1344 <a name="bzDecompress-init"></a>3.3.4. <code class="computeroutput">BZ2_bzDecompressInit</code></h3></div></div></div>1344 <a name="bzDecompress-init"></a>3.3.4. BZ2_bzDecompressInit</h3></div></div></div> 1345 1345 <pre class="programlisting">int BZ2_bzDecompressInit ( bz_stream *strm, int verbosity, int small );</pre> 1346 1346 <p>Prepares for decompression. As with … … 1365 1365 uses less memory but at the cost of decompressing more slowly 1366 1366 (roughly speaking, half the speed, but the maximum memory 1367 requirement drops to around 2300k). See <a href="#using">How to use bzip2</a>1367 requirement drops to around 2300k). See <a class="xref" href="#using" title="2. How to use bzip2">How to use bzip2</a> 1368 1368 for more information on memory management.</p> 1369 1369 <p>Note that the amount of memory needed to decompress a … … 1387 1387 no specific action required in case of error</pre> 1388 1388 </div> 1389 <div class="sect2" lang="en">1389 <div class="sect2" title="3.3.5. BZ2_bzDecompress"> 1390 1390 <div class="titlepage"><div><div><h3 class="title"> 1391 <a name="bzDecompress"></a>3.3.5. <code class="computeroutput">BZ2_bzDecompress</code></h3></div></div></div>1391 <a name="bzDecompress"></a>3.3.5. BZ2_bzDecompress</h3></div></div></div> 1392 1392 <pre class="programlisting">int BZ2_bzDecompress ( bz_stream *strm );</pre> 1393 1393 <p>Provides more input and/out output buffer space for the … … 1462 1462 otherwise</pre> 1463 1463 </div> 1464 <div class="sect2" lang="en">1464 <div class="sect2" title="3.3.6. BZ2_bzDecompressEnd"> 1465 1465 <div class="titlepage"><div><div><h3 class="title"> 1466 <a name="bzDecompress-end"></a>3.3.6. <code class="computeroutput">BZ2_bzDecompressEnd</code></h3></div></div></div>1466 <a name="bzDecompress-end"></a>3.3.6. BZ2_bzDecompressEnd</h3></div></div></div> 1467 1467 <pre class="programlisting">int BZ2_bzDecompressEnd ( bz_stream *strm );</pre> 1468 1468 <p>Releases all memory associated with a decompression … … 1477 1477 </div> 1478 1478 </div> 1479 <div class="sect1" lang="en">1479 <div class="sect1" title="3.4. High-level interface"> 1480 1480 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 1481 1481 <a name="hl-interface"></a>3.4. High-level interface</h2></div></div></div> … … 1483 1483 <code class="computeroutput">bzip2</code> format files. First, some 1484 1484 general points.</p> 1485 <div class="itemizedlist"><ul type="bullet">1486 <li style="list-style-type: disc"><p>All of the functions take an1485 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 1486 <li class="listitem" style="list-style-type: disc"><p>All of the functions take an 1487 1487 <code class="computeroutput">int*</code> first argument, 1488 1488 <code class="computeroutput">bzerror</code>. After each call, … … 1501 1501 may also be set to various other values; precise details are 1502 1502 given on a per-function basis below.</p></li> 1503 <li style="list-style-type: disc"><p>If <code class="computeroutput">bzerror</code> indicates1503 <li class="listitem" style="list-style-type: disc"><p>If <code class="computeroutput">bzerror</code> indicates 1504 1504 an error (ie, anything except 1505 1505 <code class="computeroutput">BZ_OK</code> and … … 1520 1520 (<code class="computeroutput">BZ2_bzWriteClose</code>) should then 1521 1521 be called to clean up.</p></li> 1522 <li style="list-style-type: disc"><p>The <code class="computeroutput">FILE*</code> arguments1522 <li class="listitem" style="list-style-type: disc"><p>The <code class="computeroutput">FILE*</code> arguments 1523 1523 passed to <code class="computeroutput">BZ2_bzReadOpen</code> / 1524 1524 <code class="computeroutput">BZ2_bzWriteOpen</code> should be set … … 1527 1527 omit this, you may encounter problems when moving code to new 1528 1528 platforms.</p></li> 1529 <li style="list-style-type: disc"><p>Memory allocation requests are handled by1529 <li class="listitem" style="list-style-type: disc"><p>Memory allocation requests are handled by 1530 1530 <code class="computeroutput">malloc</code> / 1531 1531 <code class="computeroutput">free</code>. At present there is no … … 1533 1533 functions (could easily be added, though).</p></li> 1534 1534 </ul></div> 1535 <div class="sect2" lang="en">1535 <div class="sect2" title="3.4.1. BZ2_bzReadOpen"> 1536 1536 <div class="titlepage"><div><div><h3 class="title"> 1537 <a name="bzreadopen"></a>3.4.1. <code class="computeroutput">BZ2_bzReadOpen</code></h3></div></div></div>1537 <a name="bzreadopen"></a>3.4.1. BZ2_bzReadOpen</h3></div></div></div> 1538 1538 <pre class="programlisting">typedef void BZFILE; 1539 1539 … … 1595 1595 otherwise</pre> 1596 1596 </div> 1597 <div class="sect2" lang="en">1597 <div class="sect2" title="3.4.2. BZ2_bzRead"> 1598 1598 <div class="titlepage"><div><div><h3 class="title"> 1599 <a name="bzread"></a>3.4.2. <code class="computeroutput">BZ2_bzRead</code></h3></div></div></div>1599 <a name="bzread"></a>3.4.2. BZ2_bzRead</h3></div></div></div> 1600 1600 <pre class="programlisting">int BZ2_bzRead ( int *bzerror, BZFILE *b, void *buf, int len );</pre> 1601 1601 <p>Reads up to <code class="computeroutput">len</code> … … 1669 1669 otherwise</pre> 1670 1670 </div> 1671 <div class="sect2" lang="en">1671 <div class="sect2" title="3.4.3. BZ2_bzReadGetUnused"> 1672 1672 <div class="titlepage"><div><div><h3 class="title"> 1673 <a name="bzreadgetunused"></a>3.4.3. <code class="computeroutput">BZ2_bzReadGetUnused</code></h3></div></div></div>1673 <a name="bzreadgetunused"></a>3.4.3. BZ2_bzReadGetUnused</h3></div></div></div> 1674 1674 <pre class="programlisting">void BZ2_bzReadGetUnused( int* bzerror, BZFILE *b, 1675 1675 void** unused, int* nUnused );</pre> … … 1698 1698 <pre class="programlisting">BZ2_bzReadClose</pre> 1699 1699 </div> 1700 <div class="sect2" lang="en">1700 <div class="sect2" title="3.4.4. BZ2_bzReadClose"> 1701 1701 <div class="titlepage"><div><div><h3 class="title"> 1702 <a name="bzreadclose"></a>3.4.4. <code class="computeroutput">BZ2_bzReadClose</code></h3></div></div></div>1702 <a name="bzreadclose"></a>3.4.4. BZ2_bzReadClose</h3></div></div></div> 1703 1703 <pre class="programlisting">void BZ2_bzReadClose ( int *bzerror, BZFILE *b );</pre> 1704 1704 <p>Releases all memory pertaining to the compressed file … … 1718 1718 <pre class="programlisting">none</pre> 1719 1719 </div> 1720 <div class="sect2" lang="en">1720 <div class="sect2" title="3.4.5. BZ2_bzWriteOpen"> 1721 1721 <div class="titlepage"><div><div><h3 class="title"> 1722 <a name="bzwriteopen"></a>3.4.5. <code class="computeroutput">BZ2_bzWriteOpen</code></h3></div></div></div>1722 <a name="bzwriteopen"></a>3.4.5. BZ2_bzWriteOpen</h3></div></div></div> 1723 1723 <pre class="programlisting">BZFILE *BZ2_bzWriteOpen( int *bzerror, FILE *f, 1724 1724 int blockSize100k, int verbosity, … … 1764 1764 otherwise</pre> 1765 1765 </div> 1766 <div class="sect2" lang="en">1766 <div class="sect2" title="3.4.6. BZ2_bzWrite"> 1767 1767 <div class="titlepage"><div><div><h3 class="title"> 1768 <a name="bzwrite"></a>3.4.6. <code class="computeroutput">BZ2_bzWrite</code></h3></div></div></div>1768 <a name="bzwrite"></a>3.4.6. BZ2_bzWrite</h3></div></div></div> 1769 1769 <pre class="programlisting">void BZ2_bzWrite ( int *bzerror, BZFILE *b, void *buf, int len );</pre> 1770 1770 <p>Absorbs <code class="computeroutput">len</code> bytes from the … … 1782 1782 otherwise</pre> 1783 1783 </div> 1784 <div class="sect2" lang="en">1784 <div class="sect2" title="3.4.7. BZ2_bzWriteClose"> 1785 1785 <div class="titlepage"><div><div><h3 class="title"> 1786 <a name="bzwriteclose"></a>3.4.7. <code class="computeroutput">BZ2_bzWriteClose</code></h3></div></div></div>1786 <a name="bzwriteclose"></a>3.4.7. BZ2_bzWriteClose</h3></div></div></div> 1787 1787 <pre class="programlisting">void BZ2_bzWriteClose( int *bzerror, BZFILE* f, 1788 1788 int abandon, … … 1834 1834 otherwise</pre> 1835 1835 </div> 1836 <div class="sect2" lang="en">1836 <div class="sect2" title="3.4.8. Handling embedded compressed data streams"> 1837 1837 <div class="titlepage"><div><div><h3 class="title"> 1838 1838 <a name="embed"></a>3.4.8. Handling embedded compressed data streams</h3></div></div></div> … … 1840 1840 <code class="computeroutput">bzip2</code> data streams which form 1841 1841 some part of a surrounding, larger data stream.</p> 1842 <div class="itemizedlist"><ul type="bullet">1843 <li style="list-style-type: disc"><p>For writing, the library takes an open file handle,1842 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 1843 <li class="listitem" style="list-style-type: disc"><p>For writing, the library takes an open file handle, 1844 1844 writes compressed data to it, 1845 1845 <code class="computeroutput">fflush</code>es it but does not … … 1847 1847 application can write its own data before and after the 1848 1848 compressed data stream, using that same file handle.</p></li> 1849 <li style="list-style-type: disc"><p>Reading is more complex, and the facilities are not as1849 <li class="listitem" style="list-style-type: disc"><p>Reading is more complex, and the facilities are not as 1850 1850 general as they could be since generality is hard to reconcile 1851 1851 with efficiency. <code class="computeroutput">BZ2_bzRead</code> … … 1883 1883 interface.</p> 1884 1884 </div> 1885 <div class="sect2" lang="en">1885 <div class="sect2" title="3.4.9. Standard file-reading/writing code"> 1886 1886 <div class="titlepage"><div><div><h3 class="title"> 1887 1887 <a name="std-rdwr"></a>3.4.9. Standard file-reading/writing code</h3></div></div></div> … … 1950 1950 </div> 1951 1951 </div> 1952 <div class="sect1" lang="en">1952 <div class="sect1" title="3.5. Utility functions"> 1953 1953 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 1954 1954 <a name="util-fns"></a>3.5. Utility functions</h2></div></div></div> 1955 <div class="sect2" lang="en">1955 <div class="sect2" title="3.5.1. BZ2_bzBuffToBuffCompress"> 1956 1956 <div class="titlepage"><div><div><h3 class="title"> 1957 <a name="bzbufftobuffcompress"></a>3.5.1. <code class="computeroutput">BZ2_bzBuffToBuffCompress</code></h3></div></div></div>1957 <a name="bzbufftobuffcompress"></a>3.5.1. BZ2_bzBuffToBuffCompress</h3></div></div></div> 1958 1958 <pre class="programlisting">int BZ2_bzBuffToBuffCompress( char* dest, 1959 1959 unsigned int* destLen, … … 2006 2006 otherwise</pre> 2007 2007 </div> 2008 <div class="sect2" lang="en">2008 <div class="sect2" title="3.5.2. BZ2_bzBuffToBuffDecompress"> 2009 2009 <div class="titlepage"><div><div><h3 class="title"> 2010 <a name="bzbufftobuffdecompress"></a>3.5.2. <code class="computeroutput">BZ2_bzBuffToBuffDecompress</code></h3></div></div></div>2010 <a name="bzbufftobuffdecompress"></a>3.5.2. BZ2_bzBuffToBuffDecompress</h3></div></div></div> 2011 2011 <pre class="programlisting">int BZ2_bzBuffToBuffDecompress( char* dest, 2012 2012 unsigned int* destLen, … … 2066 2066 </div> 2067 2067 </div> 2068 <div class="sect1" lang="en">2068 <div class="sect1" title="3.6. zlib compatibility functions"> 2069 2069 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2070 <a name="zlib-compat"></a>3.6. <code class="computeroutput">zlib</code>compatibility functions</h2></div></div></div>2070 <a name="zlib-compat"></a>3.6. zlib compatibility functions</h2></div></div></div> 2071 2071 <p>Yoshioka Tsuneo has contributed some functions to give 2072 2072 better <code class="computeroutput">zlib</code> compatibility. … … 2109 2109 value.</p> 2110 2110 </div> 2111 <div class="sect1" lang="en">2111 <div class="sect1" title="3.7. Using the library in a stdio-free environment"> 2112 2112 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2113 <a name="stdio-free"></a>3.7. Using the library in a <code class="computeroutput">stdio</code>-free environment</h2></div></div></div>2114 <div class="sect2" lang="en">2113 <a name="stdio-free"></a>3.7. Using the library in a stdio-free environment</h2></div></div></div> 2114 <div class="sect2" title="3.7.1. Getting rid of stdio"> 2115 2115 <div class="titlepage"><div><div><h3 class="title"> 2116 <a name="stdio-bye"></a>3.7.1. Getting rid of <code class="computeroutput">stdio</code></h3></div></div></div>2116 <a name="stdio-bye"></a>3.7.1. Getting rid of stdio</h3></div></div></div> 2117 2117 <p>In a deeply embedded application, you might want to use 2118 2118 just the memory-to-memory functions. You can do this … … 2132 2132 <code class="computeroutput">verbosity</code> settings.</p> 2133 2133 </div> 2134 <div class="sect2" lang="en">2134 <div class="sect2" title="3.7.2. Critical error handling"> 2135 2135 <div class="titlepage"><div><div><h3 class="title"> 2136 2136 <a name="critical-error"></a>3.7.2. Critical error handling</h3></div></div></div> … … 2144 2144 <div class="blockquote"><blockquote class="blockquote"> 2145 2145 <p>bzip2/libbzip2: internal error number N.</p> 2146 <p>This is a bug in bzip2/libbzip2, 1.0. 5 of 10 December 2007.2146 <p>This is a bug in bzip2/libbzip2, 1.0.6 of 6 September 2010. 2147 2147 Please report it to me at: jseward@bzip.org. If this happened 2148 2148 when you were using some program which uses libbzip2 as a … … 2150 2150 of that program. Please make an effort to report this bug; 2151 2151 timely and accurate bug reports eventually lead to higher 2152 quality software. Thanks. Julian Seward, 10 December 2007.2152 quality software. Thanks. Julian Seward, 6 September 2010. 2153 2153 </p> 2154 2154 </blockquote></div> … … 2177 2177 </div> 2178 2178 </div> 2179 <div class="sect1" lang="en">2179 <div class="sect1" title="3.8. Making a Windows DLL"> 2180 2180 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2181 2181 <a name="win-dll"></a>3.8. Making a Windows DLL</h2></div></div></div> … … 2219 2219 </div> 2220 2220 </div> 2221 <div class="chapter" lang="en">2221 <div class="chapter" title="4. Miscellanea"> 2222 2222 <div class="titlepage"><div><div><h2 class="title"> 2223 2223 <a name="misc"></a>4. Miscellanea</h2></div></div></div> … … 2234 2234 <p>These are just some random thoughts of mine. Your mileage 2235 2235 may vary.</p> 2236 <div class="sect1" lang="en">2236 <div class="sect1" title="4.1. Limitations of the compressed file format"> 2237 2237 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2238 2238 <a name="limits"></a>4.1. Limitations of the compressed file format</h2></div></div></div> … … 2251 2251 decompression and, in retrospect, are unnecessary. These 2252 2252 are:</p> 2253 <div class="itemizedlist"><ul type="bullet">2254 <li style="list-style-type: disc"><p>The run-length encoder, which is the first of the2253 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 2254 <li class="listitem" style="list-style-type: disc"><p>The run-length encoder, which is the first of the 2255 2255 compression transformations, is entirely irrelevant. The 2256 2256 original purpose was to protect the sorting algorithm from the … … 2259 2259 technical report (SRC-124) show how repeats can be handled 2260 2260 without difficulty in block sorting.</p></li> 2261 <li style="list-style-type: disc">2261 <li class="listitem" style="list-style-type: disc"> 2262 2262 <p>The randomisation mechanism doesn't really need to be 2263 2263 there. Udi Manber and Gene Myers published a suffix array … … 2282 2282 difficulties.</p> 2283 2283 </li> 2284 <li style="list-style-type: disc"><p>The compressed file format was never designed to be2284 <li class="listitem" style="list-style-type: disc"><p>The compressed file format was never designed to be 2285 2285 handled by a library, and I have had to jump though some hoops 2286 2286 to produce an efficient implementation of decompression. It's … … 2290 2290 complexity could have been avoided if the compressed size of 2291 2291 each block of data was recorded in the data stream.</p></li> 2292 <li style="list-style-type: disc"><p>An Adler-32 checksum, rather than a CRC32 checksum,2292 <li class="listitem" style="list-style-type: disc"><p>An Adler-32 checksum, rather than a CRC32 checksum, 2293 2293 would be faster to compute.</p></li> 2294 2294 </ul></div> … … 2299 2299 <p>Improvements which I was able to incorporate into 0.9.0, 2300 2300 despite using the same file format, are:</p> 2301 <div class="itemizedlist"><ul type="bullet">2302 <li style="list-style-type: disc"><p>Single array implementation of the inverse BWT. This2301 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 2302 <li class="listitem" style="list-style-type: disc"><p>Single array implementation of the inverse BWT. This 2303 2303 significantly speeds up decompression, presumably because it 2304 2304 reduces the number of cache misses.</p></li> 2305 <li style="list-style-type: disc"><p>Faster inverse MTF transform for large MTF values.2305 <li class="listitem" style="list-style-type: disc"><p>Faster inverse MTF transform for large MTF values. 2306 2306 The new implementation is based on the notion of sliding blocks 2307 2307 of values.</p></li> 2308 <li style="list-style-type: disc"><p><code class="computeroutput">bzip2-0.9.0</code> now reads2308 <li class="listitem" style="list-style-type: disc"><p><code class="computeroutput">bzip2-0.9.0</code> now reads 2309 2309 and writes files with <code class="computeroutput">fread</code> 2310 2310 and <code class="computeroutput">fwrite</code>; version 0.1 used … … 2317 2317 compressed file formats.</p> 2318 2318 </div> 2319 <div class="sect1" lang="en">2319 <div class="sect1" title="4.2. Portability issues"> 2320 2320 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2321 2321 <a name="port-issues"></a>4.2. Portability issues</h2></div></div></div> … … 2367 2367 Otherwise the resulting binary won't work correctly.</p> 2368 2368 </div> 2369 <div class="sect1" lang="en">2369 <div class="sect1" title="4.3. Reporting bugs"> 2370 2370 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2371 2371 <a name="bugs"></a>4.3. Reporting bugs</h2></div></div></div> … … 2380 2380 problems can be traced to either compiler bugs or hardware 2381 2381 problems.</p> 2382 <div class="itemizedlist"><ul type="bullet">2383 <li style="list-style-type: disc">2382 <div class="itemizedlist"><ul class="itemizedlist" type="bullet"> 2383 <li class="listitem" style="list-style-type: disc"> 2384 2384 <p>Recompile the program with no optimisation, and 2385 2385 see if it works. And/or try a different compiler. I heard all … … 2401 2401 done its job correctly.</p> 2402 2402 </li> 2403 <li style="list-style-type: disc">2403 <li class="listitem" style="list-style-type: disc"> 2404 2404 <p>If <code class="computeroutput">bzip2</code> 2405 2405 crashes randomly, and the crashes are not repeatable, you may … … 2412 2412 if you can repeat the problem.</p> 2413 2413 </li> 2414 <li style="list-style-type: disc"><p>This isn't really a bug, but ... If2414 <li class="listitem" style="list-style-type: disc"><p>This isn't really a bug, but ... If 2415 2415 <code class="computeroutput">bzip2</code> tells you your file is 2416 2416 corrupted on decompression, and you obtained the file via FTP, … … 2448 2448 anything more than speculate about the cause, is limited.</p> 2449 2449 </div> 2450 <div class="sect1" lang="en">2450 <div class="sect1" title="4.4. Did you get the right package?"> 2451 2451 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2452 2452 <a name="package"></a>4.4. Did you get the right package?</h2></div></div></div> … … 2465 2465 work, <code class="computeroutput">zlib-1.2.1</code> and 2466 2466 <code class="computeroutput">gzip-1.2.4</code>. Look for them at 2467 <a href="http://www.zlib.org" target="_top">http://www.zlib.org</a> and2468 <a href="http://www.gzip.org" target="_top">http://www.gzip.org</a>2467 <a class="ulink" href="http://www.zlib.org" target="_top">http://www.zlib.org</a> and 2468 <a class="ulink" href="http://www.gzip.org" target="_top">http://www.gzip.org</a> 2469 2469 respectively.</p> 2470 2470 <p>For something faster and lighter still, you might try Markus F 2471 2471 X J Oberhumer's <code class="computeroutput">LZO</code> real-time 2472 2472 compression/decompression library, at 2473 <a href="http://www.oberhumer.com/opensource" target="_top">http://www.oberhumer.com/opensource</a>.</p>2474 </div> 2475 <div class="sect1" lang="en">2473 <a class="ulink" href="http://www.oberhumer.com/opensource" target="_top">http://www.oberhumer.com/opensource</a>.</p> 2474 </div> 2475 <div class="sect1" title="4.5. Further Reading"> 2476 2476 <div class="titlepage"><div><div><h2 class="title" style="clear: both"> 2477 2477 <a name="reading"></a>4.5. Further Reading</h2></div></div></div> -
TabularUnified bzip2/vendor/current/manual.xml ¶
r75 r186 10 10 11 11 <bookinfo> 12 <title>bzip2 and libbzip2, version 1.0. 5</title>12 <title>bzip2 and libbzip2, version 1.0.6</title> 13 13 <subtitle>A program and library for data compression</subtitle> 14 14 <copyright> … … 140 140 <listitem><para><computeroutput>bzip2</computeroutput>, 141 141 <computeroutput>bunzip2</computeroutput> - a block-sorting file 142 compressor, v1.0. 4</para></listitem>142 compressor, v1.0.6</para></listitem> 143 143 144 144 <listitem><para><computeroutput>bzcat</computeroutput> - … … 1034 1034 1035 1035 <sect2 id="bzcompress-init" xreflabel="BZ2_bzCompressInit"> 1036 <title> <computeroutput>BZ2_bzCompressInit</computeroutput></title>1036 <title>BZ2_bzCompressInit</title> 1037 1037 1038 1038 <programlisting> … … 1184 1184 1185 1185 <sect2 id="bzCompress" xreflabel="BZ2_bzCompress"> 1186 <title> <computeroutput>BZ2_bzCompress</computeroutput></title>1186 <title>BZ2_bzCompress</title> 1187 1187 1188 1188 <programlisting> … … 1409 1409 1410 1410 <sect2 id="bzCompress-end" xreflabel="BZ2_bzCompressEnd"> 1411 <title> <computeroutput>BZ2_bzCompressEnd</computeroutput></title>1411 <title>BZ2_bzCompressEnd</title> 1412 1412 1413 1413 <programlisting> … … 1429 1429 1430 1430 <sect2 id="bzDecompress-init" xreflabel="BZ2_bzDecompressInit"> 1431 <title> <computeroutput>BZ2_bzDecompressInit</computeroutput></title>1431 <title>BZ2_bzDecompressInit</title> 1432 1432 1433 1433 <programlisting> … … 1493 1493 1494 1494 <sect2 id="bzDecompress" xreflabel="BZ2_bzDecompress"> 1495 <title> <computeroutput>BZ2_bzDecompress</computeroutput></title>1495 <title>BZ2_bzDecompress</title> 1496 1496 1497 1497 <programlisting> … … 1588 1588 1589 1589 <sect2 id="bzDecompress-end" xreflabel="BZ2_bzDecompressEnd"> 1590 <title> <computeroutput>BZ2_bzDecompressEnd</computeroutput></title>1590 <title>BZ2_bzDecompressEnd</title> 1591 1591 1592 1592 <programlisting> … … 1683 1683 1684 1684 <sect2 id="bzreadopen" xreflabel="BZ2_bzReadOpen"> 1685 <title> <computeroutput>BZ2_bzReadOpen</computeroutput></title>1685 <title>BZ2_bzReadOpen</title> 1686 1686 1687 1687 <programlisting> … … 1766 1766 1767 1767 <sect2 id="bzread" xreflabel="BZ2_bzRead"> 1768 <title> <computeroutput>BZ2_bzRead</computeroutput></title>1768 <title>BZ2_bzRead</title> 1769 1769 1770 1770 <programlisting> … … 1860 1860 1861 1861 <sect2 id="bzreadgetunused" xreflabel="BZ2_bzReadGetUnused"> 1862 <title> <computeroutput>BZ2_bzReadGetUnused</computeroutput></title>1862 <title>BZ2_bzReadGetUnused</title> 1863 1863 1864 1864 <programlisting> … … 1904 1904 1905 1905 <sect2 id="bzreadclose" xreflabel="BZ2_bzReadClose"> 1906 <title> <computeroutput>BZ2_bzReadClose</computeroutput></title>1906 <title>BZ2_bzReadClose</title> 1907 1907 1908 1908 <programlisting> … … 1938 1938 1939 1939 <sect2 id="bzwriteopen" xreflabel="BZ2_bzWriteOpen"> 1940 <title> <computeroutput>BZ2_bzWriteOpen</computeroutput></title>1940 <title>BZ2_bzWriteOpen</title> 1941 1941 1942 1942 <programlisting> … … 2004 2004 2005 2005 <sect2 id="bzwrite" xreflabel="BZ2_bzWrite"> 2006 <title> <computeroutput>BZ2_bzWrite</computeroutput></title>2006 <title>BZ2_bzWrite</title> 2007 2007 2008 2008 <programlisting> … … 2032 2032 2033 2033 <sect2 id="bzwriteclose" xreflabel="BZ2_bzWriteClose"> 2034 <title> <computeroutput>BZ2_bzWriteClose</computeroutput></title>2034 <title>BZ2_bzWriteClose</title> 2035 2035 2036 2036 <programlisting> … … 2236 2236 2237 2237 <sect2 id="bzbufftobuffcompress" xreflabel="BZ2_bzBuffToBuffCompress"> 2238 <title> <computeroutput>BZ2_bzBuffToBuffCompress</computeroutput></title>2238 <title>BZ2_bzBuffToBuffCompress</title> 2239 2239 2240 2240 <programlisting> … … 2303 2303 2304 2304 <sect2 id="bzbufftobuffdecompress" xreflabel="BZ2_bzBuffToBuffDecompress"> 2305 <title> <computeroutput>BZ2_bzBuffToBuffDecompress</computeroutput></title>2305 <title>BZ2_bzBuffToBuffDecompress</title> 2306 2306 2307 2307 <programlisting> … … 2378 2378 2379 2379 <sect1 id="zlib-compat" xreflabel="zlib compatibility functions"> 2380 <title> <computeroutput>zlib</computeroutput>compatibility functions</title>2380 <title>zlib compatibility functions</title> 2381 2381 2382 2382 <para>Yoshioka Tsuneo has contributed some functions to give … … 2445 2445 <sect1 id="stdio-free" 2446 2446 xreflabel="Using the library in a stdio-free environment"> 2447 <title>Using the library in a <computeroutput>stdio</computeroutput>-free environment</title>2447 <title>Using the library in a stdio-free environment</title> 2448 2448 2449 2449 2450 2450 <sect2 id="stdio-bye" xreflabel="Getting rid of stdio"> 2451 <title>Getting rid of <computeroutput>stdio</computeroutput></title>2451 <title>Getting rid of stdio</title> 2452 2452 2453 2453 <para>In a deeply embedded application, you might want to use -
TabularUnified bzip2/vendor/current/mk251.c ¶
r75 r186 10 10 lossless, block-sorting data compression. 11 11 12 bzip2/libbzip2 version 1.0. 5 of 10 December 200713 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>12 bzip2/libbzip2 version 1.0.6 of 6 September 2010 13 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 14 14 15 15 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/randtable.c ¶
r75 r186 9 9 lossless, block-sorting data compression. 10 10 11 bzip2/libbzip2 version 1.0. 5 of 10 December 200712 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>11 bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 13 14 14 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/spewG.c ¶
r75 r186 14 14 lossless, block-sorting data compression. 15 15 16 bzip2/libbzip2 version 1.0. 5 of 10 December 200717 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>16 bzip2/libbzip2 version 1.0.6 of 6 September 2010 17 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 18 18 19 19 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/unzcrash.c ¶
r75 r186 18 18 lossless, block-sorting data compression. 19 19 20 bzip2/libbzip2 version 1.0. 5 of 10 December 200721 Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>20 bzip2/libbzip2 version 1.0.6 of 6 September 2010 21 Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 22 22 23 23 Please read the WARNING, DISCLAIMER and PATENTS sections in the -
TabularUnified bzip2/vendor/current/xmlproc.sh ¶
r75 r186 6 6 # lossless, block-sorting data compression. 7 7 # 8 # bzip2/libbzip2 version 1.0. 5 of 10 December 20079 # Copyright (C) 1996-20 07Julian Seward <jseward@bzip.org>8 # bzip2/libbzip2 version 1.0.6 of 6 September 2010 9 # Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 10 10 # 11 11 # Please read the WARNING, DISCLAIMER and PATENTS sections in the
Note:
See TracChangeset
for help on using the changeset viewer.