summaryrefslogtreecommitdiff
path: root/archival/libunarchive/decompress_bunzip2.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixup some warningsEric Andersen2004-08-281-0/+2
|
* Larry Doolittle writes:Eric Andersen2004-04-141-18/+18
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Move from read_gz to the pipe()+fork() method.Glenn L McGrath2003-11-151-2/+2
| | | | | | | | | open_transformer(), common code for pipe+fork. Function pointer for read() no longer needed. Allow inflate to be initialised with a specified buffer size to avoid over-reading. Reset static variables in inflate_get_next_window to fix a bug where only the first file in a .zip would be be extracted.
* Fix tar -j supportGlenn L McGrath2003-11-051-16/+0
| | | | | | | | | | | | | | Use the old fork() method of tar compression support, rather than read_bz2.... - (*uncompress)(int in, int out) seems like a more natural interface for compression code. - it might improve performance by seperating the work into one cpu bound and one io bound process. - There is extra code required to do read_[gz|bunzip] since (*uncompress)(int in, int out) will normally be used by the standalone compression applet. There have been problems with this method so if you see a "Short read" error let me know.
* Put back the tar support stubs (and warnings) for now.Eric Andersen2003-10-311-0/+16
|
* Add some error messages, use xmalloc instead of mallocGlenn L McGrath2003-10-281-5/+18
|
* Another bzip2 update and speedup from Manuel Novoa III, with someEric Andersen2003-10-231-223/+267
| | | | additional changes (primarily lots of comments) from Rob Landley.
* Manuel Novoa III writes:Eric Andersen2003-10-181-22/+43
| | | | | | | | | | | | | | | | | | | | | | | Hello Rob, Here's a patch to your bunzip-3.c file. Nice work btw. One minor bug fix... checking for error return when read()ing. Some size/performance optimizations as well. One instance of memset() seems unnecssary. You might want to take a look. Anyway, on my machine, decompressing linux-2.6.0-test7.tar.bz2 to /dev/null gave the following times: bunzip-3.c bzcat (system) bunzip-3.c (patched) real 0m24.420s 0m22.725s 0m20.701s user 0m23.930s 0m22.170s 0m20.180s sys 0m0.070s 0m0.080s 0m0.140s Size of the patched version is comparable (slightly larger or smaller depending on compiler flags). Manuel
* Rob Landley's new micro-bunzip version 3. Rob writes:Eric Andersen2003-10-181-1592/+465
| | | | | | | | | | | | | | | | | | | | | | | | The API for using partial writes, as described in my last message, sucked. So here's a patch against my last patch that changes things so that write_bunzip_data calls read_bunzip_data itself behind the scenes whenever necessary. So usage is now just start_bunzip(), write_bunzip_data() until it returns a negative number, and then the cleanup at the end of uncompressStream. It adds 32 bytes to the executable, but it should allow the caller (tar) to be simplified enough to compensate. Total -Os stripped exe size now 6856 bytes. Rob P.S. I attached the whole C file so you don't have to keep incremental patches straight if you don't want to. :) P.S. In the version I'm banging on now, I've simplified the license to just LGPL. I read the OSL a bit more closely and the patent termination clause would have bit IBM in their counter-suit of SCO if the code in question had been OSL instead of GPL, and I've decided I just don't want to beta-test legal code right now.
* Major coreutils update.Manuel Novoa III2003-03-191-4/+4
|
* Fail silently if a partial tar header is read as tar.bz2 is leaving trailing ↵Glenn L McGrath2002-11-051-1/+1
| | | | junk (not sure why), add some missing files
* Abstract read and seek in unarchiving code, convert bunzip to file ↵Glenn L McGrath2002-11-031-189/+58
| | | | descriptors, support tar -j
* Move bunzip2 idecompression code to libunarchiveGlenn L McGrath2002-11-031-0/+1789