busybox/archival/libunarchive
Eric Andersen 0d6d88a205 Rob Landley's new micro-bunzip version 3. Rob writes:
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.
2003-10-18 01:58:35 +00:00
..
archive_copy_file.c Major coreutils update. 2003-03-19 09:13:01 +00:00
archive_xread_all_eof.c Major coreutils update. 2003-03-19 09:13:01 +00:00
archive_xread_all.c Major coreutils update. 2003-03-19 09:13:01 +00:00
archive_xread_char.c Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j 2002-11-03 14:05:15 +00:00
archive_xread.c Be certain to not abort prematurely when reading stuff from pipes. 2003-07-05 23:10:27 +00:00
check_header_gzip.c Major coreutils update. 2003-03-19 09:13:01 +00:00
data_align.c Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j 2002-11-03 14:05:15 +00:00
data_extract_all.c Marc A. Lehmann writes: 2003-09-11 08:32:40 +00:00
data_extract_to_buffer.c Terminate the buffer with a '\0' 2002-11-06 22:31:45 +00:00
data_extract_to_stdout.c Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j 2002-11-03 14:05:15 +00:00
data_skip.c Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j 2002-11-03 14:05:15 +00:00
decompress_bunzip2.c Rob Landley's new micro-bunzip version 3. Rob writes: 2003-10-18 01:58:35 +00:00
decompress_uncompress.c Major coreutils update. 2003-03-19 09:13:01 +00:00
decompress_unzip.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
filter_accept_all.c enable .tar.bz2 for dpkg-deb 2002-11-05 01:52:23 +00:00
filter_accept_list_reassign.c Minor cleanups 2002-11-13 00:24:20 +00:00
filter_accept_list.c enable .tar.bz2 for dpkg-deb 2002-11-05 01:52:23 +00:00
filter_accept_reject_list.c enable .tar.bz2 for dpkg-deb 2002-11-05 01:52:23 +00:00
find_list_entry.c Find a string in a list 2002-10-19 05:10:51 +00:00
get_header_ar.c Fix bug when handling debian packages. 2003-07-31 01:53:50 +00:00
get_header_cpio.c Dont unlink when testing ! 2003-08-28 19:12:23 +00:00
get_header_tar_bz2.c Minor cleanups 2002-11-13 00:24:20 +00:00
get_header_tar_gz.c Major coreutils update. 2003-03-19 09:13:01 +00:00
get_header_tar.c Fix handling of hardlinks when OLDGNU and GNU extensions arent enabled. 2003-09-12 06:49:09 +00:00
header_list.c New common unarchive code. 2002-09-25 02:47:48 +00:00
header_skip.c New common unarchive code. 2002-09-25 02:47:48 +00:00
header_verbose_list.c Major coreutils update. 2003-03-19 09:13:01 +00:00
init_handle.c Be certain to not abort prematurely when reading stuff from pipes. 2003-07-05 23:10:27 +00:00
Makefile Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
Makefile.in Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
seek_by_char.c Abstract read and seek in unarchiving code, convert bunzip to file descriptors, support tar -j 2002-11-03 14:05:15 +00:00
seek_by_jump.c Major coreutils update. 2003-03-19 09:13:01 +00:00
uncompress.c Major coreutils update. 2003-03-19 09:13:01 +00:00
unpack_ar_archive.c Major coreutils update. 2003-03-19 09:13:01 +00:00
unzip.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00