oweals/busybox.git
16 years agoupdate of config file parser from Vladimir
Denis Vlasenko [Wed, 16 Jul 2008 22:12:18 +0000 (22:12 -0000)]
update of config file parser from Vladimir

16 years agosendmail: do not discard all headers
Denis Vlasenko [Wed, 16 Jul 2008 21:55:03 +0000 (21:55 -0000)]
sendmail: do not discard all headers

16 years agocpio: make long opts depend only on ENABLE_GETOPT_LONG
Denis Vlasenko [Wed, 16 Jul 2008 21:51:43 +0000 (21:51 -0000)]
cpio: make long opts depend only on ENABLE_GETOPT_LONG

16 years agoinstall: do not chown intermediate directories with install -d; shrink
Denis Vlasenko [Wed, 16 Jul 2008 21:49:02 +0000 (21:49 -0000)]
install: do not chown intermediate directories with install -d; shrink
 (by Natanael Copa)

function                                             old     new   delta
.rodata                                           171528  171511     -17
install_main                                         841     697    -144
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-161)           Total: -161 bytes

16 years agos/SELINIX/SELINUX/
Denis Vlasenko [Wed, 16 Jul 2008 21:11:09 +0000 (21:11 -0000)]
s/SELINIX/SELINUX/

16 years agolibbb: get rid of statics in dump.c; code shrinks a lot too
Denis Vlasenko [Wed, 16 Jul 2008 11:00:16 +0000 (11:00 -0000)]
libbb: get rid of statics in dump.c; code shrinks a lot too

function                                             old     new   delta
alloc_dumper                                           -      26     +26
hexdump_main                                         600     601      +1
static.done                                            1       -      -1
static.ateof                                           1       -      -1
bb_dump_vflag                                          1       -      -1
static.savp                                            4       -      -4
static.nextfs                                          4       -      -4
static.curp                                            4       -      -4
exitval                                                4       -      -4
endfu                                                  4       -      -4
bb_dump_length                                         4       -      -4
bb_dump_fshead                                         4       -      -4
bb_dump_blocksize                                      4       -      -4
_argv                                                  4       -      -4
bb_dump_add                                          365     358      -7
savaddress                                             8       -      -8
eaddress                                               8       -      -8
bb_dump_skip                                           8       -      -8
address                                                8       -      -8
bb_dump_dump                                        2748    2672     -76
next                                                 538     445     -93
------------------------------------------------------------------------------
(add/remove: 1/16 grow/shrink: 1/3 up/down: 27/-247)         Total: -220 bytes
   text    data     bss     dec     hex filename
 789458     607    6764  796829   c289d busybox_old
 789309     601    6696  796606   c27be busybox_unstripped

16 years agotee: fix infinite looping on open error (echo asd | tee "")
Denis Vlasenko [Wed, 16 Jul 2008 07:34:00 +0000 (07:34 -0000)]
tee: fix infinite looping on open error (echo asd | tee "")

16 years agood,hexdump: fix bug where xrealloc may move pointer,
Denis Vlasenko [Wed, 16 Jul 2008 07:22:14 +0000 (07:22 -0000)]
od,hexdump: fix bug where xrealloc may move pointer,
 leaving other pointers dangling (bug 4104).
 + many style fixes in libbb/dump.c.

16 years agomdev: support for serializing hotplug
Denis Vlasenko [Tue, 15 Jul 2008 22:33:13 +0000 (22:33 -0000)]
mdev: support for serializing hotplug

function                                             old     new   delta
mdev_main                                            503     647    +144

16 years agosleep: make fractional seconds separately selectable in .config
Denis Vlasenko [Tue, 15 Jul 2008 22:01:49 +0000 (22:01 -0000)]
sleep: make fractional seconds separately selectable in .config

16 years agolibbb: document plans to speed up line-based input
Denis Vlasenko [Tue, 15 Jul 2008 21:29:44 +0000 (21:29 -0000)]
libbb: document plans to speed up line-based input

16 years agolibbb: unified config parser (By Vladimir Dronnikov)
Denis Vlasenko [Tue, 15 Jul 2008 21:09:30 +0000 (21:09 -0000)]
libbb: unified config parser (By Vladimir Dronnikov)
mdev: use it

