summaryrefslogtreecommitdiff
path: root/archival/bunzip2.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixup some warningsEric Andersen2004-08-281-0/+2
|
* Update my email address, document some of my tasks in the AUTHORS fileGlenn L McGrath2004-04-251-1/+1
|
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-2/+2
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Use bb_getopt_ulflags, simplify some logic, saves some bytes.Glenn L McGrath2004-01-051-40/+29
|
* Use the return value from uncompress_bunzip, fix some typoGlenn L McGrath2003-10-291-8/+5
|
* Fix a logic error, the old bunzip code returned non-zero for success,Glenn L McGrath2003-10-281-1/+1
| | | | new code returns 0 for success.
* Major coreutils update.Manuel Novoa III2003-03-191-8/+8
|
* Abstract read and seek in unarchiving code, convert bunzip to file ↵Glenn L McGrath2002-11-031-14/+17
| | | | descriptors, support tar -j
* Move bunzip2 idecompression code to libunarchiveGlenn L McGrath2002-11-031-1787/+22
|
* inline many functions that are only called once. saves about 300 bytesAaron Lehmann2002-06-231-10/+10
| | | | on i386. also staticify most functions.
* remove cleanUpAndFail, and replace it with exit(). because that's whatAaron Lehmann2002-06-231-22/+3
| | | | it does unless srcMode was set, and srcMode is never set.
* Major revamp. I've been trying to clean up the code. the bzerror stuffAaron Lehmann2002-06-221-562/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standardMatt Kraai2002-04-151-2/+2
| | | | | output. * testsuite/bunzip2/bzcat-does-not-remove-compressed-file: New.
* * archival/bunzip2.c (bunzip2_main): Remove compressed file.Matt Kraai2002-03-271-2/+19
| | | | * testsuite/bunzip2/bunzip2-removes-compressed-file: New.
* * archival/bunzip2.c: Include <unistd.h>.Matt Kraai2002-03-271-17/+22
| | | | | | | (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.
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai2001-12-201-44/+44
|
* Commit my improvement on Rodney Brown's patch to g(un)zip, decreasingAaron Lehmann2001-12-061-1/+1
| | | | binary size.
* bzcat and bunzip -c support from Thomas LundquistGlenn L McGrath2001-11-181-4/+34
|
* Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai2001-11-121-1/+1
|
* Initial support for for bunzip2....Glenn L McGrath2001-10-051-0/+2340
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))