Denys Vlasenko [Mon, 22 Nov 2010 04:30:54 +0000 (05:30 +0100)]
nc: fix SEGV on -v when NC_EXTRA is off
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Frysinger [Mon, 22 Nov 2010 03:57:37 +0000 (04:57 +0100)]
inetd: if argv[0] is not specified, set it to program name
With inetd.conf files that skip argv[], inetd execs programs with argc==0.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Shal [Mon, 22 Nov 2010 02:49:18 +0000 (03:49 +0100)]
lineedit: fix tab-completion of filenames with spaces
Using ash in busybox git version
dea28e1e, tab completion doesn't seem
to work properly for filenames that have special characters (such as
spaces) in them. For example, with filenames "foo bar" and "foo zap",
typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then
continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not
correct (the 'b' is duplicated).
Signed-off-by: Mike Shal <marfey@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 22 Nov 2010 02:15:21 +0000 (03:15 +0100)]
patch: remove out-of-file build machinery
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 21 Nov 2010 21:10:07 +0000 (22:10 +0100)]
gen_build_files.sh: restore deleted comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 21 Nov 2010 17:11:40 +0000 (18:11 +0100)]
cmp: with -s, do not report open errors
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 21 Nov 2010 04:54:28 +0000 (05:54 +0100)]
patch: simplify double list helpers
function old new delta
dlist_free - 29 +29
fail_hunk 130 132 +2
patch_main 1987 1982 -5
dlist_add 59 54 -5
TOY_llist_pop 9 - -9
TOY_llist_free 54 - -54
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/2 up/down: 31/-73) Total: -42 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 21 Nov 2010 04:53:34 +0000 (05:53 +0100)]
patch: busyboxify by migrating from toybox to busybox helpers
function old new delta
get_line 90 128 +38
bbconfig_config_bz2 4959 4965 +6
makedevs_main 1038 1035 -3
fail_hunk 133 130 -3
finish_oldfile 174 124 -50
patch_main 2066 1987 -79
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/4 up/down: 44/-135) Total: -91 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Frysinger [Tue, 16 Nov 2010 12:29:12 +0000 (07:29 -0500)]
gen_build_files.sh: rewrite with sed
The shell parsing of files is incredibly slow on many systems. With
one report, the process was taking a minute or two which made people
thing the build was hung. So rewrite the craziness with sed and proper
shell functions. On an idle system, this cut the runtime by half.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 16 Nov 2010 14:01:30 +0000 (09:01 -0500)]
allow SKIP_STRIP to be set in the env
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Tue, 16 Nov 2010 12:15:00 +0000 (07:15 -0500)]
depmod.pl: add recursive sanity check
If modules contain circular dependencies, the depmod script will follow
the circle forever. So add a simple sanity check to abort rather than
chew up the CPU.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Wolfram Sang [Mon, 15 Nov 2010 01:58:28 +0000 (02:58 +0100)]
lineedit: create history files with mode 0600
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 14 Nov 2010 01:01:50 +0000 (02:01 +0100)]
hush: add support for "set -o pipefail"
function old new delta
checkjobs 467 517 +50
builtin_set 259 286 +27
o_opt_strings - 10 +10
hush_main 1011 1013 +2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 89/0) Total: 89 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 14 Nov 2010 00:59:55 +0000 (01:59 +0100)]
hush: preparatory patch for set -o pipefail support
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Lauri Kasanen [Sat, 13 Nov 2010 22:16:05 +0000 (23:16 +0100)]
libbb: remove unused variable
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tito Ragusa [Mon, 8 Nov 2010 04:44:11 +0000 (05:44 +0100)]
deluser: do not warn spuriously when deleting group by deluser
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 7 Nov 2010 16:51:58 +0000 (17:51 +0100)]
delgroup: correct the check for users who still use the group
Signed-off-by: Tito <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 6 Nov 2010 21:17:30 +0000 (22:17 +0100)]
typo fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Tito Ragusa [Sat, 6 Nov 2010 21:14:55 +0000 (22:14 +0100)]
deluser: 2nd attempt at deluser/delgroup size reduction and improvements
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Maksym Kryzhanovskyy [Sat, 6 Nov 2010 00:56:19 +0000 (01:56 +0100)]
powertop: code shrink
function old new delta
process_timer_stats 490 449 -41
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Sat, 6 Nov 2010 00:51:07 +0000 (01:51 +0100)]
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
Denys Vlasenko [Fri, 5 Nov 2010 23:46:57 +0000 (00:46 +0100)]
ls: fix -lg to show group (was showing user)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Thu, 4 Nov 2010 22:30:11 +0000 (23:30 +0100)]
powertop: fix last line detection in process_timer_stats()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 4 Nov 2010 22:22:40 +0000 (23:22 +0100)]
powertop: replace erroneous \n with \0; make numberic conversion more robust
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Christian Hornung [Wed, 3 Nov 2010 13:08:00 +0000 (14:08 +0100)]
ip: Fix command line option parsing of "ip route get ..."
I found and fixed a bug in the command line options parsing of "ip route get":
It was impossible to get any option other than the IP address
recognized correctly, and e.g. the command "ip route get connected"
just hung up infinitely in the options parsing loop instead of
printing an error message.
Signed-off-by: Christian Hornung <chhornung@googlemail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Maksym Kryzhanovskyy [Thu, 4 Nov 2010 07:41:57 +0000 (08:41 +0100)]
powertop: code shrink
function old new delta
read_cstate_counts 355 360 +5
print_intel_cstates 494 499 +5
process_timer_stats 554 480 -74
process_irq_counts 765 530 -235
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 10/-309) Total: -299 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 3 Nov 2010 01:48:43 +0000 (02:48 +0100)]
type fix in comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 3 Nov 2010 01:38:31 +0000 (02:38 +0100)]
rename archival/libunarchive -> archival/libarchive; move bz/ into it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 3 Nov 2010 01:27:49 +0000 (02:27 +0100)]
*: move lzo compressor code to archival/libunarchive/. No code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 2 Nov 2010 19:13:03 +0000 (20:13 +0100)]
init: if PID!=1, show clearer error message. move usage text closer to main()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 1 Nov 2010 01:19:47 +0000 (02:19 +0100)]
whitespace fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 1 Nov 2010 00:38:54 +0000 (01:38 +0100)]
decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Rob Landley [Sun, 31 Oct 2010 23:43:34 +0000 (00:43 +0100)]
umount: cleanup and code shrink
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Eric Lammerts [Sat, 30 Oct 2010 00:48:20 +0000 (02:48 +0200)]
stat: fix mtime/ctime/atime
If you set CONFIG_FEATURE_STAT_FORMAT=n, two of the three printed
times are wrong, because a global buffer is reused. Fix below.
Signed-off-by: Eric Lammerts <busybox@lists.lammerts.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 30 Oct 2010 00:40:08 +0000 (02:40 +0200)]
fdisk: fix trivial build failure
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 30 Oct 2010 00:24:48 +0000 (02:24 +0200)]
networking/*: remove superfluous comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 29 Oct 2010 22:55:02 +0000 (00:55 +0200)]
decompress_bunzip2: code shrink ~5 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 22:54:10 +0000 (00:54 +0200)]
decompress_bunzip2: code shrink ~10 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 17:26:38 +0000 (19:26 +0200)]
decompress_bunzip2: add profiling data to comment. no code changes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 17:06:20 +0000 (19:06 +0200)]
scripts/mkdiff_obj: show "size OBJFILE" too
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 17:01:58 +0000 (19:01 +0200)]
decompress_bunzip2: relieve register pressure in hot function read_bunzip
function old new delta
unpack_bz2_stream 318 329 +11
read_bunzip 268 262 -6
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 16:16:29 +0000 (18:16 +0200)]
decompress_bunzip2: keep bd->writeCRC in CPU reg in the hot loop
-5 bytes on 64-bit, +7 bytes on 32-bit.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 14:25:18 +0000 (16:25 +0200)]
powertop: build fix for !386 compiles
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 14:05:05 +0000 (16:05 +0200)]
decompress_bunzip2: code shrink
function old new delta
get_next_block 1828 1827 -1
get_bits 164 156 -8
read_bunzip 304 261 -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-52) Total: -52 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 09:46:52 +0000 (11:46 +0200)]
whitespace cleanup
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 29 Oct 2010 00:42:20 +0000 (02:42 +0200)]
ifupdown: add manual method for IPv6. Closes bug 2497.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 29 Oct 2010 00:33:38 +0000 (02:33 +0200)]
telnet: do not check for 0 return from poll (it's impossible)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 29 Oct 2010 00:12:22 +0000 (02:12 +0200)]
telnet: convert CR NUL -> CR on input. Closes bug 2569
function old new delta
telnet_main 1558 1594 +36
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 22:50:09 +0000 (00:50 +0200)]
unicode: update unicode_width on !unicode branch too. Closes bug 2593
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 22:37:56 +0000 (00:37 +0200)]
dnsd: fix 64-bit bug 2539.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 21:08:53 +0000 (23:08 +0200)]
decompress_bunzip2: handle concatenated .bz2 files
function old new delta
unpack_bz2_stream 207 307 +100
start_bunzip 199 209 +10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 110/0) Total: 110 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Marek Polacek [Tue, 26 Oct 2010 00:34:36 +0000 (02:34 +0200)]
bloat-o-meter: make it python3 compliant
Python 3 doesn't support the iterkeys() method anymore. Use
iter(foo.keys()) instead of foo.iterkeys().
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Marek Polacek [Thu, 28 Oct 2010 19:34:56 +0000 (21:34 +0200)]
*: use _exit() in sighandlers; showkey: do not use exit-thru-sighandler
While at it, make ESC sequences more readable; and removed check for
isatty(stdin) in reset. Code shrink:
text data bss dec hex filename
884771 936 17216 902923 dc70b busybox_old
884723 936 17216 902875 dc6db busybox_unstripped
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 18:45:37 +0000 (20:45 +0200)]
scripts: remove bitrotted scripts/individual
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Holger Blasum [Thu, 28 Oct 2010 18:37:05 +0000 (20:37 +0200)]
update docs/new-applet-HOWTO.txt
Signed-off-by: Holger Blasum <hbl@sysgo.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 17:10:46 +0000 (19:10 +0200)]
ipcrm: small code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 16:57:19 +0000 (18:57 +0200)]
*: whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Alexander Shishkin [Thu, 28 Oct 2010 04:10:03 +0000 (06:10 +0200)]
mount: pass NULL, not "", as "data" to mount syscall if we have no opts
When mounting a filesystem without any additional options (data parameter
to the mount(2) syscall), pass NULL instead of an empty string like GNU
mount does. This fixes, for example mounting cgroup fs with bbox mount.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Alexander Shishkin [Wed, 27 Oct 2010 16:52:40 +0000 (19:52 +0300)]
login: free fromhost upon cleaning up
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 03:38:11 +0000 (05:38 +0200)]
crc32: cleanups, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 28 Oct 2010 00:36:17 +0000 (02:36 +0200)]
netstat: was using buffers one byte short for scanf (no place for NUL). fixing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 27 Oct 2010 13:26:45 +0000 (15:26 +0200)]
libbb: introduce and use common crc32 routine
function old new delta
crc32_block_endian1 - 37 +37
crc32_block_endian0 - 34 +34
global_crc32_table - 8 +8
file_read 82 87 +5
gzip_main 211 214 +3
xz_crc32 40 35 -5
crc32_table 8 - -8
calculate_gunzip_crc 54 34 -20
lzo_crc32 54 25 -29
cksum_main 298 211 -87
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149) Total: -62 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Wed, 27 Oct 2010 11:10:29 +0000 (13:10 +0200)]
netstat: fix IPv6 problem (garbage in scope_id); code shrink
function old new delta
add_to_prg_cache_if_socket - 253 +253
print_inet_line 226 241 +15
udp_do_one 119 131 +12
tcp_do_one 65 77 +12
unix_do_one 530 529 -1
dir_act 215 207 -8
netstat_main 585 553 -32
.rodata 145592 145525 -67
file_act 255 - -255
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/4 up/down: 292/-363) Total: -71 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Wed, 27 Oct 2010 09:24:40 +0000 (11:24 +0200)]
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
Marek Polacek [Wed, 27 Oct 2010 00:25:16 +0000 (02:25 +0200)]
top: Use _exit() instead of exit() in sighandler
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bob Dunlop [Wed, 27 Oct 2010 00:12:29 +0000 (02:12 +0200)]
netstat: fix -r display in usage text
Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 26 Oct 2010 22:04:50 +0000 (00:04 +0200)]
whitespace fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 26 Oct 2010 13:58:47 +0000 (15:58 +0200)]
mv: implement -n option
function old new delta
mv_longopts 23 36 +13
mv_main 510 520 +10
packed_usage 27218 27225 +7
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Tue, 26 Oct 2010 11:03:31 +0000 (13:03 +0200)]
powertop: simplified C-state display code
function old new delta
.rodata 145530 145514 -16
powertop_main 1510 1403 -107
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Tue, 26 Oct 2010 10:42:53 +0000 (12:42 +0200)]
powertop: IPIs and hw irqs were swapped, fixing
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Tue, 26 Oct 2010 10:39:36 +0000 (12:39 +0200)]
powertop: fixes to output format and code shrink
function old new delta
process_timer_stats - 631 +631
clear_lines 72 74 +2
process_irq_counts 729 726 -3
.rodata 145699 145530 -169
powertop_main 2341 1510 -831
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/2 up/down: 1359/-1729) Total: -370 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Tue, 26 Oct 2010 00:54:13 +0000 (02:54 +0200)]
powertop: code shrink
function old new delta
process_irq_count_deltas - 729 +729
read_cstate_counts - 358 +358
save_line - 150 +150
clear_lines 80 72 -8
line_compare 18 7 -11
.rodata 145736 145699 -37
powertop_main 2527 2341 -186
push_line 193 - -193
read_data 348 - -348
do_proc_irq 890 - -890
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/4 up/down: 1237/-1673) Total: -436 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Mon, 25 Oct 2010 10:14:21 +0000 (12:14 +0200)]
libbb/process_escape_sequence.c: fix recently broken handling of \\
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Marek Polacek [Mon, 25 Oct 2010 01:44:34 +0000 (03:44 +0200)]
powertop: new applet
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Kevin Cernekee [Mon, 25 Oct 2010 00:00:24 +0000 (02:00 +0200)]
fdisk: initial stab at GPT partition support
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 22:40:32 +0000 (00:40 +0200)]
init: do not sleep forever on usage errors
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 18:51:28 +0000 (20:51 +0200)]
sha1: small tweak for clearer code, no logic changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 17:27:30 +0000 (19:27 +0200)]
sha1: use Rob's code, it's smaller and faster
function old new delta
static.rconsts - 16 +16
sha1_process_block64 460 298 -162
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 16/-162) Total: -146 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 12:54:53 +0000 (14:54 +0200)]
md5/sha1sum: code shrink
function old new delta
hash_file 357 279 -78
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 11:28:45 +0000 (13:28 +0200)]
umount: I forgot to change another PATH_MAX to 4096
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 01:46:16 +0000 (03:46 +0200)]
finish busybox.1 renaming
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Rob Landley [Sun, 24 Oct 2010 01:27:22 +0000 (03:27 +0200)]
awk: reduce ifdef forest
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 01:23:59 +0000 (03:23 +0200)]
English fixes to docs/smallint.txt
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 01:07:18 +0000 (03:07 +0200)]
adding docs/smallint.txt
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 01:02:57 +0000 (03:02 +0200)]
Remove check for supported libc.
If it is not supported, it won't work. No need to break working ones
which happen to this over this check.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 01:00:57 +0000 (03:00 +0200)]
umount: do not (ab)use PATH_MAX as mntent buffer size
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 00:35:17 +0000 (02:35 +0200)]
remove unused SC_x (serial port names) defines
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 00:09:32 +0000 (02:09 +0200)]
correct manpage name
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 24 Oct 2010 00:04:10 +0000 (02:04 +0200)]
init: do not clear CRTSCTS (fix from Debian bug 528560)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 23 Oct 2010 23:58:04 +0000 (01:58 +0200)]
awk: fix breakage in last commit
While at it, made bb_process_escape_sequence faster (same size)
function old new delta
nextchar 49 53 +4
bb_process_escape_sequence 138 140 +2
next_token 838 839 +1
static.charmap 20 18 -2
is_assignment 143 135 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 7/-10) Total: -3 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 23 Oct 2010 19:06:06 +0000 (21:06 +0200)]
libbb: introduce and use strcpy_and_process_escape_sequences
function old new delta
strcpy_and_process_escape_sequences - 50 +50
bb_process_escape_sequence 148 138 -10
printf_main 789 776 -13
getty_main 1897 1831 -66
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 50/-89) Total: -39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 23 Oct 2010 19:02:15 +0000 (21:02 +0200)]
awk: fix segfault on closing non-opened file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Alexander Shishkin [Fri, 22 Oct 2010 11:35:47 +0000 (13:35 +0200)]
mount: code shrink (-81 bytes)
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Alexander Shishkin [Fri, 22 Oct 2010 11:27:16 +0000 (13:27 +0200)]
*: introduce and use xmkstemp. -65 bytes.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Alexander Shishkin [Thu, 21 Oct 2010 20:44:47 +0000 (23:44 +0300)]
smemcap: close /proc handle upon cleaning up
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Alexander Shishkin [Thu, 21 Oct 2010 10:32:27 +0000 (13:32 +0300)]
nbd-client: kill unused variable (total 0 bytes)
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Fri, 22 Oct 2010 11:15:15 +0000 (13:15 +0200)]
pmap: get rid of a warning
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Denys Vlasenko [Thu, 21 Oct 2010 10:33:10 +0000 (12:33 +0200)]
udhcpd: reduce stack usage by ~700 bytes. +28 bytes code size
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Lukas Huba [Wed, 20 Oct 2010 22:43:00 +0000 (00:43 +0200)]
patch: implement -E option
Signed-off-by: Lukas Huba <Huba.Lukas@centrum.cz>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 20 Oct 2010 22:42:15 +0000 (00:42 +0200)]
revert last change (wrong author)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>