Denis Vlasenko
cd2663f15e
ash: optional printf builtin. +25 bytes if off, +35 if on.
...
by Cristian Ionescu-Idbohrn.
2008-06-01 22:36:39 +00:00
Denis Vlasenko
d78920675f
msh: fix ENOENT testcase
2008-06-01 14:16:54 +00:00
Bernhard Reutner-Fischer
62d8503589
- use ut_user rather than ut_name (Cristian Ionescu-Idbohrn)
...
- use ut_tv.tv_sec rather than ut_time (me)
- shrink halt a little bit (me):
halt_main 464 433 -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31) Total: -31 bytes
2008-06-01 10:10:22 +00:00
Bernhard Reutner-Fischer
e0fd13e901
- shrink modprobe a little bit (~-40 bytes). ACKed by Yann.
2008-05-31 18:50:17 +00:00
Denis Vlasenko
a76669c595
printf: fix a trivial bug
2008-05-31 18:32:56 +00:00
Denis Vlasenko
f4e6bd0bf3
mdev: add commented-out debug code to open stdio.
2008-05-31 18:27:58 +00:00
Denis Vlasenko
1d1bba4e99
printf: code shrink by eliminating string alloc/copy
...
function old new delta
print_direc 428 382 -46
2008-05-31 11:41:50 +00:00
Denis Vlasenko
d12fcc20da
libiproute: fix option parsing, so that "ip -o link" works again.
...
closes bug 3524
2008-05-31 07:34:14 +00:00
Denis Vlasenko
3e57adb731
libiproute: style fixes, and using smallint as appropriate
...
function old new delta
print_route 1730 1731 +1
print_addrinfo 1497 1498 +1
iproute_list_or_flush 1232 1229 -3
ipaddr_list_or_flush 2490 2484 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 2/-9) Total: -7 bytes
2008-05-31 07:33:18 +00:00
Denis Vlasenko
8f74094548
runsvdir: make it more robust against libc buglets (errno accidentally set to !0 )
...
closes bug 3514
function old new delta
runsvdir_main 1672 1664 -8
2008-05-31 07:00:33 +00:00
Denis Vlasenko
447bd66837
msh: fix the case where the file has exec bit but can't be run directly
...
(run "$SHELL $file" instead)
msh: fix exit codes when command is not found or can't be execed
(with testcases)
2008-05-30 22:28:32 +00:00
Bernhard Reutner-Fischer
f9a0784144
- add FIXME to use hasmntopt()
2008-05-30 10:44:37 +00:00
Bernhard Reutner-Fischer
db508e3b82
- fix overflow; improve documentation while at it
2008-05-28 15:57:31 +00:00
Denis Vlasenko
cd9d4c85a4
fuser: a now, the corrected fix (vda botched previous one)
2008-05-28 14:57:58 +00:00
Bernhard Reutner-Fischer
634b022108
- misc. improvements and shrinkage
2008-05-28 14:20:20 +00:00
Bernhard Reutner-Fischer
17282292c2
- add strrchr
2008-05-28 14:19:27 +00:00
Denis Vlasenko
5de8a13b08
fiser: opendir "/proc", not "." (by Cristian Ionescu-Idbohrn)
2008-05-28 12:44:22 +00:00
Denis Vlasenko
ea9f7a6a7f
find: beautify config prompts a bit
2008-05-28 12:00:59 +00:00
Denis Vlasenko
417e240abb
Remove 'busybox' word from configuration programs
...
(based on experience of adapting it to uclibc).
2008-05-28 11:59:32 +00:00
Bernhard Reutner-Fischer
10be1a787f
- move depmod shell script to examples/
2008-05-28 11:21:20 +00:00
Bernhard Reutner-Fischer
c21d9c7290
- the moddir_base is supposed to be omitted frmo the .dep file
...
- other tweaks while at it
2008-05-28 10:35:51 +00:00
Bernhard Reutner-Fischer
1510216a55
- Spaghetti alert. Fix clash with ancient fwd-decl. This is an unfortunate
...
combination of linux not providing a useable linux/module.h to userspace and
mixing legacy-cruft with the current stuff in one insmod.c.
2008-05-27 13:27:18 +00:00
Bernhard Reutner-Fischer
55fb9da5b8
- remove duplicate helptext of dhcprelay and improve it
2008-05-27 12:42:39 +00:00
Bernhard Reutner-Fischer
b85fb693c1
- Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.
...
No obj-code changes.
2008-05-27 10:55:34 +00:00
Bernhard Reutner-Fischer
4fec346966
- use (uC)libc functions. Saves a dozen bytes.
2008-05-27 10:13:54 +00:00
Bernhard Reutner-Fischer
9cf0f62b15
vda, xmalloc'ing can use *alot* of RAM. Don't forget that there are
...
modules out there that are half a megabyte! mmap()ing is way nicer
for small mem boxes.
2008-05-27 09:06:05 +00:00
Bernhard Reutner-Fischer
9474830006
- improve help-text
2008-05-27 08:41:32 +00:00
Bernhard Reutner-Fischer
1ea2568469
- improve option-handling a bit
2008-05-26 21:33:05 +00:00
Denis Vlasenko
7a5f494cab
scripts: add a script which prints memory map of running busybox
2008-05-26 18:41:35 +00:00
Denis Vlasenko
c47e8978fe
scripts: add primitive memory usage meter script
2008-05-26 18:36:37 +00:00
Denis Vlasenko
fc9e108032
udhcpc: shrink
...
udhcpc: guard against zero lease time
function old new delta
timeout 4 - -4
server_addr 4 - -4
requested_ip 4 - -4
perform_release 134 112 -22
udhcpc_main 2511 2485 -26
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-60) Total: -60 bytes
2008-05-26 17:32:35 +00:00
Bernhard Reutner-Fischer
6bb55cfb99
- add basic option-handling (+220b). Untested
2008-05-26 17:04:01 +00:00
Bernhard Reutner-Fischer
cf18010ca9
- use mmap instead of allocating hundreds of megabytes of RAM. +39b
2008-05-26 15:12:01 +00:00
Bernhard Reutner-Fischer
dc5d7fec35
- remove some bloat -28b: now approx. 501b
2008-05-26 13:30:41 +00:00
Bernhard Reutner-Fischer
423465cd5e
- switch to FILE base writer and remove now unneeded stuff. -50b
2008-05-26 12:19:35 +00:00
Bernhard Reutner-Fischer
55e547eb6f
- add simple first-draft unoptimized depmod just to proove Vladimir Dronnikov wrong
...
text data bss dec hex filename
569 0 0 569 239 modutils/depmod.o
2008-05-26 12:01:49 +00:00
Denis Vlasenko
a0e17f7df6
[u]mount: add/update dietlibc build fix
2008-05-26 01:19:53 +00:00
Denis Vlasenko
b267ed95bc
lineedit: correctly handle prompt longer than screen width. closes bug 3414
2008-05-25 21:52:03 +00:00
Denis Vlasenko
4830fc565a
hush: make it ignore SIGINT etc in a config wich has no job control
2008-05-25 21:50:55 +00:00
Denis Vlasenko
af6cca50af
move setgroups definition to libbb.h so that it no longer inadvertently
...
get hidden attribute
2008-05-25 04:31:54 +00:00
Denis Vlasenko
30f892a0ee
last: code shrink
...
function old new delta
show_entry 319 311 -8
last_main 917 907 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes
2008-05-25 01:14:14 +00:00
Denis Vlasenko
69dc325397
syslogd: do not error out on missing files to rotate. closes bug 3404.
2008-05-24 21:03:53 +00:00
Denis Vlasenko
bd23fbbd0a
docs/depmod: and example of depmod in shell/sed/awk...
2008-05-24 20:54:14 +00:00
Denis Vlasenko
8e2c9e1518
inotify: new applet by Vladimir Dronnikov <dronnikov AT gmail.com>
...
function old new delta
inotifyd_main - 453 +453
packed_usage 24246 24450 +204
inotify_add_watch - 47 +47
inotify_init - 29 +29
mask_names - 13 +13
signal_handler 130 140 +10
applet_names 1859 1868 +9
applet_main 1132 1136 +4
applet_nameofs 566 568 +2
signalled 1 2 +1
2008-05-24 20:47:18 +00:00
Denis Vlasenko
e94a87134d
mdev: fix counting of '%' in pattern
2008-05-24 16:46:13 +00:00
Denis Vlasenko
ff9234948e
mdev: fix whitespace damage
2008-05-23 20:36:33 +00:00
Bernhard Reutner-Fischer
cf575ca856
- optionally pass additional flags down to nm
2008-05-23 12:53:18 +00:00
Bernhard Reutner-Fischer
61082ec1cc
- not sure but i may have had the shutdown-time wrong and no records to verify
2008-05-22 22:05:55 +00:00
Bernhard Reutner-Fischer
69d5ba2f95
- untangle the implementation of the small and huge last applets
2008-05-22 21:56:26 +00:00
Denis Vlasenko
a959a2abdd
mdev: suppress "may be used uninitialized" warning
2008-05-22 21:35:16 +00:00