oweals/busybox.git
14 years ago[un]expand: unicode support
Tomas Heinrich [Mon, 4 Jan 2010 15:21:31 +0000 (16:21 +0100)]
[un]expand: unicode support

function                                             old     new   delta
expand_main                                          633     663     +30

Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoar: heh, there *was* "-1" already...
Denys Vlasenko [Mon, 4 Jan 2010 13:32:31 +0000 (14:32 +0100)]
ar: heh, there *was* "-1" already...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoar: fix two bugs, one added by prev comment and other we SEGV with no params
Denys Vlasenko [Mon, 4 Jan 2010 13:30:37 +0000 (14:30 +0100)]
ar: fix two bugs, one added by prev comment and other we SEGV with no params

cpio: use optind less

function                                             old     new   delta
ar_main                                              189     184      -5
cpio_main                                            549     533     -16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-21)             Total: -21 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: remove some uses of argc
Denys Vlasenko [Mon, 4 Jan 2010 13:15:38 +0000 (14:15 +0100)]
*: remove some uses of argc

function                                             old     new   delta
whoami_main                                           34      37      +3
logname_main                                          60      63      +3
hostid_main                                           35      38      +3
ttysize_main                                         136     135      -1
nmeter_main                                          673     672      -1
logger_main                                          387     386      -1
uuencode_main                                        330     328      -2
ifupdown_main                                       2125    2123      -2
mesg_main                                            158     155      -3
free_main                                            333     330      -3
cal_main                                             902     899      -3
acpid_main                                           443     440      -3
ar_main                                              196     189      -7
find_main                                            476     467      -9
ifconfig_main                                       1235    1221     -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49)            Total: -40 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: make 2 more "int argc"'s unused; more saved if !DESKTOP
Denys Vlasenko [Mon, 4 Jan 2010 12:16:08 +0000 (13:16 +0100)]
*: make 2 more "int argc"'s unused; more saved if !DESKTOP

function                                             old     new   delta
sync_main                                             18      20      +2
tty_main                                              90      87      -3
iprule_list                                           83      79      -4

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohush: fix exitcodes of killed processes
Denys Vlasenko [Mon, 4 Jan 2010 10:37:09 +0000 (11:37 +0100)]
hush: fix exitcodes of killed processes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add -w "watch" option, useful for debugging to look at our own data
Denys Vlasenko [Sun, 3 Jan 2010 23:19:13 +0000 (00:19 +0100)]
ntpd: add -w "watch" option, useful for debugging to look at our own data

Also fixed a small buglet discovered using -w

function                                             old     new   delta
recv_and_process_peer_pkt                            895     944     +49
select_and_cluster                                  1132    1150     +18
packed_usage                                       26769   26767      -2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: fix problem handling tarballs with chksums prepended by spaces
Denys Vlasenko [Sun, 3 Jan 2010 22:41:11 +0000 (23:41 +0100)]
tar: fix problem handling tarballs with chksums prepended by spaces

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fix comment, no code changes
Denys Vlasenko [Sun, 3 Jan 2010 20:52:46 +0000 (21:52 +0100)]
ntpd: fix comment, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: try to avoid using libm. -1.2k if we succeed
Denys Vlasenko [Sun, 3 Jan 2010 20:06:27 +0000 (21:06 +0100)]
ntpd: try to avoid using libm. -1.2k if we succeed

uclibc's sqrt(x) is pathetic, 411 bytes? it can be ~100...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: remove an old hack for faster initialization
Denys Vlasenko [Sun, 3 Jan 2010 11:00:26 +0000 (12:00 +0100)]
ntpd: remove an old hack for faster initialization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: better selection of initial sync; fewer gettimeofday calls
Denys Vlasenko [Sun, 3 Jan 2010 07:59:59 +0000 (08:59 +0100)]
ntpd: better selection of initial sync; fewer gettimeofday calls

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoupdate link to the comp.lang.c FAQ
Denys Vlasenko [Sat, 2 Jan 2010 17:57:45 +0000 (18:57 +0100)]
update link to the comp.lang.c FAQ

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years ago*: do not assign to stdout/stderr, it's not portable.
Denys Vlasenko [Sat, 2 Jan 2010 17:49:22 +0000 (18:49 +0100)]
*: do not assign to stdout/stderr, it's not portable.

