oweals/busybox.git
16 years agolast: style fixes
Denis Vlasenko [Sat, 17 May 2008 23:50:14 +0000 (23:50 -0000)]
last: style fixes

16 years agoinsmod: build fix for microblaze (by Greg Steuck <greg AT nest.cx>)
Denis Vlasenko [Sat, 17 May 2008 02:47:55 +0000 (02:47 -0000)]
insmod: build fix for microblaze (by Greg Steuck <greg AT nest.cx>)

16 years agotwo fixlets for -Wall
Denis Vlasenko [Sat, 17 May 2008 02:36:28 +0000 (02:36 -0000)]
two fixlets for -Wall

16 years agofix bug 2704: remove verbatim RFC text from source
Denis Vlasenko [Sat, 17 May 2008 01:26:15 +0000 (01:26 -0000)]
fix bug 2704: remove verbatim RFC text from source
(this creates problems for Debian).

16 years ago- accept ip l s ib0 addr 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
Bernhard Reutner-Fischer [Fri, 16 May 2008 17:19:03 +0000 (17:19 -0000)]
- accept ip l s ib0 addr 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

16 years ago- very minor shrinkage
Bernhard Reutner-Fischer [Fri, 16 May 2008 16:55:17 +0000 (16:55 -0000)]
- very minor shrinkage
  odd that this saved 1byte. And there could be something wrong with
  ifcombine or the like since omitting the braces produces bigger code?

16 years ago- add appropriate string for arp header #32 for use by ip(8)
Bernhard Reutner-Fischer [Fri, 16 May 2008 16:21:00 +0000 (16:21 -0000)]
- add appropriate string for arp header #32 for use by ip(8)

16 years ago- fix bug where we incorrectly rejected ifconfig eth0 hw ether $whatever
Bernhard Reutner-Fischer [Fri, 16 May 2008 16:10:31 +0000 (16:10 -0000)]
- fix bug where we incorrectly rejected ifconfig eth0 hw ether $whatever
- add support for printing ipoib to ifconfig

16 years ago- fix compilation on x86_64
Bernhard Reutner-Fischer [Fri, 16 May 2008 16:00:38 +0000 (16:00 -0000)]
- fix compilation on x86_64

16 years ago- mention duplication of in_ether()
Bernhard Reutner-Fischer [Fri, 16 May 2008 14:35:34 +0000 (14:35 -0000)]
- mention duplication of in_ether()

16 years ago- provide proc-less sample
Bernhard Reutner-Fischer [Fri, 16 May 2008 11:36:32 +0000 (11:36 -0000)]
- provide proc-less sample
- improve wording

16 years agotestsuite instrumentation fixes by Christian
Denis Vlasenko [Thu, 15 May 2008 22:43:48 +0000 (22:43 -0000)]
testsuite instrumentation fixes by Christian

16 years agoAdd more -W options to gcc.
Denis Vlasenko [Thu, 15 May 2008 21:44:46 +0000 (21:44 -0000)]
Add more -W options to gcc.

16 years agomore of -Wall fixes from Cristian Ionescu-Idbohrn.
Denis Vlasenko [Thu, 15 May 2008 21:30:45 +0000 (21:30 -0000)]
more of -Wall fixes from Cristian Ionescu-Idbohrn.
Some are fixing real bugs.

function                                             old     new   delta
syslogd_main                                         938     958     +20
get_signum                                           136     143      +7
obj_load                                             777     782      +5
recv_from_to                                         210     214      +4
get_next_block                                      1795    1799      +4
display_topmem_process_list                         1117    1121      +4
logread_main                                         484     487      +3
buffer_fill_and_print                                 73      76      +3
kill_main                                            687     689      +2
ll_remember_index                                    240     241      +1
do_stats                                             452     453      +1
if_readconf                                          166     165      -1
display_process_list                                1192    1191      -1
run_applet_and_exit                                  507     505      -2
print_signames                                        33      31      -2
parse_one_line                                      1092    1090      -2
find_out_spec                                         57      55      -2
add_ksymoops_symbols                                 421     419      -2
ash_main                                            1407    1402      -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17)            Total: 37 bytes

