aboutsummaryrefslogtreecommitdiff
path: root/gunzip.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move setvbuf calls from gz_open() to calling functions, setvbuf is only ↵bug12001-07-131-0/+3
| | | | | | supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt. git-svn-id: svn://busybox.net/trunk/busybox@3087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initialise in_file to stdin, so it wont crash if no source specifiedbug12001-06-201-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make - read compressed data from stdin (thanks to Marius Groeger).kraai2001-05-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* woops, forgot the break statmentbug12001-05-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tolerate -q argument, if -q is passed give a warning and continue rather ↵bug12001-05-071-1/+3
| | | | | | than just fail git-svn-id: svn://busybox.net/trunk/busybox@2547 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.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 git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate spurious warning, convert to getopt, and eliminate redundant check.kraai2001-04-181-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2369 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a number of problems with argument handling.kraai2001-04-181-49/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2368 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate a segfault when called on an existing file with out an extension:kraai2001-04-181-2/+2
| | | | | | | touch foo && gunzip foo git-svn-id: svn://busybox.net/trunk/busybox@2367 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix zcat/gunzip when reading from stdinbug12001-04-181-26/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2365 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move unzip, gz_open, gz_close to libbbbug12001-04-111-991/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gz_open and gz_close were left in, even when BB_FEATURE_TAR_GZIP was disabled.andersen2001-03-291-0/+2
| | | | | | | Fix that. git-svn-id: svn://busybox.net/trunk/busybox@2222 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix zcatbug12001-03-291-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2221 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gunzip -c works againbug12001-03-291-23/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2220 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixes from Robert Kaiserbug12001-03-281-6/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2219 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove cruftbug12001-03-281-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2213 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix tar -z, calls gz_open nowbug12001-03-281-9/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2211 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major cleanup to better adhere to style guide and use standard busybox functionsbug12001-03-281-898/+724
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2208 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clean up more local vars which shadow globalsandersen2001-03-211-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2181 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-1/+1
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-2/+2
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.andersen2001-01-251-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-24/+27
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support for tar -z option for uncompressing onlybug12000-12-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1415 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Introduce new function gunzip_init()bug12000-12-101-32/+35
| | | | | | | gunzip_init() will make it easier to use gunzip from other bb functions. git-svn-id: svn://busybox.net/trunk/busybox@1414 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-11/+11
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move flush_outbuf to the file in which it is used, and by doing so fix akraai2000-11-081-15/+0
| | | | | | | nasty error dealing with two different variables with the same name. git-svn-id: svn://busybox.net/trunk/busybox@1294 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup of duplicated symbols -- found by compiling withandersen2000-11-071-24/+20
| | | | | | | LDFLAGS += -Wl,-warn-common git-svn-id: svn://busybox.net/trunk/busybox@1292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix error messages.kraai2000-10-231-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1222 69ca8d6d-28ef-0310-b511-8ec308f3f277
* General cleanup of comments, defines, includes, and global variables, ↵bug12000-09-291-1451/+632
| | | | | | | | | | | removed those that arent needed, grouped those remaining at the top. Re-ordered functions to the order they are called. Removed static crc table, it now generates the table once for itself. Results in source reduced by 40%, so it should be a lot easier to work on in the future, binary size only reduced by under 2KB though. git-svn-id: svn://busybox.net/trunk/busybox@1141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove definition of basename.bug12000-09-181-3/+0
| | | | | | | It was defined out so that it would never be seen, and if it was ever seen it wasnt used for anything. It also stops gunzip compiling under the Hurd. git-svn-id: svn://busybox.net/trunk/busybox@1065 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a stupid thinko preventing zcat from doing its job, thanksandersen2000-09-011-0/+1
| | | | | | | | to Torbj�rn Axelsson <torax@cendio.se> for the fix. -Erik git-svn-id: svn://busybox.net/trunk/busybox@996 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct the stdin/stdout behavior when no args are provided.andersen2000-09-011-5/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@991 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed stdin/stdout paths so things likeandersen2000-07-211-9/+19
| | | | | | | | | | tar cvf - /etc/* | gzip -c9 >test.tgz will now work. Fix thanks to Dave Cinege <dcinege@psychosis.com> with some adjustments by me to be mroe GNU-like. -Erik git-svn-id: svn://busybox.net/trunk/busybox@898 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-13/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use global applet_name instead of local versions.kraai2000-07-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a few minor cleanups.andersen2000-07-061-0/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@746 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-1/+1
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More libc portability updates, add in the website (which has not beenerik2000-05-191-140/+11
| | | | | | | | archived previously). Wrote 'which' during the meeting today. -Erik git-svn-id: svn://busybox.net/trunk/busybox@558 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPerik2000-05-121-6/+11
| | | | | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * cp -fa now works as expected for symlinks (it didn't before)erik2000-05-101-4/+5
| | | | | | | | | * zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik git-svn-id: svn://busybox.net/trunk/busybox@530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest and greatest. Some effort at libc5 (aiming towards newlib)erik2000-04-281-3/+2
| | | | | | | | compatability. -Erik git-svn-id: svn://busybox.net/trunk/busybox@499 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-80/+90
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more minor fixeserik2000-03-191-6/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@413 69ca8d6d-28ef-0310-b511-8ec308f3f277