Based on patch by Aaron Carroll <xaaronc@gmail.com>

function                                             old     new   delta
time_main                                           1062    1052     -10
cpio_main                                            563     549     -14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fix jitter calculations and status propagation
Denys Vlasenko [Sat, 2 Jan 2010 14:57:07 +0000 (15:57 +0100)]
ntpd: fix jitter calculations and status propagation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowatch: more compatible screen format
Denys Vlasenko [Sat, 2 Jan 2010 00:57:32 +0000 (01:57 +0100)]
watch: more compatible screen format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: speed up reaction to poll interval decrease
Denys Vlasenko [Sat, 2 Jan 2010 00:50:16 +0000 (01:50 +0100)]
ntpd: speed up reaction to poll interval decrease

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: improve frequency filtering
Denys Vlasenko [Fri, 1 Jan 2010 23:36:43 +0000 (00:36 +0100)]
ntpd: improve frequency filtering

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: restore forgotten delay sanitization
Denys Vlasenko [Fri, 1 Jan 2010 21:23:27 +0000 (22:23 +0100)]
ntpd: restore forgotten delay sanitization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add a comment, no code changes
Denys Vlasenko [Fri, 1 Jan 2010 20:59:49 +0000 (21:59 +0100)]
ntpd: add a comment, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: disable unused code; show kernel's clock drift correction
Denys Vlasenko [Fri, 1 Jan 2010 18:56:16 +0000 (19:56 +0100)]
ntpd: disable unused code; show kernel's clock drift correction

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: reduce poll interval increase rate
Denys Vlasenko [Fri, 1 Jan 2010 17:12:06 +0000 (18:12 +0100)]
ntpd: reduce poll interval increase rate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: replace openntp's clock discipline with ntpd's
Denys Vlasenko [Fri, 1 Jan 2010 15:46:17 +0000 (16:46 +0100)]
ntpd: replace openntp's clock discipline with ntpd's

It seems to be much more precise. +2.2k:
   text    data     bss     dec     hex filename
   4670       0       0    4670    123e busybox.t2/networking/ntpd.o
   6838       0       0    6838    1ab6 busybox.t3/networking/ntpd.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: ntpd.c -> ntpd_simple.c
Denys Vlasenko [Fri, 1 Jan 2010 15:45:43 +0000 (16:45 +0100)]
ntpd: ntpd.c -> ntpd_simple.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: preparatory patches, no functional changes
Denys Vlasenko [Wed, 30 Dec 2009 17:38:05 +0000 (18:38 +0100)]
ntpd: preparatory patches, no functional changes

function                                             old     new   delta
ntp_init                                             354     357      +3
ntpd_main                                           2945    2898     -47

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agodc: make "dc -1.23 ..." work
Denys Vlasenko [Wed, 30 Dec 2009 17:37:08 +0000 (18:37 +0100)]
dc: make "dc -1.23 ..." work

function                                             old     new   delta
stack_machine                                         97     103      +6
dc_main                                              121     110     -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 9/-58)             Total: -49 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: fx incorrect offset display when stepping
Denys Vlasenko [Fri, 18 Dec 2009 17:50:29 +0000 (18:50 +0100)]
ntpd: fx incorrect offset display when stepping

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: fix recently added SEGV on "tar" w/o args
Denys Vlasenko [Fri, 18 Dec 2009 11:36:07 +0000 (12:36 +0100)]
tar: fix recently added SEGV on "tar" w/o args

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: field renames and style fixes, no code changes
Denys Vlasenko [Thu, 17 Dec 2009 22:29:33 +0000 (23:29 +0100)]
ntpd: field renames and style fixes, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: eliminate one time(NULL) call
Denys Vlasenko [Thu, 17 Dec 2009 11:17:41 +0000 (12:17 +0100)]
ntpd: eliminate one time(NULL) call

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotar: add support for --overwrite. +70 bytes.
Denys Vlasenko [Wed, 16 Dec 2009 22:18:59 +0000 (23:18 +0100)]
tar: add support for --overwrite. +70 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibunarchive: move dpkg-specific things into dpkg.c. 0 byte size differences
Denys Vlasenko [Wed, 16 Dec 2009 21:46:01 +0000 (22:46 +0100)]
libunarchive: move dpkg-specific things into dpkg.c. 0 byte size differences

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agohttpd -m: output salted MD5 hash. By (forrest AT hifulltech.com)
Denys Vlasenko [Wed, 16 Dec 2009 01:28:50 +0000 (02:28 +0100)]
httpd -m: output salted MD5 hash. By (forrest AT hifulltech.com)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: dont include NFS headers if not needed; drop support for Linux <2.2.0
Denys Vlasenko [Wed, 16 Dec 2009 01:06:56 +0000 (02:06 +0100)]
mount: dont include NFS headers if not needed; drop support for Linux <2.2.0

