summaryrefslogtreecommitdiffhomepage
path: root/archival/bunzip2.c
AgeCommit message (Collapse)Author
2004-04-25Update my email address, document some of my tasks in the AUTHORS fileGlenn L McGrath
2004-03-27s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen
s/fileno\(stdout\)/STDOUT_FILENO/g
2004-01-05Use bb_getopt_ulflags, simplify some logic, saves some bytes.Glenn L McGrath
2003-10-29Use the return value from uncompress_bunzip, fix some typoGlenn L McGrath
2003-10-28Fix a logic error, the old bunzip code returned non-zero for success,Glenn L McGrath
new code returns 0 for success.
2003-03-19Major coreutils update.Manuel Novoa III
2002-11-03Abstract read and seek in unarchiving code, convert bunzip to file ↵Glenn L McGrath
descriptors, support tar -j
2002-11-03Move bunzip2 idecompression code to libunarchiveGlenn L McGrath
2002-06-23inline many functions that are only called once. saves about 300 bytesAaron Lehmann
on i386. also staticify most functions.
2002-06-23remove cleanUpAndFail, and replace it with exit(). because that's whatAaron Lehmann
it does unless srcMode was set, and srcMode is never set.
2002-06-22Major revamp. I've been trying to clean up the code. the bzerror stuffAaron Lehmann
still needs major attention (i.e. removal). Removed references to uninitialized variables like progName, smallMode, noisy, etc. Remove functions and code for handling "small" decompression mode, since it is all unreachable. Remove total_{in,out}* counters - they are never used. Remove panic() function and assert_h and their uses because they are all for "should never happen" circumstances. Replace internal malloc/free wrappers with xmalloc and free. Remove conditional in if(foo)free(foo); situations. Remove bogus if (sizeof(int) != 4) { return BZ_CONFIG_ERROR; } (...etc...) code and code for handling BZ_CONFIG_ERROR. Someone should go through and change the applet to use well-defined types when appropriate - it expects sizeof(short)==2 && sizeof(int)==4. Until this commit these were explicitly checked for, and the applet would exit if these types were not the right size. (I think this is wrong even as an interim solution.) With gcc 3.1 reduces size of binary on i386-linux by about 700 bytes. Lightly tested.
2002-04-15* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standardMatt Kraai
output. * testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New.
2002-03-27* archival/bunzip2.c (bunzip2_main): Remove compressed file.Matt Kraai
* testsuite/bunzip2/bunzip2-removes-compressed-file: New.
2002-03-27* archival/bunzip2.c: Include <unistd.h>.Matt Kraai
(bunzip2_main): Read data from standard input if FILE argument is `-' or omitted. * include/usage.h (bunzip2_trivial_usage, bunzip2_full_usage): Rewrite. * testsuite/bunzip2/bunzip2-reads-from-standard-input: New.
2001-12-20Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai
2001-12-06Commit my improvement on Rodney Brown's patch to g(un)zip, decreasingAaron Lehmann
binary size.
2001-11-18bzcat and bunzip -c support from Thomas LundquistGlenn L McGrath
2001-11-12Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai
2001-10-05Initial support for for bunzip2....Glenn L McGrath
This code could be improvemed by 1) supporting more options, 2) Creating a shared crc table with gunzip, or perhaps generated on the fly. 3) Removing any remaining unneccessary code (e.g. if (noisy))