aboutsummaryrefslogtreecommitdiff
path: root/archival/bunzip2.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bunzip2/gunzip/uncompress/unlzma: merge into common code -Denis Vlasenko2007-03-071-67/+0
| | | | fix few corner cases, reduce size by 450 bytes. Update testsuite.
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* style fixesDenis Vlasenko2006-10-121-2/+2
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-1/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* g[un]zip: add support for -v (verbose).Denis Vlasenko2006-10-011-2/+3
| | | | | Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
* usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.Denis Vlasenko2006-09-271-4/+5
| | | | Few bugs are now exposed...
* archival: added O_TRUNC so that when we overwrite files on unpack,Denis Vlasenko2006-09-031-5/+8
| | | | | | we truncate them. Also spotted & fixed hard to trigger bug with extension handling.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-8/+2
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-1/+1
|
* Use xstat() instead of if(stat()) die()Rob Landley2006-06-131-4/+1
|
* Patch from Denis Vlasenko: unlzma was make files with mode 777. TweakRob Landley2006-06-131-2/+7
| | | | everything to do stat() and use xopen3().
* Glenn gave permission for GPLv2 "or later".Rob Landley2006-04-171-1/+1
|
* Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley2005-09-111-2/+1
| | | | getopt.h, whitespace changes, typos, etc.
* Don't comment warnings, _FIX_ warnings. (And putting in #warnings aboutRob Landley2005-08-301-48/+22
| | | | | | other warnings is just gross.) On a side note, while I was there, I made the code slightly smaller.
* tell people to ignore the save_name warningMike Frysinger2005-07-301-0/+1
|
* 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))