[BusyBox] gunzip cleanup in progress

Glenn McGrath bug1 at optushome.com.au
Sat Mar 3 13:04:44 MST 2001


Ive been doing some cleaning of gunzip, with this patch it only adds
7840 Bytes rather than 10086Bytes compiled agianst uClibc with standard
config minus BB_GZIP and BB_TAR_GZIP

Ive remove PKZIP support, do we really need it ?   maybe i should have
defined it out.

Also removed some ugly debugging code that has probably never been used.

About half the savings came from removing a macro function and merging
it with an existing function, there are still 4 macro functions left,
they might be harder to remove.

It is still very much work in progress so i dont want to commit
anything, but i wanted to send something away while it still works.

Hopefully i will be able to workout fopencookie (found an example in
glibc source) and make a custom stream to provide FILE
*gunzip_open(filename) which will provide access to uncompressed data. I
think it will enable us to avoid forking in higher level functions like
tar, ar, dpkg.


Glenn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gunzip.diff.gz
Type: application/x-gzip
Size: 9217 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20010303/8700c275/gunzip.diff.bin


More information about the busybox mailing list