16 years agoremove stray semicolons (by Cristian Ionescu-Idbohrn)
Denis Vlasenko [Thu, 15 May 2008 19:44:46 +0000 (19:44 -0000)]
remove stray semicolons (by Cristian Ionescu-Idbohrn)

16 years agofix by Jie Zhang for exit status and POSIX compliance:
Mike Frysinger [Wed, 14 May 2008 11:51:04 +0000 (11:51 -0000)]
fix by Jie Zhang for exit status and POSIX compliance:
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
The exit status of a command that terminated because it received a signal shall be reported as greater than 128.

16 years agoKill CONFIG_NITPICK, it turned out to not be useful. no code changes.
Denis Vlasenko [Tue, 13 May 2008 02:43:27 +0000 (02:43 -0000)]
Kill CONFIG_NITPICK, it turned out to not be useful. no code changes.

16 years agomore -Wall warning fixes from Cristian Ionescu-Idbohrn.
Denis Vlasenko [Tue, 13 May 2008 02:27:31 +0000 (02:27 -0000)]
more -Wall warning fixes from Cristian Ionescu-Idbohrn.
This time it resulted in small code changes:

function                                             old     new   delta
nexpr                                                820     828      +8
tail_main                                           1200    1202      +2
wrapf                                                166     167      +1
parse_mount_options                                  227     209     -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18)             Total: -7 bytes

16 years ago-Wall fixes by Cristian Ionescu-Idbohrn. No object code changes.
Denis Vlasenko [Mon, 12 May 2008 14:35:56 +0000 (14:35 -0000)]
-Wall fixes by Cristian Ionescu-Idbohrn. No object code changes.

16 years agofix warnings about pointer signedness
Denis Vlasenko [Fri, 9 May 2008 18:07:15 +0000 (18:07 -0000)]
fix warnings about pointer signedness

16 years agoUse intra-DSO calls when we build libbusybox. No-op for normal build.
Denis Vlasenko [Fri, 9 May 2008 17:59:34 +0000 (17:59 -0000)]
Use intra-DSO calls when we build libbusybox. No-op for normal build.
This was Bernhard Fischer' idea.

   text    data     bss     dec     hex filename
 773549    7781    9740  791070   c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped
 769683    7397    9740  786820   c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped

16 years ago- pass flags to ld in one argument
Bernhard Reutner-Fischer [Fri, 9 May 2008 12:43:04 +0000 (12:43 -0000)]
- pass flags to ld in one argument

16 years agoudhcp: protect agianst timer overflowing 32-bit counter
Denis Vlasenko [Fri, 9 May 2008 11:55:58 +0000 (11:55 -0000)]
udhcp: protect agianst timer overflowing 32-bit counter

function                                             old     new   delta
arpping                                              398     387     -11

16 years agoinsmod: fix build warnings. By Cristian Ionescu-Idbohrn
Denis Vlasenko [Fri, 9 May 2008 11:36:17 +0000 (11:36 -0000)]
insmod: fix build warnings. By Cristian Ionescu-Idbohrn

16 years agomdev: /sys/class/block/ are also block devices
Denis Vlasenko [Thu, 8 May 2008 21:49:28 +0000 (21:49 -0000)]
mdev: /sys/class/block/ are also block devices

function                                             old     new   delta
make_device                                         1200    1221     +21

16 years agobuild system: do not rebuild entire tree if it is moved
Denis Vlasenko [Thu, 8 May 2008 16:26:49 +0000 (16:26 -0000)]
build system: do not rebuild entire tree if it is moved

16 years agowebsite: announce 1.10.2
Denis Vlasenko [Thu, 8 May 2008 15:36:54 +0000 (15:36 -0000)]
website: announce 1.10.2

