aboutsummaryrefslogtreecommitdiff
path: root/archival/gunzip.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bunzip2/gunzip/uncompress/unlzma: merge into common code -Denis Vlasenko2007-03-071-163/+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-4/+3
|
* 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-23/+33
| | | | | Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that.
* Yet another silly little byte saving. couldn't -> cannotDenis Vlasenko2006-09-291-4/+4
|
* Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley2006-09-121-2/+2
|
* archival: added O_TRUNC so that when we overwrite files on unpack,Denis Vlasenko2006-09-031-1/+2
| | | | | | 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-11/+4
| | | | | | | | | | 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.)
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-2/+2
| | | | xlseek and fdlength() for the new mkswap.
* Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"2006-07-121-14/+1
|
* More removal of "#if 0" content."Robert P. J. Day"2006-07-011-20/+0
|
* Patch from Denis Vlasenko: unlzma was make files with mode 777. TweakRob Landley2006-06-131-5/+2
| | | | everything to do stat() and use xopen3().
* Patch from Denis Vlasenko to add xstat() and use it.Rob Landley2006-03-131-3/+1
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* usage bb_dev_null"Vladimir N. Oleynik"2005-10-121-1/+1
|
* Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley2005-09-111-1/+0
| | | | getopt.h, whitespace changes, typos, etc.
* 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-4/+4
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-3/+3
|
* Use bb_getopt_ulflags, save 150 bytes.Glenn L McGrath2004-01-051-28/+11
|
* Move from read_gz to the pipe()+fork() method.Glenn L McGrath2003-11-151-2/+1
| | | | | | | | | open_transformer(), common code for pipe+fork. Function pointer for read() no longer needed. Allow inflate to be initialised with a specified buffer size to avoid over-reading. Reset static variables in inflate_get_next_window to fix a bug where only the first file in a .zip would be be extracted.
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-15/+15
|
* Make uncompress a seperate applet so it doesnt pull in all the gunzip codeGlenn L McGrath2002-11-011-2/+2
|
* Allow the .Z prefix if compress support enabledGlenn L McGrath2002-11-011-5/+9
|
* Report errror if the first magic character doesnt matchGlenn L McGrath2002-11-011-0/+3
|
* Save status so we know if to delete compressed fileGlenn L McGrath2002-09-301-1/+2
|
* Fix compress support and prevent a segfaultGlenn L McGrath2002-09-271-4/+18
|
* New common unarchive code.Glenn L McGrath2002-09-251-16/+24
|
* chmod on the NEW fileGlenn L McGrath2002-08-261-1/+1
|
* Reorganise, make it just one function, remove -v option it didnt work ↵Glenn L McGrath2002-08-241-114/+87
| | | | properly anyway, dont setvbuf it doesnt make any difference in performance.
* Run through indent, use bracesGlenn L McGrath2002-08-241-82/+90
|
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)Robert Griebl2002-07-191-2/+1
| | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
* gunzip'ing many files to stdout works nowRobert Griebl2002-05-151-6/+9
| | | | Fixed a missing initialisation and made a for loop more readable.
* Don't delete source file when decompressing to stdoutRobert Griebl2002-05-151-1/+2
| | | | This is the normal GNU gunzip behaviour
* * archival/gunzip.c (gunzip_file): New.Matt Kraai2002-04-291-99/+99
| | | | (gunzip_main): Handle no arguments correctly.
* Rework per how I did things in version in 0.60.3 so it canEric Andersen2002-04-131-69/+88
| | | | | properly uncompress multiple files now. -Erik
* Fix email addrEric Andersen2002-04-061-3/+3
|
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai2001-12-201-1/+1
|
* Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai2001-11-121-1/+1
|
* Move setvbuf calls from gz_open() to calling functions, setvbuf is only ↵Glenn L McGrath2001-07-131-0/+3
| | | | supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt.
* Initialise in_file to stdin, so it wont crash if no source specifiedGlenn L McGrath2001-06-201-2/+2
|
* Make - read compressed data from stdin (thanks to Marius Groeger).Matt Kraai2001-05-221-1/+1
|
* woops, forgot the break statmentGlenn L McGrath2001-05-071-0/+1
|
* Tolerate -q argument, if -q is passed give a warning and continue rather ↵Glenn L McGrath2001-05-071-1/+3
| | | | than just fail
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-4/+0
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* Eliminate spurious warning, convert to getopt, and eliminate redundant check.Matt Kraai2001-04-181-1/+3
|