function                                             old     new   delta
config_read                                            -     400    +400
config_open                                            -      43     +43
config_close                                           -       9      +9
qrealloc                                              33      36      +3
compare_keys                                         735     737      +2
xstrtoull_range_sfx                                  296     295      -1
qgravechar                                           109     106      -3
get_address                                          181     178      -3
next_token                                           928     923      -5
sv_main                                             1228    1222      -6
find_main                                            418     406     -12
next_field                                            32       -     -32
make_device                                         1269    1184     -85
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/7 up/down: 457/-147)          Total: 310 bytes

16 years agosendmail: do not ignore CC; accept to: and cc: case-insensitively.
Denis Vlasenko [Tue, 15 Jul 2008 20:56:23 +0000 (20:56 -0000)]
sendmail: do not ignore CC; accept to: and cc: case-insensitively.
 +20 bytes.

16 years agolibbb: experimental faster string reading routines.
Denis Vlasenko [Tue, 15 Jul 2008 10:33:12 +0000 (10:33 -0000)]
libbb: experimental faster string reading routines.

16 years agocomm: almost total rewrite; add testsuite
Denis Vlasenko [Tue, 15 Jul 2008 06:45:14 +0000 (06:45 -0000)]
comm: almost total rewrite; add testsuite

function                                             old     new   delta
writeline                                            128     125      -3
comm_main                                            540     239    -301
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-304)           Total: -304 bytes

16 years agols: fix a bug where we may use uninintialized variable
Denis Vlasenko [Tue, 15 Jul 2008 05:21:47 +0000 (05:21 -0000)]
ls: fix a bug where we may use uninintialized variable

16 years agotee: "-" is a name for stdout, handle it that way
Denis Vlasenko [Tue, 15 Jul 2008 05:10:15 +0000 (05:10 -0000)]
tee: "-" is a name for stdout, handle it that way

16 years agoinsmod: users report that "|| defined(__powerpc__)" is missing
Denis Vlasenko [Mon, 14 Jul 2008 21:29:35 +0000 (21:29 -0000)]
insmod: users report that "|| defined(__powerpc__)" is missing

16 years agohush: fix "... pattern) cmd;; esac" case
Denis Vlasenko [Mon, 14 Jul 2008 08:26:47 +0000 (08:26 -0000)]
hush: fix "... pattern) cmd;; esac" case

16 years agohush: delete unused field in struct child.
Denis Vlasenko [Mon, 14 Jul 2008 06:29:38 +0000 (06:29 -0000)]
hush: delete unused field in struct child.
 reinstate needed check for invalid syntax.
 document command parsing in hush_doc.txt.

16 years agohush: add case statement support. It is incomplete and disabled for now.
Denis Vlasenko [Mon, 14 Jul 2008 04:32:29 +0000 (04:32 -0000)]
hush: add case statement support. It is incomplete and disabled for now.
 costs ~300 bytes when enabled.

16 years agoash: small code shrink
Denis Vlasenko [Sun, 13 Jul 2008 20:39:23 +0000 (20:39 -0000)]
ash: small code shrink

16 years agolibbb: shrink print_login_issue (by Vladimir Dronnikov)
Denis Vlasenko [Sat, 12 Jul 2008 23:47:24 +0000 (23:47 -0000)]
libbb: shrink print_login_issue (by Vladimir Dronnikov)

function                                             old     new   delta
print_login_issue                                    469     435     -34

16 years agowhitespace fixes
Denis Vlasenko [Sat, 12 Jul 2008 23:02:43 +0000 (23:02 -0000)]
whitespace fixes

16 years agowhitespace fixing script
Denis Vlasenko [Sat, 12 Jul 2008 22:48:58 +0000 (22:48 -0000)]
whitespace fixing script

16 years agosleep: if FANCY && DESKTOP, support fractional seconds, minutes,
Denis Vlasenko [Sat, 12 Jul 2008 17:05:14 +0000 (17:05 -0000)]
sleep: if FANCY && DESKTOP, support fractional seconds, minutes,
 hours and so on. It's coreutils compat. bloatcheck is atrocious :(

function                                             old     new   delta
sleep_main                                            71     362    +291
bb_strtod                                              -     127    +127
make_device                                         1269    1294     +25
getoptscmd                                           708     713      +5
switch_root_main                                     402     401      -1
display_speed                                         90      85      -5
show_entry                                           295     289      -6
parse_expr                                           841     833      -8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/4 up/down: 448/-20)           Total: 428 bytes

