aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ls: fix "ls | cat" to not show "total NNN" headerDenys Vlasenko2009-10-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: handle long optionsBernhard Reutner-Fischer2009-10-232-2/+25
| | | | | | | RFC2822 obsoletes RFC822; Silently accept --rfc-822 and return rfc2822 output for compatibility. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libbb.h: tidy it up a bit. no code changes (verified)Denys Vlasenko2009-10-232-18/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix isalnum and isxdigit. Unfortunately, +285 bytesDenys Vlasenko2009-10-231-2/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* eliminate all remaining users of ctype. ~600 byte large tables are gone.Denys Vlasenko2009-10-231-14/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta skip_thing 253 278 +25 find_range 497 508 +11 ask 220 228 +8 ... setlocalenv 90 82 -8 bb_strtoll 84 76 -8 bb_strtol 85 77 -8 is_well_formed_var_name 75 66 -9 expand 651 641 -10 endofname 104 92 -12 buffer_fill_and_print 196 179 -17 isxdigit 18 - -18 httpd_main 729 711 -18 __GI_isxdigit 18 - -18 ispunct 20 - -20 isalnum 20 - -20 __GI_ispunct 20 - -20 __GI_isalnum 20 - -20 toupper 29 - -29 tolower 29 - -29 __GI_toupper 29 - -29 __GI_tolower 29 - -29 do_cmd 4454 4330 -124 ------------------------------------------------------------------------------ (add/remove: 0/12 grow/shrink: 14/29 up/down: 81/-549) Total: -468 bytes text data bss dec hex filename 823051 445 7548 831044 cae44 busybox_old 821970 441 7548 829959 caa07 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* small optimizations of toupper/tolowerDenys Vlasenko2009-10-232-18/+11
| | | | | | | function old new delta in_ib 191 172 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize most of isXXXXX() macrosDenys Vlasenko2009-10-237-23/+33
| | | | | | | | text data bss dec hex filename 824164 453 6812 831429 cafc5 busybox_old 823730 453 6812 830995 cae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: smaller isdigit. -95 bytesDenys Vlasenko2009-10-231-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build failure fix and some cosmeticsDenys Vlasenko2009-10-232-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove last function calls to isspaceDenys Vlasenko2009-10-228-35/+28
| | | | | | | | | | | function old new delta xstrtoul_range_sfx 232 231 -1 xstrtoull_range_sfx 295 293 -2 trim 82 80 -2 trim_trailing_spaces_and_print 57 52 -5 isspace 18 - -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* networking/interface.c: tiny code shrinkDenys Vlasenko2009-10-222-12/+12
| | | | | | | function old new delta if_readlist_proc 634 631 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use better isspace implementationDenys Vlasenko2009-10-222-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta asciifile 90 106 +16 expand 653 658 +5 skip_non_whitespace 21 25 +4 bb_iswspace 25 28 +3 readcmd 1071 1072 +1 find_range 496 497 +1 singlemount 772 771 -1 ifupdown_main 2134 2133 -1 edir 370 369 -1 volume_id_set_label_string 82 79 -3 trim 85 82 -3 rtc_adjtime_is_utc 141 138 -3 rewrite 1039 1036 -3 do_cmd 4465 4462 -3 bb_dump_add 358 355 -3 awk_split 553 550 -3 fbset_main 1273 1268 -5 skip_thing 259 253 -6 get_trimmed_slice 46 39 -7 bb__parsegrent 245 238 -7 parse_file_cmd 116 108 -8 check 1532 1523 -9 bb__pgsreader 198 188 -10 dot_skip_over_ws 61 46 -15 colon 3032 3012 -20 if_readlist_proc 655 634 -21 normalize 193 165 -28 add_cmd 1162 1133 -29 get_key 528 476 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/23 up/down: 30/-241) Total: -211 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: code shrinkDenys Vlasenko2009-10-221-8/+9
| | | | | | | function old new delta mkfs_ext2_main 2505 2492 -13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fix a bug where we don't fully respect -n on filesDenys Vlasenko2009-10-221-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mke2fs: mention -F in usage textDenys Vlasenko2009-10-221-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trimming help textDenys Vlasenko2009-10-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir)Denys Vlasenko2009-10-225-30/+46
| | | | | | | | | | function old new delta mkfs_ext2_main 2385 2495 +110 packed_usage 26400 26447 +47 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 157/0) Total: 157 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tune2fs: new applet by Vladimir. Only supports -L LABELDenys Vlasenko2009-10-224-9/+83
| | | | | | | | | | | | | | function old new delta tune2fs_main - 165 +165 packed_usage 26692 26702 +10 applet_names 2148 2156 +8 applet_main 1264 1268 +4 applet_nameofs 632 634 +2 applet_install_loc 158 159 +1 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/0 up/down: 190/0) Total: 190 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: 1.41.9 compatDenys Vlasenko2009-10-221-17/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: trivial 64-bit fixDenys Vlasenko2009-10-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: make sure we extend the image to requested sizeDenys Vlasenko2009-10-211-1/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cosmetics in mkfs_ext2.txtDenys Vlasenko2009-10-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2_test: disable incomtatible behavior in standard mke2fsDenys Vlasenko2009-10-211-8/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: e2fsck 1.14.4 compatDenys Vlasenko2009-10-212-5/+81
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: explain 256-byte inodes. no code changesDenys Vlasenko2009-10-211-19/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: explain why 0.5G+ images are a bit differentDenys Vlasenko2009-10-211-4/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: another update by VladimirDenys Vlasenko2009-10-202-89/+126
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add B921600Bernhard Reutner-Fischer2009-10-201-1/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* clarify in commentDenys Vlasenko2009-10-201-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: further work on small imagesDenys Vlasenko2009-10-202-35/+37
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fixes for small image generation. images up to ~8M are ok nowDenys Vlasenko2009-10-202-13/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fix 60k image creationDenys Vlasenko2009-10-202-16/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: further work by VladimirDenys Vlasenko2009-10-202-45/+69
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: small tweakDenys Vlasenko2009-10-201-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: compat fixesDenys Vlasenko2009-10-202-221/+245
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix exec builtin in a better way (+ "glob in exec" bug fixed)Denys Vlasenko2009-10-192-27/+19
| | | | | | | | | | | | function old new delta execvp_or_die - 50 +50 static.pseudo_null_str 3 - -3 builtin_exec 83 57 -26 pseudo_exec_argv 200 163 -37 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 50/-66) Total: -16 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* menuconfig tweaksDenys Vlasenko2009-10-192-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: use configured max line length, not BUFSIZE from libcDenys Vlasenko2009-10-191-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2009-10-194-2/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: remove superfluous assignmentDenys Vlasenko2009-10-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make it compile again :/Denys Vlasenko2009-10-191-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: cosmetics. no code changesDenys Vlasenko2009-10-191-65/+66
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: more work. added test scriptDenys Vlasenko2009-10-182-75/+153
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: fixes for huge filesystemsDenys Vlasenko2009-10-182-24/+44
| | | | | | | | | function old new delta mkfs_ext2_main 2145 2617 +472 div_roundup 15 35 +20 packed_usage 26792 26776 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: make it able to create images larger than 4GDenys Vlasenko2009-10-182-57/+98
| | | | | | | | | | | | function old new delta mkfs_ext2_main 1904 2145 +241 has_super 29 23 -6 PUT 52 40 -12 packed_usage 26807 26792 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 241/-33) Total: 208 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix handling of empty argumentsDenys Vlasenko2009-10-185-15/+58
| | | | | | | | | | | | function old new delta builtin_exec 25 83 +58 parse_stream 2242 2261 +19 run_pipe 1782 1787 +5 static.pseudo_null_str - 3 +3 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 85/0) Total: 85 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkfs_ext2: shrinkDenys Vlasenko2009-10-181-2/+0
| | | | | | | function old new delta mkfs_ext2_main 1924 1904 -20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: handle empty execsMike Frysinger2009-10-183-0/+36
| | | | | | | | Sometimes variable expansions yield empty strings, and if they happen to be a command someone wants to run like `$foo`, then hush currently segfaults. So handle `` and $(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mkfs_ext2: code shrinkDenys Vlasenko2009-10-171-3/+1
| | | | | | | function old new delta mkfs_ext2_main 1933 1924 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim usage textDenys Vlasenko2009-10-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>