Denis Vlasenko [Wed, 11 Mar 2009 14:40:00 +0000 (14:40 -0000)]
docs/logging_and_backgrounding.txt: new mini-doc
dnsd: remove statics, remove nerly-useless SIGINT handler
crond: correct more of logfile to 0666 (as usual, umask allows
user to remove unwanted bits).
nameif: print errors to stderr too, not just to syslog
function old new delta
udhcp_read_interface 308 306 -2
ttl 4 - -4
fileconf 4 - -4
dnsentry 4 - -4
interrupt 19 - -19
dnsd_main 1463 1394 -69
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-102) Total: -102 bytes
text data bss dec hex filename
808161 476 7864 816501 c7575 busybox_old
807994 468 7856 816318 c74be busybox_unstripped
Denis Vlasenko [Tue, 10 Mar 2009 16:01:57 +0000 (16:01 -0000)]
mail.c: more robust handling of SIGCHLD
init: more robust signal handling
Denis Vlasenko [Mon, 9 Mar 2009 22:37:23 +0000 (22:37 -0000)]
ftpd + ls - timestamp = confused Mozilla. Prevent that.
Denis Vlasenko [Mon, 9 Mar 2009 17:22:16 +0000 (17:22 -0000)]
ftpd: add LOG_NDELAY to openlog
Denis Vlasenko [Mon, 9 Mar 2009 16:43:28 +0000 (16:43 -0000)]
uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead
Denis Vlasenko [Mon, 9 Mar 2009 16:25:33 +0000 (16:25 -0000)]
fix typo in help text
Denis Vlasenko [Mon, 9 Mar 2009 15:46:07 +0000 (15:46 -0000)]
ftpd: reuse ls applet for LIST/NLST/STAT generation
function old new delta
popen_ls - 211 +211
ftpd_main 1760 1826 +66
handle_dir_common 199 228 +29
get_remote_transfer_fd 89 104 +15
replace_char 30 34 +4
handle_upload_common 263 265 +2
bind_for_passive_mode 129 121 -8
cmdio_write 84 62 -22
escape_text 166 136 -30
init_data_sock_params 81 - -81
ftpdataio_dispose_transfer_fd 87 - -87
write_dirstats 149 - -149
write_filestats 603 - -603
------------------------------------------------------------------------------
(add/remove: 1/4 grow/shrink: 11/5 up/down: 384/-986) Total: -602 bytes
text data bss dec hex filename
808804 476 7864 817144 c77f8 busybox_old
808156 476 7864 816496 c7570 busybox_unstripped
Denis Vlasenko [Mon, 9 Mar 2009 13:01:08 +0000 (13:01 -0000)]
ftpd: EPSV and SIZE support. Tested to work on IPv6 too.
libbb: str2sockaddr shuld accept [IPv6] addr without port -
wget 'ftp://[::1]/file' needs that to work.
function old new delta
bind_for_passive_mode - 129 +129
get_nport - 30 +30
ftpd_main 1731 1760 +29
str2sockaddr 412 431 +19
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 207/0) Total: 207 bytes
text data bss dec hex filename
808568 476 7864 816908 c770c busybox_old
808804 476 7864 817144 c77f8 busybox_unstripped
Denis Vlasenko [Mon, 9 Mar 2009 04:38:37 +0000 (04:38 -0000)]
ftp: reduce amount of realloc's done in cmdio_write
text data bss dec hex filename
808562 476 7864 816902 c7706 busybox_old
808568 476 7864 816908 c770c busybox_unstripped
Denis Vlasenko [Mon, 9 Mar 2009 04:22:52 +0000 (04:22 -0000)]
ftpd: code shrink
Denis Vlasenko [Mon, 9 Mar 2009 04:18:00 +0000 (04:18 -0000)]
ftpd: code shrink
Denis Vlasenko [Mon, 9 Mar 2009 04:13:59 +0000 (04:13 -0000)]
ftp: code shrink
text data bss dec hex filename
809078 476 7864 817418 c790a busybox_old
808590 476 7864 816930 c7722 busybox_unstripped
Denis Vlasenko [Mon, 9 Mar 2009 03:15:05 +0000 (03:15 -0000)]
ftpd: code shuffled a bit, added comments
Denis Vlasenko [Mon, 9 Mar 2009 02:51:46 +0000 (02:51 -0000)]
ftpd: add comment
Denis Vlasenko [Mon, 9 Mar 2009 02:23:45 +0000 (02:23 -0000)]
ftpd: further code shrink
function old new delta
port_pasv_cleanup - 50 +50
replace_char - 30 +30
ftp_write_str_common 102 104 +2
handle_dir_common 209 204 -5
ftpd_main 1990 1970 -20
port_cleanup 23 - -23
pasv_cleanup 28 - -28
handle_upload_common 320 273 -47
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/3 up/down: 82/-123) Total: -41 bytes
Denis Vlasenko [Mon, 9 Mar 2009 00:12:37 +0000 (00:12 -0000)]
*: move get_sock_lsa and xwrite_str to libbb, use where appropriate
function old new delta
get_sock_lsa - 72 +72
buffer_fill_and_print 179 196 +17
parse_expr 824 832 +8
read_base64 343 348 +5
nameval 202 206 +4
fbset_main 1694 1698 +4
expand 1849 1853 +4
udhcp_send_kernel_packet 249 252 +3
udhcp_get_option 223 222 -1
chat_main 1246 1245 -1
pack_gzip 1661 1659 -2
doset 299 297 -2
bb__parsespent 119 117 -2
test_main 260 257 -3
qgravechar 109 106 -3
tcpudpsvd_main 1834 1830 -4
sysctl_display_all 589 580 -9
xopen_xwrite_close 44 33 -11
prs 30 18 -12
find_main 418 406 -12
full_write2_str 25 12 -13
adduser_main 667 654 -13
evaltreenr 817 802 -15
evaltree 817 802 -15
tftpd_main 526 493 -33
ftpd_main 2050 1990 -60
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
Denis Vlasenko [Sun, 8 Mar 2009 23:46:48 +0000 (23:46 -0000)]
ftpd: code chrink, fixed some minor bugs
ls: update comment
*: openlog fixes (added LOG_PID, set LOG_DAEMON as appropriate)
function old new delta
xwrite_str - 26 +26
cmdio_write_ok - 15 +15
handle_cwd 40 45 +5
packed_usage 25668 25670 +2
cmdio_write_raw 7 9 +2
handle_upload_common 322 320 -2
udhcpd_main 1375 1372 -3
udhcpc_main 2362 2359 -3
port_cleanup 27 23 -4
handle_dir_common 221 209 -12
str_netfd_write 26 - -26
cmdio_get_cmd_and_arg 122 - -122
ftpd_main 2208 2050 -158
------------------------------------------------------------------------------
text data bss dec hex filename
809933 476 7864 818273 c7c61 busybox_old
809199 476 7864 817539 c7983 busybox_unstripped
Denis Vlasenko [Sun, 8 Mar 2009 09:31:28 +0000 (09:31 -0000)]
adding forgotten new file
Denis Vlasenko [Sun, 8 Mar 2009 09:30:56 +0000 (09:30 -0000)]
ftpd: new applet by Adam Tkac
$ size ftpd.o
text data bss dec hex filename
5703 0 0 5703 1647 ftpd.o
Denis Vlasenko [Sun, 8 Mar 2009 01:06:18 +0000 (01:06 -0000)]
website: mention fixes to syslogd
Denis Vlasenko [Sun, 8 Mar 2009 01:00:16 +0000 (01:00 -0000)]
website: announce 1.13.3
Denis Vlasenko [Sat, 7 Mar 2009 01:54:24 +0000 (01:54 -0000)]
halt/reboot/poweroff: improve error reporting
function old new delta
halt_main 207 185 -22
Denis Vlasenko [Fri, 6 Mar 2009 22:48:11 +0000 (22:48 -0000)]
further work on modprobe
function old new delta
gather_options_str - 75 +75
config_file_action 388 413 +25
load_modules_dep 175 192 +17
add_probe 67 72 +5
modprobe_main 494 488 -6
gather_options 89 - -89
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/1 up/down: 122/-95) Total: 27 bytes
Bernhard Reutner-Fischer [Thu, 5 Mar 2009 17:27:39 +0000 (17:27 -0000)]
- test commit
Denis Vlasenko [Thu, 5 Mar 2009 16:32:27 +0000 (16:32 -0000)]
modprobe: rework/speedup by Timo Teras (timo.teras AT iki.fi)
function old new delta
load_modules_dep - 175 +175
helper_get_module - 106 +106
gather_options - 89 +89
add_probe - 67 +67
config_file_action 345 388 +43
get_or_add_modentry - 10 +10
loaded 4 - -4
read_config 239 234 -5
llist_find 34 - -34
add_option 60 - -60
modprobe_main 567 494 -73
do_modprobe 601 273 -328
------------------------------------------------------------------------------
(add/remove: 5/3 grow/shrink: 1/3 up/down: 490/-504) Total: -14 bytes
text data bss dec hex filename
816778 476 7888 825142 c9736 busybox_old
816768 476 7880 825124 c9724 busybox_unstripped
Denis Vlasenko [Thu, 5 Mar 2009 09:26:17 +0000 (09:26 -0000)]
modutils: delete unused global variable
function old new delta
modprobe_main 570 567 -3
insmod_main 101 98 -3
insmod_outputname 4 - -4
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-10) Total: -10 bytes
text data bss dec hex filename
816784 476 7892 825152 c9740 busybox_old
816778 476 7888 825142 c9736 busybox_unstripped
Denis Vlasenko [Thu, 5 Mar 2009 09:21:57 +0000 (09:21 -0000)]
networking/libiproute/*: code shrink by optimizing numeric conversions
and other misc stuff
function old new delta
print_tunnel 660 656 -4
format_host 5 - -5
get_unsigned 70 54 -16
get_u32 70 54 -16
do_iplink 1173 1151 -22
get_prefix 417 393 -24
print_rule 800 771 -29
print_addrinfo 1374 1342 -32
print_route 1745 1709 -36
iprule_modify 905 866 -39
iproute_modify 1105 1048 -57
get_integer 70 - -70
parse_args 1684 1440 -244
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/11 up/down: 0/-594) Total: -594 bytes
text data bss dec hex filename
817378 476 7892 825746 c9992 busybox_old
816784 476 7892 825152 c9740 busybox_unstripped
Denis Vlasenko [Wed, 4 Mar 2009 17:56:00 +0000 (17:56 -0000)]
sendmail: document and fix usage of fd #4, fix check for helper failure.
function old new delta
packed_usage 25663 25694 +31
signal_handler 191 215 +24
kill_helper 22 31 +9
launch_helper 194 184 -10
get_cred_or_die 142 129 -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 64/-23) Total: 41 bytes
Denis Vlasenko [Wed, 4 Mar 2009 14:13:37 +0000 (14:13 -0000)]
wget: --post-data support by Harald Kuthe (harald-tuxbox AT arcor.de)
function old new delta
wget_main 2467 2793 +326
static.wget_longopts 110 122 +12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 338/0) Total: 338 bytes
Denis Vlasenko [Tue, 3 Mar 2009 18:47:56 +0000 (18:47 -0000)]
modprobe: emit "can't open 'modules.dep': (errno)" instead of "module not found"
*: s/can't open %s/can't open '%s'/, it's better to use same string.
function old new delta
do_modprobe 588 601 +13
config_file_action 339 345 +6
modprobe_main 565 570 +5
unable_to_open 14 16 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 26/0) Total: 26 bytes
text data bss dec hex filename
816800 476 7892 825168 c9750 busybox_old
816812 476 7892 825180 c975c busybox_unstripped
Denis Vlasenko [Tue, 3 Mar 2009 14:55:29 +0000 (14:55 -0000)]
ip: in "ip rule add from all table 1", "all" is taken as 0.0.0.0/32,
whereas "any" and "default" would be 0.0.0.0/0. They must be all 0.0.0.0/0.
Closes bug 57.
Denis Vlasenko [Tue, 3 Mar 2009 14:27:36 +0000 (14:27 -0000)]
expr: a bit more robust handling of regexps with groups (closes bug 87)
Denis Vlasenko [Tue, 3 Mar 2009 14:14:44 +0000 (14:14 -0000)]
printf: fix 1.12.0 breakage (from %*d fix). It was misinterpreting "*"
Denis Vlasenko [Tue, 3 Mar 2009 14:09:04 +0000 (14:09 -0000)]
ls: implement -Q and -g (-g was accepted but ignored)
function old new delta
print_name - 198 +198
showfiles 1489 1508 +19
ls_options 30 31 +1
opt_flags 112 108 -4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/1 up/down: 218/-4) Total: 214 bytes
Denis Vlasenko [Tue, 3 Mar 2009 13:20:22 +0000 (13:20 -0000)]
ls: do not follow links with -s (closes bug 33),
display unsigned data with %XXu, not %XXd.
Denis Vlasenko [Tue, 3 Mar 2009 11:55:31 +0000 (11:55 -0000)]
top: make it work again on 2.4 kernels (closes bug 125)
Denis Vlasenko [Mon, 2 Mar 2009 16:12:00 +0000 (16:12 -0000)]
sendmail: improve help text
Denis Vlasenko [Mon, 2 Mar 2009 15:08:06 +0000 (15:08 -0000)]
wget: fix --header handling
Denis Vlasenko [Mon, 2 Mar 2009 14:26:28 +0000 (14:26 -0000)]
syslogd: create logfile with 0666, not 0600.
Denis Vlasenko [Mon, 2 Mar 2009 12:07:15 +0000 (12:07 -0000)]
tr: update testsuite
Denis Vlasenko [Mon, 2 Mar 2009 12:05:57 +0000 (12:05 -0000)]
tr: fix overflow in expand and complement, fix stop after [:class:],
fix order of [:xdigit:], make tr require one param at least.
function old new delta
expand 1743 1849 +106
tr_main 463 518 +55
complement 72 75 +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 164/0) Total: 164 bytes
Denis Vlasenko [Sun, 1 Mar 2009 04:50:18 +0000 (04:50 -0000)]
tr: support [:xdigit:], fix handling of ranges and [x]'s.
add testsuite entry for each of 3 bugs fixed.
function old new delta
static.classes 73 82 +9
expand 1738 1743 +5
complement 74 72 -2
tr_main 472 463 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 14/-11) Total: 3 bytes
Denis Vlasenko [Thu, 26 Feb 2009 12:38:01 +0000 (12:38 -0000)]
runsv: another tiny optimization
function old new delta
startservice 297 288 -9
ctrl 435 426 -9
Denis Vlasenko [Thu, 26 Feb 2009 12:29:59 +0000 (12:29 -0000)]
runsv: small optimization
*: more paranoia around passing NULL to execl[e]
function old new delta
custom 240 221 -19
Denis Vlasenko [Thu, 26 Feb 2009 12:00:52 +0000 (12:00 -0000)]
modutils: oveflow fix
Denis Vlasenko [Thu, 26 Feb 2009 11:21:04 +0000 (11:21 -0000)]
unzip: fix thinko with le/be conv and size (closes bug 129)
awk: make "struct global" hack more robust wrt alignment (closes bug 131)
Denis Vlasenko [Tue, 24 Feb 2009 17:10:24 +0000 (17:10 -0000)]
login: fix buglet introduced by "simplification"
Denis Vlasenko [Tue, 24 Feb 2009 16:47:03 +0000 (16:47 -0000)]
flash_eraseall.c: fix vda's breakage
Bernhard Reutner-Fischer [Tue, 24 Feb 2009 10:05:15 +0000 (10:05 -0000)]
- rephrase helptext for clarity
Bernhard Reutner-Fischer [Tue, 24 Feb 2009 10:03:22 +0000 (10:03 -0000)]
- improve wording
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 16:51:25 +0000 (16:51 -0000)]
- by not calling getpagesize() twice we can save 2 bytes (walter harms)
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 16:21:53 +0000 (16:21 -0000)]
- fix typo (thanks to Peter Kjellerstedt for noticing)
Bernhard Reutner-Fischer [Sun, 22 Feb 2009 10:57:23 +0000 (10:57 -0000)]
- Dual-license the config parser also under "LGLPv2.1 or later"
(Vladimir Dronnikov)
Ned Ludd [Fri, 20 Feb 2009 04:56:00 +0000 (04:56 -0000)]
make modutils compile again
Denis Vlasenko [Thu, 19 Feb 2009 01:25:42 +0000 (01:25 -0000)]
depmod: accept and ignore -r (Linux kernle build needs this)
Denis Vlasenko [Thu, 19 Feb 2009 01:17:12 +0000 (01:17 -0000)]
flash_eraseall: shrink
function old new delta
flash_eraseall_main 1044 1006 -38
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 21:09:07 +0000 (21:09 -0000)]
- add big busybox logo as transparent png
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 15:28:43 +0000 (15:28 -0000)]
- bail out if screen resolution does not match PPM dimensions.
Previously a 640x480 PPM on an e.g. 720x400 console would just segfault when
reading the lines. While this bug should perhaps be fixed to handle such cases
properly we just exit gracefully until somebody is willing to take care of it
properly.
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 15:13:05 +0000 (15:13 -0000)]
- document ppm header and skip whitespace
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 14:05:54 +0000 (14:05 -0000)]
- update TODOs
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 13:42:51 +0000 (13:42 -0000)]
- eliminate globals
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 13:26:29 +0000 (13:26 -0000)]
- make it compile and shrink it a little bit (~-110 bytes)
text data bss dec hex filename
1533 4 0 1537 601 miscutils/flash_eraseall.o.old
1415 4 0 1419 58b miscutils/flash_eraseall.o
- add some FIXMEs
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 13:23:46 +0000 (13:23 -0000)]
- add flash_eraseall
This is the result after converting mtd-utils' flash_eraseall to BB.
The functionality given by this patch almost the same except that this
one does not support long options.
I needed this tool a system which does not have a lot of flash for RFS
and merging this into BB as the only way out.
[bigeasy@]$ ./scripts/bloat-o-meter bb_wo_fl bb_w_fl
function old new delta
flash_eraseall_main - 1072 +1072
show_progress - 62 +62
packed_usage 25156 25176 +20
applet_names 1958 1973 +15
applet_main 2352 2360 +8
target_endian - 4 +4
applet_nameofs 588 590 +2
applet_install_loc 147 148 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 1184/0) Total: 1184 bytes
[bigeasy@]$ size miscutils/flash_eraseall.o
text data bss dec hex filename
1586 4 0 1590 636 miscutils/flash_eraseall.o
Signed-off-by: Benedigt Spranger <b.spranger@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Bernhard Reutner-Fischer [Mon, 16 Feb 2009 12:36:50 +0000 (12:36 -0000)]
- PPMs can have comments in the header.
Thanks to Denys for pointing that out. (~+7b)
Denis Vlasenko [Sun, 15 Feb 2009 12:40:30 +0000 (12:40 -0000)]
ash: make dot command search current directory first, as bash does.
Denis Vlasenko [Sun, 15 Feb 2009 12:01:14 +0000 (12:01 -0000)]
Make "shadowed" numeric config entries (ones which depend on
other options which are off) to have the value of 0, not "".
Denis Vlasenko [Sun, 15 Feb 2009 05:51:19 +0000 (05:51 -0000)]
volume_id: abort early on read failures.
should help with probing missing fdd's
Denis Vlasenko [Sat, 14 Feb 2009 20:58:13 +0000 (20:58 -0000)]
init: fix compile breakage with '# CONFIG_FEATURE_KILL_REMOVED is not set'
runsvdir.c: fix typo in comment
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 13:17:48 +0000 (13:17 -0000)]
- improve wording
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:58:48 +0000 (12:58 -0000)]
- improve helptext
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:36:16 +0000 (12:36 -0000)]
- misc untested shrinkage:
$ ./scripts/bloat-o-meter _bb_un.oorig busybox_unstripped
function old new delta
fbsplash_main 595 985 +390
fb_drawimage 493 - -493
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 390/-493) Total: -103 bytes
$ size miscutils/fbsplash.o*
text data bss dec hex filename
2019 0 0 2019 7e3 miscutils/fbsplash.o.oorig
1857 0 0 1857 741 miscutils/fbsplash.o.new
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:19:37 +0000 (12:19 -0000)]
- improve helptext of obsolete devfs stuff..
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:13:13 +0000 (12:13 -0000)]
- cosmetic typo in helptext
Denis Vlasenko [Sat, 14 Feb 2009 01:36:11 +0000 (01:36 -0000)]
killall and sestatus also need ARGVN scanning
Denis Vlasenko [Fri, 13 Feb 2009 00:02:54 +0000 (00:02 -0000)]
mdev: if /sys/class/block exists, don't scan /sys/block
Denis Vlasenko [Sat, 7 Feb 2009 22:30:39 +0000 (22:30 -0000)]
function old new delta
kill_main 706 884 +178
Denis Vlasenko [Thu, 5 Feb 2009 12:38:21 +0000 (12:38 -0000)]
httpd: tiny optimization
Denis Vlasenko [Wed, 4 Feb 2009 23:43:44 +0000 (23:43 -0000)]
httpd:
Kill config options by making them always on:
FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP
FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES
This makes httpd.c remotely readable - it had ~125 #ifdefs, now it has ~100.
The growth on a .config with all FEATURE_HTTPDs off is:
function old new delta
send_file_and_exit - 269 +269
parse_conf 683 763 +80
free_llist - 32 +32
httpd_main 427 454 +27
sighup_handler - 15 +15
handle_incoming_and_exit 1110 905 -205
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 2/1 up/down: 423/-205) Total: 218 bytes
Denis Vlasenko [Wed, 4 Feb 2009 00:01:07 +0000 (00:01 -0000)]
sendmail: remove erroneous usage lines
Denis Vlasenko [Tue, 3 Feb 2009 23:59:41 +0000 (23:59 -0000)]
crond,crontab: make cron directory location configurable
Denis Vlasenko [Mon, 2 Feb 2009 23:43:57 +0000 (23:43 -0000)]
telnetd: do not advertise TELNET_LFLOW, we do not support
it properly.
Denis Vlasenko [Mon, 2 Feb 2009 10:48:06 +0000 (10:48 -0000)]
udhcpd: add code which rejects lease files with suspicious or old timestamp.
*: s/time(0)/time(NULL)/g
Denis Vlasenko [Mon, 2 Feb 2009 00:15:57 +0000 (00:15 -0000)]
login: small simplification by Walter Harms. -10 bytes
Denis Vlasenko [Mon, 2 Feb 2009 00:15:00 +0000 (00:15 -0000)]
login: cleanup work by Walter Harms. No logic changes.
Denis Vlasenko [Sun, 1 Feb 2009 00:40:45 +0000 (00:40 -0000)]
dhcpd,dumpleases: write and use 64-bit current time in lease file.
without it, determination of remaining lease time is unreliable.
Yes, it's costly in code size, but without it, dumpleases output
is misleading!
function old new delta
read_leases 143 282 +139
dumpleases_main 447 572 +125
write_leases 193 233 +40
hton64 29 58 +29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 333/0) Total: 333 bytes
Denis Vlasenko [Sat, 31 Jan 2009 23:33:54 +0000 (23:33 -0000)]
modutils-24: code shrink
function old new delta
helper_create_alloced_section - 117 +117
print_load_map 474 450 -24
bb_init_module_24 4615 4545 -70
obj_create_alloced_section 131 30 -101
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 117/-195) Total: -78 bytes
Denis Vlasenko [Sat, 31 Jan 2009 21:45:57 +0000 (21:45 -0000)]
ionice: new applet, adapted from Linux kernel' example by Walter Harms
text data bss dec hex filename
1050316 924 10952
1062192 103530 busybox_old
1050758 924 10952
1062634 1036ea busybox_unstripped
Denis Vlasenko [Sat, 31 Jan 2009 20:08:21 +0000 (20:08 -0000)]
brctl: fix compilation on 2.4.x kernels
Denis Vlasenko [Sat, 31 Jan 2009 19:26:12 +0000 (19:26 -0000)]
init: remove wait() loop on restart, it may be dangerous
Denis Vlasenko [Sat, 31 Jan 2009 18:55:54 +0000 (18:55 -0000)]
init: fix a bug where on reload order of entries might be wrong
function old new delta
run_shutdown_and_kill_processes - 97 +97
pause_and_low_level_reboot - 48 +48
run_actions 81 107 +26
restart_handler 56 81 +25
new_init_action 137 150 +13
run 576 579 +3
open_stdio_to_tty 110 98 -12
check_delayed_sigs 195 170 -25
waitfor 354 318 -36
low_level_reboot 53 - -53
kill_all_processes 115 - -115
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/3 up/down: 212/-241) Total: -29 bytes
Denis Vlasenko [Sat, 31 Jan 2009 14:22:24 +0000 (14:22 -0000)]
modutils-24: use xasprintf and xzalloc where appropriate,
remove unreachanble code
build system: correct some dependencies in config system
init: convert one #if into if() - for Rob.
function old new delta
obj_string_patch 136 129 -7
bb_init_module_24 4759 4615 -144
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-151) Total: -151 bytes
Denis Vlasenko [Sat, 31 Jan 2009 01:07:05 +0000 (01:07 -0000)]
init: small correction in a comment
Denis Vlasenko [Sat, 31 Jan 2009 01:03:45 +0000 (01:03 -0000)]
init: major improvement in documentation and signal handling.
Lots of nasty, but hard to trip, races are fixed.
text data bss dec hex filename
1038828 924 10932
1050684 10083c busybox_old
1038787 924 10932
1050643 100813 busybox_unstripped
Denis Vlasenko [Sat, 31 Jan 2009 01:02:07 +0000 (01:02 -0000)]
init: preparatory patch, no code changes
Denis Vlasenko [Thu, 29 Jan 2009 02:01:04 +0000 (02:01 -0000)]
init: reinstate proper handling of !ENABLE_FEATURE_USE_INITTAB
Denis Vlasenko [Wed, 28 Jan 2009 23:56:31 +0000 (23:56 -0000)]
init: reduce ifdef forest (specially for Rob's happiness)
Bernhard Reutner-Fischer [Tue, 27 Jan 2009 18:54:41 +0000 (18:54 -0000)]
- be gentle to syntax highlighting
Bernhard Reutner-Fischer [Tue, 27 Jan 2009 12:56:33 +0000 (12:56 -0000)]
- update Michele address
Denis Vlasenko [Sun, 25 Jan 2009 01:00:15 +0000 (01:00 -0000)]
awk: in BEGIN section $0 should be "", not "0".
Denis Vlasenko [Sat, 24 Jan 2009 21:23:41 +0000 (21:23 -0000)]
traceroute: allow -w NUM as small as 1