summaryrefslogtreecommitdiff
path: root/archival/bunzip2.c
AgeCommit message (Collapse)Author
2007-03-07bunzip2/gunzip/uncompress/unlzma: merge into common code -Denis Vlasenko
fix few corner cases, reduce size by 450 bytes. Update testsuite.
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-10-12style fixesDenis Vlasenko
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
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.
2006-10-01g[un]zip: add support for -v (verbose).Denis Vlasenko
Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
2006-09-27usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.Denis Vlasenko
Few bugs are now exposed...
2006-09-03archival: added O_TRUNC so that when we overwrite files on unpack,Denis Vlasenko
we truncate them. Also spotted & fixed hard to trigger bug with extension handling.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
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.)
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-06-13Use xstat() instead of if(stat()) die()Rob Landley
2006-06-13Patch from Denis Vlasenko: unlzma was make files with mode 777. TweakRob Landley
everything to do stat() and use xopen3().
2006-04-17Glenn gave permission for GPLv2 "or later".Rob Landley
2005-09-11Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley
getopt.h, whitespace changes, typos, etc.
2005-08-30Don't comment warnings, _FIX_ warnings. (And putting in #warnings aboutRob Landley
other warnings is just gross.) On a side note, while I was there, I made the code slightly smaller.
2005-07-30tell people to ignore the save_name warningMike Frysinger
2004-08-28Fixup some warningsEric Andersen
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))