aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* eliminated CONFIG_FEATURE_EDITING_FANCY_KEYS. the size savingsPaul Fox2008-01-181-8/+0
| | | | | | | was small, compared to the total size of the command-line editing features, and it removed key bindings that most wouldn't consider "fancy", like ^U, and 'l' and 'h' in vi mode, ^F and ^B in emacs mode.
* enable use of ^V prefix to allow forced insertion of any character. inPaul Fox2008-01-111-4/+3
| | | | | particular, without this it's impossible to enter a TAB on the commandline (whether tab completion is enabled or not).
* allow 8-bit charactersPaul Fox2008-01-111-3/+0
|
* ps: fix build breakage from vda's recent commitDenis Vlasenko2008-01-071-1/+1
| | | | | *: whitespace fixes
* nameif: extended matching (Nico Erfurth <masta@perlgolf.de>)Denis Vlasenko2007-12-241-1/+1
| | | | | | | | | | | | *: whitespace fixes function old new delta prepend_new_eth_table - 304 +304 nameif_main 620 684 +64 cc_macaddr 51 - -51 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/0 up/down: 368/-51) Total: 317 bytes
* lineedit: don't violate API if we do simple fgetsDenis Vlasenko2007-12-091-2/+4
| | | | | ash: cosmetic style fixes, no code changes
* lineedit: reduce stack usageDenis Vlasenko2007-12-031-50/+43
| | | | | | | | | | | | | netstat: reduce stack usage; fix handling of NULs in unix socket filenames static.has_inode 1 - -1 do_info 119 116 -3 deinit_S 60 51 -9 unix_do_one 578 451 -127 parse_and_put_prompt 966 825 -141 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-281) Total: -281 bytes
* test: stop using lots of bss.Denis Vlasenko2007-11-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | function old new delta test_main 425 456 +31 t_lex 69 73 +4 syntax 100 104 +4 ptr_to_statics 8 12 +4 t_wp_op 4 - -4 t_wp 4 - -4 ngroups 4 - -4 group_array 4 - -4 binop 590 585 -5 oexpr 104 97 -7 aexpr 101 94 -7 nexpr 831 820 -11 leaving 156 - -156 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 4/4 up/down: 43/-202) Total: -159 bytes text data bss dec hex filename 775098 929 9084 785111 bfad7 busybox_old 775107 933 8908 784948 bfa34 busybox_unstripped
* lineedit: stop using both data/bss and tons of stack.Denis Vlasenko2007-11-101-93/+166
| | | | | | | | | stack usage was ~10 kb! unfortunately, noticeable code size growth: text data bss dec hex filename 9252 12 181 9445 24e5 busybox.t7/libbb/lineedit.o 9714 4 0 9718 25f6 busybox.t8/libbb/lineedit.o
* read_line_input: fix it to not do any fancy editing if echoing is disabled.Denis Vlasenko2007-10-201-2/+10
| | | | | | | | | | | | | | ash: make read handling both more correct and smaller read_line_input 4037 4101 +64 input_backward 140 139 -1 readcmd 1079 1070 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 65/-10) Total: 54 bytes text data bss dec hex filename 777575 1000 9532 788107 c068b busybox_old 777629 1000 9532 788161 c06c1 busybox_unstripped
* xatonum.h: add commentDenis Vlasenko2007-10-181-1/+1
| | | | | | | lineedit: fix typo in comment httpd: support for proxying connection to other http server (by Alex Landau <landau_alex@yahoo.com>)
* printf("%s\n") -> puts()Denis Vlasenko2007-10-011-1/+1
|
* remove stray semicolonDenis Vlasenko2007-09-281-1/+1
|
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-8/+8
|
* lineedit: plug memory leakDenis Vlasenko2007-09-271-5/+12
|
* documentation bits in comments, no code changesDenis Vlasenko2007-09-251-0/+5
|
* introduce and use bb_basename()Denis Vlasenko2007-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_basename - 26 +26 sv_main 1226 1225 -1 passwd_main 1985 1983 -2 showdirs 482 478 -4 sendCgi 1811 1807 -4 make_device 1354 1350 -4 handleIncoming 2443 2439 -4 func_name 82 78 -4 service_name 2292 2285 -7 main 909 901 -8 cmp_main 555 547 -8 test_main 434 422 -12 act 228 216 -12 find_pair 180 164 -16 rmmod_main 298 280 -18 find_pid_by_name 156 134 -22 modprobe_main 1606 1576 -30 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/16 up/down: 26/-156) Total: -130 bytes text data bss dec hex filename 734933 3028 14400 752361 b7ae9 busybox_old 734801 3028 14400 752229 b7a65 busybox_unstripped
* moved biggest stack buffers to malloc space, or made their size configurableDenis Vlasenko2007-06-101-22/+23
| | | | | | | | | | | | | | | | | (8k of shell line edit buffer is an overkill) # make ARCH=i386 bloatcheck function old new delta read_line_input 3933 3967 +34 ifaddrlist 348 345 -3 do_loadfont 208 191 -17 edit_file 840 819 -21 .rodata 129112 129080 -32 uncompress 1305 1268 -37 loadfont_main 566 495 -71 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 34/-181) Total: -147 bytes
* delete tons of extra #includesDenis Vlasenko2007-05-311-1/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* lineedit: state->hist_file doesn't exist if !FEATURE_EDITING_SAVEHISTORY,Denis Vlasenko2007-04-151-0/+2
| | | | #ifdef it out
* lineedit: nuke two unused variables and code which sets themDenis Vlasenko2007-04-141-9/+0
| | | | | | applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction.
* lineedit: do not try to open NULL history fileDenis Vlasenko2007-04-141-2/+2
|
* fix inadvertently leaked PWD_BUFFER_SIZEDenis Vlasenko2007-03-181-1/+1
|
* Do not fail password check if shadow password does not exist -Denis Vlasenko2007-03-131-5/+8
| | | | | | | | | | | | | | | | | | | | | | fall back to ordinary one Reduced usage of functions returning datain static buffers. (mostly passwd/group/shadow related): function old new delta correct_password 143 193 +50 sulogin_main 490 533 +43 adduser_main 732 774 +42 passwd_main 1875 1915 +40 addgroup_main 330 365 +35 bb_internal_getspnam 38 - -38 bb_internal_fgetpwent 38 - -38 bb_internal_fgetgrent 38 - -38 static.resultbuf 168 88 -80 static.buffer 1872 1104 -768 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 5/2 up/down: 210/-962) Total: -752 bytes
* syslogd: fix "readpath bug" by using readlink insteadDenis Vlasenko2007-02-111-1/+1
| | | | libbb: rename xgetcwd and xreadlink
* lineedit: add missing #if/#endifDenis Vlasenko2007-02-031-0/+2
| | | | init: fix warnings
* preparatory patch for -Wwrite-strings #4Denis Vlasenko2007-01-291-4/+4
|
* fix warning from needlessly-global functionsDenis Vlasenko2007-01-221-2/+2
|
* 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.
* exterminate u_intXXX.Denis Vlasenko2007-01-221-2/+2
| | | | fix ping6 buglet (memset is too short), minor sync between ping and ping6
* move shell/cmdedit.c -> libbb/lineedit.cDenis Vlasenko2007-01-221-0/+1798