Denis Vlasenko
7ab5e3dfcd
svlogd: fix compat problem: svlogd -tt should timestanp stderr too
2007-10-22 15:53:34 +00:00
Denis Vlasenko
78ee7c853a
httpd: fix trivial bug (spotted by Alex Landau)
2007-10-21 23:24:42 +00:00
Denis Vlasenko
6fa3ab3cf1
bzip2: make -d actually work
2007-10-21 18:59:58 +00:00
Denis Vlasenko
e5387a0574
bb_askpass: handle Ctrl-C, restore termoios on Ctrl-C.
...
sulogin: remove alarm handling, as it is redundant there.
code shrink. After all differences cancel out:
text data bss dec hex filename
777543 1000 9532 788075 c066b busybox_old
777543 1000 9532 788075 c066b busybox_unstripped
2007-10-20 19:20:22 +00:00
Denis Vlasenko
037576d77b
read_line_input: fix it to not do any fancy editing if echoing is disabled.
...
ash: make read handling both more correct and smaller
read_line_input 4037 4101 +64
input_backward 140 139 -1
readcmd 1079 1070 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 65/-10) Total: 54 bytes
text data bss dec hex filename
777575 1000 9532 788107 c068b busybox_old
777629 1000 9532 788161 c06c1 busybox_unstripped
2007-10-20 18:30:38 +00:00
Denis Vlasenko
99014e8965
more fixes for help text wrt long options
2007-10-20 14:54:58 +00:00
Denis Vlasenko
a03945aa84
website: add link to "No ifup" document
2007-10-20 04:44:08 +00:00
Denis Vlasenko
2edbc2ab85
ping: fix breakage from -I fix
...
passwd: SELinux support by KaiGai Kohei <kaigai@ak.jp.nec.com>
2007-10-20 02:00:49 +00:00
Denis Vlasenko
aa7a888e42
kbd_mode: new applet by Loïc Grenié <loic.grenie@gmail.com>
...
kbd_mode_main - 189 +189
packed_usage 22745 22833 +88
applets 3132 3144 +12
static.opts 7 12 +5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 294/0) Total: 294 bytes
text data bss dec hex filename
777210 1000 9532 787742 c051e busybox_old
777575 1000 9532 788107 c068b busybox_unstripped
2007-10-20 00:17:34 +00:00
Denis Vlasenko
85ff862753
mkswap: selinux support by KaiGai Kohei <kaigai@ak.jp.nec.com>
2007-10-19 21:49:48 +00:00
Denis Vlasenko
1a7afb48da
paing: make -I ethN work too (-I addr already worked)
2007-10-19 21:39:25 +00:00
Denis Vlasenko
fcc569637b
unzip: add a comment explaining why we don't die
2007-10-19 21:03:09 +00:00
Denis Vlasenko
bc7c5d082e
unzip: fix endianness bugs
2007-10-18 23:27:46 +00:00
Denis Vlasenko
34cd7afc49
httpd: free big buffer after use; improve grep-ability of 'headers' variable
2007-10-18 13:01:22 +00:00
Denis Vlasenko
f74194e942
xatonum.h: add comment
...
lineedit: fix typo in comment
httpd: support for proxying connection to other http server
(by Alex Landau <landau_alex@yahoo.com>)
2007-10-18 12:54:39 +00:00
Denis Vlasenko
0363078437
more of usage text fixes wrt long options
2007-10-18 11:11:12 +00:00
Denis Vlasenko
73e5ed2206
exclude --longopts from usage texts if those are disabled
2007-10-18 10:52:36 +00:00
Denis Vlasenko
740eae0585
snv add setsebool
2007-10-18 10:46:42 +00:00
Denis Vlasenko
e87b8689d2
telnetd: make sure telnetd -K exits if child dies
2007-10-17 14:33:31 +00:00
Denis Vlasenko
9e23767ef5
telnetd: trivial optimization
2007-10-17 11:18:49 +00:00
Denis Vlasenko
0de37e10ed
ash: use fdprintf, not dprintf.
...
*: trailing whitespace removed
2007-10-17 11:08:53 +00:00
Denis Vlasenko
31acd1ba0a
bzip2: more of code shrink
...
compressStream 503 473 -30
BZ2_bzCompress 78 - -78
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-108) Total: -108 bytes
text data bss dec hex filename
676300 2538 12104 690942 a8afe busybox_old
676192 2538 12104 690834 a8a92 busybox_unstripped
2007-10-17 10:14:11 +00:00
Denis Vlasenko
16e74b7464
another fix for build failure found by randomconfig
2007-10-17 09:59:01 +00:00
Denis Vlasenko
aff3a306b8
even more fixes from randomconfig runs
2007-10-16 23:00:50 +00:00
Denis Vlasenko
5576136563
fixes revealed by randomconfig run
2007-10-16 22:53:05 +00:00
Denis Vlasenko
23c8128916
telnetd: fix comment
2007-10-16 22:01:23 +00:00
Denis Vlasenko
f472b237a1
telnetd: code shrink suggested by Ralf Friedl <Ralf.Friedl@online.de>
2007-10-16 21:35:17 +00:00
Denis Vlasenko
686b0ef7d8
bzip2: move state pointer to the offset 0 (smaller code)
...
ifdef out DecompressEnd if FEATURE_CLEAN_UP is not seleted
fallbackSort 1655 1672 +17
mainSort 2447 2458 +11
bzip2_main 109 119 +10
.rodata 123466 123469 +3
generateMTFValues 433 435 +2
handle_compress 355 356 +1
BZ2_bzCompress 79 78 -1
prepare_new_block 55 48 -7
compressStream 547 503 -44
sendMTFValues 2225 2140 -85
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/4 up/down: 44/-137) Total: -93 bytes
text data bss dec hex filename
676421 2538 12104 691063 a8b77 busybox_old
676328 2538 12104 690970 a8b1a busybox_unstripped
2007-10-16 14:07:41 +00:00
Denis Vlasenko
008eda2c54
bzip2: make -s equivalent to -2 (compatible with standard bzip2)
...
telnetd: typo fix in comment
2007-10-16 10:47:27 +00:00
Denis Vlasenko
2450c450ab
telnetd: at Alexander Kriegisch <Alexander@kriegisch.name> insistence
...
add an option to close sessions as soon as child exits.
Maybe it should be a CONFIG option. OTOH, maybe it should be always on,
as it mimics, say, getty's behaviour.
function old new delta
handle_sigchld - 49 +49
telnetd_main 1312 1355 +43
.rodata 123429 123466 +37
packed_usage 22770 22806 +36
make_new_session 525 532 +7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 172/0) Total: 172 bytes
text data bss dec hex filename
676285 2538 12104 690927 a8aef busybox_old
676421 2538 12104 691063 a8b77 busybox_unstripped
2007-10-15 22:09:15 +00:00
Denis Vlasenko
10916c5c6b
telnetd: document bug in remove_iacs. reinstate band-aid
...
which was making it near-impossible to trigger.
remove memmove call which was happening at each network read,
and in 99%+ cases was not needed. Unfortunately, +50 bytes.
2007-10-15 17:28:00 +00:00
Denis Vlasenko
59d7c43dbe
telnetd: some simplifications and better error hadling.
...
telnetd: don't SIGKILL child when closing the session.
kernel will seng SIGHUP for us.
static.iacs_to_send - 15 +15
.rodata 123418 123429 +11
make_new_session 549 525 -24
send_iac 26 - -26
free_session 144 118 -26
telnetd_main 1303 1261 -42
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/3 up/down: 26/-118) Total: -92 bytes
text data bss dec hex filename
676341 2538 12104 690983 a8b27 busybox_old
676234 2538 12104 690876 a8abc busybox_unstripped
2007-10-15 15:19:36 +00:00
Denis Vlasenko
d898b8600c
bzip2: update help text
2007-10-14 07:57:26 +00:00
Denis Vlasenko
b6ccd32e3f
bzip2: implement -1..-9 command line flags
2007-10-14 07:51:19 +00:00
Denis Vlasenko
6a9154b6f6
bzip2: eliminate some divisions
2007-10-14 07:49:48 +00:00
Denis Vlasenko
3f5fdc7572
remove trailing whitespace
2007-10-14 04:55:59 +00:00
Denis Vlasenko
be039374f3
setsebool: new applet (Yuichi Nakamura <ynakam@hitachisoft.jp>)
2007-10-14 04:48:44 +00:00
Denis Vlasenko
4a4575686e
httpd: fix bug where we were trying to read more POSTDATA than content-length
2007-10-14 02:34:20 +00:00
Denis Vlasenko
9435993b01
bzip2: code size shrink
2007-10-14 01:37:53 +00:00
Denis Vlasenko
be5a7b9655
bzip2: remove files which are not used anymore
2007-10-14 00:44:10 +00:00
Denis Vlasenko
ef3aabe906
bzip2: size reduction, to just below 9k.
2007-10-14 00:43:01 +00:00
Denis Vlasenko
77f1ec1b9b
bzip2: port bzip2 1.0.4 to busybox. note: bzip2 code resides
...
in separate directory (archival/bz/*)
and is covered by BSD-style license.
code size: 13k
2007-10-13 03:36:03 +00:00
Denis Vlasenko
11c23d7b99
whitespace/style fix
2007-10-11 19:53:10 +00:00
Denis Vlasenko
8add068573
mt: eliminate vector of structures with pointers (bad for libbusybox).
...
It's a win for static build too:
function old new delta
opcode_name - 213 +213
opcode_value - 68 +68
mt_main 281 256 -25
opcodes 280 - -280
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/1 up/down: 281/-305) Total: -24 bytes
text data bss dec hex filename
767403 974 9420 777797 bde45 busybox_old
767224 974 9420 777618 bdd92 busybox_unstripped
2007-10-11 19:38:59 +00:00
Denis Vlasenko
2ea8c40e8f
stty: incorporate strings into struct instead of keeping pointers there.
...
static:
text data bss dec hex filename
767535 974 9420 777929 bdec9 busybox_old
767403 974 9420 777797 bde45 busybox_unstripped
dynamic -fpic:
text data bss dec hex filename
718954 14030 12032 745016 b5e38 busybox_old
720278 12534 12032 744844 b5d8c busybox_unstripped
2007-10-11 16:02:36 +00:00
Denis Vlasenko
4f95e5aab8
vi: don't wait 50 ms before reading ESC sequences
...
inetd,syslogd: use safe_read instead of open-coded EINTR handling
syslogd: bail out if you see null read from Unix socket
(should never happen, but if it does, spinning forever
and eating 100% CPU is not a good idea)
2007-10-11 10:10:15 +00:00
Denis Vlasenko
f9566d8c29
trim too verbose help texts
2007-10-11 10:07:24 +00:00
Denis Vlasenko
15cb4a4272
fix a problem with two different applet_name's
2007-10-11 10:06:26 +00:00
Denis Vlasenko
9b49a5ed85
add -fvisibility=hidden to CC flags, mark XXX_main functions
...
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-10-11 10:05:36 +00:00
Denis Vlasenko
8d82cf72c9
add -fpic to CC flags when we build libbusybox (14% smaller .so)
2007-10-11 10:02:52 +00:00