16 years ago*: add FAST_FUNC markers
Denis Vlasenko [Sat, 12 Jul 2008 11:23:36 +0000 (11:23 -0000)]
*: add FAST_FUNC markers

function                                             old     new   delta
getopt_mk_fifo_nod                                    73      70      -3
mv_main                                              505     501      -4
cp_mv_stat2                                           79      73      -6
cp_main                                              266     257      -9
cp_mv_stat                                            22      10     -12
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/5 up/down: 46/-80)            Total: -34 bytes

16 years agomv: fix a case when we move dangling symlink
Denis Vlasenko [Sat, 12 Jul 2008 11:22:19 +0000 (11:22 -0000)]
mv: fix a case when we move dangling symlink

16 years agomdev: check for "/block/" substring for block dev detection
Denis Vlasenko [Sat, 12 Jul 2008 10:28:41 +0000 (10:28 -0000)]
mdev: check for "/block/" substring for block dev detection

function                                             old     new   delta
make_device                                         1294    1269     -25

16 years agomdev: if device was moved at creation, at removal coreectly remove
Denis Vlasenko [Sat, 12 Jul 2008 10:23:16 +0000 (10:23 -0000)]
mdev: if device was moved at creation, at removal coreectly remove
 it from moved location and also remove symlinks to it

function                                             old     new   delta
build_alias                                            -      78     +78
mdev_main                                            505     503      -2
make_device                                         1300    1294      -6
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 78/-8)              Total: 70 bytes

16 years agofuser: a bit of safety in scanf
Denis Vlasenko [Sat, 12 Jul 2008 09:32:38 +0000 (09:32 -0000)]
fuser: a bit of safety in scanf

16 years agocpio: internalize archive_xread_all_eof. add a few paranoia checks
Denis Vlasenko [Sat, 12 Jul 2008 09:20:44 +0000 (09:20 -0000)]
cpio: internalize archive_xread_all_eof. add a few paranoia checks
 for corrupted cpio files.
modprobe-small: remove stray include
route: small code shrink

function                                             old     new   delta
get_header_cpio                                      958     980     +22
archive_xread_all_eof                                 33       -     -33
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-33)            Total: -11 bytes

16 years agoswitch_root: shrink
Denis Vlasenko [Fri, 11 Jul 2008 23:44:50 +0000 (23:44 -0000)]
switch_root: shrink

function                                             old     new   delta
switch_root_main                                     402     401      -1
rootdev                                                8       -      -8
delete_contents                                      226     179     -47
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-56)             Total: -56 bytes

16 years agoash: fix segfault in "command -v"
Denis Vlasenko [Fri, 11 Jul 2008 23:09:34 +0000 (23:09 -0000)]
ash: fix segfault in "command -v"

16 years agocpio: on unpack, limit filename length to 8k; shorten comment a bit
Denis Vlasenko [Fri, 11 Jul 2008 22:20:59 +0000 (22:20 -0000)]
cpio: on unpack, limit filename length to 8k; shorten comment a bit

16 years agoAnnounce 1.11.1
Denis Vlasenko [Fri, 11 Jul 2008 22:11:50 +0000 (22:11 -0000)]
Announce 1.11.1

16 years agocpio: testsuite for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466771
Denis Vlasenko [Fri, 11 Jul 2008 21:43:11 +0000 (21:43 -0000)]
cpio: testsuite for bugs.debian.org/cgi-bin/bugreport.cgi?bug=466771
 which was fixed in proevious commit

16 years agocpio: support some long options; document GNU options
Denis Vlasenko [Fri, 11 Jul 2008 21:42:12 +0000 (21:42 -0000)]
cpio: support some long options; document GNU options

16 years agotestsuite: uniformly use $ECHO with -n -e
Denis Vlasenko [Fri, 11 Jul 2008 21:41:14 +0000 (21:41 -0000)]
testsuite: uniformly use $ECHO with -n -e

16 years agotime: don't segfault with no arguments
Denis Vlasenko [Fri, 11 Jul 2008 15:05:51 +0000 (15:05 -0000)]
time: don't segfault with no arguments

16 years agotaskset: fix some careless code in both fancy and non-fancy cases.
Denis Vlasenko [Fri, 11 Jul 2008 13:57:08 +0000 (13:57 -0000)]
taskset: fix some careless code in both fancy and non-fancy cases.
 -5 bytes for fancy, +5 for non-fancy