function                                             old     new   delta
nfs_err_stat                                           -      18     +18
nfs_err_errnum                                         -      18     +18
nfs_strerror                                          56      50      -6
nfsmount                                            3567    3541     -26
nfs_errtbl                                            80       -     -80
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/2 up/down: 36/-112)           Total: -76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: fix goof in last commit; clear errno since we use perror_msg later
Denys Vlasenko [Tue, 15 Dec 2009 15:36:14 +0000 (16:36 +0100)]
mount: fix goof in last commit; clear errno since we use perror_msg later

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoswitch_root: more clear error messages
Denys Vlasenko [Tue, 15 Dec 2009 00:55:55 +0000 (01:55 +0100)]
switch_root: more clear error messages

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: if we mount //host/xxx, add ip=IPADDR to options
Denys Vlasenko [Tue, 15 Dec 2009 00:28:59 +0000 (01:28 +0100)]
mount: if we mount //host/xxx, add ip=IPADDR to options

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: fix logically inverted FEATURE_EXTRA_QUIET check
Denys Vlasenko [Mon, 14 Dec 2009 23:34:59 +0000 (00:34 +0100)]
init: fix logically inverted FEATURE_EXTRA_QUIET check

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: use applet_name instead of "init" - we can be linuxrc
Denys Vlasenko [Mon, 14 Dec 2009 02:16:28 +0000 (03:16 +0100)]
init: use applet_name instead of "init" - we can be linuxrc

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: for paranoid reasons, restore SIGCONT too.
Denys Vlasenko [Mon, 14 Dec 2009 02:08:30 +0000 (03:08 +0100)]
init: for paranoid reasons, restore SIGCONT too.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: fix "while true; do reboot; done" bug. +15 bytes. Closes bug 781
Denys Vlasenko [Mon, 14 Dec 2009 02:03:29 +0000 (03:03 +0100)]
init: fix "while true; do reboot; done" bug. +15 bytes. Closes bug 781

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoinit: make FEATURE_EXTRA_QUIET more consistent. +1 byte
Denys Vlasenko [Mon, 14 Dec 2009 00:32:11 +0000 (01:32 +0100)]
init: make FEATURE_EXTRA_QUIET more consistent. +1 byte

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agocrond: do not log info messages at LOG_ERR. Closes bug 681. +62 bytes.
Denys Vlasenko [Sun, 13 Dec 2009 16:42:49 +0000 (17:42 +0100)]
crond: do not log info messages at LOG_ERR. Closes bug 681. +62 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agosort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes
Denys Vlasenko [Sun, 13 Dec 2009 01:09:22 +0000 (02:09 +0100)]
sort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agorandomconfig fixes
Denys Vlasenko [Sat, 12 Dec 2009 01:42:35 +0000 (02:42 +0100)]
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: needs find_mount_point.o
Denys Vlasenko [Fri, 11 Dec 2009 14:01:54 +0000 (15:01 +0100)]
mount: needs find_mount_point.o

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostty: code shrink -44 bytes
Denys Vlasenko [Fri, 11 Dec 2009 14:00:17 +0000 (15:00 +0100)]
stty: code shrink -44 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agostty: fix columns command. closes bug 791.
Denys Vlasenko [Fri, 11 Dec 2009 13:17:02 +0000 (14:17 +0100)]
stty: fix columns command. closes bug 791.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowget: fix signedness in the compare (paranoia only, G.content_len is never < 0)
Denys Vlasenko [Fri, 11 Dec 2009 13:12:28 +0000 (14:12 +0100)]
wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agowget: check for close success; fix chunked; do not bother to send QUIT to ftp
Denys Vlasenko [Fri, 11 Dec 2009 11:36:10 +0000 (12:36 +0100)]
wget: check for close success; fix chunked; do not bother to send QUIT to ftp

