summaryrefslogtreecommitdiff
path: root/networking/telnet.c
Commit message (Collapse)AuthorAgeFilesLines
* telnet: code shrinkDenys Vlasenko2013-05-121-9/+8
| | | | | | | | function old new delta telnet_main 1519 1515 -4 con_escape 296 285 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: convert Enter -> CR LF in line mode tooDenys Vlasenko2012-09-171-11/+18
| | | | | | | function old new delta handle_net_output 87 98 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: shrink literal string sizeDenys Vlasenko2012-09-171-4/+4
| | | | | | | | text data bss dec hex filename 888483 497 7584 896564 dae34 busybox_old 888450 497 7584 896531 dae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: convert CR -> CR LF, not CR -> CR NUL when sending data to serverDenys Vlasenko2012-09-131-17/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more tweak for bionicDenys Vlasenko2011-07-081-2/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+16
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: do not check for 0 return from poll (it's impossible)Denys Vlasenko2010-10-291-24/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: convert CR NUL -> CR on input. Closes bug 2569Denys Vlasenko2010-10-291-69/+63
| | | | | | | function old new delta telnet_main 1558 1594 +36 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bbconfig: make it independent from printf functionsDenys Vlasenko2010-06-071-2/+2
| | | | | | | | | | | | | | function old new delta full_write2_str - 25 +25 full_write1_str - 25 +25 clear_main 21 20 -1 telnet_main 1488 1477 -11 getty_main 1932 1918 -14 full_write22_str 25 - -25 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51) Total: -1 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnet: prevent SEGV if we are requested TELOPT_NEW_ENVIRON.Denys Vlasenko2010-04-271-9/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: do not check for POLLIN/POLLOUT only, just in case it's POLHUP/POLERRDenys Vlasenko2010-03-021-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add/remove safe_, it seems we had a few incorrect usesDenys Vlasenko2010-01-121-4/+4
| | | | | | | | | | | | | | | | function old new delta chat_main 1359 1361 +2 microcom_main 712 713 +1 ifplugd_main 1109 1110 +1 arpping 465 466 +1 acpid_main 440 441 +1 script_main 1069 1067 -2 cgi_io_loop_and_exit 594 591 -3 telnet_main 1475 1469 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/3 up/down: 6/-11) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: add zeroing of G.xxx; ftpd - remove extraneous zeroing of G.xxxDenys Vlasenko2009-09-301-4/+3
| | | | | | Brought "G trick" to the same shape in a few more places. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: add TODO for rare build failureDenis Vlasenko2008-11-251-1/+0
| | | | | *: remove some redundant includes
* telnetd: correctly output 0xff char. ~100 bytes.Denis Vlasenko2008-11-111-115/+117
| | | | | telnet: fix some atrocious names and style. no code changes
* runsvd: shrink by VladimirDenis Vlasenko2008-09-111-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *: use unified trivial signal handler function old new delta record_signo - 10 +10 process_stdin 433 443 +10 bbunpack 383 391 +8 wc_main 598 605 +7 conescape 293 296 +3 nmeter_main 670 672 +2 fallbackSort 1717 1719 +2 bb_got_signal - 1 +1 microcom_main 713 712 -1 signalled 2 - -2 pack_gzip 1661 1659 -2 evalvar 1376 1374 -2 compare_keys 737 735 -2 parse_command 1460 1456 -4 expand 1748 1744 -4 s_term 37 29 -8 s_hangup 8 - -8 fgotsig 10 - -10 find_pair 187 169 -18 signal_handler 190 170 -20 runsvdir_main 1701 1583 -118 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 6/10 up/down: 43/-199) Total: -156 bytes
* telnet: shrinkDenis Vlasenko2008-07-211-17/+15
| | | | | | | | | | | | | | | | telnetd: shrink, and fix issue file printing test: better and shorter usage text function old new delta putiac2 51 50 -1 putiac 24 20 -4 handlenetoutput 95 91 -4 telnet_main 1480 1475 -5 iacflush 37 32 -5 make_new_session 436 421 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-34) Total: -34 bytes
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* - use STD*_FILENO some more. No object-code changesBernhard Reutner-Fischer2008-05-191-5/+5
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-4/+4
|
* more -Wall warning fixes. -Wall is enabled now.Denis Vlasenko2008-05-181-1/+1
|
* telnet: use poll, it's shorterDenis Vlasenko2007-11-061-74/+68
| | | | | *: style fixes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-2/+2
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 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
* 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
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-8/+7
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* find_stray_communal_vars: script which finds communal variablesDenis Vlasenko2007-06-031-1/+1
| | | | | resize: remove globals var mdev: remove globals var
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-241-1/+1
|
* telnet: finish style cleanup bitsDenis Vlasenko2007-03-191-29/+10
|
* telnet: someone tried to do data optimization before me. Complete it.Denis Vlasenko2007-03-191-96/+83
| | | | | | | text data bss dec hex filename 2558 0 404 2962 b92 busybox.t2/networking/telnet.o 2542 0 0 2542 9ee busybox.t3/networking/telnet.o
* kill superfluous returns at the end of void functionsDenis Vlasenko2007-03-111-18/+16
|
* remove unused #include,, improve code readabilityDenis Vlasenko2007-02-091-1/+0
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+1
|
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-3/+1
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-11/+9
|
* Improve generic ipv4+ipv6 support in libbb.Denis Vlasenko2007-01-101-21/+10
| | | | | | | | | Convert telnet to it. Now this works: telnetd -b [::1]:1234 - bind to IPv6 non-standard port telnet [::1]:1234 - connect to IPv6 non-standard port telnet ::1 1234 - same This does not require ANY ipv6-specific code in applets (no struct sockaddr_in6. In fact, no sockaddr_in, too).
* style fixesDenis Vlasenko2006-12-261-3/+3
| | | | last xcalloc replaced by xzalloc
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-1/+1
| | | | | use them where appropriate. 200 bytes saved
* get_terminal_width_height: do not pass insanely large valuesDenis Vlasenko2006-10-271-1/+1
|
* xconnect is non-conforming to "xfunc like libc" rule. FixingDenis Vlasenko2006-10-261-1/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | 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.
* lots of silly indent fixesDenis Vlasenko2006-10-031-3/+3
|
* whitespace cleanupDenis Vlasenko2006-09-171-2/+2
|
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damageRob Landley2006-08-291-8/+8
| | | | | (the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit).