aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* od: code shrink, fix "od --traditional FILE"Denys Vlasenko2011-05-213-121/+121
| | | | | | | | | function old new delta parse_old_offset 107 125 +18 packed_usage 28715 28691 -24 od_main 2312 2275 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: fix rare SEGV; mark a few FIXMEsAlexey Fomenko2011-05-201-9/+15
| | | | | Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* warning removalCristian Ionescu-Idbohrn2011-05-202-8/+1
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: optimize "tail -c HUGENUM REGULAR_FILE". Closes 3763.Denys Vlasenko2011-05-201-15/+21
| | | | | | | function old new delta tail_main 1541 1547 +6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top: display sort indicator in memory displayDenys Vlasenko2011-05-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* busybox.conf: code shrinkDenys Vlasenko2011-05-161-13/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* busybox.conf: USER.GROUP is _optional_Denys Vlasenko2011-05-162-14/+16
| | | | | | | function old new delta main 785 809 +24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* main: make busybox.conf mode handling less obscureDenys Vlasenko2011-05-162-34/+43
| | | | | | | | | | | | | function old new delta static.mode_mask - 20 +20 main 782 785 +3 static.mode_chars 15 13 -2 run_applet_no_and_exit 450 441 -9 mode_mask 24 - -24 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 1/2 up/down: 41/-53) Total: -12 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* main: free suid_config list after useDenys Vlasenko2011-05-163-35/+36
| | | | | | | | | | | | | | | | | | | function old new delta run_applet_no_and_exit 438 450 +12 ifupdown_main 2147 2149 +2 writeFileToTarball 1325 1326 +1 pidof_main 244 245 +1 last_main 896 897 +1 grep_main 779 780 +1 find_list_entry2 121 122 +1 tar_main 835 833 -2 llist_unlink 28 26 -2 llist_rev 23 21 -2 main 791 782 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 7/4 up/down: 19/-15) Total: 4 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi.c: remove warning: variable 'sp' set but not usedCristian Ionescu-Idbohrn2011-05-161-0/+4
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* The [-Wunused-but-set-variable] warningsCristian Ionescu-Idbohrn2011-05-161-2/+2
| | | | | | | networking/ntpd.c:1748:19: warning: variable 'version' set but not used Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dc: do not advertise ops disabled in .configDenys Vlasenko2011-05-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify parsing of /etc/busybox.confDenys Vlasenko2011-05-163-47/+33
| | | | | | | function old new delta parse_config_file 799 667 -132 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak config help textDenys Vlasenko2011-05-141-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix misparsing of "... do eval a= ...". Closes 3721Denys Vlasenko2011-05-143-28/+53
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top: better indicator of selected field in mem viewDenys Vlasenko2011-05-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix "variable 'foo' set but not used" warningsDenys Vlasenko2011-05-139-27/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: code shrinkDenys Vlasenko2011-05-131-7/+11
| | | | | | | | | | | | function old new delta sort_and_display_files - 427 +427 scan_and_display_dirs_recur 497 488 -9 ls_main 765 735 -30 display_files 422 - -422 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 427/-461) Total: -34 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: reorder and rename functions. No code changesDenys Vlasenko2011-05-131-238/+240
| | | | | | | | | | | | | | function old new delta display_single - 931 +931 scan_and_display_dirs_recur - 497 +497 display_files - 422 +422 showfiles 422 - -422 showdirs 497 - -497 list_single 931 - -931 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 0/0 up/down: 1850/-1850) Total: 0 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: reduce memory consumption and speed up (don't do redundant [l]stat)Denys Vlasenko2011-05-131-158/+210
| | | | | | | | | | | | function old new delta my_stat 110 278 +168 splitdnarray 120 118 -2 ls_main 769 765 -4 list_single 961 931 -30 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 168/-36) Total: 132 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: avoid forward declaration. No code changesDenys Vlasenko2011-05-131-45/+43
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: code shrinkDenys Vlasenko2011-05-131-32/+21
| | | | | | | function old new delta list_single 990 961 -29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd: shorter help textDenys Vlasenko2011-05-131-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: safe username passing to passwd/addgroupDenys Vlasenko2011-05-137-77/+88
| | | | | | | | | | | | | | | | | | | passwd: support creating SHA passwords random code shrink function old new delta crypt_make_pw_salt - 87 +87 adduser_main 883 904 +21 ... crypt_make_salt 99 89 -10 chpasswd_main 329 312 -17 packed_usage 28731 28691 -40 passwd_main 1070 1000 -70 cryptpw_main 310 224 -86 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/12 up/down: 154/-288) Total: -134 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: install signal handlers with filled sigmaskDenys Vlasenko2011-05-121-9/+28
| | | | | | | | | | | | | function old new delta install_sighandler - 39 +39 hush_main 1001 1031 +30 builtin_trap 386 392 +6 install_sighandlers 121 123 +2 switch_off_special_sigs 87 86 -1 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/1 up/down: 77/-1) Total: 76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: add FIXMEsDenys Vlasenko2011-05-121-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: use inlined sigfillset, sigemptyset, sigisemptyset on uclibcDenys Vlasenko2011-05-122-75/+88
| | | | | | | | text data bss dec hex filename 875879 493 7584 883956 d7cf4 busybox_old 875879 493 7584 883956 d7cf4 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix help text: -w N is optionalDenys Vlasenko2011-05-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix -p help text, improve comments and define namesDenys Vlasenko2011-05-121-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fixes and small shrink for HUSH_JOB!=yDenys Vlasenko2011-05-121-10/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: remove one sigprocmask from exit pathDenys Vlasenko2011-05-121-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add forgotten {} in multi-statement if.Denys Vlasenko2011-05-121-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim help textDenys Vlasenko2011-05-121-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix login shell's signal handling; add -l option so that it's easier ↵Denys Vlasenko2011-05-121-32/+35
| | | | | | | | | | | | | to test function old new delta hush_main 958 1001 +43 install_special_sighandlers 47 52 +5 packed_usage 28752 28741 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 48/-11) Total: 37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: replace signal handling machineryDenys Vlasenko2011-05-111-232/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With new version of signal handling, read builtin should be less buggy wrt signals. function old new delta install_sighandlers - 121 +121 switch_off_special_sigs - 84 +84 pick_sighandler - 58 +58 install_special_sighandlers - 47 +47 builtin_wait 284 319 +35 record_pending_signo - 21 +21 execvp_or_die 43 48 +5 file_get 290 288 -2 run_list 1004 998 -6 static.zero_timespec 8 - -8 sigprocmask_set 14 - -14 sigwaitinfo 23 - -23 record_signal 23 - -23 __GI_sigwaitinfo 23 - -23 sigtimedwait 25 - -25 builtin_trap 417 392 -25 __GI_sigtimedwait 25 - -25 hush_main 1003 965 -38 check_and_run_traps 263 217 -46 __rt_sigtimedwait 52 - -52 reset_traps_to_defaults 213 126 -87 init_sigmasks 198 - -198 builtin_read 536 197 -339 ------------------------------------------------------------------------------ (add/remove: 5/10 grow/shrink: 2/7 up/down: 371/-934) Total: -563 bytes text data bss dec hex filename 903075 936 17736 921747 e1093 busybox_old 902547 936 17736 921219 e0e83 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: use SA_RESTARTed signal handlers across read.Denys Vlasenko2011-05-112-29/+42
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fbset: abort on unknown options. closes 3121Denys Vlasenko2011-05-091-5/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pam link error with SHARED_BUSYBOX and LIBBUSYBOX enabledSteve Iribarne2011-05-091-0/+1
| | | | | Signed-off-by: Steve Iribarne <siribarne@grid-net.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add tests for interrupting readDenys Vlasenko2011-05-095-4/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: code shrinkDenys Vlasenko2011-05-091-59/+66
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make read builtin interruptible.Denys Vlasenko2011-05-085-12/+120
| | | | | | | | | | | | | | | function old new delta builtin_read 185 471 +286 check_and_run_traps 200 262 +62 nonblock_immune_read 73 119 +46 sigismember - 44 +44 record_signal - 21 +21 sigisemptyset - 16 +16 ... ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 7/5 up/down: 483/-46) Total: 437 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: nonblock_safe_read->nonblock_immune_read, remove unused param of ↵Denys Vlasenko2011-05-088-17/+19
| | | | | | xmalloc_reads Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix incorrect PS2 dispaly and trap handling while reading commandDenys Vlasenko2011-05-081-5/+22
| | | | | | The fix affects only !ENABLE_FEATURE_EDITING configuration Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iostat: code shrink ~0.5kMaksym Kryzhanovskyy2011-05-073-187/+131
| | | | | Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preparatory patchDenys Vlasenko2011-05-071-19/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top: another scripting improvementDenys Vlasenko2011-05-061-16/+27
| | | | | | | function old new delta handle_input 492 493 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top: make it possible to feed commands via pipeDenys Vlasenko2011-05-061-110/+155
| | | | | | | | | | | | function old new delta handle_input - 492 +492 mult_lvl_cmp 38 49 +11 packed_usage 28247 28257 +10 top_main 1345 928 -417 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/1 up/down: 513/-417) Total: 96 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* traceroute: properly reduce poll timeoutDenys Vlasenko2011-05-051-24/+37
| | | | | | | | | | | | This removes the problem where during the time we wait to declare a target as unresponsive we receive an unrelated ICMP packet. If there is enough traffic, this can make traceroute hang as it never declares the target as unresponsive. function old new delta common_traceroute_main 4196 4261 +65 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: shrink by 17 bytesPascal Bellard2011-05-051-3/+7
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak examples/udhcp/udhcpd.confDenys Vlasenko2011-05-041-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>