aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ash: preparatory cleanup. The only real changes are (unsigned char) castsDenys Vlasenko2009-09-161-50/+55
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add a testcase for reopened bug 585 (not fixed yet)Denys Vlasenko2009-09-163-1/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk: add a warning and truncate disks with >= 2^32 sectorsDenys Vlasenko2009-09-165-211/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a result, for sectors we can use uint32_t instead of long long, and on 32 bits it has drastic effects: function old new delta get_geometry 619 646 +27 set_sun_partition 148 150 +2 get_partition 134 135 +1 xbsd_write_bootstrap 382 381 -1 xbsd_readlabel 247 246 -1 bsd_select 1674 1672 -2 sun_other_endian 4 1 -3 scsi_disk 4 1 -3 floppy 4 1 -3 fdisk_main 3735 3732 -3 read_maybe_empty 43 37 -6 create_doslabel 111 104 -7 read_line 97 88 -9 add_logical 117 107 -10 write_table 599 588 -11 new_partition 1684 1670 -14 list_disk_geometry 229 215 -14 wrong_p_order 130 110 -20 xselect 3142 3114 -28 seek_sector 71 40 -31 get_boot 1576 1533 -43 fill_bounds 174 128 -46 delete_partition 603 551 -52 list_table 1401 1232 -169 set_partition 459 286 -173 verify 1840 1495 -345 add_partition 2486 1270 -1216 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/24 up/down: 30/-2210) Total: -2180 bytes text data bss dec hex filename 848812 460 7116 856388 d1144 busybox_old 846620 460 7108 854188 d08ac busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use PACKED macro insted of open-coding GCC-ismDenys Vlasenko2009-09-1631-70/+70
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unlzma: fixed speedup/shrink by Pascal Bellard (pascal.bellard AT ads-lu.com)Denys Vlasenko2009-09-152-146/+108
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: do not execute "mount.(null)" :)Denys Vlasenko2009-09-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd_ssi.c: make it a bit less brokenDenys Vlasenko2009-09-131-21/+83
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add USE_PORTABLE_CODE option and use it in find appletDenys Vlasenko2009-09-132-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fsck: more clever (->smaller) handling of parametersDenys Vlasenko2009-09-131-26/+25
| | | | | | | | | | | | function old new delta fsck_device 213 449 +236 new_args - 46 +46 fsck_main 1870 1815 -55 execute 289 - -289 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/1 up/down: 282/-344) Total: -62 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fsck: remove a few staticsDenys Vlasenko2009-09-131-51/+42
| | | | | | | | | | | | | | | | | | | | function old new delta kill_all_if_got_signal - 60 +60 notitle 1 - -1 doall 1 - -1 cancel_requested 1 - -1 num_devices 4 - -4 devices 4 - -4 signal_cancel 8 - -8 fsck_main 1893 1870 -23 kill_all_if_cancel_requested 60 - -60 ------------------------------------------------------------------------------ (add/remove: 1/7 grow/shrink: 0/1 up/down: 60/-102) Total: -42 bytes text data bss dec hex filename 824205 458 6956 831619 cb083 busybox_old 824174 458 6948 831580 cb05c busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: use index_in_stringsDenys Vlasenko2009-09-121-60/+96
| | | | | | | | | | | | | | | function old new delta ops_texts - 124 +124 ops_table - 80 +80 display_process_list 1447 1448 +1 binop 525 523 -2 static.no_op 6 2 -4 check_operator 71 63 -8 ops 240 - -240 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/3 up/down: 205/-254) Total: -49 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top: remove GCCismsDenys Vlasenko2009-09-121-5/+12
| | | | | | | function old new delta display_process_list 1447 1448 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make memleak debugging more robustDenys Vlasenko2009-09-121-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: code shrink by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-121-39/+35
| | | | | | | | | | function old new delta find_function_slot - 47 +47 run_list 2508 2491 -17 find_function 40 8 -32 builtin_unset 227 165 -62 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix read_cmdline API and a small buglet where "[comm]" may be too narrowDenys Vlasenko2009-09-124-7/+8
| | | | | | | | | | | function old new delta func_args 25 26 +1 read_cmdline 119 114 -5 display_process_list 1462 1447 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 1/-20) Total: -19 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top, ps: do not output trailing spacesDenys Vlasenko2009-09-112-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* top: add -m ("memory") optionDenys Vlasenko2009-09-114-59/+88
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/httpd_ssi.c: expand commentsDenys Vlasenko2009-09-101-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/httpd_ssi.c: new example CGI handlerDenys Vlasenko2009-09-102-2/+106
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: shrink mime type matching code (suggested by Bernhard)Denys Vlasenko2009-09-102-43/+56
| | | | | | | | | | | | | | | function old new delta static.suffixTable 100 231 +131 send_file_and_exit 625 658 +33 handle_incoming_and_exit 2749 2745 -4 send_cgi_and_exit 936 901 -35 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 164/-39) Total: 125 bytes text data bss dec hex filename 824631 458 6956 832045 cb22d busybox_old 824550 458 6956 831964 cb1dc busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* a few more GCC-isms removedDenys Vlasenko2009-09-093-7/+20
| | | | | | | | text data bss dec hex filename 824641 458 6956 832055 cb237 busybox_old 824631 458 6956 832045 cb22d busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some garbage from http POST upload exampleDenys Vlasenko2009-09-091-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: fix bug 601 "I:index.php does not run interpreter on DIR/ url"Denys Vlasenko2009-09-081-19/+17
| | | | | | | | | | | function old new delta parse_conf 1462 1485 +23 index_html - 11 +11 handle_incoming_and_exit 2762 2749 -13 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 34/-13) Total: 21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add ENABLE_FEATURE_MDEV_RENAME_REGEXP examples to mdev documentationBernhard Reutner-Fischer2009-09-081-0/+12
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* TODO: add unicode listDenys Vlasenko2009-09-071-0/+40
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busyboxDenys Vlasenko2009-09-073-48/+155
|\
| * modprobe-small: make string buffer code robust; fix help textDenys Vlasenko2009-09-072-19/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | together with previous one-liner: function old new delta append 70 99 +29 parse_module 295 311 +16 copy_stringbuf 35 36 +1 packed_usage 26545 26540 -5 appendc 27 - -27 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 3/1 up/down: 46/-32) Total: 14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * modprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')Denys Vlasenko2009-09-071-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * unzip: more compat if DESKTOP=yDenys Vlasenko2009-09-061-29/+118
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta DESKTOP off: unzip_main 1648 1629 -19 DESKTOP=y: unzip_main 1939 2197 +258 Without this, midnight commander can't display .zip files Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Revert "unlzma: speedup, by Pascal Bellard (pascal.bellard AT ads-lu.com)"Denys Vlasenko2009-09-062-60/+98
|/ | | | | | https://bugs.busybox.net/show_bug.cgi?id=599 This reverts commit 9ac3dc764a78b51fe8fdcd1b4682850de098733b.
* more C standard compat fixes from Dan FandrichDenys Vlasenko2009-09-0624-30/+40
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* documentation and typo fixes. By Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-0616-24/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-0615-17/+22
| | | | | | | | | | function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* experimentally add mallopt tweaks for reduced memory consumptionDenys Vlasenko2009-09-061-0/+20
| | | | | | | | | | function old new delta mallopt - 126 +126 main 91 117 +26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 152/0) Total: 152 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: export PWDDenys Vlasenko2009-09-052-5/+60
| | | | | | | | | | | | | function old new delta set_pwd_var - 36 +36 hush_main 941 951 +10 evalvar 1365 1363 -2 ash_main 1364 1362 -2 builtin_cd 75 72 -3 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/3 up/down: 46/-7) Total: 39 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: comment tweak. no code changesDenys Vlasenko2009-09-041-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: add -w ("inetd wait") option. Can be configured off.Denys Vlasenko2009-09-043-28/+69
| | | | | | | | | | | | | gcc fils to fully optimize it out when it's off: function old new delta telnetd_main 1527 1548 +21 packed_usage 26596 26587 -9 but nevertheless it's a useful (and so far single) example how to write "inetd wait" tcp service. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: be more careful with syslog socket; other small fixesDenys Vlasenko2009-09-041-7/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* small commit tweak in parse_datestr, no code changesDenys Vlasenko2009-09-021-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uniq: shave off whole 10 bytes off, oh myDenys Vlasenko2009-08-311-23/+22
| | | | | | | | text data bss dec hex filename 823673 458 6956 831087 cae6f busybox_old 823663 458 6956 831077 cae65 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: better comment. no code changesDenys Vlasenko2009-08-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* code shrink in help text codeDenys Vlasenko2009-08-301-6/+9
| | | | | | | | text data bss dec hex filename 823690 458 6956 831104 cae80 busybox_old 823673 458 6956 831087 cae6f busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uniq: code shrinkDenys Vlasenko2009-08-301-17/+17
| | | | | | | | | | function old new delta xgetoptfile_uniq_s 44 51 +7 uniq_main 389 368 -21 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-21) Total: -14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uniq: plug memory leak (patch from OpenWRT project)Denys Vlasenko2009-08-301-0/+1
| | | | | | | function old new delta uniq_main 371 389 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uniq: rename some variables. no code changesDenys Vlasenko2009-08-301-23/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: revent one place where number() doesn't workDenys Vlasenko2009-08-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ethr-wake: can use ether_hostton on uclibc >= 0.9.30Denys Vlasenko2009-08-301-1/+4
| | | | | | By Leonid Lisovskiy (lly.dev AT gmail.com) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libunarchive: fix a bug where mode and time is no longer restoredDenys Vlasenko2009-08-301-1/+1
| | | | | | Introduced by me in 1.15.x. Found by Rob Landley. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: deal with some TODOs (mostly trivial)Denys Vlasenko2009-08-292-64/+62
| | | | | | | | | | | | function old new delta msg_illnum - 19 +19 evalvar 1365 1364 -1 illnum 19 - -19 subevalvar 1182 1158 -24 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 19/-44) Total: -25 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: add testsuite for bug 585Denys Vlasenko2009-08-292-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>