Also, random fixes to use %u for unsigned quantities. -14 bytes in wget.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoreplace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest
Denys Vlasenko [Fri, 11 Dec 2009 01:21:10 +0000 (02:21 +0100)]
replace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: "already mounted" msg appears only if -v
Denys Vlasenko [Thu, 10 Dec 2009 20:32:28 +0000 (21:32 +0100)]
mount: "already mounted" msg appears only if -v

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: trivial optimization -6 bytes
Denys Vlasenko [Thu, 10 Dec 2009 20:27:13 +0000 (21:27 +0100)]
ash: trivial optimization -6 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolsusb: new applet. +400 bytes
Souf Oued [Mon, 7 Dec 2009 00:37:34 +0000 (01:37 +0100)]
lsusb: new applet. +400 bytes

Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolspci: new applet. +573 bytes
Souf Oued [Sat, 5 Dec 2009 16:56:25 +0000 (17:56 +0100)]
lspci: new applet. +573 bytes

Signed-off-by: Souf Oued <souf_oued@yahoo.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoreplace /bin/mdev with /sbin/mdev
Denys Vlasenko [Sat, 5 Dec 2009 14:59:05 +0000 (15:59 +0100)]
replace /bin/mdev with /sbin/mdev

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: prevent second mount -a from mounting everything again
Denys Vlasenko [Sat, 5 Dec 2009 03:25:19 +0000 (04:25 +0100)]
mount: prevent second mount -a from mounting everything again

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotrim usage text. -238 bytes
Denys Vlasenko [Sat, 5 Dec 2009 01:44:34 +0000 (02:44 +0100)]
trim usage text. -238 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: fix double comma in initializer
Denys Vlasenko [Sat, 5 Dec 2009 01:01:25 +0000 (02:01 +0100)]
ash: fix double comma in initializer

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: implement set -o pipefail (conditional on bash compat). +39 bytes
Michael Abbott [Fri, 4 Dec 2009 22:03:29 +0000 (23:03 +0100)]
ash: implement set -o pipefail (conditional on bash compat). +39 bytes

Signed-off-by: Michael Abbott <michael@araneidae.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: preparatory work for pipefail and code shrink. -44 bytes
Denys Vlasenko [Fri, 4 Dec 2009 22:02:27 +0000 (23:02 +0100)]
ash: preparatory work for pipefail and code shrink. -44 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoash: re-enable SIGHUP on entry. Closes bug 771.
Denys Vlasenko [Fri, 4 Dec 2009 03:18:31 +0000 (04:18 +0100)]
ash: re-enable SIGHUP on entry. Closes bug 771.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: add support for -O list. +44 bytes
Michael Abbott [Fri, 4 Dec 2009 02:33:07 +0000 (03:33 +0100)]
mount: add support for -O list. +44 bytes