16 years agobuild system: re-add mistakenly deleted script
Denis Vlasenko [Fri, 11 Jul 2008 10:21:29 +0000 (10:21 -0000)]
build system: re-add mistakenly deleted script

16 years agowebsite: announce updated HOWTO
Denis Vlasenko [Fri, 11 Jul 2008 09:55:58 +0000 (09:55 -0000)]
website: announce updated HOWTO

16 years agofix compile failures resulting from last few commits
Denis Vlasenko [Fri, 11 Jul 2008 08:23:52 +0000 (08:23 -0000)]
fix compile failures resulting from last few commits

16 years agofix typo in config help text
Denis Vlasenko [Thu, 10 Jul 2008 23:42:36 +0000 (23:42 -0000)]
fix typo in config help text

16 years agodpkg_deb: slight code shrink
Denis Vlasenko [Thu, 10 Jul 2008 23:06:00 +0000 (23:06 -0000)]
dpkg_deb: slight code shrink
ar: reuse existing ar unpacking code
get_header_tar: handle autodetection for tiny .tar.gz files too
unarchive.h: do not include CONFIGed out things

function                                             old     new   delta
get_header_tar                                      1521    1534     +13
dpkg_deb_main                                        400     380     -20
ar_main                                              260     196     -64
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 13/-84)            Total: -71 bytes

16 years agoopen_transformer: do not return fd, it does not change
Denis Vlasenko [Thu, 10 Jul 2008 17:43:01 +0000 (17:43 -0000)]
open_transformer: do not return fd, it does not change
libbb: adopt zipped read from modprobe-small

function                                             old     new   delta
getoptscmd                                           708     713      +5
qgravechar                                           106     109      +3
huft_build                                          1165    1168      +3
tr_main                                              474     472      -2
open_transformer                                      91      89      -2
evalvar                                             1376    1374      -2
rpm_main                                            1691    1688      -3
qrealloc                                              36      33      -3
get_header_tar_lzma                                   55      52      -3
get_header_tar_gz                                    100      97      -3
get_header_tar_bz2                                    55      52      -3
get_header_tar_Z                                      89      86      -3
find_main                                            418     406     -12
prepare                                              302     283     -19
xmalloc_open_zipped_read_close                       161     135     -26
xmalloc_read                                         248     199     -49
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/13 up/down: 11/-130)         Total: -119 bytes

16 years agomodprobe-small: make depmod compatible with kernel build.
Denis Vlasenko [Thu, 10 Jul 2008 14:16:11 +0000 (14:16 -0000)]
modprobe-small: make depmod compatible with kernel build.
 three last commits' sizes combined:

function                                             old     new   delta
find_alias                                           218     612    +394
load_dep_bb                                            -     310    +310
modprobe_main                                        289     380     +91
copy_stringbuf                                         -      40     +40
process_module                                       637     655     +18
reset_stringbuf                                        -      15     +15
parse_module                                         333     334      +1
append                                                84      85      +1
fileAction                                           832     819     -13
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/1 up/down: 870/-13)           Total: 857 bytes

16 years agomodprobe-small: add depfile creation
Denis Vlasenko [Thu, 10 Jul 2008 14:14:45 +0000 (14:14 -0000)]
modprobe-small: add depfile creation

16 years agomodprobe-small: add depfile loading
Denis Vlasenko [Thu, 10 Jul 2008 14:14:20 +0000 (14:14 -0000)]
modprobe-small: add depfile loading

16 years agowebsite: add 'Laptop Computers' to sponsors page
Denis Vlasenko [Thu, 10 Jul 2008 08:55:40 +0000 (08:55 -0000)]
website: add 'Laptop Computers' to sponsors page

16 years agowhitespace fix
Denis Vlasenko [Wed, 9 Jul 2008 22:04:37 +0000 (22:04 -0000)]
whitespace fix

16 years agobuild system: libbusybox cannot be static
Denis Vlasenko [Wed, 9 Jul 2008 21:24:18 +0000 (21:24 -0000)]
build system: libbusybox cannot be static

16 years agofdisk: fix compile failure
Denis Vlasenko [Wed, 9 Jul 2008 21:20:50 +0000 (21:20 -0000)]
fdisk: fix compile failure

