summaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* update Glenn McGrath's email addressDenis Vlasenko2007-09-211-1/+1
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* introduce and use xdup2(int, int)Denis Vlasenko2007-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-1/+1
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* rework long option handling. saves ~1.2kDenis Vlasenko2007-07-231-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta tar_longopts - 222 +222 static.udhcpc_longopts - 192 +192 start_stop_daemon_longopts - 150 +150 getopt32 1045 1185 +140 static.wget_longopts - 111 +111 static.od_longopts - 105 +105 getopt_longopts - 96 +96 install_longopts - 67 +67 ipcalc_longopts - 63 +63 static.hwclock_longopts - 54 +54 ftpgetput_longopts - 52 +52 static.dumpleases_longopts - 32 +32 env_longopts - 31 +31 runparts_longopts - 30 +30 mv_longopts - 24 +24 mkdir_longopts - 19 +19 find_pair 164 180 +16 bb_null_long_options - 16 +16 setconsole_longopts - 10 +10 display_speed 91 98 +7 collect_blk 467 474 +7 show_color 4 1 -3 ls_main 913 904 -9 bb_default_long_options 16 - -16 ls_color_opt 32 10 -22 setconsole_long_options 32 - -32 arith 2077 2030 -47 mv_long_options 48 - -48 mkdir_long_options 48 - -48 env_long_options 48 - -48 static.options 248 184 -64 runparts_long_options 80 - -80 ftpgetput_long_options 96 - -96 static.hwclock_long_options 112 - -112 install_long_options 112 - -112 static.long_options 144 - -144 static.wget_long_options 160 - -160 longopts 160 - -160 static.arg_options 304 - -304 tar_long_options 320 - -320 long_options 384 - -384 ------------------------------------------------------------------------------ (add/remove: 17/15 grow/shrink: 4/5 up/down: 1444/-2209) Total: -765 bytes text data bss dec hex filename 782618 1328 11900 795846 c24c6 busybox_old 781354 1328 11900 794582 c1fd6 busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* add x to IPv6 functions which can dieDenis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-2/+2
|
* comment out unused old networking API partsDenis Vlasenko2007-01-221-1/+1
| | | | sockaddr2dotted: return IPV6 addrs in [addr]:port form (was addr:port)
* next part of ipv6-ization. mostly netcat.Denis Vlasenko2007-01-121-1/+1
|
* fix my own breakageDenis Vlasenko2007-01-111-1/+1
|
* fix verbose output; remove commented-out includes.Denis Vlasenko2007-01-111-5/+4
|
* ipv6-ization efforts continue. Few bugs are found,Denis Vlasenko2007-01-111-11/+8
| | | | unknown number likely introduced...
* ftpgetput: fix PASV mode, fix xatou0induced breakage,Denis Vlasenko2007-01-031-35/+59
| | | | | improve error message, guard against garbage from remote server being printed. ~20 bytes code growth
* tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko2006-12-221-15/+14
| | | | (we have bb_copyfd_exact_size now for that kind of usage)
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-4/+3
|
* fix support for globally disabling --long-options.Denis Vlasenko2006-11-291-11/+9
| | | | (disabling them saves ~4K on fully configured bbox)
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-4/+4
|
* safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko2006-11-271-1/+2
| | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
* small fixes:Denis Vlasenko2006-11-261-1/+1
| | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc.
* header_verbose_list: stop truncating file size in listingDenis Vlasenko2006-11-241-1/+1
|
* ls: cleanup part 1Denis Vlasenko2006-10-281-1/+1
|
* xconnect is non-conforming to "xfunc like libc" rule. FixingDenis Vlasenko2006-10-261-2/+2
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-1/+1
|
* small style fixesDenis Vlasenko2006-10-121-1/+1
|
* correct largefile support, add comments about it.Denis Vlasenko2006-10-081-9/+11
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-7/+7
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-2/+2
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-3/+3
| | | | | | | | 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.
* Ok, that's not a typo, that's just me not thinking.Rob Landley2006-08-041-1/+1
|
* Now that we have xopen3(), it's just plain unclean to have xopen() withRob Landley2006-08-041-1/+1
| | | | | | | O_CREAT. Two users are still doing it (and thus getting permissions 777), I'm not sure what permissions they should be using but here they are changed to xopen3(). This costs us a dozen or so bytes, but removing the 777 from xopen() should get some of that back.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-15/+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.)
* - fix the build if we have ftpput without ftpget (speeling reeoe)Bernhard Reutner-Fischer2006-06-071-2/+2
| | | | Thanks to Stephane Billiart
* #ifdef reduction.Rob Landley2006-06-021-10/+5
|
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* - add central knob to turn off getopt_long everywhere. EXPERIMENTAL!Bernhard Reutner-Fischer2006-05-261-0/+4
| | | | | | Adds "Enable getopt long" under "General options", default y. Send patches to fix getopt_ulflags and run_parts.c if you turn this off.. See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts
* - remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer2006-05-191-8/+0
| | | | - use shorter boilerplate while at it
* CONFIG->ENABLE migration.Rob Landley2006-05-041-16/+8
|
* The brain-dead FTP servers on Solaris don't support the size command.Rob Landley2006-01-101-2/+9
|
* Patch from Tomasz Mateja: don't try to CWD to a _filename_, just send the fullRob Landley2005-11-081-19/+2
| | | | path to the STOR command.
* applying fix from:Paul Fox2005-07-191-2/+2
| | | | | | 0000108: busyboxy/networking/ftpgetput.c not conforming to RFC 959. ftpget and ftpput send <LF> as EOL.
* Fix size command, safe_strtoul gives and error if the \r is left in, theGlenn L McGrath2004-05-041-1/+6
| | | | | RFC spec says the \r should be there. This fix is the same as a recent wget fix
* 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
* Oops. Using the wrong variable was a rather stupidEric Andersen2004-03-151-1/+1
| | | | thing for me to do.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-7/+7
|
* Fix/eliminate use of atolEric Andersen2004-03-061-1/+4
|