Denys Vlasenko
11c12c4720
fix isalnum and isxdigit. Unfortunately, +285 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-23 13:57:24 +02:00
Denys Vlasenko
a7a1fd02cb
eliminate all remaining users of ctype. ~600 byte large tables are gone.
...
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>
2009-10-23 13:05:03 +02:00
Denys Vlasenko
56b3eec162
small optimizations of toupper/tolower
...
function old new delta
in_ib 191 172 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-23 13:03:59 +02:00
Denys Vlasenko
f2cbb03a37
*: optimize most of isXXXXX() macros
...
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>
2009-10-23 03:16:08 +02:00
Denys Vlasenko
7b4cd6f7b0
libbb: smaller isdigit. -95 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-23 02:22:03 +02:00
Denys Vlasenko
c1947f18f5
build failure fix and some cosmetics
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-23 01:30:26 +02:00
Denys Vlasenko
c0dab37d0a
*: remove last function calls to isspace
...
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>
2009-10-22 22:28:08 +02:00
Denys Vlasenko
6935ec9c0b
networking/interface.c: tiny code shrink
...
function old new delta
if_readlist_proc 634 631 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 19:42:26 +02:00
Denys Vlasenko
f125b6d341
*: use better isspace implementation
...
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>
2009-10-22 19:41:45 +02:00
Denys Vlasenko
46e364dbfe
mkfs_ext2: code shrink
...
function old new delta
mkfs_ext2_main 2505 2492 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:41:44 +02:00
Denys Vlasenko
09bbb2892d
mkfs_ext2: fix a bug where we don't fully respect -n on files
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:27:10 +02:00
Denys Vlasenko
c1ab01b61b
mke2fs: mention -F in usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:24:48 +02:00
Denys Vlasenko
838e07aace
trimming help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 12:15:33 +02:00
Denys Vlasenko
149a32a19b
mkfs_ext2: use compatible inode sizes; add -I <inodesize>. (by Vladimir)
...
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>
2009-10-22 12:12:17 +02:00
Denys Vlasenko
3945bc1534
tune2fs: new applet by Vladimir. Only supports -L LABEL
...
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>
2009-10-22 00:55:55 +02:00
Denys Vlasenko
481ca9604d
mkfs_ext2: 1.41.9 compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-22 00:38:52 +02:00
Denys Vlasenko
a46317b6f3
df: trivial 64-bit fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 23:28:20 +02:00
Denys Vlasenko
010fb00708
mkfs_ext2: make sure we extend the image to requested size
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 23:23:55 +02:00
Denys Vlasenko
eaba48467c
cosmetics in mkfs_ext2.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 14:25:21 +02:00
Denys Vlasenko
1d6e4473fa
mkfs_ext2_test: disable incomtatible behavior in standard mke2fs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 14:14:51 +02:00
Denys Vlasenko
ece01ee8ca
mkfs_ext2: e2fsck 1.14.4 compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 14:01:25 +02:00
Denys Vlasenko
2ee2724a41
mkfs_ext2: explain 256-byte inodes. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 11:34:32 +02:00
Denys Vlasenko
2288d86a54
mkfs_ext2: explain why 0.5G+ images are a bit different
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-21 00:34:27 +02:00
Denys Vlasenko
5e1dbd5bc3
mkfs_ext2: another update by Vladimir
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 22:12:11 +02:00
Bernhard Reutner-Fischer
e707a3000b
add B921600
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-10-20 19:53:24 +02:00
Denys Vlasenko
a4e4a65484
clarify in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 17:49:50 +02:00
Denys Vlasenko
c708a6d000
mkfs_ext2: further work on small images
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 17:47:23 +02:00
Denys Vlasenko
82d6433abe
mkfs_ext2: fixes for small image generation. images up to ~8M are ok now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 17:04:55 +02:00
Denys Vlasenko
cbeb452824
mkfs_ext2: fix 60k image creation
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 16:21:29 +02:00
Denys Vlasenko
95484c8706
mkfs_ext2: further work by Vladimir
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 13:34:16 +02:00
Denys Vlasenko
69f2e2cdeb
mkfs_ext2: small tweak
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 00:16:24 +02:00
Denys Vlasenko
05647b5551
mkfs_ext2: compat fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-20 00:06:03 +02:00
Denys Vlasenko
3ef4f77620
hush: fix exec builtin in a better way (+ "glob in exec" bug fixed)
...
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>
2009-10-19 23:09:06 +02:00
Denys Vlasenko
a8df4c09fb
menuconfig tweaks
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-19 18:56:26 +02:00
Denys Vlasenko
aaa22d2493
hush: use configured max line length, not BUFSIZE from libc
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-19 16:34:39 +02:00
Denys Vlasenko
36df04837a
randomconfig fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-19 16:07:28 +02:00
Denys Vlasenko
3b3ccdc5bc
hush: remove superfluous assignment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-19 13:24:07 +02:00
Denys Vlasenko
8bc7f2c5aa
hush: make it compile again :/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-19 13:20:52 +02:00
Denys Vlasenko
c0836530f1
hush: cosmetics. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-19 13:13:06 +02:00
Denys Vlasenko
e8405619fa
mkfs_ext2: more work. added test script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-18 20:57:52 +02:00
Denys Vlasenko
f9d3a91a89
mkfs_ext2: fixes for huge filesystems
...
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>
2009-10-18 18:05:27 +02:00
Denys Vlasenko
77da1cae94
mkfs_ext2: make it able to create images larger than 4G
...
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>
2009-10-18 16:29:30 +02:00
Denys Vlasenko
f37eb3999b
hush: fix handling of empty arguments
...
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>
2009-10-18 11:46:35 +02:00
Denys Vlasenko
7673e7fda4
mkfs_ext2: shrink
...
function old new delta
mkfs_ext2_main 1924 1904 -20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-18 09:57:39 +02:00
Mike Frysinger
28736c36ca
hush: handle empty execs
...
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>
2009-10-18 01:15:36 -04:00
Denys Vlasenko
69d9edc6f8
mkfs_ext2: code shrink
...
function old new delta
mkfs_ext2_main 1933 1924 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-17 23:47:36 +02:00
Denys Vlasenko
6a8cfdca99
trim usage text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-17 23:41:15 +02:00
Denys Vlasenko
9c2708ebf9
mkfs_ext2: code shrink
...
function old new delta
div_roundup - 15 +15
mkfs_ext2_main 1980 1933 -47
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-17 23:27:29 +02:00
Denys Vlasenko
7d8ab846d1
mkfs_ext2: fix a buglet introduced in last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-17 23:23:45 +02:00
Denys Vlasenko
4588775182
mkfs_ext2: shrink
...
function old new delta
has_super 28 25 -3
mkfs_ext2_main 2011 1980 -31
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-10-17 23:13:31 +02:00