16 years agohush: compile fixes for !LOOPS case
Denis Vlasenko [Wed, 9 Jul 2008 20:14:53 +0000 (20:14 -0000)]
hush: compile fixes for !LOOPS case

16 years agobuld system: suppress a warning
Denis Vlasenko [Wed, 9 Jul 2008 20:07:59 +0000 (20:07 -0000)]
buld system: suppress a warning

16 years agolast: fix ctime(ptr) ptr type mismatch
Denis Vlasenko [Wed, 9 Jul 2008 19:48:43 +0000 (19:48 -0000)]
last: fix ctime(ptr) ptr type mismatch

16 years agolibbb/mtab: fix xrealloc_vector fallout
Denis Vlasenko [Wed, 9 Jul 2008 19:44:08 +0000 (19:44 -0000)]
libbb/mtab: fix xrealloc_vector fallout

16 years ago- fix typo (Cristian Ionescu-Idbohrn)
Bernhard Reutner-Fischer [Wed, 9 Jul 2008 17:56:53 +0000 (17:56 -0000)]
- fix typo (Cristian Ionescu-Idbohrn)

16 years agomodprobe-small: preparatory patch for modprobe.dep.bb creation patches,
Denis Vlasenko [Wed, 9 Jul 2008 15:30:57 +0000 (15:30 -0000)]
modprobe-small: preparatory patch for modprobe.dep.bb creation patches,
 Code size impact ~0.

16 years agolibbb: use improved xmalloc_read() from modprobe-small
Denis Vlasenko [Wed, 9 Jul 2008 09:50:33 +0000 (09:50 -0000)]
libbb: use improved xmalloc_read() from modprobe-small
who: fix compile breakage on some systems
modprobe-small: improve Config help text wording

16 years agoadd xrealloc_vector.c
Denis Vlasenko [Tue, 8 Jul 2008 20:41:57 +0000 (20:41 -0000)]
add xrealloc_vector.c

16 years agowebsite: return HOWTO link and GPL violations address to the top
Denis Vlasenko [Tue, 8 Jul 2008 09:07:01 +0000 (09:07 -0000)]
website: return HOWTO link and GPL violations address to the top
 of the page

16 years agolibbb: introduce and use xrealloc_vector
Denis Vlasenko [Tue, 8 Jul 2008 05:14:36 +0000 (05:14 -0000)]
libbb: introduce and use xrealloc_vector

function                                             old     new   delta
xrealloc_vector_helper                                 -      51     +51
create_list                                           84      99     +15
getopt_main                                          690     695      +5
passwd_main                                         1049    1053      +4
get_cached                                            85      89      +4
msh_main                                            1377    1380      +3
add_match                                             42      41      -1
read_lines                                           720     718      -2
grave                                               1068    1066      -2
fill_match_lines                                     143     141      -2
add_to_dirlist                                        67      65      -2
add_input_file                                        49      47      -2
act                                                  252     250      -2
fsck_main                                           2252    2246      -6
man_main                                             765     757      -8
bb_internal_initgroups                               228     220      -8
cut_main                                            1052    1041     -11
add_edge_to_node                                      55      43     -12
dpkg_main                                           3851    3835     -16
ifupdown_main                                       2202    2178     -24
sort_main                                            838     812     -26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/15 up/down: 82/-124)          Total: -42 bytes

16 years agoifupdown: /etc/network/interfaces can have comments with leading blanks
Denis Vlasenko [Tue, 8 Jul 2008 03:25:25 +0000 (03:25 -0000)]
ifupdown: /etc/network/interfaces can have comments with leading blanks

16 years agomount: testsuite for "-o mand"
Denis Vlasenko [Tue, 8 Jul 2008 02:57:40 +0000 (02:57 -0000)]
mount: testsuite for "-o mand"

16 years agomount: support for "-o mand"
Denis Vlasenko [Tue, 8 Jul 2008 02:56:53 +0000 (02:56 -0000)]
mount: support for "-o mand"

16 years agomdev: reinstate "follow symlinks" flag, this time with explanation
Denis Vlasenko [Sun, 6 Jul 2008 17:00:49 +0000 (17:00 -0000)]
mdev: reinstate "follow symlinks" flag, this time with explanation

