summaryrefslogtreecommitdiff
path: root/networking/wget.c
AgeCommit message (Collapse)Author
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-12-16wget: smallish optimizationDenis Vlasenko
2006-11-28od: sometime ago I landed BIG od implementationDenis Vlasenko
from coreutils. My fault. This commit contains cleanups and size reductions.
2006-11-27safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko
Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
2006-11-26small fixes:Denis Vlasenko
fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
2006-11-24header_verbose_list: stop truncating file size in listingDenis Vlasenko
2006-11-23wget: -O - still outputs progressbar (to stderr)Denis Vlasenko
Noticed dead code. -100 bytes.
2006-11-21wget: yet another contortion for proftpd's PASV response.Denis Vlasenko
2006-11-21wget: fix ftp PASV mode ("numeric" check was too strict)Denis Vlasenko
2006-11-21wget: reduce likelihood of ETA overflow (especially with !LFS)Denis Vlasenko
2006-11-10wget: fix error message.Denis Vlasenko
Bad: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 : HTTP/1.0 404 Not Foundror 404 Not Found Good: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 get: server returned error: HTTP/1.0 404 Not Found nslookup: fix my mistake applets: make Bernhard Fischer <rep.nop@aon.at> happy :)
2006-10-28ls: cleanup part 1Denis Vlasenko
2006-10-27get_terminal_width_height: do not pass insanely large valuesDenis Vlasenko
2006-10-26xconnect is non-conforming to "xfunc like libc" rule. FixingDenis Vlasenko
2006-10-25use skip_whitespace where appropriateDenis Vlasenko
2006-10-25wget: wget $'-\207' ... should not be allowed to work. ever. :)Denis Vlasenko
So fix wget & getopt32. Also fix multiple --header options order: add and use rev_llist.
2006-10-23wget: -100 bytes, reduce stack usage, remove --header length limitDenis Vlasenko
2006-10-15wget: xatoi's were oversealous ("200 OK" isn't a number)Denis Vlasenko
2006-10-14add open_read_close() and similar stuffDenis Vlasenko
2006-10-10fixes from Vladimir Dronnikov <dronnikov@gmail.ru>Denis Vlasenko
2006-10-08correct largefile support, add comments about it.Denis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-10-07dd: make it recognize not only 'k' but 'K' too;Denis Vlasenko
make it (partially) CONFIG_LFS-aware
2006-10-07wget: don't be careless with xstrdup'ingDenis Vlasenko
2006-10-07wget: fix download of URLs like:Denis Vlasenko
http://busybox.net?var=a/b http://busybox.net?login=john@doe http://busybox.net#test/test
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-01wget: make progress bar and ETA work correctly with -cDenis Vlasenko
2006-09-27silly switch style fixDenis Vlasenko
2006-09-26wget: add (configurable) large file support. Run tested.Denis Vlasenko
2006-09-23wget: fix bug where wget creates null file if there is no remote one.Denis Vlasenko
add O_LARGEFILE support (not run tested :).
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-15So, in the cornucopia of superfulous warning directives I didn't add to theRob Landley
tree, we have the warning about failed inlines (which with our inline limit set to zero means any usage of the "inline" keyword at all). Note that setting the inline limit to zero, and using -Werror, both predated adding the warning about inlines to the tree. So whatever checkin added that did nothing but break the tree. But oh well. The second category of superfluous warnings is warning about functions with no previous declaration. Apparently, if you add ALWAYS_INLINE to an empty function definition, it considers the sucker undeclared as far as the warning is concerned. (I.E. it's a buggy warning. I try not to ask the compiler to generate warnings it can't competently generate.) This is why I removed "inline" (unbreak allbareconfig), and couldn't replace it with "ALWAYS_INLINE" (still broke allbareconfig).
2006-09-09wget: wrap one atrociously long line (around 200 chars long!).Denis Vlasenko
2006-09-03uuencode: common implementation for wget and uuencode (closing bug 694)Denis Vlasenko
2006-09-02- patch from Csaba Henk to make the "User-Agent" header field configurable.Bernhard Reutner-Fischer
2006-08-20- typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/gBernhard Reutner-Fischer
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-12A couple things that got tangled up in my tree, easier to check in both thanRob Landley
untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree.
2006-06-27Patch from Geoff Baker to fix bug http://bugs.busybox.net/view.php?id=905 byRob Landley
changing wget's ftp code not to chdir but to use the complete path each time.
2006-06-13Patch from Denis Vlasenko:Rob Landley
* Rename a var: statbytes -> transferred * cursize == transferred, always. Nuke cursize. * Make progressmeter() a nop if !CONFIG_FEATURE_WGET_STATUSBAR (reduces #ifdef forest) * double elapsed -> int elapsed * Do not sprintf to buf first and then write(STDERR) it, just fprintf directly to stderr * Progress bar printing code made smaller * Style fixes
2006-06-13Whitespace cleanup from Denis Vlasenko.Rob Landley
2006-06-03- use bb_msg_{read,write}_error where appropriate.Bernhard Reutner-Fischer
text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
2006-05-31- add CONFIG_FEATURE_WGET_LONG_OPTIONSBernhard Reutner-Fischer
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-05-19- include strings.hBernhard Reutner-Fischer
Thanks to Rich Felker for pointing this out.
2006-02-21Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.Rob Landley
2006-01-30fix up annoying signed/unsigned and mixed type errorsEric Andersen
2006-01-25just whitespaceTim Riker
2005-12-02If we really _need_ an #ifdef like this, then we should be using the libbbRob Landley
getopt infrastructure instead.