aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-07-27fbset: shrink code a bit moreDenis Vlasenko
2008-07-27fbset: code shrinkDenis Vlasenko
function old new delta ss - 33 +33 fbset_main 1968 1844 -124 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 33/-124) Total: -91 bytes
2008-07-27netstat: code shrinkDenis Vlasenko
function old new delta print_inet_line - 193 +193 scan_inet_proc_line - 130 +130 unix_do_one 519 503 -16 do_info 145 97 -48 netstat_main 601 548 -53 tcp_do_one 462 61 -401 raw_do_one 513 107 -406 udp_do_one 533 119 -414 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 0/6 up/down: 323/-1338) Total: -1015 bytes
2008-07-27style fix, no code changesDenis Vlasenko
2008-07-27netstat: optional -p support by L. Gabriel Somlo <somlo AT cmu.edu>Denis Vlasenko
Without FEATURE_NETSTAT_PRG: function old new delta recursive_action 416 425 +9 tcp_do_one 420 428 +8 udp_do_one 492 499 +7 raw_do_one 472 479 +7 expand 1697 1701 +4 netstat_main 489 492 +3 unix_do_one 486 488 +2 flags 1 - -1 qgravechar 109 106 -3 net_conn_line 4 - -4 bbunpack 391 383 -8 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 7/2 up/down: 40/-16) Total: 24 bytes With FEATURE_NETSTAT_PRG: file_act - 213 +213 dir_act - 192 +192 netstat_main 489 601 +112 prg_cache_get - 50 +50 tcp_do_one 420 462 +42 udp_do_one 492 533 +41 raw_do_one 472 513 +41 unix_do_one 486 519 +33 recursive_action 416 425 +9 expand 1697 1701 +4 flags 1 - -1 qgravechar 109 106 -3 net_conn_line 4 - -4 bbunpack 391 383 -8 packed_usage 24586 24572 -14 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 7/3 up/down: 737/-30) Total: 707 bytes
2008-07-26whitespace fixDenis Vlasenko
2008-07-26man: a forgotten chunk of lask commit (config file parser fixes)Denis Vlasenko
2008-07-26fix several problems with config parser:Denis Vlasenko
a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
2008-07-26man: ignore (not complain) lines with less than 2 tokensDenis Vlasenko
in config file
2008-07-26tr: fix "access past the end of a string" bug 4354Denis Vlasenko
2008-07-26mdev: do not complain if mdev.conf does not exist;Denis Vlasenko
use #if to prevent gcc from generating dead code (sadly, it's more ugly this way)
2008-07-26unzip: move check for unsupported zip features to better placeDenis Vlasenko
2008-07-26unzip: give better error message when presented with unsupportedDenis Vlasenko
zip file. Add zip documentation and an example of file we cant (yet) unpack.
2008-07-26ash: add slightly different testcaseDenis Vlasenko
2008-07-26fix example of vcsa creationDenis Vlasenko
2008-07-26ash: fix testcase to not sleep for whole 10 seconds,Denis Vlasenko
gets annoying pretty fast. Also fix wrong message there.
2008-07-26ash: fix typoDenis Vlasenko
2008-07-26ash: hopefully close bug 4324. With testcase.Denis Vlasenko
function old new delta evaltree 621 869 +248 popstring 134 140 +6
2008-07-25ash: testsuite entries for last changeDenis Vlasenko
2008-07-25ash: dont allow e.g. exec <&10 to attach to stript's fd!Denis Vlasenko
function old new delta is_hidden_fd - 61 +61 redirect 1135 1164 +29 popstring 134 140 +6 printf_main 635 637 +2 evalvar 1374 1376 +2 echo_main 294 296 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/0 up/down: 102/0) Total: 102 bytes
2008-07-24*: conversion to config parserDenis Vlasenko
function old new delta config_read 540 597 +57 config_open2 41 44 +3 rtnl_rtprot_initialize 70 66 -4 rtnl_rttable_initialize 78 73 -5 rtnl_rtscope_initialize 88 83 -5 rtnl_rtrealm_initialize 48 43 -5 rtnl_rtdsfield_initialize 48 43 -5 process_module 566 560 -6 bbunpack 391 383 -8 rtnl_tab_initialize 279 121 -158 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/8 up/down: 60/-196) Total: -136 bytes
2008-07-24ash: prevent exec NN>&- from closing fd used for script readingDenis Vlasenko
2008-07-24ash: fix a bug where redirection fds were not closed afterwards.Denis Vlasenko
optimize close+fcntl(DUPFD) into dup2. add testsuites. function old new delta copyfd 47 68 +21 argstr 1311 1298 -13 popredir 148 131 -17 redirect 1139 1107 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 21/-62) Total: -41 bytes
2008-07-24ash: teach ash about 123>file. It could take only 0..9 beforeDenis Vlasenko
function old new delta redirect 1052 1139 +87 need_to_remember - 36 +36 popredir 132 148 +16 fixredir 86 101 +15 readtoken1 3130 3143 +13 evalvar 1374 1376 +2 popstring 140 134 -6 cmdtxt 592 561 -31 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/2 up/down: 169/-37) Total: 132 bytes
2008-07-24ash: ducument where "no fds > 9 in redirects" limitation is.Denis Vlasenko
no code changes.
2008-07-24ash: ditch dupredirect(), it was only making code harder to read.Denis Vlasenko
incorporate it in its single callsite. function old new delta redirect 1054 1052 -2 changepath 196 194 -2
2008-07-24ash: explain redirect code a bitDenis Vlasenko
function old new delta redirect 1059 1054 -5
2008-07-24ash: code shrinkDenis Vlasenko
function old new delta copynode 171 180 +9 evaltreenr 615 621 +6 evaltree 615 621 +6 calcsize 121 127 +6 evalpipe 349 350 +1 redirect 1059 1057 -2 parseheredoc 129 126 -3 makename 35 32 -3 expredir 130 127 -3 parsefname 224 219 -5 popstring 140 134 -6 pipeline 276 268 -8 list 360 351 -9 readtoken1 3157 3130 -27 parse_command 1504 1460 -44 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/10 up/down: 28/-110) Total: -82 bytes
2008-07-23s/othervise/otherwise/gDenis Vlasenko
2008-07-23lpd: extend help textDenis Vlasenko
function old new delta packed_usage 24466 24612 +146
2008-07-22inetd: do not trash errno in signal handlers;Denis Vlasenko
in CHLD handler, stop looping through services when pid is found function old new delta reread_config_file 1072 1092 +20 retry_network_setup 55 69 +14 reap_child 132 130 -2
2008-07-22another overlapping_strcpyDenis Vlasenko
2008-07-22fix all cases of strcpy on overlapping strings.Denis Vlasenko
2008-07-22fix trivial build warningDenis Vlasenko
2008-07-22lpd,lpr: send/receive ACKs after filenames, not only after file bodies.Denis Vlasenko
lpqr_main 1114 1149 +35 lpd_main 748 768 +20
2008-07-22- strip implied proto and superfluous "www." domain part.Bernhard Reutner-Fischer
If my lynx groks it, your browser will too ;)
2008-07-22- wrap overlong lines (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer
- s/\. /. /g;# (me)
2008-07-22chown: do not use static dataDenis Vlasenko
function old new delta chown_main 160 182 +22 fileAction 750 744 -6 ugid 8 - -8
2008-07-22cut: stop using static data. This alone removed ~70 bytes of code.Denis Vlasenko
+ some optimizations function old new delta nlists 4 - -4 cut_lists 4 - -4 cut_main 1041 960 -81
2008-07-22cal: remove lone static data variable. -4 bytes. coreutilsDenis Vlasenko
is down to four applets with nonzero data+bss.
2008-07-22- unused variables if !ENABLE_FEATURE_MDEV_RENAME_REGEXPBernhard Reutner-Fischer
2008-07-21libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko
(by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
2008-07-21whitespace fixes, no code changedDenis Vlasenko
2008-07-21- commentary typo fixBernhard Reutner-Fischer
2008-07-21- first pass to unify/cleanup uid handling (-236b)Bernhard Reutner-Fischer
This needs further love, alot of love.. Tito?
2008-07-21- fix spellingBernhard Reutner-Fischer
2008-07-21- s/super.block/superblock/g; # for consistency; -1bBernhard Reutner-Fischer
2008-07-21- remove superfluous forward declarationBernhard Reutner-Fischer
2008-07-21- document -fBernhard Reutner-Fischer
2008-07-21- commentary typo fixBernhard Reutner-Fischer