16 years agomodprobe-small: match aliases with fnmatch(), making
Denis Vlasenko [Sun, 6 Jul 2008 11:52:23 +0000 (11:52 -0000)]
modprobe-small: match aliases with fnmatch(), making
 shell pattern-specified alias names in module bodies work.

16 years agomodprobe-small: fix debug leftover
Denis Vlasenko [Sun, 6 Jul 2008 11:11:35 +0000 (11:11 -0000)]
modprobe-small: fix debug leftover

16 years agohush: support "for if in do done then; do echo $if; done" case
Denis Vlasenko [Sun, 6 Jul 2008 10:01:13 +0000 (10:01 -0000)]
hush: support "for if in do done then; do echo $if; done" case

function                                             old     new   delta
done_pipe                                             83      95     +12
parse_stream                                        1758    1764      +6
done_word                                            674     647     -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 18/-27)             Total: -9 bytes

16 years agomdev: do not follow symlinks in /sys (as was intended prior to rev 18811).
Denis Vlasenko [Sun, 6 Jul 2008 07:00:11 +0000 (07:00 -0000)]
mdev: do not follow symlinks in /sys (as was intended prior to rev 18811).
If this breaks things, please document why!
mdev,init: use shared code for fd sanitization

function                                             old     new   delta
bb_daemonize_or_rexec                                155     172     +17
mdev_main                                            500     505      +5
init_main                                            907     856     -51
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 22/-51)            Total: -29 bytes

16 years agohush: support "for v; do ... done" syntax (implied 'in "$@"')
Denis Vlasenko [Sat, 5 Jul 2008 20:29:59 +0000 (20:29 -0000)]
hush: support "for v; do ... done" syntax (implied 'in "$@"')

16 years agohush: fix a case where "$@" must expand to no word at all
Denis Vlasenko [Sat, 5 Jul 2008 17:40:04 +0000 (17:40 -0000)]
hush: fix a case where "$@" must expand to no word at all

16 years ago*: rename ATTRIBUTE_XXX to just XXX.
Denis Vlasenko [Sat, 5 Jul 2008 09:18:54 +0000 (09:18 -0000)]
*: rename ATTRIBUTE_XXX to just XXX.

16 years agoman: fix inverted cat/man bool variable
Denis Vlasenko [Sat, 5 Jul 2008 08:50:08 +0000 (08:50 -0000)]
man: fix inverted cat/man bool variable

16 years agoman: code shrink
Denis Vlasenko [Sat, 5 Jul 2008 08:38:41 +0000 (08:38 -0000)]
man: code shrink

function                                             old     new   delta
man_main                                             725     765     +40
show_manpage                                         112       -    -112
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 40/-112)           Total: -72 bytes

16 years agoman: support cat pages too (by Jason Curl <jcurlnews AT arcor.de>)
Denis Vlasenko [Fri, 4 Jul 2008 21:58:00 +0000 (21:58 -0000)]
man: support cat pages too (by Jason Curl <jcurlnews AT arcor.de>)

function                                             old     new   delta
show_manpage                                           -     112    +112
run_pipe                                              89     102     +13
man_main                                             721     725      +4

16 years agoman: fix missed NULL termination of an array
Denis Vlasenko [Fri, 4 Jul 2008 21:57:11 +0000 (21:57 -0000)]
man: fix missed NULL termination of an array

function                                             old     new   delta
man_main                                             741     721     -20

16 years agolibbb/recursive_action.c: fix slight error in prev commit
Denis Vlasenko [Fri, 4 Jul 2008 10:29:30 +0000 (10:29 -0000)]
libbb/recursive_action.c: fix slight error in prev commit

16 years agomodutils: optional modutils-small by Vladimir Dronnikov.
Denis Vlasenko [Fri, 4 Jul 2008 10:25:44 +0000 (10:25 -0000)]
modutils: optional modutils-small by Vladimir Dronnikov.
 15kb smaller than standard one.
libbb/recursive_action.c: commented-out code for aborting the scan.

16 years agoawk: another smallish code shrink
Denis Vlasenko [Wed, 2 Jul 2008 22:47:49 +0000 (22:47 -0000)]
awk: another smallish code shrink

16 years agowebpage: fix typos
Denis Vlasenko [Wed, 2 Jul 2008 11:34:49 +0000 (11:34 -0000)]
webpage: fix typos

