aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* hush: fix remaining known two bugs with IFS expansion. Closes 4027.Denys Vlasenko2011-08-013-30/+61
| | | | | | | | | | | | | function old new delta expand_vars_to_list 1054 1140 +86 parse_stream 2425 2479 +54 expand_on_ifs 258 310 +52 builtin_umask 133 132 -1 done_word 820 779 -41 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 192/-42) Total: 150 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: partially fix wrong expansion on $IFS (bug 4027).Denys Vlasenko2011-08-013-9/+50
| | | | | | | | | | | | | | | | In the added testcase, before patch we failed 8 out of 9 tests, now we fail only 2 (4th and 5th). function old new delta expand_on_ifs 225 258 +33 expand_vars_to_list 1038 1054 +16 o_save_ptr_helper 115 119 +4 builtin_umask 132 133 +1 o_addQstr 165 161 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/1 up/down: 54/-4) Total: 50 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: ignore file size (assume 0) for hardlinksIan Wienand2011-07-291-3/+13
| | | | | Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: work around sysinfo.h versus linux/*.h problemsDenys Vlasenko2011-07-265-5/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tcpudp: simplify help textDenys Vlasenko2011-07-251-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* less: add a TODO commentDenys Vlasenko2011-07-251-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* less: optionally query terminal size via "ESC [ 6 n". Closes bug 2659.Denys Vlasenko2011-07-254-84/+123
| | | | | | +7 bytes is not selected, +100 if selected. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: do not use homegrown struct sysinfo.Denys Vlasenko2011-07-251-19/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* android_defconfig: remove some extra cflags. untestedDenys Vlasenko2011-07-231-1/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add defconfig files for Android, Cygwin and FreeBSDDaniel Fandrich2011-07-194-0/+2995
| | | | | | | | Also added an example script to show how to compile BusyBox against Android's bionic. Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dc: fix a case where we can run off malloced spaceDenys Vlasenko2011-07-151-18/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cttyhack: fail gracefully if the device node is missingKevin Cernekee2011-07-131-1/+3
| | | | | Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cttyhack: check sysfs for the name of the active consoleKevin Cernekee2011-07-131-31/+48
| | | | | Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk: reinstate a short sleep between sync() and ioctl(BLKRRPART)Denys Vlasenko2011-07-131-25/+18
| | | | | | | | | While at it, simplify code a bit. function old new delta write_table 201 198 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/lineedit: implement optional Ctrl-R history searchDenys Vlasenko2011-07-112-12/+161
| | | | | | | | | | | function old new delta read_line_input 3433 3957 +524 load_string 77 90 +13 input_tab 1086 1069 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 537/-17) Total: 520 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: don't require that pythin is in /usr/bin.Lauri Kasanen2011-07-081-2/+2
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make configs/* files have _defconfig suffixDenys Vlasenko2011-07-083-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more tweak for bionicDenys Vlasenko2011-07-086-4/+65
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* usleep: do not check for usleep error, it should never failDenys Vlasenko2011-07-081-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* a few tweaks for bionicDenys Vlasenko2011-07-084-3/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Support configuring Busybox from _defconfig filesDaniel Fandrich2011-07-087-12/+9
| | | | | | | | | The existing test .config files are moved to configs/ and renamed to *_defconfig. 'make xyz_defconfig' will enable the configuration in that specific file. Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: use locale-specific date output formatDenys Vlasenko2011-07-081-10/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* halt: perror_msg_and_die needs bb_ prefixDenys Vlasenko2011-07-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixesDan Fandrich2011-07-086-7/+7
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform.h: tweaks for cygwinDenys Vlasenko2011-07-082-2/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: better help textDenys Vlasenko2011-07-041-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* md5/shaNsum: make -c support a list of filesLauri Kasanen2011-07-041-68/+58
| | | | | | | | function old new delta md5_sha1_sum_main 455 473 +18 Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: tweak regex.h includeDenys Vlasenko2011-07-031-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* halt/reboot: better message if /sbin/telinit is not foundDenys Vlasenko2011-07-031-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use the _unlocked stdio macros only when they're all availableDan Fandrich2011-06-302-21/+25
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: tweak _unlocked hackDenys Vlasenko2011-06-301-36/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use the built-in getline on more systems that don't have itDan Fandrich2011-06-301-5/+13
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* platform.c: provide getline implementationTimo Teras2011-06-292-0/+34
| | | | | Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: fix regex search, make it selectable in configWalter Harms2011-06-274-159/+181
| | | | | | | | | | function old new delta char_search 134 214 +80 find_pair 187 169 -18 mycmp 37 - -37 Signed-off-by: Walter Harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* id: correct getgroups usageDenys Vlasenko2011-06-221-16/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* groups: make it NOEXECDenys Vlasenko2011-06-221-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix HAVE_STRVERSCMP check; add check for older uclibc versionsDenys Vlasenko2011-06-212-1/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* groups: new appletTito Ragusa2011-06-214-12/+36
| | | | | Signed-off-by: Tito Ragusa <farmatito@tiscali.it> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add HAVE_STRVERSCMP, guard the only usage of strverscmp with #ifdefDenys Vlasenko2011-06-212-0/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* setserial: added missing \n in help textDan Fandrich2011-06-201-1/+1
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: use _unlocked variants of stdio I/O.Denys Vlasenko2011-06-201-0/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* parse_config: use getline. BIG speedup with glibc (~40%).Timo Teras2011-06-202-50/+45
| | | | | | | | | | | | | | | | | | | | | function old new delta config_read 559 604 +45 getline - 23 +23 config_close 29 49 +20 find_pair 169 187 +18 showmode 330 338 +8 hash_find 233 234 +1 builtin_umask 133 132 -1 lzo1x_optimize 1434 1429 -5 test_main 253 247 -6 buffer_fill_and_print 196 179 -17 create_J 1849 1826 -23 config_free_data 37 - -37 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 5/5 up/down: 138/-89) Total: 26 bytes Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: use hash table. speeds up significantly if modprobe.dep is largeTimo Teras2011-06-201-14/+29
| | | | | | | | | | | | | | | | function old new delta helper_get_module 106 157 +51 config_file_action 413 431 +18 modprobe_main 690 706 +16 do_modprobe 580 588 +8 add_probe 81 83 +2 load_modules_dep 192 190 -2 get_or_add_modentry 10 - -10 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 5/1 up/down: 95/-12) Total: 83 bytes Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: disable debug code; remove unsupported --dry-run from help textDenys Vlasenko2011-06-191-7/+10
| | | | | | | | | | | function old new delta packed_usage 28623 28602 -21 do_line 121 91 -30 patch_main 2086 1923 -163 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-214) Total: -214 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/read_cmdline: prepend {comm} if different from argv0. Closes 3835.Denys Vlasenko2011-06-181-3/+32
| | | | | | | function old new delta read_cmdline 114 233 +119 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* procps: remove PSSCAN_STAT define, users were using it incorrectlyDenys Vlasenko2011-06-183-20/+19
| | | | | | Also contains small cleanups ps. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix false positive in parse testDenys Vlasenko2011-06-181-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* parse_config: make test applet easier to enable; fix its codeDenys Vlasenko2011-06-183-35/+29
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split bb_get_chunk_from_file and bb_get_chunk_with_continuationDenys Vlasenko2011-06-173-44/+56
| | | | | | | | | | | | | | | | | | This also moves bb_get_chunk_with_continuation into its sole user, parse_config.c. This allows to optimize both functions separately, they need to be optimized for speed. (this need was highlighted by slow modprobe caused in part by slow bb_get_chunk_with_continuation in config parser). function old new delta bb_get_chunk_from_file 7 130 +123 config_read 457 558 +101 bb_get_chunk_with_continuation 194 - -194 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/0 up/down: 224/-194) Total: 30 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: check if RPC is availableBernhard Reutner-Fischer2011-06-151-2/+5
| | | | | | | | It would be better to have FEATURE_HAVE_RPC be user-selectable and depend mount.nfs and inetd-rpc on it instead of the current, backward, way. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>