Signed-off-by: Michael Abbott <michael@araneidae.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agogrep: fix a case when -o loops forever
Denys Vlasenko [Fri, 4 Dec 2009 01:48:14 +0000 (02:48 +0100)]
grep: fix a case when -o loops forever

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: remove dynamic dns resolution code, too complex. -69 bytes
Denys Vlasenko [Wed, 2 Dec 2009 23:20:58 +0000 (00:20 +0100)]
ntpd: remove dynamic dns resolution code, too complex. -69 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: try to avoid DNS requests *during* NTP roundtrip. +23 bytes
Denys Vlasenko [Wed, 2 Dec 2009 22:46:25 +0000 (23:46 +0100)]
ntpd: try to avoid DNS requests *during* NTP roundtrip. +23 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: implement -x. shrink code a bit. -69 bytes
Denys Vlasenko [Wed, 2 Dec 2009 22:17:45 +0000 (23:17 +0100)]
ntpd: implement -x. shrink code a bit. -69 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: fix malloc-too-short bug; code shrink -76 bytes
Denys Vlasenko [Wed, 2 Dec 2009 12:43:06 +0000 (13:43 +0100)]
ntpd: fix malloc-too-short bug; code shrink -76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: fix "synced" state detection
Denys Vlasenko [Wed, 2 Dec 2009 11:29:06 +0000 (12:29 +0100)]
ntpd: fix "synced" state detection

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: continuing small message tweaks and the like. -29 bytes
Denys Vlasenko [Wed, 2 Dec 2009 01:30:31 +0000 (02:30 +0100)]
ntpd: continuing small message tweaks and the like. -29 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agohtpd: better logging; removed some unused code and data. -212 bytes
Denys Vlasenko [Wed, 2 Dec 2009 00:51:24 +0000 (01:51 +0100)]
htpd: better logging; removed some unused code and data. -212 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: make it work w/o -g too :(
Denys Vlasenko [Tue, 1 Dec 2009 01:32:01 +0000 (02:32 +0100)]
ntpd: make it work w/o -g too :(

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: straighten up a bit of code in varvalue()
Denys Vlasenko [Mon, 30 Nov 2009 11:16:17 +0000 (12:16 +0100)]
ash: straighten up a bit of code in varvalue()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotouch: needs another fix after last utimes() fixes
Denys Vlasenko [Mon, 30 Nov 2009 10:36:14 +0000 (11:36 +0100)]
touch: needs another fix after last utimes() fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoawk: fix an incorrect casting to string (bug 725). -44 bytes.
Denys Vlasenko [Mon, 30 Nov 2009 00:15:04 +0000 (01:15 +0100)]
awk: fix an incorrect casting to string (bug 725). -44 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoawk: preparatory patch, no essential code changes. -13 bytes.
Denys Vlasenko [Mon, 30 Nov 2009 00:14:16 +0000 (01:14 +0100)]
awk: preparatory patch, no essential code changes. -13 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agofix improper utimes usage
Denys Vlasenko [Sun, 29 Nov 2009 18:40:36 +0000 (19:40 +0100)]
fix improper utimes usage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotar: add a test for latest fix
Denys Vlasenko [Sun, 29 Nov 2009 18:09:29 +0000 (19:09 +0100)]
tar: add a test for latest fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotar: revert part of last change. -39 bytes
Denys Vlasenko [Sun, 29 Nov 2009 15:28:33 +0000 (16:28 +0100)]
tar: revert part of last change. -39 bytes

It looks like GNU "tar cf file file" _does_ save file as if
it is a hardlink, when it meets it for the second time.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotar: fix bug 673 (misdetection of repeated dir as hardlink). +92 bytes
Denys Vlasenko [Sun, 29 Nov 2009 06:45:33 +0000 (07:45 +0100)]
tar: fix bug 673 (misdetection of repeated dir as hardlink). +92 bytes

While at it, remove many superfluous ops on unpack:
mkdir("."), lots of umask() calls. Can remove more
by caching username->uid.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: more cosmetics and cleanups
Denys Vlasenko [Sun, 29 Nov 2009 01:18:13 +0000 (02:18 +0100)]
ash: more cosmetics and cleanups

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: cosmetics, no code changes
Denys Vlasenko [Sun, 29 Nov 2009 00:41:11 +0000 (01:41 +0100)]
ash: cosmetics, no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: remove last "signed char"; make SIT() clearer. -12 bytes
Denys Vlasenko [Sun, 29 Nov 2009 00:37:46 +0000 (01:37 +0100)]
ash: remove last "signed char"; make SIT() clearer. -12 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: randmconfig fix
Denys Vlasenko [Sat, 28 Nov 2009 23:12:30 +0000 (00:12 +0100)]
ash: randmconfig fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoash: remake strange signed char machinery to be unsigned. -57 bytes
Denys Vlasenko [Sat, 28 Nov 2009 21:14:02 +0000 (22:14 +0100)]
ash: remake strange signed char machinery to be unsigned. -57 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years ago*: remove a few more cases of argc usage. -89 bytes.
Denys Vlasenko [Sat, 28 Nov 2009 14:18:53 +0000 (15:18 +0100)]
*: remove a few more cases of argc usage. -89 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoflash_eraseall: stop using obsolete mtd/jffs2-user.h; code shrink
Denys Vlasenko [Fri, 27 Nov 2009 12:26:17 +0000 (13:26 +0100)]
flash_eraseall: stop using obsolete mtd/jffs2-user.h; code shrink

function                                             old     new   delta
show_progress                                         68      67      -1
flash_eraseall_main                                 1007     882    -125
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-126)           Total: -126 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: make it NOMMU-safe; ash: exclude it on NOMMU builds
Denys Vlasenko [Fri, 27 Nov 2009 01:35:15 +0000 (02:35 +0100)]
ntpd: make it NOMMU-safe; ash: exclude it on NOMMU builds

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoudp_io: fix two more potential cases of unaligned accesses. 0 code size changes.
Denys Vlasenko [Thu, 26 Nov 2009 15:52:25 +0000 (16:52 +0100)]
udp_io: fix two more potential cases of unaligned accesses. 0 code size changes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agoping: fix unaligned access. closes bug 745.
Denys Vlasenko [Thu, 26 Nov 2009 14:26:31 +0000 (15:26 +0100)]
ping: fix unaligned access. closes bug 745.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agorunlevel: -2 bytes
Denys Vlasenko [Thu, 26 Nov 2009 14:26:14 +0000 (15:26 +0100)]
runlevel: -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: trivial -2 byte code optimization
Denys Vlasenko [Thu, 26 Nov 2009 06:11:12 +0000 (07:11 +0100)]
ntpd: trivial -2 byte code optimization

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agosplit: handle - as "use stdin". +13 bytes. Closes bug 741.
Denys Vlasenko [Thu, 26 Nov 2009 04:43:16 +0000 (05:43 +0100)]
split: handle - as "use stdin". +13 bytes. Closes bug 741.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agobuild system: fix for coarse mtime problem
Denys Vlasenko [Thu, 26 Nov 2009 04:25:24 +0000 (05:25 +0100)]
build system: fix for coarse mtime problem

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: and real handling for -N, show usage w/o options; trim text
Denys Vlasenko [Wed, 25 Nov 2009 13:52:47 +0000 (14:52 +0100)]
ntpd: and real handling for -N, show usage w/o options; trim text

function                                             old     new   delta
ntp_init                                             317     348     +31
bb_msg_you_must_be_root                                -      17     +17
xsocket                                               66      76     +10
changepath                                           195     194      -1
bb_msg_perm_denied_are_you_root                       35      34      -1
send_tree                                            355     353      -2
count_lines                                           74      72      -2
must_be_root                                          17       -     -17
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 58/-23)             Total: 35 bytes
   text   data    bss    dec    hexfilename
 832873    441   7548 840862  cd49ebusybox_old
 832839    441   7548 840828  cd47cbusybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agobuild system: more fixes to parallel build
Denys Vlasenko [Tue, 24 Nov 2009 23:22:31 +0000 (00:22 +0100)]
build system: more fixes to parallel build

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agobuild system: fix parallel make
Denys Vlasenko [Tue, 24 Nov 2009 21:23:21 +0000 (22:23 +0100)]
build system: fix parallel make

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: locally bind every peer socket. +22 bytes
Denys Vlasenko [Tue, 24 Nov 2009 15:03:47 +0000 (16:03 +0100)]
ntpd: locally bind every peer socket. +22 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agontpd: fix vda's breakage
Denys Vlasenko [Tue, 24 Nov 2009 13:43:20 +0000 (14:43 +0100)]
ntpd: fix vda's breakage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 years agotraceroute6: restore port after probing
Denys Vlasenko [Tue, 24 Nov 2009 13:10:06 +0000 (14:10 +0100)]
traceroute6: restore port after probing

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>