16 years agouname,individual: fix improper printf usage
Denis Vlasenko [Wed, 2 Jul 2008 11:14:59 +0000 (11:14 -0000)]
uname,individual: fix improper printf usage
uname,awk: small code shrink

function                                             old     new   delta
uname_main                                           175     166      -9
nvalloc                                              167     157     -10
evaluate                                            6381    6370     -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-30)             Total: -30 bytes

16 years ago- fix trivial exploit vector when setXid
Ned Ludd [Wed, 2 Jul 2008 00:12:06 +0000 (00:12 -0000)]
- fix trivial exploit vector when setXid

16 years agosendmail: fix wrong vfork usage here too
Denis Vlasenko [Tue, 1 Jul 2008 16:09:07 +0000 (16:09 -0000)]
sendmail: fix wrong vfork usage here too
*: shorten error texts

function                                             old     new   delta
launch_helper                                          -     151    +151
vfork_or_die                                          20       -     -20
sendgetmail_main                                    1946    1848     -98
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 151/-118)           Total: 33 bytes

16 years agorevert last two commits. vfork cannot be used in subroutine,
Denis Vlasenko [Tue, 1 Jul 2008 15:59:42 +0000 (15:59 -0000)]
revert last two commits. vfork cannot be used in subroutine,
it trashes stack on return

16 years ago- wrap overlong lines
Bernhard Reutner-Fischer [Tue, 1 Jul 2008 12:20:20 +0000 (12:20 -0000)]
- wrap overlong lines

16 years ago*: introduce and use xfork()
Denis Vlasenko [Tue, 1 Jul 2008 11:11:24 +0000 (11:11 -0000)]
*: introduce and use xfork()

function                                             old     new   delta
xfork                                                  -      20     +20
msh_main                                            1377    1380      +3
mod_process                                          455     446      -9
forkexit_or_rexec                                     30      17     -13
expand_variables                                    1434    1421     -13
open_transformer                                      91      76     -15
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/4 up/down: 23/-50)            Total: -27 bytes

16 years agoadd missing file
Denis Vlasenko [Tue, 1 Jul 2008 10:55:45 +0000 (10:55 -0000)]
add missing file

16 years ago*: introduce and use xvfork()
Denis Vlasenko [Tue, 1 Jul 2008 10:40:41 +0000 (10:40 -0000)]
*: introduce and use xvfork()

function                                             old     new   delta
time_main                                           1052    1285    +233
crontab_main                                         623     856    +233
ifupdown_main                                       2202    2403    +201
xvfork                                                 -      20     +20
passwd_main                                         1049    1053      +4
grave                                               1068    1066      -2
script_main                                          935     921     -14
vfork_or_die                                          20       -     -20
vfork_compressor                                     206     175     -31
open_as_user                                         109       -    -109
popen2                                               218       -    -218
edit_file                                            910     690    -220
run_command                                          268       -    -268
------------------------------------------------------------------------------
(add/remove: 1/4 grow/shrink: 4/4 up/down: 691/-882)         Total: -191 bytes

16 years agossd: fix missed + in prev commit
Denis Vlasenko [Tue, 1 Jul 2008 10:05:12 +0000 (10:05 -0000)]
ssd: fix missed + in prev commit

16 years agossd: do not stat -x EXECUTABLE, it is not needed anymore
Denis Vlasenko [Tue, 1 Jul 2008 10:00:46 +0000 (10:00 -0000)]
ssd: do not stat -x EXECUTABLE, it is not needed anymore
ssd: use PATH
ssd: fix -a without -x case
ssd: fix help text
ssd: CLOSE_EXTRA_FDS in MMU case too
ssd: add testsuite

16 years agoawk: fix a case with multiple -f options. simplify -f file reading.
Denis Vlasenko [Tue, 1 Jul 2008 01:57:36 +0000 (01:57 -0000)]
awk: fix a case with multiple -f options. simplify -f file reading.

function                                             old     new   delta
parse_expr                                           833     841      +8
qrealloc                                              33      36      +3
next_input_file                                      203     198      -5
afopen                                                22       -     -22
ftello                                                41       -     -41
ftell                                                 41       -     -41
__GI_ftell                                            41       -     -41
awk_main                                            1002     944     -58
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 2/2 up/down: 11/-208)          Total: -197 bytes
   text    data     bss     dec     hex filename
 804232     610    6804  811646   c627e busybox_old
 804120     610    6804  811534   c620e busybox_unstripped

