Denys Vlasenko
2e79bc6c77
Apply post-1.18.4 fixes, bump version to 1.18.5
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-06-12 17:49:38 +02:00
Denys Vlasenko
30f0ea6cab
Apply post-1.18.3 fixes, bump version to 1.18.4
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-03-13 02:39:10 +01:00
Denys Vlasenko
92e531458a
Apply post-1.18.2 fixes, bump version to 1.18.3
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-02-08 18:34:03 +01:00
Denys Vlasenko
12d97b6680
apply post-1.18.1 patches, bump version to 1.18.2
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-01-16 20:00:24 +01:00
Denys Vlasenko
2a1571bfa0
apply post-1.18.0 patches, bump version to 1.18.1
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-12-21 05:31:47 +01:00
Denys Vlasenko
5ab20641d6
Bump version to 1.18.0
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-23 09:21:44 +01:00
Denys Vlasenko
9e0f15010e
date :add a comment about older toolchains
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-23 00:15:19 +01:00
Denys Vlasenko
26777aa1c6
fixes for bugs discovered by randomconfig builds and tests
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 23:49:10 +01:00
Denys Vlasenko
29ca159133
fix misspelling in comment
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-22 18:13:15 +01:00
Denys Vlasenko
7b4c0fd5f4
hush: fix improper handling of newline and hash chars in few corner cases
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-22 17:58:14 +01:00
Denys Vlasenko
1e23f32453
nc: fix SEGV on -v when NC_EXTRA is off
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 05:30:54 +01:00
Mike Frysinger
a945f6190b
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 >
2010-11-22 04:57:37 +01:00
Mike Shal
f3763033e4
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 >
2010-11-22 03:49:18 +01:00
Denys Vlasenko
7c6ed78aaa
patch: remove out-of-file build machinery
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-22 03:15:21 +01:00
Denys Vlasenko
f9d091316d
gen_build_files.sh: restore deleted comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-21 22:10:07 +01:00
Denys Vlasenko
ac10b30070
cmp: with -s, do not report open errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-21 18:11:40 +01:00
Denys Vlasenko
400ff226c2
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 >
2010-11-21 05:54:28 +01:00
Denys Vlasenko
b82ae98ea4
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 >
2010-11-21 05:53:34 +01:00
Mike Frysinger
f718e3a0db
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 >
2010-11-16 09:01:54 -05:00
Mike Frysinger
b78d561ec7
allow SKIP_STRIP to be set in the env
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2010-11-16 09:01:30 -05:00
Mike Frysinger
8ce1ad3097
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 >
2010-11-16 07:15:00 -05:00
Wolfram Sang
2e9aeae4db
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 >
2010-11-15 02:58:28 +01:00
Denys Vlasenko
6696eac274
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 >
2010-11-14 02:01:50 +01:00
Denys Vlasenko
c08c3f5d26
hush: preparatory patch for set -o pipefail support
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-14 01:59:55 +01:00
Lauri Kasanen
2b662c5dec
libbb: remove unused variable
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-13 23:16:05 +01:00
Tito Ragusa
a8dc97cb82
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 >
2010-11-08 05:47:04 +01:00
Denys Vlasenko
e057b0f94f
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 >
2010-11-07 17:51:58 +01:00
Denys Vlasenko
f595d8ed46
typo fix
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-06 22:17:30 +01:00
Tito Ragusa
1586c7a92c
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 >
2010-11-06 22:14:55 +01:00
Maksym Kryzhanovskyy
0ebafcc5b1
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 >
2010-11-06 01:56:19 +01:00
Denys Vlasenko
9135fd26c4
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2010-11-06 01:51:07 +01:00
Denys Vlasenko
4909fec73e
ls: fix -lg to show group (was showing user)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-11-06 00:46:57 +01:00
Denys Vlasenko
dea28e1e55
powertop: fix last line detection in process_timer_stats()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-04 23:30:11 +01:00
Denys Vlasenko
dcb163aa8e
powertop: replace erroneous \n with \0; make numberic conversion more robust
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-04 23:22:40 +01:00
Christian Hornung
3bbfb58bec
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 >
2010-11-04 08:59:42 +01:00
Maksym Kryzhanovskyy
6052c2b0be
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 >
2010-11-04 08:41:57 +01:00
Denys Vlasenko
854738d39d
type fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-03 02:48:43 +01:00
Denys Vlasenko
833d4e7f84
rename archival/libunarchive -> archival/libarchive; move bz/ into it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-03 02:38:31 +01:00
Denys Vlasenko
5e9934028a
*: move lzo compressor code to archival/libunarchive/. No code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-03 02:27:49 +01:00
Denys Vlasenko
db5fe62b6d
init: if PID!=1, show clearer error message. move usage text closer to main()
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-02 20:13:03 +01:00
Denys Vlasenko
4d4d1a015f
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-01 02:19:47 +01:00
Denys Vlasenko
8531c43b50
decompress_bunzip2: reinstate erroneously deleted RETVAL_SHORT_WRITE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-01 01:38:54 +01:00
Rob Landley
2658888c78
umount: cleanup and code shrink
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-11-01 00:43:34 +01:00
Eric Lammerts
66be9197a5
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 >
2010-10-30 02:48:20 +02:00
Denys Vlasenko
d7559c2741
fdisk: fix trivial build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-30 02:40:08 +02:00
Denys Vlasenko
11872cab32
networking/*: remove superfluous comments
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-30 02:24:48 +02:00
Denys Vlasenko
f16727ebbb
decompress_bunzip2: code shrink ~5 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-30 00:55:02 +02:00
Denys Vlasenko
0c576975c8
decompress_bunzip2: code shrink ~10 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-30 00:54:10 +02:00
Denys Vlasenko
5d49b72f1a
decompress_bunzip2: add profiling data to comment. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 19:26:38 +02:00
Denys Vlasenko
1642d02710
scripts/mkdiff_obj: show "size OBJFILE" too
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 19:06:20 +02:00
Denys Vlasenko
1014a9adbf
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 >
2010-10-29 19:01:58 +02:00
Denys Vlasenko
bf3bec51fc
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 >
2010-10-29 18:16:29 +02:00
Denys Vlasenko
f29a1c5656
powertop: build fix for !386 compiles
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 16:25:18 +02:00
Denys Vlasenko
36ef0a677e
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 >
2010-10-29 16:05:05 +02:00
Denys Vlasenko
fb132e4737
whitespace cleanup
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-29 11:46:52 +02:00
Denys Vlasenko
66cb7bed33
ifupdown: add manual method for IPv6. Closes bug 2497.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 02:42:20 +02:00
Denys Vlasenko
ec07420eb9
telnet: do not check for 0 return from poll (it's impossible)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 02:33:38 +02:00
Denys Vlasenko
036dbb9d9a
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 >
2010-10-29 02:12:22 +02:00
Denys Vlasenko
6b3f0b0dab
unicode: update unicode_width on !unicode branch too. Closes bug 2593
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 00:50:09 +02:00
Denys Vlasenko
dc8ef353fd
dnsd: fix 64-bit bug 2539.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-29 00:37:56 +02:00
Denys Vlasenko
caddfc8339
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 >
2010-10-28 23:08:53 +02:00
Marek Polacek
8410ac1a07
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 >
2010-10-28 21:39:40 +02:00
Marek Polacek
7b18107384
*: 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 >
2010-10-28 21:34:56 +02:00
Denys Vlasenko
02788ac7e2
scripts: remove bitrotted scripts/individual
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 20:45:37 +02:00
Holger Blasum
b27d62af8b
update docs/new-applet-HOWTO.txt
...
Signed-off-by: Holger Blasum <hbl@sysgo.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 20:37:05 +02:00
Denys Vlasenko
756e95e782
ipcrm: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 19:10:46 +02:00
Denys Vlasenko
e4dcba1c10
*: whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 18:57:19 +02:00
Alexander Shishkin
7765095441
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 >
2010-10-28 06:10:03 +02:00
Alexander Shishkin
78b286fea5
login: free fromhost upon cleaning up
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 05:49:55 +02:00
Denys Vlasenko
16cc80e989
crc32: cleanups, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 05:38:11 +02:00
Denys Vlasenko
db9ccc5772
netstat: was using buffers one byte short for scanf (no place for NUL). fixing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-28 02:36:17 +02:00
Denys Vlasenko
9ce642f974
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 >
2010-10-27 15:26:45 +02:00
Denys Vlasenko
dd88ba88f5
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 >
2010-10-27 13:10:29 +02:00
Denys Vlasenko
c386aa5dcd
Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busybox
2010-10-27 11:24:40 +02:00
Marek Polacek
3c99d59b5d
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 >
2010-10-27 02:25:16 +02:00
Bob Dunlop
55a046b4db
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 >
2010-10-27 02:12:29 +02:00
Denys Vlasenko
4fa07bd8fa
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-27 00:04:50 +02:00
Denys Vlasenko
4c46d85469
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 >
2010-10-26 15:58:47 +02:00
Denys Vlasenko
a43e969574
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 >
2010-10-26 13:03:31 +02:00
Denys Vlasenko
d8b687f992
powertop: IPIs and hw irqs were swapped, fixing
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-26 12:42:53 +02:00
Denys Vlasenko
c3f1fa10d6
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 >
2010-10-26 12:39:36 +02:00
Denys Vlasenko
373789e567
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 >
2010-10-26 02:54:13 +02:00
Denys Vlasenko
a2d27a1919
libbb/process_escape_sequence.c: fix recently broken handling of \\
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-25 12:14:21 +02:00
Marek Polacek
b507cc3ace
powertop: new applet
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-25 03:44:34 +02:00
Kevin Cernekee
ccb070450e
fdisk: initial stab at GPT partition support
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-25 02:00:24 +02:00
Denys Vlasenko
3b060528a2
init: do not sleep forever on usage errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-25 00:40:32 +02:00
Denys Vlasenko
03a5fe378e
sha1: small tweak for clearer code, no logic changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 20:51:28 +02:00
Denys Vlasenko
f4c93ab304
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 >
2010-10-24 19:27:30 +02:00
Denys Vlasenko
4b63e16d20
md5/sha1sum: code shrink
...
function old new delta
hash_file 357 279 -78
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 14:54:53 +02:00
Denys Vlasenko
ba04337e1f
umount: I forgot to change another PATH_MAX to 4096
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 13:28:45 +02:00
Denys Vlasenko
17fc33dfbd
finish busybox.1 renaming
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:46:16 +02:00
Rob Landley
d8205b39ab
awk: reduce ifdef forest
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:27:22 +02:00
Denys Vlasenko
738e4de013
English fixes to docs/smallint.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:23:59 +02:00
Denys Vlasenko
8f8ee534a7
adding docs/smallint.txt
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:07:18 +02:00
Denys Vlasenko
58647e8f85
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 >
2010-10-24 03:02:57 +02:00
Denys Vlasenko
07b1c6ecc0
umount: do not (ab)use PATH_MAX as mntent buffer size
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 03:00:57 +02:00
Denys Vlasenko
1c26e05f30
remove unused SC_x (serial port names) defines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 02:35:17 +02:00
Denys Vlasenko
57b68331e4
correct manpage name
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 02:09:32 +02:00
Denys Vlasenko
f2657a9968
init: do not clear CRTSCTS (fix from Debian bug 528560)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-24 02:04:10 +02:00
Denys Vlasenko
2b299fed6a
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 >
2010-10-24 01:58:04 +02:00
Denys Vlasenko
5360059131
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 >
2010-10-23 21:06:06 +02:00
Denys Vlasenko
6a0d7490ea
awk: fix segfault on closing non-opened file
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-23 21:02:15 +02:00
Alexander Shishkin
54779a47e9
mount: code shrink (-81 bytes)
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:35:47 +02:00
Alexander Shishkin
6722737ece
*: introduce and use xmkstemp. -65 bytes.
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:27:16 +02:00
Alexander Shishkin
cbfeaac7af
smemcap: close /proc handle upon cleaning up
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:18:23 +02:00
Alexander Shishkin
46b6cd7630
nbd-client: kill unused variable (total 0 bytes)
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:16:53 +02:00
Denys Vlasenko
d3036ef608
pmap: get rid of a warning
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-22 13:15:15 +02:00
Denys Vlasenko
0bb35e19a7
udhcpd: reduce stack usage by ~700 bytes. +28 bytes code size
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-21 12:33:10 +02:00
Lukas Huba
08187356d7
patch: implement -E option
...
Signed-off-by: Lukas Huba <Huba.Lukas@centrum.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:43:00 +02:00
Denys Vlasenko
e7599d1cc7
revert last change (wrong author)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:42:15 +02:00
Gilles Espinasse
f0c7e0c8d5
patch: implement -E option
...
Signed-off-by: Gilles Espinasse <g.esp@free.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:39:46 +02:00
Alexander Shishkin
2348e09557
tail: free tailbuf upon cleaning up
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:25:45 +02:00
Alexander Shishkin
a7027bf89e
stat: remove superfluous setXXent() calls, plug memory leak
...
function old new delta
print_stat 875 865 -10
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-21 00:24:05 +02:00
Leonid Lisovskiy
894ef60032
ntpd: fix usage text and a typo in constant name
...
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 22:36:51 +02:00
Denys Vlasenko
5d374e9b14
udhcpc: exit if iface disappeared; use correct MAC if it changes
...
function old new delta
udhcpc_main 2560 2618 +58
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 22:26:38 +02:00
Denys Vlasenko
c72c1d7b31
udhcpc: reduce stack usage by de-inlining routines with on-stack pkt buf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 22:08:16 +02:00
Denys Vlasenko
a5048fa386
udhcpc: periodically reread our ifindex and mac
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 21:38:29 +02:00
Denys Vlasenko
b3af65b95d
udhcpc: emit maxsize option in all non-NAK type packets
...
Before, we were sending them only in DISCOVER packets.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 21:37:23 +02:00
Denys Vlasenko
2c3b71a0d2
dhcp: typo fix: UPD_DHCP_SIZE -> UDP_DHCP_SIZE
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 18:04:36 +02:00
Denys Vlasenko
c59e06e471
udhcpc: better help text
...
function old new delta
packed_usage 27452 27486 +34
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 16:10:59 +02:00
Denys Vlasenko
ff19d525a9
add/remove-shell: use O_TRUNC instead of O_EXCL
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 15:14:32 +02:00
Alexander Shishkin
5be79ff27a
add-shell, remove-shell: new applets
...
function old new delta
add_remove_shell_main - 259 +259
packed_usage 27408 27438 +30
applet_names 2326 2349 +23
applet_main 1364 1372 +8
applet_nameofs 682 686 +4
run_applet_and_exit 700 703 +3
dont_add - 2 +2
applet_install_loc 171 172 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 330/0) Total: 330 bytes
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 13:22:58 +02:00
Denys Vlasenko
bec588878b
*: s/open3_or_warn/open_or_warn/ where makes sense
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-20 13:21:22 +02:00
Denys Vlasenko
d3c5ab703b
udhcpc: remove now-unneeded definitions of vendor and client-id opts
...
function old new delta
dhcp_optflags 68 64 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 02:03:30 +02:00
Denys Vlasenko
1cbdc03411
udhcpc: remove -c CLIENTID, it is hard to use, -x 61:hexstring does the same better
...
function old new delta
packed_usage 27802 27808 +6
static.udhcpc_longopts 261 250 -11
udhcpc_main 2799 2780 -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 6/-30) Total: -24 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 01:42:37 +02:00
Denys Vlasenko
9e244c7600
udhcpc: move usage text to .c file. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-20 01:38:56 +02:00
Denys Vlasenko
f04ca74ab5
dmesg: more correct skipping of <N>; use faster putchar for most output
...
function old new delta
dmesg_main 246 291 +45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 23:08:33 +02:00
Denys Vlasenko
0016bcee37
klogd: do not log partial lines
...
function old new delta
overlapping_strcpy 15 18 +3
klogd_main 438 436 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 23:07:49 +02:00
Thomas Chou
ef6c6d8cfe
mkmakefile: make 3.82 fix
...
Signed-off-by: Thomas Chou <thomas@wytron.com.tw >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-19 12:49:51 +02:00
Denys Vlasenko
7ab94ca351
md5: remove outdated comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 02:33:39 +02:00
Denys Vlasenko
302ad1450e
libbb/hash_md5_sha: use common ctx and code for md5 and sha1/256
...
function old new delta
sha256_process_block64 421 433 +12
md5_crypt 578 587 +9
md5_begin 43 50 +7
md5_hash 99 97 -2
sha1_end 85 82 -3
md5_end 36 31 -5
common64_end 93 86 -7
sha1_hash 97 - -97
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-19 02:16:12 +02:00
Baruch Siach
d982da79de
nanddump: make oobbuf allocation dynamic
...
In accordance with upstream mtd-utils commit 96a5eeaf (mtd-utils: nanddump:
Dynamic buffer, increase pagesize/oobsize).
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 15:34:58 +02:00
Denys Vlasenko
c48a5c607d
hash_md5_sha: use common finalization routine for MD5 and sha1/256. -15 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 14:48:30 +02:00
Denys Vlasenko
b5aa1d95a1
libbb/hash_sha.c -> libbb/hash_md5_sha.c
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 13:47:47 +02:00
Denys Vlasenko
eb7fe6dbf5
libbb: move md5 and shaN into a common source file. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 13:46:07 +02:00
Denys Vlasenko
e08ef581af
md5: length should be stored in *little-endian* order! fixing...
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 11:50:17 +02:00
Denys Vlasenko
9ff50b8697
*: deinline SWAP_xE64 on 32-bit CPUs. Wins !90 bytes both on 32 and 64 bits
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 11:40:26 +02:00
Denys Vlasenko
b102e12253
*: use SWAP_BE64 instead of open-coding it
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 11:39:47 +02:00
Denys Vlasenko
06f719fd79
libbb: rename hash source files. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-18 10:38:18 +02:00
Denys Vlasenko
5fe2f863b9
sort: -o FILE should create/truncate FILE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 02:43:57 +02:00
Denys Vlasenko
c05387d5de
*: replace xopen3 with xopen where makes sense
...
function old new delta
uniq_main 421 416 -5
sort_main 803 798 -5
patch_main 2051 2046 -5
cpio_main 547 542 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 02:38:27 +02:00
Baruch Siach
36af2f7977
nanddump: new applet
...
function old new delta
nandwrite_main 418 936 +518
dump_bad - 119 +119
packed_usage 27752 27810 +58
next_good_eraseblock 84 106 +22
applet_names 2366 2375 +9
applet_main 1380 1384 +4
applet_nameofs 690 692 +2
bbconfig_config_bz2 4932 4922 -10
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 6/1 up/down: 732/-10) Total: 722 bytes
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 02:36:34 +02:00
Pascal Bellard
873bb31d17
cpio: avoid 'not created: newer or same age file exists' message for dirs
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 00:54:51 +02:00
Pascal Bellard
cadf90184c
depmod: accept and ignore -u, -q, -C FILE
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 00:51:16 +02:00
Pascal Bellard
122a4b30f4
touch: update help text
...
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-18 00:43:07 +02:00
Denys Vlasenko
b8d02597e3
md5: fix biuld failure on big-endian machines
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 23:01:32 +02:00
Kevin Cernekee
2b0116803b
docs: Sync up AUTHORS and busybox_footer.pod
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 14:12:34 +02:00
Kevin Cernekee
20e2c35b7c
docs: Change CVS references to Git
...
Signed-off-by: Kevin Cernekee <cernekee@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 14:12:33 +02:00
Denys Vlasenko
ea694163af
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 12:45:24 +02:00
Denys Vlasenko
786635e62e
seq: exit on write errors
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 12:44:39 +02:00
Vladislav Grishenko
ad8def2d8a
udhcpc: fix OPTION_IP_PAIR parsing
...
http://git.busybox.net/busybox/commit/?id=7d3a48a003cd645edfae2b404493688022
revealed incorrect OPTION_IP_PAIR implementation, which doesn't respect
option length and causes erroneous classful routes, composed from garbage
or first bytes from the next DHCP packet option.
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 12:27:50 +02:00
Denys Vlasenko
cfe114c4f3
md5: code shrink -5 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 11:38:44 +02:00
Denys Vlasenko
f6dacc23ff
bring md5 and sha1 names closer. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 03:21:51 +02:00
Denys Vlasenko
36ab585f68
md5: code shrink
...
function old new delta
md5_end 125 104 -21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 03:00:36 +02:00
Denys Vlasenko
a971a192e8
shaN: code shrink
...
function old new delta
init512_lo 32 40 +8
init256 32 40 +8
sha256_begin 42 28 -14
sha512_begin 81 53 -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 16/-42) Total: -26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-17 01:35:16 +02:00
Denys Vlasenko
446c2349b6
whitespace fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 23:39:43 +02:00
Denys Vlasenko
4bc3b85894
sha512: inline rotr64
...
function old new delta
sha1_process_block64 461 446 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 23:31:15 +02:00
Denys Vlasenko
273abcbf66
shaN: small code shrink
...
function old new delta
sha512_hash 134 128 -6
sha1_hash 114 106 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 22:43:34 +02:00
Denys Vlasenko
1ac476bb85
md5: fix "fast" md5 broken by prev commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 21:34:36 +02:00
Denys Vlasenko
e8ee86250d
testsuite: add tests for {ms5,shaN}sum
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 21:26:47 +02:00
Denys Vlasenko
bcccad3531
md5: code shrink; and use 64-byte temp buf, not 128-byte.
...
function old new delta
md5_hash 111 108 -3
md5_end 129 125 -4
md5_hash_block 459 454 -5
filter_rename_config 250 244 -6
md5_crypt 587 578 -9
popmaildir_main 828 816 -12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-39) Total: -39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 20:46:35 +02:00
Denys Vlasenko
c0683acce8
*: pass md5/shaN context pointer as 1st arg, not last
...
function old new delta
md5_hash_block 458 459 +1
filter_rename_config 252 250 -2
md5_crypt 591 587 -4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-16 20:45:27 +02:00
Denys Vlasenko
1a5e11c874
modutils/*: move help bits into corresponding .c files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-16 01:56:41 +02:00
Denys Vlasenko
70186711f4
libbb/md5: code shrink
...
function old new delta
md5_end 123 117 -6
md5_begin 49 42 -7
md5_hash 119 104 -15
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-16 01:08:32 +02:00
Denys Vlasenko
3d16098494
libbb/md5: small code shrink
...
function old new delta
md5_end 151 123 -28
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-15 18:05:51 +02:00
Denys Vlasenko
c15613c975
modutils/*: move applet bits into corresponding *.c files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-15 11:29:02 +02:00
Denys Vlasenko
f2710d0221
date: move applet and usage bits to date.c
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-15 10:42:17 +02:00
Denys Vlasenko
05e8605ab8
remove runit/runit_lib.c
...
function old new delta
runsv_main 1770 1786 +16
svstatus_get 176 188 +12
sv_main 1180 1186 +6
runsvdir_main 683 689 +6
processorstart 385 391 +6
control 126 132 +6
logdir_open 1184 1187 +3
lock_exnb 14 - -14
lock_ex 14 - -14
open_write 17 - -17
open_read 17 - -17
------------------------------------------------------------------------------
(add/remove: 0/5 grow/shrink: 7/0 up/down: 55/-62) Total: -7 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-13 12:53:27 +02:00
Denys Vlasenko
b1db09be5a
init/*: move applet/kbuild/config/help bits into applet source files
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-12 13:47:15 +02:00
Denys Vlasenko
d4d289acf5
tweaks to build system, mainly making menuconfig text and order clearer
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-12 04:18:05 +02:00
Denys Vlasenko
b1993380ba
remove findutils/.gitignore, top-level one covers it
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-11 12:53:19 +02:00
Denys Vlasenko
3b2acb759c
tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-09 21:10:32 +02:00
Denys Vlasenko
c1e3027f11
fix help text punctuation
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-08 15:04:23 +02:00
Denys Vlasenko
6b0ac8487a
tweak usage texts
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-07 13:25:09 +02:00
Denys Vlasenko
c0f39b0fb2
dhcprelay: code shrink, and explain its workings a bit more
...
function old new delta
sendto_ip4 - 55 +55
dhcprelay_main 1059 942 -117
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 55/-117) Total: -62 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-06 01:45:24 +02:00
Denys Vlasenko
28458c64db
awk: code shrink
...
function old new delta
fsrealloc 112 107 -5
next_token 862 844 -18
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-05 16:49:03 +02:00
Denys Vlasenko
d527e0c81d
awk: 00.123 is not a octal constant; neither is 009.123. fixing this
...
function old new delta
my_strtod 80 113 +33
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-05 13:22:11 +02:00
Vladimir Dronnikov
5b34300178
sendmail: fix assumption that headers should have a space after the colon
...
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-05 01:21:32 +02:00
Richard Braun
5aa4d53273
tune2fs: implement -c and -i options
...
function old new delta
tune2fs_main 165 256 +91
Signed-off-by: Richard Braun <rbraun@sceen.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-05 00:39:46 +02:00
Denys Vlasenko
cacb2cd281
*: whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-05 00:13:02 +02:00
Denys Vlasenko
afc7b4c0d8
wc: add support for -m
...
function old new delta
wc_main 601 637 +36
packed_usage 27357 27358 +1
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-04 17:08:14 +02:00
Denys Vlasenko
09e7dafbfe
wc: preparatory patch, no logic changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-04 17:04:20 +02:00
Denys Vlasenko
9a1b260547
man: add compatibility with man-db
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-10-04 14:19:59 +02:00
Denys Vlasenko
d678257c26
ntpd: allow peer-less (standalone stratum 1 server) operation
...
Based on patch by Jean-Christophe Dubois (jcd@tribudubois.net )
function old new delta
ntp_init 384 399 +15
recv_and_process_client_pkt 469 480 +11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-04 01:20:44 +02:00
Rob Landley
9d113cac42
patch: tweaks
...
1) Eliminate spurious warnings about possibly reduced hunks. Instead only
note a possible location if we don't find a non-reversed place to apply it.
(Otherwise, hunks that move code forward around within a file look reversed at
the removal site.)
2) Open the source file read-only, so we can apply patches to read-only files.
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-04 00:49:48 +02:00
Denys Vlasenko
e2069fb325
hush: remove "doesn't support brace expansion" from config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-04 00:01:47 +02:00
Denys Vlasenko
bbecd74d5a
hush: remove brace expansion from TODO list in comments. No code changes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 17:22:52 +02:00
Denys Vlasenko
957f79f471
hush: small code shrink
...
function old new delta
expand_on_ifs 231 222 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 17:15:50 +02:00
Denys Vlasenko
2bcba5cc53
hush: add brace expansion testcase
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 17:07:57 +02:00
Denys Vlasenko
9e800223f1
hush: implement brace expansion
...
When enabled:
function old new delta
glob_brace - 402 +402
next_brace_sub - 70 +70
expand_on_ifs 185 231 +46
bbconfig_config_bz2 4923 4929 +6
o_save_ptr 282 140 -142
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/1 up/down: 524/-142) Total: 382 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 14:28:04 +02:00
Denys Vlasenko
238081f750
hush: preparatory patch, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-03 14:26:26 +02:00
Denys Vlasenko
0296fd3af1
grep: cap insane -B NUM values to MAX_INT / 8. Fixes bug 2653.
...
function old new delta
grep_main 766 779 +13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-02 12:42:28 +02:00
Dan Fandrich
2d1a78b88f
Marked some more applets NOEXEC/NOFORK
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-01 23:35:09 +02:00
Denys Vlasenko
5657d374db
free: document newly added options
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-01 22:42:44 +02:00
Denys Vlasenko
5542934d65
free: add -b/k/m/g options; remove 4 TB limitation. +100 bytes
...
Based on patch by Stefan Tomanek (stefan@pico.ruhr.de )
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-10-01 21:57:59 +02:00
Denys Vlasenko
ee5ab8f321
halt/poweroff/reboot: unify help text
...
function old new delta
packed_usage 27755 27733 -22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-30 23:44:08 +02:00
Denys Vlasenko
6e852408a9
deluser: use the same licensing template in the header as other files do
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-30 18:51:25 +02:00
Souf Oued
ccb7a43900
acpid: add config file and map file
...
function old new delta
acpid_main 434 1137 +703
find_action - 204 +204
f_evt_tab - 48 +48
packed_usage 27724 27755 +31
f_act_tab - 16 +16
process_event 126 - -126
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/0 up/down: 1002/-126) Total: 876 bytes
Signed-off-by: Souf Oued <souf_oued@yahoo.fr >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-26 12:40:05 +02:00
Vladislav Grishenko
7d3a48a003
udhcp: add support for 0x21 ROUTES and 0xf9 MS_STATIC_ROUTES options
...
Signed-off-by: Vladislav Grishenko <themiron@mail.ru >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-26 00:15:12 +02:00
Denys Vlasenko
04bcd998ca
style fix. no code chages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-25 17:19:04 +02:00
Denys Vlasenko
b563f62bbb
ash: fix signal and "set -e" interaction
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-25 17:15:13 +02:00
Denys Vlasenko
5b3151c201
modprobe-simple; do not error out on "rmmod module" if module is unloaded ok
...
...even if it wasn't found in /lib/modules/VER/
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-25 14:37:06 +02:00
Denys Vlasenko
0f2e278a8a
sleep: fix fractional arguments in non-POSIX locale
...
function old new delta
sleep_main 390 379 -11
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-24 12:39:45 +02:00
Nguyễn Thái Ngọc Duy
ebec11dff1
wget: flush output to network before receving reply
...
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-23 15:18:41 +02:00
Rob Landley
1fc20c446f
nbd-client: new applet
...
function old new delta
nbdclient_main - 537 +537
daemon - 162 +162
packed_usage 27682 27724 +42
applet_names 2355 2366 +11
bbconfig_config_bz2 4918 4922 +4
applet_main 1376 1380 +4
applet_nameofs 688 690 +2
applet_install_loc 172 173 +1
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 6/0 up/down: 763/0) Total: 763 bytes
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-09-23 02:03:47 +02:00
Harald Becker
361b1a6884
deluser: make it simpler, fix inability to delete user from group
...
Also makes menuconfig order more sensible
Signed-off-by: Harald Becker <ralda@gmx.de >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-22 18:03:29 +02:00
Denys Vlasenko
0e13b4019c
hush: use smaller EXP_FLAG_foo constants
...
function old new delta
expand_string_to_string 126 124 -2
parse_stream 2376 2370 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-8) Total: -8 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-21 12:35:39 +02:00
Dan Fandrich
63adf83814
fix build failure for pmap
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-19 17:13:21 +02:00
Denys Vlasenko
395b97aeac
shell/math: better comment. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-17 18:02:17 +02:00
Denys Vlasenko
c8f9a8d3c0
move read_base64 to libbb/uuencode.c
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 18:10:04 +02:00
Denys Vlasenko
9fe98f701d
libbb: merge mail and uudecode's base64 decoders
...
function old new delta
read_base64 - 378 +378
uudecode_main 306 315 +9
parse 953 958 +5
read_stduu 250 254 +4
base64_main 217 219 +2
read_base64 358 - -358
decode_base64 371 - -371
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/0 up/down: 398/-729) Total: -331 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 17:51:13 +02:00
Denys Vlasenko
52e460b744
hush: move shell_ver from globals to main's stack.
...
function old new delta
hush_main 995 1011 +16
pseudo_exec_argv 253 251 -2
execvp_or_die 50 48 -2
maybe_set_to_sigexit 50 47 -3
hush_exit 78 75 -3
builtin_wait 274 271 -3
check_and_run_traps 205 200 -5
init_sigmasks 214 190 -24
builtin_trap 465 441 -24
reset_traps_to_defaults 238 211 -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/9 up/down: 16/-93) Total: -77 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 16:12:00 +02:00
Denys Vlasenko
0fdf2e1026
simpler check for od
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 15:46:20 +02:00
Denys Vlasenko
06a80bdbea
build system: test that od is present in the host system
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 13:23:15 +02:00
Denys Vlasenko
bed7c81ea2
shell/math: deconvolute and explain ?: handling. Give better error message
...
function old new delta
arith_apply 1271 1283 +12
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-16 11:50:46 +02:00
Denys Vlasenko
063847d6bd
shell/math: return string error indicator, not integer
...
function old new delta
expand_and_evaluate_arith 87 106 +19
expand_one_var 1563 1570 +7
arith 12 18 +6
evaluate_string 678 680 +2
arith_apply 1269 1271 +2
builtin_umask 133 132 -1
ash_arith 118 75 -43
expand_vars_to_list 1094 1038 -56
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/3 up/down: 36/-100) Total: -64 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-15 13:33:02 +02:00
Denys Vlasenko
197a6b3c14
sleep: make it non-NOFORK. Fixes ^C in standalone shell
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-14 12:57:05 +02:00
Denys Vlasenko
0eac8ff164
shell/math.c: stop using bss variable
...
function old new delta
evaluate_string - 678 +678
expand_one_var 1543 1563 +20
builtin_type 114 116 +2
expand_and_evaluate_arith 89 87 -2
prev_chk_var_recursive 4 - -4
ash_arith 122 118 -4
arith_lookup_val 142 132 -10
arith 674 12 -662
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/4 up/down: 700/-682) Total: 18 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 12:49:52 +02:00
Denys Vlasenko
06d44d7dfb
shell/math.c: rename arith_eval_hooks to arith_state, put error code into it
...
function old new delta
expand_and_evaluate_arith 79 89 +10
arith 675 674 -1
arith_lookup_val 151 142 -9
ash_arith 135 122 -13
arith_apply 1304 1269 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 10/-58) Total: -48 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 12:49:03 +02:00
Denys Vlasenko
bd14770b0c
shell/math.c: small code shrink; fixed incomprehensible comments
...
function old new delta
arith_apply 1334 1304 -30
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 11:11:40 +02:00
Denys Vlasenko
51850c818c
shell: small code shrink
...
function old new delta
arith 680 675 -5
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 01:09:11 +02:00
Denys Vlasenko
b771c654ca
shell: shrink arith code; and prepare for returning text error codes
...
function old new delta
arith 701 680 -21
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-13 00:34:26 +02:00
Denys Vlasenko
99862cbfad
hush: optional support for history saving
...
function old new delta
hush_main 945 995 +50
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 17:34:13 +02:00
Denys Vlasenko
5a0d899ee4
smemcap: use correct tar magic
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 17:13:29 +02:00
Marek Polacek
7dd61e3772
*: s/perror/bb_simple_perror_msg/g
...
function old new delta
readLines 448 446 -2
doCommands 2449 2438 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-13) Total: -13 bytes
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 17:06:43 +02:00
Dan Fandrich
80d80ba6dd
Fixed a couple of failing tar tests
...
The tar symlinks mode test is fixed similarly to the hardlinks
test in 0d7cb4cc , and the read-only test is skipped by
SKIP_KNOWN_BUGS.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 16:19:33 +02:00
Denys Vlasenko
819cacfd45
busybox: add "busybox --list[-full]" to help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 16:17:37 +02:00
Denys Vlasenko
de8c3f667a
hush: move the EXIT trap comment. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 16:13:44 +02:00
Denys Vlasenko
a110c90de2
hush: fix EXIT trap display inside exit trap handler
...
function old new delta
hush_exit 84 78 -6
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:38:04 +02:00
Denys Vlasenko
2d8187c139
shell/match.c: shrink by dropping double bool inversion
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:06:42 +02:00
Denys Vlasenko
acd5bc8f64
hush: fix handling of \" in quoted/unquoted cmd
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:05:39 +02:00
Denys Vlasenko
958581a8d9
ash: shrink by folding an if check into setprompt; unindent big block
...
function old new delta
setprompt_if - 66 +66
parseheredoc 126 124 -2
parsecmd 68 66 -2
redirect 1254 1249 -5
xxreadtoken 351 343 -8
readtoken1 3219 3204 -15
setprompt 62 - -62
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/5 up/down: 66/-94) Total: -28 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:04:27 +02:00
Denys Vlasenko
6040fe88f4
ash: add missing casts to match CTLfoo; add TODO comments
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-12 15:03:16 +02:00
Denys Vlasenko
5277a9db70
hush: remove forgotten commented-out block. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 15:34:53 +02:00
Denys Vlasenko
4f870496e7
hush: do fewer strdups in % and hash expansions
...
function old new delta
builtin_umask 133 132 -1
expand_one_var 1552 1543 -9
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 11:06:01 +02:00
Denys Vlasenko
d98e5c65c3
hush: better function and parameter names
...
Also, trim code which isn't needed for non-bash compat.
No logic changes.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:44:23 +02:00
Denys Vlasenko
cc461736d6
hush: fixes to testsuite
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:19:22 +02:00
Denys Vlasenko
ebee410fe2
hush: fix var_bash5.tests failure
...
function old new delta
expand_one_var 1513 1552 +39
expand_pseudo_dquoted 118 135 +17
expand_string_to_string 110 126 +16
setup_heredoc 298 308 +10
expand_and_evaluate_arith 69 79 +10
parse_stream_dquoted 233 241 +8
setup_redirects 220 225 +5
run_list 956 961 +5
expand_assignments 76 81 +5
run_pipe 1587 1590 +3
parse_stream 2371 2374 +3
builtin_umask 132 133 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 12/0 up/down: 122/0) Total: 122 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:17:53 +02:00
Denys Vlasenko
14e289b324
hush: fix var_bash3.tests failure
...
function old new delta
expand_one_var 1513 1538 +25
parse_stream_dquoted 233 241 +8
expand_pseudo_dquoted 118 126 +8
setup_heredoc 298 303 +5
expand_and_evaluate_arith 69 74 +5
parse_stream 2371 2374 +3
builtin_umask 132 133 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 7/0 up/down: 55/0) Total: 55 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:15:18 +02:00
Denys Vlasenko
a769e0225d
hush: remove useless ESC_GLOB_CHARS clears/resotres
...
function old new delta
o_addQstr 43 165 +122
expand_on_ifs 210 189 -21
expand_vars_to_list 1122 1094 -28
o_addqblock 139 - -139
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/2 up/down: 122/-188) Total: -66 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-10 10:12:34 +02:00
Denys Vlasenko
bfc02a76c5
hush: fix a bug where expand_one_var wasn't restoring 1st char of the encoded $var
...
function old new delta
expand_one_var 1515 1513 -2
expand_vars_to_list 1133 1122 -11
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 14:38:46 +02:00
Denys Vlasenko
101a4e3e21
hush: make parse_dollar flag quited status regardless of glob escaping status
...
function old new delta
parse_stream_dquoted 228 233 +5
parse_stream 2369 2371 +2
parse_dollar 730 717 -13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 7/-13) Total: -6 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 14:04:57 +02:00
Denys Vlasenko
5b6210cf49
hush: simplification in parse_stream, parse_stream_dquoted
...
function old new delta
parse_stream 2354 2369 +15
parse_stream_dquoted 250 228 -22
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 13:32:21 +02:00
Denys Vlasenko
850b15bfaf
hush: simplify parse_stream_dquoted
...
function old new delta
parse_stream_dquoted 303 250 -53
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 12:58:19 +02:00
Denys Vlasenko
77a7b5519c
hush: straighten out the logic in parse_stream
...
function old new delta
parse_stream 2399 2354 -45
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 12:40:03 +02:00
Dan Fandrich
77d4872691
Avoid side effects in putc(), which may be implemented as a macro
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-09 11:48:02 +02:00
Denys Vlasenko
95d48f2598
hush: eliminate redundant parameter of expand_vars_to_list()
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:58:55 +02:00
Denys Vlasenko
5b686cb8e6
hush: replace flag bytes in struct o_string with bit flags
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:44:34 +02:00
Denys Vlasenko
9b78255dca
hush: remove unused enum typedef
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:33:26 +02:00
Denys Vlasenko
1fd3d94a6c
hush: fix set -- q w e; (IFS='' echo "$*"; IFS=''; echo "$*"); echo "$*"
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-08 13:31:53 +02:00
Denys Vlasenko
b103fb10cf
nc: show help text on bad parameters
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 18:41:56 +02:00
Denys Vlasenko
d55f599440
lineedit: do not hang on error, but return error indicator.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 18:40:53 +02:00
Denys Vlasenko
8b2f13d84d
shell: unify endofname() in hush and ash
...
function old new delta
builtin_umask 132 133 +1
changepath 195 194 -1
expand_and_evaluate_arith 77 69 -8
ash_arith 143 135 -8
expand_one_var 1551 1515 -36
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 1/-53) Total: -52 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 12:19:33 +02:00
Denys Vlasenko
27c56f1267
hush: a few relatively trivial simplifications
...
function old new delta
helper_export_local 130 135 +5
set_vars_and_save_old 89 85 -4
expand_variables 147 141 -6
get_ptr_to_local_var 77 70 -7
get_local_var_value 171 164 -7
delete_finished_bg_job 31 16 -15
hush_exit 101 84 -17
free_pipe_list 31 12 -19
check_and_run_traps 232 205 -27
free_pipe 205 130 -75
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/9 up/down: 5/-177) Total: -172 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 09:56:34 +02:00
Denys Vlasenko
da463fb007
hush: style cleanups. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-07 09:53:50 +02:00
Denys Vlasenko
f38b912fcf
Again fix license line format
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 17:41:46 +02:00
Denys Vlasenko
571c5ab768
blockdev: code shrink
...
function old new delta
blockdev_main 292 255 -37
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 17:37:52 +02:00
Denys Vlasenko
a35dfe6200
blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 16:31:18 +02:00
Denys Vlasenko
3d4a8f8646
made 3 license strings to follow the usual form ("or later" bit is not changed!)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 16:22:25 +02:00
Denys Vlasenko
264bdadb2c
blockdev: -2 bytes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 15:34:15 +02:00
Denys Vlasenko
b4e6b41934
tweak blockdev's help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 14:15:46 +02:00
Denys Vlasenko
b1560000c7
tweak udhcpd help text
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 13:39:59 +02:00
Sergey Naumov
289aff8623
blockdev: new applet
...
function old new delta
blockdev_main - 287 +287
bdcommands - 160 +160
packed_usage 27203 27298 +95
applet_names 2297 2306 +9
applet_main 1352 1356 +4
applet_nameofs 676 678 +2
applet_install_loc 169 170 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 558/0) Total: 558 bytes
Signed-off-by: Sergey Naumov <sknaumov@gmail.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 13:35:58 +02:00
Denys Vlasenko
605067b426
hush: revert a recent buggy change which resulted in two HUSH_VERSIONs
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 12:10:51 +02:00
Denys Vlasenko
83b900fb82
fix typo in comment
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 11:47:55 +02:00
Denys Vlasenko
c3adfacd22
hush: fix another corner case with backslashes in heredocs
...
function old new delta
parse_stream 2395 2432 +37
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 11:46:03 +02:00
Denys Vlasenko
77b32ccbf2
hush: fix backslash and terminator handling in <<[-]["]heredoc["]
...
function old new delta
parse_stream 2339 2395 +56
expand_pseudo_dquoted 104 118 +14
parse_stream_dquoted 296 300 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 74/0) Total: 74 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 11:27:32 +02:00
Denys Vlasenko
c49d2d9793
hush: fix globbing+backslashes in unquoted $var expansion
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 10:26:37 +02:00
Denys Vlasenko
d383b49aef
hush: remove disabled CMD_SINGLEWORD_NOGLOB_COND, rename o_glob->perform_glob
...
+ other small tweaks to comments and such
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 10:22:13 +02:00
Denys Vlasenko
96f064d416
shell: remove lash and bbsh
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-06 10:18:21 +02:00
Denys Vlasenko
e09bff3341
runit_lib: remove/inline a few more things
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 19:28:29 +02:00
Dan Fandrich
8d789e4197
tar: add a test for extraction of read-only directory
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 16:16:46 +02:00
Cristian Ionescu-Idbohrn
6957d79bd6
remove redundant ENABLE_DESKTOP in procps/ps.c
...
Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 15:49:37 +02:00
Denys Vlasenko
b36abf2dfc
hush: big reordering: move parser functions to the beginning. no code changes
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:50:59 +02:00
Denys Vlasenko
38292b68c9
hush: rename o_quoted to has_quoted_part; small code shrink
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:49:40 +02:00
Denys Vlasenko
f2dc20c2d5
hush: move variable expansion into a separate function. No logic changes
...
function old new delta
expand_one_var - 1551 +1551
expand_vars_to_list 2833 1175 -1658
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 1551/-1658) Total: -107 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:48:11 +02:00
Denys Vlasenko
36f774a0cd
hush: add support for ${var/pattern/repl}, conditional on bash compat
...
function old new delta
expand_vars_to_list 2386 2833 +447
expand_string_to_string 69 110 +41
parse_dollar 681 721 +40
hush_main 963 945 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 528/-18) Total: 510 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-05 14:47:58 +02:00
Denys Vlasenko
701e127f7d
hush: optimize #[#] and %[%] for speed. size -2 bytes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-04 21:21:07 +02:00
Denys Vlasenko
e298ce69ba
hush: fix handling of backslashes in variable assignment
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-04 19:52:44 +02:00
Denys Vlasenko
8ae6e9be5c
lzop: fix misordered "v=NULL; free(v)", small code shrink
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-04 19:46:52 +02:00
Denys Vlasenko
0d7cb4cc9e
fix false positive in testsuite/tar.tests
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 17:22:56 +02:00
Dan Fandrich
eb2bf5b6bf
Fix some test cases
...
The tar tests still don't pass, but at least now it's because of
a problem with Busybox and not the tests themselves.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 17:09:51 +02:00
Denys Vlasenko
2ab3acb274
ifupdown: %client%, not %clientid%
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 16:58:37 +02:00
Denys Vlasenko
3926363214
lineedit: on tab completion, show filenames obly in all cases (bash compat)
...
function old new delta
complete_cmd_dir_file 731 730 -1
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 14:11:08 +02:00
Denys Vlasenko
76939e7b72
lineedit: allocate matchBuf only temporarily: saves MAX_LINELEN bytes
...
function old new delta
input_tab 1027 1041 +14
build_match_prefix 590 562 -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-28) Total: -14 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 14:09:24 +02:00
Denys Vlasenko
ba0e103a66
lineedit: de-indent large block in input_tab. No logic changes.
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 14:08:24 +02:00
Denys Vlasenko
a46e16ef52
lineedit: rename tmp -> chosen_match; small code shrink
...
function old new delta
input_tab 1016 1012 -4
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 13:05:51 +02:00
Denys Vlasenko
9b56bf5416
lineedit: stop using permanent int_buf[] (16k!): allocate it
...
Now it is allocated temporarily only for the duretion of prefix generation,
and also we only allocate the needed size, not maximally possible.
function old new delta
build_match_prefix 579 590 +11
remove_chunk 43 28 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-15) Total: -4 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 13:02:47 +02:00
Denys Vlasenko
81254ed387
lineedit: remove pos_buf[] array (up to 16k!); fix compat bugs
...
pos_buf is a strange hack, easy to do without it.
This also allows lines >32k long to be handled.
Also simplified match prefix generations and made behavior more like bash.
function old new delta
remove_chunk - 43 +43
collapse_pos 79 - -79
build_match_prefix 804 579 -225
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 43/-304) Total: -261 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:59:15 +02:00
Denys Vlasenko
3c460b005c
lineedit: return prefix len from tab completion helpers
...
This kills horrific logic which deletes and re-adds prefix (!)
function old new delta
complete_cmd_dir_file 705 731 +26
complete_username 121 124 +3
input_tab 1041 1016 -25
build_match_prefix 838 804 -34
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 29/-59) Total: -30 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:56:36 +02:00
Denys Vlasenko
2679e3c8cc
lineedit: clean up tab completion code (variable reuse, comments)
...
Noted bugs in behavior.
Added debugging machinery.
Decoupled variables reused for unrelated purposes: apparently,
when not forced to use liveness analysis, gcc fares better.
function old new delta
complete_cmd_dir_file 699 705 +6
collapse_pos 75 79 +4
build_match_prefix 892 838 -54
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 10/-54) Total: -44 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:53:15 +02:00
Denys Vlasenko
57ea9b488b
preparatory cleanup patch for tab completion fixes
...
renames and deinlines a few functions
function old new delta
input_tab - 1041 +1041
complete_cmd_dir_file - 699 +699
complete_username - 121 +121
username_completion 121 - -121
read_line_input 5002 3313 -1689
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 0/1 up/down: 1861/-1810) Total: 51 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-03 12:51:36 +02:00
Denys Vlasenko
7063e86d0d
lineedit: small readability improvement (same code)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-02 12:44:39 +02:00
Denys Vlasenko
61a36af45d
lineedit: fix completion with Unicode chars
...
function old new delta
read_line_input 4966 5002 +36
bb_wcstombs 170 159 -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 36/-11) Total: 25 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-02 12:03:11 +02:00
Denys Vlasenko
b068bd7a41
lineedit: preparatory cleanup patch for Unicode completion fix
...
Some logic changes and function renames. The fix will follow this patch,
to mkae it distinct from cleanup.
function old new delta
build_match_prefix - 892 +892
username_completion - 121 +121
read_line_input 4902 4966 +64
username_tab_completion 235 - -235
find_match 892 - -892
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 1/0 up/down: 1077/-1127) Total: -50 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-02 12:01:11 +02:00
Denys Vlasenko
7aa63042d0
libbb: xfunc_error_retval can be a byte
...
function old new delta
xfunc_die 55 60 +5
log_and_exit 43 45 +2
hush_main 961 963 +2
xfunc_error_retval 4 1 -3
tty_main 87 84 -3
sv_main 1183 1180 -3
sort_main 804 801 -3
run_applet_no_and_exit 440 437 -3
puts_maybe_newline 198 195 -3
nohup_main 228 225 -3
httpd_main 753 750 -3
get_header_tar 1496 1493 -3
fsck_minix_main 2972 2969 -3
expr_main 110 107 -3
cmp_main 641 638 -3
chat_main 1359 1356 -3
builtin_exit 48 45 -3
arping_main 1587 1584 -3
BB_EXECVP_or_die 47 44 -3
send_cgi_and_exit 901 895 -6
diff_main 1197 1191 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/18 up/down: 9/-60) Total: -51 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 16:04:24 +02:00
Denys Vlasenko
6f80fe71f0
uudecode,base64: code shrink
...
function old new delta
read_base64 373 358 -15
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 13:24:05 +02:00
Denys Vlasenko
0004e99493
better shared strings trick
...
text data bss dec hex filename
861980 441 7540 869961 d4649 busybox_old
861914 441 7540 869895 d4607 busybox_unstripped
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 12:01:17 +02:00
Denys Vlasenko
9dc04124d5
getty: small code shrink
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-09-01 11:31:43 +02:00
Denys Vlasenko
a61ff51b49
find: add rudimentary support for -exec {} +
...
function old new delta
parse_params 1421 1414 -7
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-31 19:17:42 +02:00
Denys Vlasenko
ee06264a29
base64: new applet
...
function old new delta
base64_main - 217 +217
packed_usage 27181 27229 +48
read_base64 348 373 +25
applet_names 2299 2306 +7
bbconfig_config_bz2 4942 4948 +6
applet_main 1352 1356 +4
applet_nameofs 676 678 +2
applet_install_loc 169 170 +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/0 up/down: 310/0) Total: 310 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-31 14:09:22 +02:00
Denys Vlasenko
8d3e225a2d
libbb: add xfstat function
...
function old new delta
xfstat - 25 +25
mkfs_ext2_main 2421 2423 +2
mkfs_reiser_main 1197 1194 -3
next 312 307 -5
ar_main 533 522 -11
mkfs_minix_main 2938 2924 -14
mkfs_vfat_main 1511 1495 -16
writeTarFile 272 255 -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/6 up/down: 27/-66) Total: -39 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-31 12:42:06 +02:00
Denys Vlasenko
4e7dd3c363
mkswap: clear 1st kilobyte. Closes bug 1831
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-31 01:50:03 +02:00
Denys Vlasenko
c71ec70616
iplink: another compat #ifndef/#define tweak
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-30 19:20:09 +02:00
Denys Vlasenko
0ff78a0166
ash: small code shrink (-21 bytes)
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-30 15:20:07 +02:00
Denys Vlasenko
f7a8433535
ash: add another ${v/a/b} test we currently fail
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-30 13:54:12 +02:00
Denys Vlasenko
25b4755302
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-30 01:19:47 +02:00
Denys Vlasenko
d493e9361f
remove stray debugging stuff
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 14:39:45 +02:00
Denys Vlasenko
9ce07e778f
bbconfig: add COMPRESS_BBCONFIG option
...
function old new delta
bbconfig_config_bz2 - 4905 +4905
bbconfig_main 13 70 +57
bbconfig_config 21811 - -21811
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/0 up/down: 4962/-21811) Total: -16849 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 14:36:11 +02:00
Baruch Siach
7715b48c36
nandwrite: always check the first erase block
...
Current code does not check the first erase block when mtdoffset is not erase
block aligned. Fix this.
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 13:30:22 +02:00
Denys Vlasenko
b32a543663
nandwrite: complain on malformed -s NUM
...
Elsewhere: use common error message. -30 bytes net size change
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 13:29:02 +02:00
Baruch Siach
a78227dc73
nandwrite: allow hex values in the -s parameter
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 13:15:57 +02:00
Denys Vlasenko
cc131534e2
showkey: code shrink
...
function old new delta
signal_handler 52 45 -7
showkey_main 461 454 -7
xset1 40 29 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 05:00:40 +02:00
Dan Fandrich
140ac91fe1
testsuite: show the number of failures after a test run
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 04:47:03 +02:00
Denys Vlasenko
91234b9be0
typo fixes in config help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-29 02:06:50 +02:00
Alexander Shishkin
0834a6d3b9
pmap: new applet. +1k.
...
pmap is a tool used to look at processes' memory maps, normally found
in procps package. It provides more readable and easily sortable output
(one line per mapping) from maps/smaps files in /proc/PID/. This would
help in debugging memory usage issues, especially on devices where lots
of typing is not a viable option.
This patch does'n implement -d and -A command line options of GNU pmap,
since those are not that must have features and I was afraid of going
blind from looking at its code.
The implementation takes smaps scanning part out of procps_scan() function
and moves it into procps_read_smaps(), which does more detailed processing
of a single PID's smaps data.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-28 23:20:34 +02:00
Denys Vlasenko
74c992af5c
ntpd: with -q, exit after 60 seconds even if time is not synced.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-27 02:15:01 +02:00
Denys Vlasenko
1cd0d86005
modutils: explain why we no longer quote params
...
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-25 18:26:46 +02:00
Carmelo AMOROSO
1396221d5a
insmod: Do not add a pair of "" around the arguments of the module.
...
If there are some spaces in the insmod command line, then
this will be splitted in single words as separate elements of
argv. It just needs to chain them together in the options string
passed to the sys_init_module syscall.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-25 18:19:22 +02:00
Baruch Siach
6f32ea4039
nandwrite: new applet
...
function old new delta
nandwrite_main - 382 +382
packed_usage 27119 27135 +16
applet_names 2275 2285 +10
applet_main 1340 1344 +4
applet_nameofs 670 672 +2
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/0 up/down: 414/0) Total: 414 bytes
Signed-off-by: Baruch Siach <baruch@tkos.co.il >
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com >
2010-08-25 16:36:17 +02:00
Dan Fandrich
159677c884
Rename a struct member from "interrupt"
...
This is nonstandard, but common, keyword in embedded compilers.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-24 07:38:34 +02:00
Denys Vlasenko
7ff6836db3
split: use xopen_stdin()
...
function old new delta
split_main 558 543 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-23 03:06:46 +02:00
Denys Vlasenko
3d8b96d58d
grep: fix -o match with empty string (suggested by Colin Watson <cjwatson@ubuntu.com>)
...
function old new delta
grep_file 1216 1251 +35
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-23 02:39:47 +02:00
Denys Vlasenko
b276e41835
ip: add a #define for older kernels
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-22 10:02:55 +02:00
Denys Vlasenko
adbe3b5b98
build system: make 3.82 fix. Closes bug 2323
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-22 09:28:46 +02:00
Denys Vlasenko
e7b0a9e5bc
patch: support "patch [FILE [PATCH]]" format
...
function old new delta
xopen_stdin - 15 +15
patch_main 2075 2041 -34
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-22 05:39:15 +02:00
Denys Vlasenko
fd27fa8309
libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-17 17:21:36 +02:00
Bob Dunlop
d71c770f05
libbb: shrink obscure()
...
function old new delta
string_checker_helper 59 45 -14
string_checker 116 98 -18
obscure 367 204 -163
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-195) Total: -195 bytes
Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-17 16:01:16 +02:00
Denys Vlasenko
cda815996b
patch: fix -N regression
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-17 01:31:40 +02:00
Denys Vlasenko
bdaea46318
nmeter: fix misplaced closing comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 20:42:14 +02:00
Denys Vlasenko
0ef64bdb40
*: make GNU licensing statement forms more regular
...
This change retains "or later" state! No licensing _changes_ here,
only form is adjusted (article, space between "GPL" and "v2" and so on).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 20:14:46 +02:00
Denys Vlasenko
0d555fc951
sed: make N command behave as in GNU sed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 16:26:33 +02:00
Denys Vlasenko
f2860bf6d3
mdev: fix non-working device deletion, add a test for that
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 14:26:15 +02:00
Denys Vlasenko
867ffb9616
platform.h: regularize endian detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 03:24:40 +02:00
Denys Vlasenko
9768a82eb0
*: fix "see file License ..." - the file is named LICENSE (in uppercase)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 03:04:14 +02:00
Denys Vlasenko
3f75d7bfd2
patch: uncomment the test which we actually do pass now
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 02:56:32 +02:00
Denys Vlasenko
c9b9750a0e
libbb: factor out common code from mpstat/iostat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 02:49:21 +02:00
Denys Vlasenko
a4160e15ec
patch: add -N and a test for it (fails for now)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-16 01:33:57 +02:00
Denys Vlasenko
6373bb7740
patch: move closer to toybox code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-13 16:41:15 +02:00
Rob Landley
760d0ebbe5
patch: deal with ommitted ",len" in hunk headers (default len to 1)
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-13 16:40:21 +02:00
Rob Landley
1bbc0cd7f2
patch: replace it with toybox's implementation
...
Signed-off-by: Rob Landley <rob@landley.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-13 15:50:26 +02:00
Denys Vlasenko
dcaed97e0f
iostat: add forgotted fclose(); fix default count.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-12 15:36:34 +02:00
Denys Vlasenko
7783248eaa
*: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_i
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-12 14:14:45 +02:00
Denys Vlasenko
7bfbbd434a
free: more compatible output. +16 bytes. Closes bug 2383.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-12 01:56:44 +02:00
Marek Polacek
733f26f407
iostat: new applet. 2800 bytes
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 17:00:59 +02:00
Macpaul Lin
58662f2c93
modutils: Add support for NDS32 architecture.
...
Add support of NDS32 architecture to modutils.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:12:07 +02:00
Macpaul Lin
1fbaf3a2d1
fdisk: Add support for NDS32 architecture.
...
NDS32 is a new architecture invented by Andestech.com.
This patch add the support to fdisk utility.
Signed-off-by: Macpaul Lin <macpaul@andestech.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:12:00 +02:00
Dan Fandrich
9669363740
Remove some more mentions of Subversion
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:09:37 +02:00
Dan Fandrich
775965de85
Improved portability of tests
...
Removed assumptions about umask and locale. Fixed hostname
tests to work even when the host has no DNS domain set.
Signed-off-by: Dan Fandrich <dan@coneharvesters.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 14:09:28 +02:00
Denys Vlasenko
f03fc7d77a
ntpd: mention -N in help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-11 05:15:52 +02:00
Denys Vlasenko
81d9e60a88
Set HWCLOCK_ADJTIME_FHS to off by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-10 15:14:36 +02:00
Denys Vlasenko
d07b20ff14
rtc: remove useless code in "RTC is in UTC" detection
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-10 13:06:06 +02:00
Denys Vlasenko
da0df47f24
wget: fix ndelay_on call; progress bar: small shrink
...
function old new delta
bb_progress_update 682 670 -12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-08 04:21:50 +02:00
Denys Vlasenko
64f2ba276c
wget: make -T support enabled by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-08 02:59:06 +02:00
Bradley M. Kuhn
c97131c2af
wget: implement -T SEC; rework progress meter to not use signals (it was unsafe)
...
function old new delta
retrieve_file_data 364 450 +86
bb_progress_update 615 682 +67
packed_usage 27406 27422 +16
wget_main 2440 2453 +13
static.wget_longopts 145 155 +10
progress_meter 199 159 -40
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/1 up/down: 192/-40) Total: 152 bytes
Signed-off-by: Bradley M. Kuhn <bkuhn@ebb.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-08 02:51:20 +02:00
Denys Vlasenko
33bbb27e45
ash: fix another bit of var_bash4 bug
...
But it _still_ doesn't pass! quoted case is a tough nut to crack
function old new delta
redirect 1281 1286 +5
subevalvar 1141 1142 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 22:24:36 +02:00
Denys Vlasenko
58a15cd9d2
Fix a typo in config text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 14:02:26 +02:00
Denys Vlasenko
0d98b4409b
udhcpc: add -v to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 02:56:43 +02:00
Denys Vlasenko
09dd6ec732
ash: cosmetic fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-07 02:44:33 +02:00
Denys Vlasenko
1614900522
ash: fix another bug detected by var_bash4.tests
...
... but var_bash4.tests still does not pass!
function old new delta
expandarg 959 962 +3
localcmd 259 257 -2
readtoken1 3275 3260 -15
subevalvar 1178 1141 -37
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 3/-54) Total: -51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 22:06:21 +02:00
Denys Vlasenko
c8d305d89f
var_bash4.tests: better wording in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 19:28:04 +02:00
Denys Vlasenko
f02c82f38c
ash: fix dequoting error detected by var_bash4 test
...
But the test still fails (one more bug to fix)
function old new delta
changepath 195 192 -3
readtoken1 3247 3240 -7
subevalvar 1204 1184 -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-30) Total: -30 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 19:14:47 +02:00
Denys Vlasenko
f56fe82542
update var_bash4 test. one more bug revealed by it now...
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 17:21:52 +02:00
Waldemar Brodkorb
95b83ba4f8
OpenBSD compatibility
...
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-06 09:17:26 +02:00
Denys Vlasenko
6814cbc928
ash: extend var_bash4.tests; nocode changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-05 18:29:13 +02:00
Denys Vlasenko
b0fbe4b540
ash: add a testcase for bug 2281 (currently fails). Small code cleanups.
...
function old new delta
changepath 195 192 -3
subevalvar 1204 1200 -4
readtoken1 3247 3240 -7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-14) Total: -14 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-05 17:19:27 +02:00
Daniel Dickinson
e74d79866c
syslogd: close/re-resolve/reopen remote sockets on some sendto() errors
...
function old new delta
syslogd_main 1201 1262 +61
Signed-off-by: Daniel Dickinson <cshore@csolve.net >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-03 04:26:20 +02:00
Denys Vlasenko
6e06da5efd
update _shipped file with hurd fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-02 02:17:25 +02:00
Denys Vlasenko
b883bc9884
sed.tests: make last test less confusing
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 04:19:59 +02:00
Denys Vlasenko
2e284a40bc
sed: fix sed -i: unlike without -i, it does not forget ranges
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 04:14:46 +02:00
Jeremie Koenig
138ce54c9c
stty: sort out preprocessor conditionals
...
* Move the definitions of missing constants to the top of the file.
* Fix undefined IDX_xxx on missing termios constants.
* FreeBSD has TABDLY, TAB0 and TAB3, but no TAB1 or TAB2
* Omit the definition of set_window_size() if TIOCGWINSZ is not available.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 03:31:35 +02:00
Jeremie Koenig
63c2e7ecc0
klogd: make it work on non-linux systems
...
The klogctl() interface allows changing the console loglevel, but is
Linux-specific. The more portable method of reading from _PATH_KLOG is
added as an alternative.
Adapted from the Debian kFreeBSD patch at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian/klogd.diff
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-08-01 03:01:44 +02:00
Denys Vlasenko
17662801ec
cttyhack: make it survive WERROR build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 17:41:35 +02:00
Jeremie Koenig
430ba79c39
cttyhack: serial console detection is Linux-specific
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 17:40:37 +02:00
Marek Polacek
85a359afab
mpstat: do not use /sys to get number of CPUs. /proc should be ok.
...
function old new delta
get_cpu_nr - 137 +137
mpstat_main 1140 1131 -9
get_proc_cpu_nr 137 - -137
get_sys_cpu_nr 178 - -178
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 0/1 up/down: 137/-324) Total: -187 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 16:43:11 +02:00
Denys Vlasenko
3fb4a5e6d8
mpstat: better fix for IRQ counts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 13:55:35 +02:00
Denys Vlasenko
9bb0510b9b
mpstat: fix total par-cpu IRQ counts
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 13:38:46 +02:00
Denys Vlasenko
64c67891a2
mpstat: fix/improve handling of interrupt names
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 12:45:14 +02:00
Maksym Kryzhanovskyy
5e87c2ef15
mpstat: small code shrink
...
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 03:56:02 +02:00
Jeremie Koenig
68fca4cd55
vlock: disable linux console calls on other systems
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 03:03:29 +02:00
Jeremie Koenig
e7a0632b7b
bootchartd: mounting tmpfs is Linux-specific
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 01:16:00 +02:00
Jeremie Koenig
5a71fb8202
less: remove misguided dependency on PLATFORM_LINUX
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-30 01:15:46 +02:00
Leonid Lisovskiy
1538c975ec
testsuite: typo in tr.tests
...
Hi
tr.tests script from bb 1.17 testsuite has wrong "optional"
conditional clauses. As result, some tr tests was skipped even if
CONFIG_FEATURE_TR_CLASSES=y. Patch attached fixes problem for me.
- Leonid
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-29 10:11:09 +02:00
Bernhard Reutner-Fischer
64b6f7cfba
doc: remove trailing empty line
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-29 09:34:04 +02:00
Denys Vlasenko
506d3a9bca
dc: tweak help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-29 04:06:07 +02:00
Denys Vlasenko
7a07b0ee6a
dc: make it use long longs for integer ops
...
function old new delta
print_base 176 238 +62
or 91 103 +12
eor 91 103 +12
and 91 103 +12
not 60 64 +4
mod 103 105 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 104/0) Total: 104 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-29 04:00:27 +02:00
Denys Vlasenko
416f0405cb
less: fix duplicate "depends on PLATFORM_LINUX". no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-29 02:26:22 +02:00
Bernhard Reutner-Fischer
3d615b8a41
find_stray_empty_lines: make it work
...
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-28 21:29:19 +02:00
Javier Viguera
a3f71001c3
find_stray_empty_lines: fix tail "invalid context" error
...
"tail -1" works only with one input file. Using it with multiple input
files throws following error on Ubuntu systems:
tail: option used in invalid context
Adding "-n" makes it work on all cases.
Signed-off-by: Javier Viguera <javier.viguera@digi.com >
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com >
2010-07-28 21:01:55 +02:00
Alexander Shishkin
17e0e43c35
ulimit: set both hard and soft limits by default
...
function old new delta
shell_builtin_ulimit 494 498 +4
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-27 08:40:55 +02:00
Denys Vlasenko
06702365d7
mktemp: fix for dir/file.XXXXXX param (by Rob). +9 bytes.
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-27 08:26:32 +02:00
Denys Vlasenko
b4d035165f
*: s/spaces/tabs/
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 12:47:36 +02:00
Denys Vlasenko
f0b82142b2
*: fix unterminated last lines. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 12:26:04 +02:00
Peter Korsgaard
e5dbd56d77
httpd: simplified "gzip" test
...
function old new delta
handle_incoming_and_exit 2830 2807 -23
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 02:08:35 +02:00
Denys Vlasenko
ba2dcccd79
*: trailing empty lines removed
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 01:49:12 +02:00
Denys Vlasenko
0f8960542f
*: more empty lines removed. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 01:35:44 +02:00
Denys Vlasenko
f3ea792bad
*: mass cosmetic removal of extra empty lines. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 01:06:14 +02:00
Alexander Shishkin
ccb9771861
ash: fix $! value when traps are set
...
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 13:07:39 +02:00
Peter Korsgaard
7a2ba329b9
httpd: optional support for gzip-compressed pages
...
function old new delta
send_file_and_exit 662 761 +99
handle_incoming_and_exit 2756 2830 +74
send_headers 603 654 +51
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 224/0) Total: 224 bytes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 03:20:53 +02:00
Denys Vlasenko
535ce1df5c
httpd: cosmetic fixes, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 03:20:25 +02:00
Denys Vlasenko
451add4f23
lineedit: mostly revert recent wrong logic in "ask terminal" code
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-25 00:06:41 +02:00
Denys Vlasenko
2e9b5510d6
libiproute: code shrink by adding FAST_FUNC
...
function old new delta
ipaddr_list_or_flush 1282 1293 +11
ip_parse_common_args 153 151 -2
ip_main 53 50 -3
ip_do 19 15 -4
do_iptunnel 985 980 -5
do_iprule 982 977 -5
do_iplink 1637 1631 -6
do_iproute 2105 2098 -7
do_ipaddr 1406 1398 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 11/-40) Total: -29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-24 23:27:38 +02:00
Denys Vlasenko
e0a622093c
ip: fix "ip r" breakage
...
function old new delta
static.ip_func_ptrs - 32 +32
ip_main 110 53 -57
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 32/-57) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-24 23:26:58 +02:00
Natanael Copa
b78ac5a20e
libnetlink: code shrink
...
function old new delta
xrtnl_open 95 93 -2
parse_rtattr 87 85 -2
rtnl_close 9 - -9
xrtnl_wilddump_request 101 64 -37
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-50) Total: -50 bytes
Signed-off-by: Natanael Copa <natanael.copa@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-23 01:31:24 +02:00
Maksym Kryzhanovskyy
4f0279bd93
ifplugd: code shrink
...
function old new delta
ifplugd_main 1089 1161 +72
method_table - 40 +40
detect_link 221 207 -14
static.method 40 - -40
netlink_open 79 - -79
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 1/1 up/down: 112/-133) Total: -21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-22 02:18:05 +02:00
Denys Vlasenko
c5fb0ada9b
vi: fix "ask terminal" code
...
function old new delta
edit_file 761 793 +32
refresh 773 780 +7
query_screen_dimensions 63 54 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 12:39:42 +02:00
Denys Vlasenko
217df6ea9f
mpstat: small code shrink
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 11:54:33 +02:00
Marek Polacek
23e8c08fa2
mpstat: new applet. ~5.5k
...
Signed-off-by: Marek Polacek <mmpolacek@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 10:29:07 +02:00
Denys Vlasenko
ba085c6351
make DESKTOP=y the default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-21 08:58:11 +02:00
Jeremie Koenig
2ea12d8b6d
tcpsvd,udpsvd: conditionalize usage of SO_ORIGINAL_DST
...
On systems without this call, $TCPORIGDSTADDR is not set.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:57 +02:00
Jeremie Koenig
29885114a5
libbb: conditionalize AF_* usage in error reporting
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:47 +02:00
Jeremie Koenig
84b01d5afc
mkdir: fix -p on FreeBSD
...
This patch is libbb.make_directory.diff from Debian kFreeBSD at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:28 +02:00
Jeremie Koenig
816ed971e4
libbb.h: add device names for Hurd and FreeBSD
...
Adapted from include.libbb.diff from the Debian kFreeBSD people:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:23 +02:00
Jeremie Koenig
1c05303fdc
init: make the initial $TERM value configurable
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:46:00 +02:00
Jeremie Koenig
714674e4da
init,halt: portability improvements
...
* make init and halt use the same RB_* constants for reboot()
* conditionalize the Linux-specific code
Inspired by init.init.diff from the Debian kFreeBSD patches at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:45:51 +02:00
Jeremie Koenig
f812eace18
init,loginutils: termios portability fixes
...
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:45:42 +02:00
Jeremie Koenig
1d7266d3b5
mark Linux-specific configuration options
...
PLATFORM_LINUX is used as a dependency for applets or features
which require Linux-specific interfaces.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:44:56 +02:00
Jeremie Koenig
b175462422
readlink: use xmalloc_realpath()
...
Using realpath() directly with a non-NULL output buffer is unsafe because its
behavior is unspecified on systems which don't have PATH_MAX (ie. Hurd)
I beleive this also fixes a small bug whereby 'buf' would not be freed
on 'readlink -v' with ENABLE_FEATURE_CLEANUP.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-19 00:43:05 +02:00
Alexander Shishkin
daf286cda5
Fix out-of-tree build's recursion
...
While doing O=build build I've noticed that it was getting gradually
slower with each invocation. The reason turned out to be that the build
directory was inside the source tree and got recreated inside itself
with all its subdirectories.
This patch changes the behavior so that only the directories with
Kbuild.src or Config.src in them are created in the out-of-tree build
directory. A quick rebuild from scratch revealed no problems with this.
Signed-off-by: Alexander Shishkin <virtuoso@slind.org >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 23:57:49 +02:00
Denys Vlasenko
fb4cb1c416
tweak defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 23:02:36 +02:00
Denys Vlasenko
55241fa2e0
lineedit: limit ASK_TERMINAL to the case when we can't find out the width
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 22:53:06 +02:00
Denys Vlasenko
b9e35dc15d
lineedit: cosmetics, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 22:21:24 +02:00
Denys Vlasenko
4cab7f3e63
depmod: generate "new-style" modules.dep with relative paths.
...
function old new delta
parse_module 384 379 -5
depmod_main 590 559 -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-36) Total: -36 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-18 17:41:17 +02:00
Denys Vlasenko
d1516c4d62
dos2unix: fix the case w/o parameters
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-17 22:43:42 +02:00
Denys Vlasenko
6adf2aad38
hush: move msh/lash config into hush.c, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 19:26:38 +02:00
Denys Vlasenko
51ca7761a3
cttyhack: move build system bits into cttyhack.c, no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 17:16:40 +02:00
Denys Vlasenko
5d26df6497
tweak defconfig
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 15:31:38 +02:00
Denys Vlasenko
771f1995a9
ash: move config stuff into ash.c, no code chages
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 14:31:34 +02:00
Denys Vlasenko
29082231d0
hush: fix multimple dependent variable expansion cases
...
function old new delta
get_local_var_value 100 171 +71
expand_assignments 46 76 +30
reset_traps_to_defaults 229 238 +9
maybe_set_to_sigexit 47 50 +3
init_sigmasks 211 214 +3
builtin_trap 462 465 +3
expand_vars_to_list 2412 2408 -4
run_pipe 1568 1533 -35
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/2 up/down: 119/-39) Total: 80 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 13:52:32 +02:00
Denys Vlasenko
202a2d1219
hush: make set -x support optional
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 12:36:14 +02:00
Denys Vlasenko
3f5fae0772
hush: add support for set -x
...
function old new delta
run_pipe 1442 1568 +126
dump_cmd_in_x_mode - 126 +126
builtin_trap 441 462 +21
pseudo_exec_argv 171 187 +16
reset_traps_to_defaults 214 229 +15
check_and_run_traps 227 232 +5
hush_exit 98 101 +3
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 6/0 up/down: 312/0) Total: 312 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-16 12:35:35 +02:00
Denys Vlasenko
b3389de04b
hush: fix typo in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-15 12:33:37 +02:00
Denys Vlasenko
8fa1f5d543
hush: fix faloout from previous commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-15 08:18:46 +02:00
Denys Vlasenko
889550b36b
hush: make pun_pipe loop clearer; fix "cmd | var=cmd | cmd" handling
...
function old new delta
free_strings - 38 +38
pseudo_exec_argv 161 171 +10
free_pipe 227 205 -22
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 48/-22) Total: 26 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-14 19:01:25 +02:00
Denys Vlasenko
6ac37da425
build system: disable some applets by default
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-14 08:33:20 +02:00
Denys Vlasenko
0e450669d4
util-linux: move VOLUMEID to a submenu
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-14 07:10:47 +02:00
Denys Vlasenko
a95ce93e57
top: add tie breaking for topmem mode
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-13 12:13:04 +02:00
Denys Vlasenko
6af732b9ae
acpid: old kernel headers compat
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 06:20:11 +02:00
Denys Vlasenko
04a5d5ad15
mktemp: fix "mktemp /path/to/tempfile.XXXXXX"
...
function old new delta
mktemp_main 152 167 +15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 03:43:39 +02:00
Denys Vlasenko
c5bbd5d085
wget: fix progress display
...
function old new delta
progress_meter 187 199 +12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 03:27:09 +02:00
Denys Vlasenko
d8b989f22d
more: style fix. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-12 03:14:17 +02:00
Denys Vlasenko
69d69e2cb8
crond: mention other cronds' behavior in comment. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-11 23:20:15 +02:00
Denys Vlasenko
729f39dd17
remove unzip doc: we don't have 100% proof it's ok to distribute
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-10 19:52:13 +02:00
Denys Vlasenko
75703eb8d5
diff: make diff -r much less eager to recurse into directories
...
function old new delta
skip_dir 44 120 +76
diff_main 1175 1185 +10
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-10 16:25:47 +02:00
Lauri Kasanen
a48a29f921
Modprobe: Make -l open the right file
...
Before: modprobe -l
modules.dep not found
No size change, just moved the chdir.
Signed-off-by: Lauri Kasanen <curaga@operamail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-10 01:27:03 +02:00
Denys Vlasenko
32a6baeefa
diff: cosmetic change on top of last commit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-09 19:44:38 +02:00
Matheus Izvekov
61f5f7823c
diff: fix "diff dir1 dir2/". Closes bug 2203
...
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-09 19:40:00 +02:00
Denys Vlasenko
1883cb1746
fix make O=dir build
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-09 01:25:36 +02:00
Denys Vlasenko
1f0ab1dc64
crond: code shrink
...
function old new delta
crond_main 1431 1472 +41
fork_job 457 389 -68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 16:12:10 +02:00
Denys Vlasenko
45963c873c
crond: rename HumpBack names. Note two TODOs/FIXMEs
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 15:37:10 +02:00
Denys Vlasenko
dfc870fab7
crond: check mtime on crontab dir every minute, and reread if changed
...
function old new delta
crond_main 1417 1460 +43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 04:07:54 +02:00
Denys Vlasenko
4a09aefae2
crond: reorder functions to follow usual order: "main last"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 04:07:15 +02:00
Maksym Kryzhanovskyy
9388b4e720
ifplugd: code shrink
...
function old new delta
detect_link 122 221 +99
api_modes - 7 +7
maybe_up_new_iface 27 33 +6
ifplugd_main 1143 1089 -54
detect_link_auto 117 - -117
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/1 up/down: 112/-171) Total: -59 bytes
Signed-off-by: Maksym Kryzhanovskyy <xmaks@email.cz >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 02:47:25 +02:00
Denys Vlasenko
1d36f24bcb
make usage_compressed.h generation _always_ update mtime
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-08 02:29:47 +02:00
Denys Vlasenko
d3c2b71ffa
crond: code shrink
...
function old new delta
ForkJob 513 457 -56
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 18:47:00 +02:00
Denys Vlasenko
8f65b0cf31
whitespace fixes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 18:46:02 +02:00
Denys Vlasenko
7a2aa87c75
bootchartd: fix labels in config system. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 15:49:01 +02:00
Denys Vlasenko
89a1cace3b
Start 1.18.0 development cycle
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-06 15:47:35 +02:00