oweals/busybox.git
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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 years agofix trivial compile breakage
Denys Vlasenko [Tue, 24 Nov 2009 13:06:04 +0000 (14:06 +0100)]
fix trivial compile breakage

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: use MSG_DONTWAIT; better readability
Denys Vlasenko [Tue, 24 Nov 2009 13:04:15 +0000 (14:04 +0100)]
ntpd: use MSG_DONTWAIT; better readability

function                                             old     new   delta
gettime_fp                                             -      39     +39
ntpd_main                                           3214    3199     -15
gettime                                               47       -     -47
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 39/-62)            Total: -23 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontp: simplifications; libbb: simpler resolution of numeric hostnames
Denys Vlasenko [Tue, 24 Nov 2009 06:07:42 +0000 (07:07 +0100)]
ntp: simplifications; libbb: simpler resolution of numeric hostnames

function                                             old     new   delta
str2sockaddr                                         405     567    +162
ntp_init                                             310     317      +7
scale_interval                                        58      59      +1
error_interval                                        22      23      +1
ntpd_main                                           3257    3214     -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 171/-43)           Total: 128 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agops: add comment about -T
Denys Vlasenko [Tue, 24 Nov 2009 02:52:24 +0000 (03:52 +0100)]
ps: add comment about -T

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute: simplify code a bit
Denys Vlasenko [Tue, 24 Nov 2009 01:17:13 +0000 (02:17 +0100)]
traceroute: simplify code a bit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agolibunarchive: fix reversed test for older/newer
Denys Vlasenko [Tue, 24 Nov 2009 00:16:12 +0000 (01:16 +0100)]
libunarchive: fix reversed test for older/newer

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: add -q option. By Adam Tkac.
Denys Vlasenko [Mon, 23 Nov 2009 15:27:16 +0000 (16:27 +0100)]
ntpd: add -q option. By Adam Tkac.

function                                             old     new   delta
settime                                              347     375     +28
packed_usage                                       26681   26693     +12
ntpd_main                                           3282    3251     -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 40/-31)              Total: 9 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute: fix help text to not show -6 when traceroute6 is off
Denys Vlasenko [Mon, 23 Nov 2009 05:34:04 +0000 (06:34 +0100)]
traceroute: fix help text to not show -6 when traceroute6 is off

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute6: new applet by Leonid Lisovskiy. +1562 bytes
Leonid Lisovskiy [Mon, 23 Nov 2009 05:20:09 +0000 (06:20 +0100)]
traceroute6: new applet by Leonid Lisovskiy. +1562 bytes

Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agotraceroute: cleanup preparing it for traceroute6. -17 bytes
Denys Vlasenko [Mon, 23 Nov 2009 05:15:38 +0000 (06:15 +0100)]
traceroute: cleanup preparing it for traceroute6. -17 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agood: fix -tx without length spec
Denys Vlasenko [Sun, 22 Nov 2009 14:37:16 +0000 (15:37 +0100)]
od: fix -tx without length spec

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agontpd: new applet by Adam Tkac. +5k.
Adam Tkac [Sun, 22 Nov 2009 02:43:55 +0000 (03:43 +0100)]
ntpd: new applet by Adam Tkac. +5k.

Signed-off-by: Adam Tkac <vonsch@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoflashcp: new applet by Stefan Seyfried. +900 bytes
Stefan Seyfried [Sat, 21 Nov 2009 17:32:19 +0000 (18:32 +0100)]
flashcp: new applet by Stefan Seyfried. +900 bytes

Signed-off-by: Stefan Seyfried <stefan.seyfried@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agomount: clean up #defines. No code changes
Denys Vlasenko [Sat, 21 Nov 2009 16:14:08 +0000 (17:14 +0100)]
mount: clean up #defines. No code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoping: use |=, not =, when combine option bit mask
Denys Vlasenko [Sat, 21 Nov 2009 14:44:56 +0000 (15:44 +0100)]
ping: use |=, not =, when combine option bit mask

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agofix fallout from isprint() changes
Denys Vlasenko [Fri, 20 Nov 2009 18:14:19 +0000 (19:14 +0100)]
fix fallout from isprint() changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 years agoping6: do not play dirty tricks with argv
Denys Vlasenko [Fri, 20 Nov 2009 17:12:12 +0000 (18:12 +0100)]
ping6: do not play dirty tricks with argv

function                                             old     new   delta
common_ping_main                                       -     368    +368
ping6_main                                            30      14     -16
ping_main                                            370      11    -359
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 368/-375)           Total: -7 bytes

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