16 years ago- forgot to pull in arch-specific tweaks
Bernhard Reutner-Fischer [Thu, 8 May 2008 13:25:20 +0000 (13:25 -0000)]
- forgot to pull in arch-specific tweaks

16 years ago- fix selinux stuff
Bernhard Reutner-Fischer [Thu, 8 May 2008 12:21:44 +0000 (12:21 -0000)]
- fix selinux stuff

16 years ago- correct usage helptext of ifupdown
Bernhard Reutner-Fischer [Thu, 8 May 2008 10:40:34 +0000 (10:40 -0000)]
- correct usage helptext of ifupdown

16 years agostart_stop_daemon: try to clarify intended meaning of the options
Denis Vlasenko [Wed, 7 May 2008 14:52:01 +0000 (14:52 -0000)]
start_stop_daemon: try to clarify intended meaning of the options

16 years agohttpd: fix several bugs triggering by realtive path in -h DIR.
Denis Vlasenko [Wed, 7 May 2008 12:18:48 +0000 (12:18 -0000)]
httpd: fix several bugs triggering by realtive path in -h DIR.

function                                             old     new   delta
handle_incoming_and_exit                            2657    2659      +2
send_cgi_and_exit                                    869     862      -7
parse_conf                                          1647    1626     -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 2/-28)             Total: -26 bytes

16 years agohttpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.
Denis Vlasenko [Wed, 7 May 2008 09:22:44 +0000 (09:22 -0000)]
httpd: restore HUP, CHLD and PIPE to SIG_DFL prior to execing CGI.

function                                             old     new   delta
send_cgi_and_exit                                    856     869     +13

16 years agoscript: exit if reading from pseudo-tty errors out (do not loop)
Denis Vlasenko [Tue, 6 May 2008 19:11:41 +0000 (19:11 -0000)]
script: exit if reading from pseudo-tty errors out (do not loop)

function                                             old     new   delta
script_main                                          991     966     -25

16 years agoash: make set -o and set +o work as in dash/bash.
Denis Vlasenko [Tue, 6 May 2008 15:30:27 +0000 (15:30 -0000)]
ash: make set -o and set +o work as in dash/bash.
by Cristian Ionescu-Idbohrn.

function                                             old     new   delta
options                                              565     625     +60
getoptscmd                                           709     698     -11

16 years agocpio.tests: remove useless command
Denis Vlasenko [Tue, 6 May 2008 12:08:19 +0000 (12:08 -0000)]
cpio.tests: remove useless command

16 years ago- fix strncmp'ing "runlevel". (Cristian Ionescu-Idbohrn)
Bernhard Reutner-Fischer [Mon, 5 May 2008 14:45:32 +0000 (14:45 -0000)]
- fix strncmp'ing "runlevel". (Cristian Ionescu-Idbohrn)

16 years agovi: do not truncate file to zero length. closes bug 2944.
Denis Vlasenko [Sat, 3 May 2008 11:35:59 +0000 (11:35 -0000)]
vi: do not truncate file to zero length. closes bug 2944.

function                                             old     new   delta
file_write                                            98     104      +6

16 years agouniq: support -w. closes bug 3094.
Denis Vlasenko [Sat, 3 May 2008 07:21:27 +0000 (07:21 -0000)]
uniq: support -w. closes bug 3094.

function                                             old     new   delta
packed_usage                                       24136   24132      -4
uniq_main                                            399     384     -15

16 years agomore fixes to testsuite by Cristian and vda
Denis Vlasenko [Fri, 2 May 2008 21:46:30 +0000 (21:46 -0000)]
more fixes to testsuite by Cristian and vda

16 years agoclarify grep version
Denis Vlasenko [Fri, 2 May 2008 13:26:18 +0000 (13:26 -0000)]
clarify grep version

16 years agomdev: fix a bug where we were eating argv[0] of helper
Denis Vlasenko [Fri, 2 May 2008 13:21:24 +0000 (13:21 -0000)]
mdev: fix a bug where we were eating argv[0] of helper

