Denis Vlasenko
7f8f0fafdb
fbsplash: more compact support for named pipes + EOF scenario
...
function old new delta
fbsplash_main 1121 1043 -78
2008-04-04 20:38:49 +00:00
Denis Vlasenko
7b6d9d687d
dd: support conv=fsync
...
dd: support "dd --" if CONFIG_DESKTOP=y
function old new delta
static.conv_words - 28 +28
dd_main 1369 1373 +4
static.keywords 848 827 -21
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 32/-21) Total: 11 bytes
2008-04-02 21:20:35 +00:00
Denis Vlasenko
a7f4e4bbd8
expr: fix comparisons 'a < b' where we were overflowing a-b
...
(not to mention that we used int, not arith_t). closes bug 2744.
Also, shrink a bit and add testsuite entry
function old new delta
nextarg 75 84 +9
tostring 38 35 -3
toarith 89 86 -3
str_value 35 32 -3
eval6 555 552 -3
int_value 29 23 -6
eval4 128 120 -8
eval3 112 104 -8
eval2 512 417 -95
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 9/-129) Total: -120 bytes
2008-04-02 20:24:09 +00:00
Denis Vlasenko
2e4c3c4cc3
udhcpc: add -o "do not request options by default" switch
...
(by L. Gabriel Somlo <somlo AT cmu.edu>)
function old new delta
udhcpc_main 2513 2554 +41
static.udhcpc_longopts 226 247 +21
add_param_req_option 119 132 +13
packed_usage 23952 23964 +12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 87/0) Total: 87 bytes
2008-04-02 13:04:19 +00:00
Denis Vlasenko
0edbdd8ac8
xfunc_die: resurrect (actually, it's "svn add" being forgotten again)
2008-04-01 17:43:03 +00:00
Denis Vlasenko
c59d802a5a
basename: tiny shrink
2008-04-01 16:29:21 +00:00
Denis Vlasenko
9895dfdb9a
chpst: fix "env directory" parsing to not strip everything
...
after 1st whitespace. -6 bytes.
2008-04-01 16:13:14 +00:00
Denis Vlasenko
9dedf72e71
script: do not ignore poll() errors. ~+20 bytes.
2008-04-01 16:12:17 +00:00
Denis Vlasenko
468aea2d88
shells: do not frocibly enable test, echo and kill _applets_,
...
just build relevant source and use xxx_main functions.
build system: add a special case when we have exactly one applet enabled
(makes "true", "false", "basename" REALLY tiny).
getopt32: do not use stdio.
function old new delta
getopt32 1385 1412 +27
make_device 1187 1200 +13
basename_main 120 127 +7
tcpudpsvd_main 1922 1926 +4
testcmd 5 - -5
echocmd 5 - -5
fuser_main 1243 1231 -12
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22) Total: 29 bytes
2008-04-01 14:47:57 +00:00
Denis Vlasenko
165f5b394f
tcpudp: trivial build fix
2008-03-31 20:30:38 +00:00
Denis Vlasenko
d943af058b
libbb: preventive fix for SIGxxx >= 32
2008-03-30 15:56:38 +00:00
Denis Vlasenko
5297809c03
g[un]zip: accept and ignore -n (needed for kernel compile)
2008-03-30 13:11:47 +00:00
Denis Vlasenko
1b2058fe98
fuser: fix vda's breakage: DOH! chdir'ing to /proc breaks relative paths
2008-03-29 17:59:27 +00:00
Denis Vlasenko
f2f3868e0d
mdev: optional support for regex pattern group substitution.
...
+142 bytes.
2008-03-29 17:26:10 +00:00
Denis Vlasenko
aa8a601084
mdev: fix block/char device detection. Closes bug 2144.
2008-03-29 16:07:46 +00:00
Denis Vlasenko
02f12f53e8
inetd: small shrink for NOMMU case
...
function old new delta
cat_args - 8 +8
echo_stream 64 63 -1
discard_stream 64 63 -1
static.args 32 12 -20
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 8/-22) Total: -14 bytes
2008-03-29 16:00:52 +00:00
Denis Vlasenko
cae11b51aa
mdev: fix "foo 0:0 444 >bar/baz" rule handling. make_device() +23 bytes
2008-03-29 15:11:07 +00:00
Denis Vlasenko
4461564c77
mdev: fix a bug where it was not stopping on first matching rule
...
(testsuite entry added). Revamped line parsing while at it.
function old new delta
next_field - 36 +36
make_device 1104 1022 -82
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 36/-82) Total: -46 bytes
2008-03-29 13:10:57 +00:00
Denis Vlasenko
7cb808e1c5
ftpgetput: move control_stream to "struct globals";
...
unify common data pumpung stage for upload and download;
other small shrinkage. EPSV still not implemented...
function old new delta
pump_data_and_QUIT - 82 +82
xconnect_ftpdata 127 156 +29
ftpcmd 301 304 +3
ftp_die 59 55 -4
ftpgetput_main 352 344 -8
ftp_send 185 91 -94
ftp_receive 394 293 -101
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/4 up/down: 114/-207) Total: -93 bytes
2008-03-29 07:40:35 +00:00
Denis Vlasenko
0e7940ae90
ftpgetput: deal with long-standing TODOs:
...
- do not use ALLO on upload
- move globals to "struct globals"
- move buf[] there too
- remove commented out "filesize" code
- other shrinkage
function old new delta
xconnect_ftpdata 117 127 +10
ftp_die 49 59 +10
ftpcmd 292 301 +9
verbose_flag 1 - -1
do_continue 1 - -1
ftpgetput_main 405 352 -53
ftp_receive 451 394 -57
ftp_send 325 185 -140
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 3/3 up/down: 29/-252) Total: -223 bytes
2008-03-29 07:37:42 +00:00
Denis Vlasenko
6c615a6c07
ftpgetput: add comment about EPSV (extended PASV).
...
Fix bug where we were using lstat instead of stat.
Added many TODOs.
2008-03-28 22:11:49 +00:00
Denis Vlasenko
b9ad75fa60
copy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils.
...
(almost because we do not copy mode, which is probably wasn't intended).
+61 bytes.
2008-03-28 17:49:31 +00:00
Denis Vlasenko
a38ba59cc3
fbsplash: move to /sbin; small shrink
...
function old new delta
fb_drawprogressbar 413 423 +10
fbsplash_main 1146 1121 -25
2008-03-28 11:17:35 +00:00
Denis Vlasenko
c4523c2b3d
fix a few stray unguarded strdup's
2008-03-28 02:24:59 +00:00
Denis Vlasenko
2570b2e575
whitespace fixes
2008-03-28 01:00:09 +00:00
Denis Vlasenko
cf26ab70c1
mdev: plug a few memory and fd leaks; simplify code a bit
2008-03-27 22:45:44 +00:00
Denis Vlasenko
e1caabbb75
mdev: add testsuite entry
2008-03-27 20:49:26 +00:00
Denis Vlasenko
95891fc016
openvt: fix gross mismatch between us and "standard" openvt.
...
standard one even has different syntax!
std: "openvt -c 12", we: "openvt 12"
std: "openvt top", we: complain that "top" is not a number.
openvt: implement -c -w -s (-l -f -v are also accepted but ingnored)
openvt_main 188 343 +155
vfork_child - 67 +67
not_vt_fd - 23 +23
packed_usage 23932 23952 +20
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 265/0) Total: 265 bytes
text data bss dec hex filename
801344 641 7380 809365 c5995 busybox_old
801617 641 7380 809638 c5aa6 busybox_unstripped
2008-03-27 16:26:35 +00:00
Denis Vlasenko
72b3442aeb
fbsplash: support this usage:
...
mkfifo cmd_pipe
fbsplash -f cmd_pipe .... &
...
echo 33 >cmd_pipe
...
echo 66 >cmd_pipe
Code size: fbsplash_main +116 bytes :(
2008-03-27 13:14:29 +00:00
Denis Vlasenko
11b9f26610
fbsplash: fix broken handling of buffered case:
...
"{echo 45; echo 33; } | { sleep 1; fbsplash -f - ...; }"
function old new delta
fb_drawprogressbar - 413 +413
xmalloc_fgetline - 46 +46
xmalloc_reads 184 183 -1
xmalloc_getline 46 - -46
fbsplash_main 1472 1030 -442
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/2 up/down: 459/-489) Total: -30 bytes
text data bss dec hex filename
801181 641 7380 809202 c58f2 busybox_old
801151 641 7380 809172 c58d4 busybox_unstripped
2008-03-26 20:06:24 +00:00
Denis Vlasenko
8ee649a02e
*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/
2008-03-26 20:04:27 +00:00
Bernhard Reutner-Fischer
ce7eb4443c
- add fbsplash and CONFIG_ASH_BASH_COMPAT to defconfig
2008-03-26 16:15:13 +00:00
Denis Vlasenko
25a9c17f55
fbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg
2008-03-26 15:12:11 +00:00
Denis Vlasenko
c6dbb85c9e
fbsplash: shrink, better help text; inifile cannot specify image now;
...
image can come from stdin
function old new delta
packed_usage 23872 23932 +60
static.param_names - 57 +57
fbsplash_main 1525 1472 -53
static.param_value 100 - -100
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/1 up/down: 117/-153) Total: -36 bytes
text data bss dec hex filename
801202 641 7380 809223 c5907 busybox_old
801181 641 7380 809202 c58f2 busybox_unstripped
2008-03-26 14:57:49 +00:00
Denis Vlasenko
08ec67bc62
patch: add support for -R. ~ +110 byte. By Pascal Bellard <pascal.bellard AT ads-lu.com>
...
fbsplash: new applet by Michele Sanges <michele.sanges AT otomelara.it
function old new delta
fbsplash_main - 1525 +1525
fb_drawfullrectangle - 118 +118
static.param_value - 100 +100
packed_usage 23776 23872 +96
applet_names 1843 1852 +9
applet_main 1120 1124 +4
read_line_input 3156 3158 +2
applet_nameofs 560 562 +2
applet_install_loc 140 141 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 1857/0) Total: 1857 bytes
text data bss dec hex filename
799233 641 7380 807254 c5156 busybox_old
801202 641 7380 809223 c5907 busybox_unstripped
2008-03-26 13:32:30 +00:00
Denis Vlasenko
cc2965fd23
patch: fix vda's thinko: we need to open new_filename.orig, always!
...
plug memory leak; add testsuite
patch_main 1009 988 -21
2008-03-25 14:15:39 +00:00
Denis Vlasenko
80591b0a00
ash: support for && and || in [[ expr ]]; add testsuite checks
2008-03-25 07:49:43 +00:00
Denis Vlasenko
b02cea1212
ifupdown: support for %retries% (L. Gabriel Somlo <somlo AT cmu.edu>)
2008-03-25 06:10:14 +00:00
Denis Vlasenko
a1acfc8f37
udhcp: build fix for ppc kernel 2.4.36
2008-03-25 06:04:58 +00:00
Denis Vlasenko
0c3b0d501e
lpd: small shrink
...
lpd_main 761 747 -14
2008-03-25 06:03:19 +00:00
Denis Vlasenko
f7d5665969
ash: comment about [[; code style fixes. No code changes.
2008-03-25 05:51:41 +00:00
Denis Vlasenko
68e5e2b1c7
help text shrinkage
2008-03-25 03:17:04 +00:00
Denis Vlasenko
fa076d491f
date: even more of help text shrink
2008-03-25 02:49:11 +00:00
Denis Vlasenko
9ce4ae8142
date: make help text more understandable; small shrink
...
text data bss dec hex filename
799025 641 7380 807046 c5086 busybox_old
799009 641 7380 807030 c5076 busybox_unstripped
2008-03-25 02:43:34 +00:00
Denis Vlasenko
92e13c2a11
ash: optional bash-like pattern subst and substring opts
...
(by James Simmons <jsimmons AT infradead.org>)
TODO: write testsuite!
BASH_COMPAT off:
scanleft 101 262 +161
subevalvar 346 335 -11
BASH_COMPAT on:
subevalvar 346 1397 +1051
scanleft 101 262 +161
readtoken1 2739 2807 +68
cmdputs 397 399 +2
static.vstype 64 48 -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 1282/-16) Total: 1266 bytes
2008-03-25 01:17:40 +00:00
Denis Vlasenko
59f351ccda
ash: add read -u; fix read -t and read -n; add testsuite entries.
2008-03-25 00:07:12 +00:00
Denis Vlasenko
f39653e306
lpd: debugging by Vladimir: he found vda's breakage (trashed s[0])!
2008-03-24 21:19:51 +00:00
Denis Vlasenko
cee01cfb2e
diff: add testsuite entry for it
2008-03-24 20:33:47 +00:00
Denis Vlasenko
dccfe05e17
diff: improve comments (no code chages)
2008-03-24 18:40:32 +00:00
Denis Vlasenko
64a76d7b44
patch: support for patches without dates and generated with -U1; shrink
...
function old new delta
extract_filename - 92 +92
extract_filename_and_free_line 70 - -70
patch_main 1096 1009 -87
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 92/-157) Total: -65 bytes
2008-03-24 18:18:03 +00:00