16 years agocrond: use execlp instead of execl
Denis Vlasenko [Mon, 30 Jun 2008 15:48:34 +0000 (15:48 -0000)]
crond: use execlp instead of execl

16 years agosendmail: from Vladimir:
Denis Vlasenko [Mon, 30 Jun 2008 13:30:21 +0000 (13:30 -0000)]
sendmail: from Vladimir:
Here comes the third part of compatibility patch for sendmail.
* Introduced new safe_getdomainname() -- will it be useful?
* Fixed SEGV if sender address is missed. Should snoop for sender address in mail headers?
* More compat: use HOSTNAME instead of HOST when no server is explicitly specified.
* crond: fixed mail recipient address.

function                                             old     new   delta
safe_getdomainname                                     -      56     +56
sendgetmail_main                                    1937    1946      +9
grep_file                                            846     850      +4
crond_main                                          1423    1425      +2
xstrtoull_range_sfx                                  295     296      +1
utoa_to_buf                                          110     108      -2
passwd_main                                         1053    1049      -4
sv_main                                             1234    1228      -6
parse_expr                                           841     833      -8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/4 up/down: 72/-20)             Total: 52 bytes

16 years agonmeter: tiny shrink
Denis Vlasenko [Mon, 30 Jun 2008 07:33:52 +0000 (07:33 -0000)]
nmeter: tiny shrink

16 years agolibiproute: print_route() always uses stdout, do not pass FILE pointer to it.
Denis Vlasenko [Sun, 29 Jun 2008 06:22:40 +0000 (06:22 -0000)]
libiproute: print_route() always uses stdout, do not pass FILE pointer to it.
libiproute: Use FAST_FUNC

function                                             old     new   delta
iprule_modify                                        884     905     +21
ipaddr_modify                                       1289    1310     +21
rtnl_send                                             53      69     +16
xrtnl_wilddump_request                               109     124     +15
xrtnl_dump_filter                                    394     403      +9
rtnl_talk                                            534     539      +5
print_addrinfo                                      1369    1374      +5
iproute_modify                                      1017    1020      +3
iprule_list                                           81      83      +2
xrtnl_open                                           163     161      -2
parse_rtattr                                          89      87      -2
ipaddr_list_or_flush                                2176    2174      -2
addattr_l                                             91      88      -3
flush_update                                         116     108      -8
iproute_list_or_flush                               1285    1263     -22
iproute_get                                          878     852     -26
print_route                                         1913    1752    -161
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 9/8 up/down: 97/-226)          Total: -129 bytes

16 years agofdisk: cosmetics, and removal of dead data
Denis Vlasenko [Sun, 29 Jun 2008 05:16:45 +0000 (05:16 -0000)]
fdisk: cosmetics, and removal of dead data

16 years agofdisk: move more data to struct globals; shrink code
Denis Vlasenko [Sun, 29 Jun 2008 05:10:47 +0000 (05:10 -0000)]
fdisk: move more data to struct globals; shrink code

function                                             old     new   delta
nowarn                                                 1       -      -1
listing                                                1       -      -1
dos_compatible_flag                                    1       -      -1
warn_cylinders                                        44      42      -2
open_list_and_close                                  364     362      -2
fdisk_fatal                                           41      38      -3
verify                                              1053    1049      -4
user_sectors                                           4       -      -4
user_heads                                             4       -      -4
user_cylinders                                         4       -      -4
pt_sectors                                             4       -      -4
pt_heads                                               4       -      -4
kern_sectors                                           4       -      -4
kern_heads                                             4       -      -4
ext_index                                              4       -      -4
total_number_of_sectors                                8       -      -8
extended_offset                                        8       -      -8
create_doslabel                                      129     120      -9
write_table                                          225     211     -14
delete_partition                                     445     431     -14
set_partition                                        476     459     -17
list_disk_geometry                                   247     229     -18
unable_to_write                                       19       -     -19
add_partition                                       2515    2486     -29
get_boot                                            1709    1636     -73
fdisk_main                                          2812    2679    -133
------------------------------------------------------------------------------
(add/remove: 0/14 grow/shrink: 0/12 up/down: 0/-388)         Total: -388 bytes
   text    data     bss     dec     hex filename
 804634     611    6852  812097   c6441 busybox_old
 804298     610    6804  811712   c62c0 busybox_unstripped