16 years agofix grep test false positive
Denis Vlasenko [Fri, 2 May 2008 12:34:59 +0000 (12:34 -0000)]
fix grep test false positive

16 years agotesting.sh: bashisms are eradicated.
Denis Vlasenko [Fri, 2 May 2008 09:39:09 +0000 (09:39 -0000)]
testing.sh: bashisms are eradicated.
By Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn AT axis.com>

16 years agoruntest: the saga continues :(
Denis Vlasenko [Fri, 2 May 2008 09:19:29 +0000 (09:19 -0000)]
runtest: the saga continues :(

16 years agostart_stop_daemon: use existing global variable
Denis Vlasenko [Wed, 30 Apr 2008 13:58:31 +0000 (13:58 -0000)]
start_stop_daemon: use existing global variable

start_stop_daemon_main                               976     959     -17

16 years agoremove stray semicolon
Denis Vlasenko [Wed, 30 Apr 2008 13:56:32 +0000 (13:56 -0000)]
remove stray semicolon

16 years agoecho: fix echo -e -n "msg\n\0"
Denis Vlasenko [Wed, 30 Apr 2008 00:39:22 +0000 (00:39 -0000)]
echo: fix echo -e -n "msg\n\0"
(by "Pinedo, David" <david.pinedo AT hp.com>)

16 years agotrylink: fix glibc check; make --sort-section option look less ugly
Denis Vlasenko [Wed, 30 Apr 2008 00:15:56 +0000 (00:15 -0000)]
trylink: fix glibc check; make --sort-section option look less ugly

16 years agoruntest: more cleanups
Denis Vlasenko [Tue, 29 Apr 2008 14:11:57 +0000 (14:11 -0000)]
runtest: more cleanups

16 years agoping: dont leak uninitialized data in ping packets
Denis Vlasenko [Tue, 29 Apr 2008 12:31:53 +0000 (12:31 -0000)]
ping: dont leak uninitialized data in ping packets

function                                             old     new   delta
sendping4                                            176     186     +10
sendping6                                             93     100      +7

16 years agotar: add testsuite entries
Denis Vlasenko [Tue, 29 Apr 2008 04:40:15 +0000 (04:40 -0000)]
tar: add testsuite entries

16 years agotar: fix obscure case when name is "" and prefix is not ""
Denis Vlasenko [Tue, 29 Apr 2008 04:12:58 +0000 (04:12 -0000)]
tar: fix obscure case when name is "" and prefix is not ""

16 years agotar: fix the case where long base names can be ignored
Denis Vlasenko [Tue, 29 Apr 2008 03:54:16 +0000 (03:54 -0000)]
tar: fix the case where long base names can be ignored

16 years agotar: remove bogus check for "-" (we handle it corrently later)
Denis Vlasenko [Tue, 29 Apr 2008 02:43:23 +0000 (02:43 -0000)]
tar: remove bogus check for "-" (we handle it corrently later)
tar: simplify argv handling

function                                             old     new   delta
tar_main                                             772     722     -50

16 years agofix build failure for libbusybox
Denis Vlasenko [Tue, 29 Apr 2008 00:10:27 +0000 (00:10 -0000)]
fix build failure for libbusybox

16 years agodate: better version of previous commit; + fix testsuite
Denis Vlasenko [Mon, 28 Apr 2008 00:25:22 +0000 (00:25 -0000)]
date: better version of previous commit; + fix testsuite
to have it checked

16 years agodate: complain if there are extraneout arguments
Denis Vlasenko [Mon, 28 Apr 2008 00:10:34 +0000 (00:10 -0000)]
date: complain if there are extraneout arguments

16 years agocp: fix "cp -RL" to create regular files even if src is a symlink
Denis Vlasenko [Sun, 27 Apr 2008 22:06:24 +0000 (22:06 -0000)]
cp: fix "cp -RL" to create regular files even if src is a symlink

16 years agodate: fix date-works test, add date-works-1 one (currently fails)
Denis Vlasenko [Sun, 27 Apr 2008 20:58:43 +0000 (20:58 -0000)]
date: fix date-works test, add date-works-1 one (currently fails)

16 years agoruntest: fix fallout from mucking with runtest :( [vda's fault]
Denis Vlasenko [Sun, 27 Apr 2008 20:48:49 +0000 (20:48 -0000)]
runtest: fix fallout from mucking with runtest :( [vda's fault]

16 years agoruntest: even more fixes from Cristian
Denis Vlasenko [Sun, 27 Apr 2008 13:34:43 +0000 (13:34 -0000)]
runtest: even more fixes from Cristian

16 years agoruntest: further fixes from Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn AT...
Denis Vlasenko [Sun, 27 Apr 2008 03:33:29 +0000 (03:33 -0000)]
runtest: further fixes from Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn AT axis.com>

16 years agoruntest: use numeric compare instead of string where appropriate
Denis Vlasenko [Sat, 26 Apr 2008 10:14:25 +0000 (10:14 -0000)]
runtest: use numeric compare instead of string where appropriate

16 years agolibbb: fix wrong sscanf count check (affects pidof etc)
Denis Vlasenko [Fri, 25 Apr 2008 23:20:25 +0000 (23:20 -0000)]
libbb: fix wrong sscanf count check (affects pidof etc)

16 years agofix KCONFIG_NOTIMESTAMP=1 mode (just learned that we have such thing)
Denis Vlasenko [Fri, 25 Apr 2008 19:00:39 +0000 (19:00 -0000)]
fix KCONFIG_NOTIMESTAMP=1 mode (just learned that we have such thing)

16 years agolineedit: hack for making it sort-of-work even if term width is wrong
Denis Vlasenko [Fri, 25 Apr 2008 18:44:35 +0000 (18:44 -0000)]
lineedit: hack for making it sort-of-work even if term width is wrong

function                                             old     new   delta
read_line_input                                     3158    3153      -5
input_end                                             29      24      -5
input_delete                                         115     110      -5
input_forward                                         27      20      -7
cmdedit_set_out_char                                  88      80      -8

16 years agotaskset: (1ull < 65) like ops are not good, avoid that
Denis Vlasenko [Fri, 25 Apr 2008 17:01:06 +0000 (17:01 -0000)]
taskset: (1ull < 65) like ops are not good, avoid that

16 years agotestsuite/runtest: remove (last) bashism
Denis Vlasenko [Fri, 25 Apr 2008 08:43:01 +0000 (08:43 -0000)]
testsuite/runtest: remove (last) bashism
mkswap: fix selinux build

16 years agoarping: save a few bytes by using mempcpy
Denis Vlasenko [Fri, 25 Apr 2008 08:13:36 +0000 (08:13 -0000)]
arping: save a few bytes by using mempcpy

function                                             old     new   delta
catcher                                              357     339     -18

16 years agodate: make it accept ISO date format. Fix help text.
Denis Vlasenko [Fri, 25 Apr 2008 02:14:07 +0000 (02:14 -0000)]
date: make it accept ISO date format. Fix help text.
make testsuite actually test something useful.

function                                             old     new   delta
date_main                                           1094    1149     +55

16 years agopartially fix date testsuite
Denis Vlasenko [Thu, 24 Apr 2008 19:37:11 +0000 (19:37 -0000)]
partially fix date testsuite

16 years ago- fsetfilecon_war is hidden so use fsetfilecon instead.
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 10:44:31 +0000 (10:44 -0000)]
- fsetfilecon_war is hidden so use fsetfilecon instead.
  Fixes dynamic linking-error:
  util-linux/lib.a(mkswap.o): In function `mkswap_selinux_setcontext':
  util-linux/mkswap.c:38: undefined reference to `fsetfilecon_raw'

16 years ago- bump copyright year
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 10:35:50 +0000 (10:35 -0000)]
- bump copyright year

16 years ago- update screenshot
Bernhard Reutner-Fischer [Thu, 24 Apr 2008 10:27:20 +0000 (10:27 -0000)]
- update screenshot

16 years agolineedit: filename completion on symlinks-to-dirs should add / too
Denis Vlasenko [Thu, 24 Apr 2008 04:42:52 +0000 (04:42 -0000)]
lineedit: filename completion on symlinks-to-dirs should add / too

16 years agodelay reconfig of input tty until target device has been both opened
Paul Fox [Wed, 23 Apr 2008 15:31:29 +0000 (15:31 -0000)]
delay reconfig of input tty until target device has been both opened
and configured correctly.

16 years agogetopt32: fix "tar x" case; fix memory leak
Denis Vlasenko [Wed, 23 Apr 2008 07:22:31 +0000 (07:22 -0000)]
getopt32: fix "tar x" case; fix memory leak

16 years agotestsuite: fix du testsuite to not use changing directories
Denis Vlasenko [Wed, 23 Apr 2008 07:02:02 +0000 (07:02 -0000)]
testsuite: fix du testsuite to not use changing directories

16 years agotestsuite: runtest enhancements by Cristian Ionescu-Idbohrn
Denis Vlasenko [Wed, 23 Apr 2008 06:45:11 +0000 (06:45 -0000)]
testsuite: runtest enhancements by Cristian Ionescu-Idbohrn

16 years agotestsuite: fix
Denis Vlasenko [Wed, 23 Apr 2008 06:42:49 +0000 (06:42 -0000)]
testsuite: fix

16 years agobuild system: typo fix in help text
Denis Vlasenko [Wed, 23 Apr 2008 05:46:55 +0000 (05:46 -0000)]
build system: typo fix in help text

16 years agodd: fix recent breakage (was comparing "if" with "if=" etc).
Denis Vlasenko [Wed, 23 Apr 2008 05:44:59 +0000 (05:44 -0000)]
dd: fix recent breakage (was comparing "if" with "if=" etc).

16 years agoadd forgotten files. I am forgetting it all the time :(
Denis Vlasenko [Tue, 22 Apr 2008 18:07:41 +0000 (18:07 -0000)]
add forgotten files. I am forgetting it all the time :(

16 years agowhitespace fixes. no code changes
Denis Vlasenko [Tue, 22 Apr 2008 00:16:29 +0000 (00:16 -0000)]
whitespace fixes. no code changes

16 years ago*: remove remaining instances of ".data" hack
Denis Vlasenko [Tue, 22 Apr 2008 00:08:27 +0000 (00:08 -0000)]
*: remove remaining instances of ".data" hack

16 years agogetopt32: fix recently broken opt_complementary "--"
Denis Vlasenko [Mon, 21 Apr 2008 22:04:21 +0000 (22:04 -0000)]
getopt32: fix recently broken opt_complementary "--"

16 years agotar: move vfork into separate function (smaller code)
Denis Vlasenko [Mon, 21 Apr 2008 21:56:07 +0000 (21:56 -0000)]
tar: move vfork into separate function (smaller code)
open_transformer: more informative error messages

function                                             old     new   delta
vfork_compressor                                       -     210    +210
writeTarFile                                         547     299    -248
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 210/-248)          Total: -38 bytes

16 years agoudhcp: fix config help text
Denis Vlasenko [Mon, 21 Apr 2008 20:27:29 +0000 (20:27 -0000)]
udhcp: fix config help text

16 years agobuild system: use spaces in Kbuild files
Denis Vlasenko [Mon, 21 Apr 2008 05:07:15 +0000 (05:07 -0000)]
build system: use spaces in Kbuild files

16 years agobuild system: move misplaced config entry for script applet
Denis Vlasenko [Mon, 21 Apr 2008 05:05:17 +0000 (05:05 -0000)]
build system: move misplaced config entry for script applet

16 years agotentative fix for ppc64 problems with ioctl.
Denis Vlasenko [Mon, 21 Apr 2008 03:23:59 +0000 (03:23 -0000)]
tentative fix for ppc64 problems with ioctl.
Zero code size impact.

16 years ago*: s/IF_NAMESIZE/IFNAMSIZ/, regularize its use a bit.
Denis Vlasenko [Mon, 21 Apr 2008 02:21:45 +0000 (02:21 -0000)]
*: s/IF_NAMESIZE/IFNAMSIZ/, regularize its use a bit.

function                                             old     new   delta
strncpy_IFNAMSIZ                                       -      13     +13
set_slave_mtu                                         39      37      -2
set_slave_hwaddr                                      52      50      -2
set_master_hwaddr                                     52      50      -2
set_if_flags                                          40      38      -2
get_if_settings                                      101      98      -3
ifenslave_main                                      1680    1661     -19
vconfig_main                                         306     280     -26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/7 up/down: 13/-56)            Total: -43 bytes

16 years agoxmalloc_open_read_close: use fstat to get file size (instead of lseek).
Denis Vlasenko [Sun, 20 Apr 2008 14:45:43 +0000 (14:45 -0000)]
xmalloc_open_read_close: use fstat to get file size (instead of lseek).
by Joakim Tjernlund <Joakim.Tjernlund AT transmode.se>

function                                             old     new   delta
xmalloc_open_read_close                              190     181      -9

16 years agostart_stop_daemon: stat executable only once
Denis Vlasenko [Sun, 20 Apr 2008 14:25:26 +0000 (14:25 -0000)]
start_stop_daemon: stat executable only once

function                                             old     new   delta
start_stop_daemon_main                               954     976     +22
check                                               1661    1632     -29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 22/-29)             Total: -7 bytes

16 years agolibbb: prevent xmalloc_open_read_close from dying on seek failure
Denis Vlasenko [Sun, 20 Apr 2008 01:27:59 +0000 (01:27 -0000)]
libbb: prevent xmalloc_open_read_close from dying on seek failure
start_stop_daemon: use open_read_close instead of xmalloc_open_read_close
start_stop_daemon: use local structure instead of global one

function                                             old     new   delta
check                                               1620    1661     +41
xmalloc_open_read_close                              171     190     +19
start_stop_daemon_main                               976     954     -22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 60/-22)             Total: 38 bytes

16 years agoremove whitespace damage. No code changes
Denis Vlasenko [Sat, 19 Apr 2008 21:57:57 +0000 (21:57 -0000)]
remove whitespace damage. No code changes

16 years agostart_stop_daemon: optimization - do not pass paramenter, use
Denis Vlasenko [Sat, 19 Apr 2008 21:30:52 +0000 (21:30 -0000)]
start_stop_daemon: optimization - do not pass paramenter, use
existing globals instead

function                                             old     new   delta
start_stop_daemon_main                               792     976    +184
check                                               1618    1620      +2
do_procinit                                          196       -    -196
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/0 up/down: 186/-196)          Total: -10 bytes

16 years agostart_stop_daemon: do not stop /proc scan prematurely
Denis Vlasenko [Sat, 19 Apr 2008 20:19:45 +0000 (20:19 -0000)]
start_stop_daemon: do not stop /proc scan prematurely

function                                             old     new   delta
do_procinit                                          185     196     +11

16 years agolibbb: introduce xmalloc_xopen_read_close and use where appropriate
Denis Vlasenko [Sat, 19 Apr 2008 19:32:08 +0000 (19:32 -0000)]
libbb: introduce xmalloc_xopen_read_close and use where appropriate
instead of xmalloc_open_read_close.

function                                             old     new   delta
xmalloc_xopen_read_close                               -      34     +34
xmalloc_open_read_close                              163     171      +8
passwd_main                                         1070    1074      +4
rexecve                                              254     257      +3
handle_incoming_and_exit                            2657    2659      +2
parse_command                                       1509    1510      +1
buffer_fill_and_print                                 76      73      -3
evaltreenr                                           599     589     -10
evaltree                                             599     589     -10
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/3 up/down: 52/-23)             Total: 29 bytes