oweals/busybox.git
16 years agodos2unix: do not destroy symlinks and mode of the file being converted.
Denis Vlasenko [Sat, 14 Jun 2008 04:28:41 +0000 (04:28 -0000)]
dos2unix: do not destroy symlinks and mode of the file being converted.

16 years agoudhcpc: kill undocumented -W, it was a no-op.
Denis Vlasenko [Fri, 13 Jun 2008 20:44:05 +0000 (20:44 -0000)]
udhcpc: kill undocumented -W, it was a no-op.
 fix option parsing in the case some CONFIG_x are off.
 disable -b on NOMMU, make backgrounding work correctly
 (if a bit differently from MMU case). Previously,
 it wasn't working at all.
 stop using global data for flags in main(), opt
 bitfield works as well.

function                                             old     new   delta
cryptpw_main                                         177     153     -24
packed_usage                                       24478   24452     -26
client_background                                     26       -     -26
udhcpc_main                                         2462    2372     -90
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/3 up/down: 0/-166)           Total: -166 bytes

16 years agotrivial crypt shrinkage
Denis Vlasenko [Fri, 13 Jun 2008 15:13:41 +0000 (15:13 -0000)]
trivial crypt shrinkage

function                                             old     new   delta
__md5_to64                                            27      29      +2
pw_encrypt                                          3631    3608     -23

16 years agofix typo in "Analog Devices"
Denis Vlasenko [Fri, 13 Jun 2008 13:49:59 +0000 (13:49 -0000)]
fix typo in "Analog Devices"

16 years agohttpd: fix authentication
Denis Vlasenko [Fri, 13 Jun 2008 13:20:38 +0000 (13:20 -0000)]
httpd: fix authentication

16 years agoshorten sponsor's link per its request
Denis Vlasenko [Fri, 13 Jun 2008 13:10:01 +0000 (13:10 -0000)]
shorten sponsor's link per its request

16 years agowebsite: announce sponsors.
Denis Vlasenko [Fri, 13 Jun 2008 12:06:22 +0000 (12:06 -0000)]
website: announce sponsors.

16 years agobuild system: introduce FEATURE_ASSUME_UNICODE
Denis Vlasenko [Fri, 13 Jun 2008 11:16:09 +0000 (11:16 -0000)]
build system: introduce FEATURE_ASSUME_UNICODE
ls: use it. also do G trick. with UNICODE off:

function                                             old     new   delta
ls_main                                              843     871     +28
show_color                                             1       -      -1
showdirs                                             500     497      -3
my_stat                                              100      97      -3
terminal_width                                         4       -      -4
tabstops                                               4       -      -4
status                                               122     118      -4
static.dotdir                                          4       -      -4
current_time_t                                         4       -      -4
all_fmt                                                4       -      -4
------------------------------------------------------------------------------
(add/remove: 0/6 grow/shrink: 1/3 up/down: 28/-31)             Total: -3 bytes

Also was tested with UNICODE on with glibc.

16 years agohttpd: fix bugs in authentication (by Peter Korsgaard <jacmet ATuclibc.org>)
Denis Vlasenko [Fri, 13 Jun 2008 09:55:13 +0000 (09:55 -0000)]
httpd: fix bugs in authentication (by Peter Korsgaard <jacmet ATuclibc.org>)
 we were accepting empty username; also we were always checking
 dummy user:passwd pair ":" if user gave us wrong one.

function                                             old     new   delta
check_user_passwd                                    338     319     -19

16 years agohtppd: lots of variable/function renaming in config file parsing.
Denis Vlasenko [Fri, 13 Jun 2008 09:53:06 +0000 (09:53 -0000)]
htppd: lots of variable/function renaming in config file parsing.
fixed a bug where we trashed config file's name;
otherwise, should not have any real behavioral changes.

function                                             old     new   delta
check_user_passwd                                      -     338    +338
handle_incoming_and_exit                            2661    2649     -12
parse_conf                                          1650    1536    -114
checkPerm                                            338       -    -338
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 338/-464)         Total: -126 bytes

16 years agoReinstate DEBUG_PESSIMIZE (by Christian Ionescu-Idbohrn)
Denis Vlasenko [Thu, 12 Jun 2008 20:23:03 +0000 (20:23 -0000)]
Reinstate DEBUG_PESSIMIZE (by Christian Ionescu-Idbohrn)

16 years agomake pw_encrypt() return malloc'ed string.
Denis Vlasenko [Thu, 12 Jun 2008 16:56:52 +0000 (16:56 -0000)]
make pw_encrypt() return malloc'ed string.

   text    data     bss     dec     hex filename
 759802     604    6684  767090   bb472 busybox_old
 759804     604    6676  767084   bb46c busybox_unstripped

16 years agouclibc insists on having 70k static buffer for crypt.
Denis Vlasenko [Thu, 12 Jun 2008 16:55:59 +0000 (16:55 -0000)]
uclibc insists on having 70k static buffer for crypt.
For bbox it's not acceptable. Roll our own des and md5 crypt
implementation. Against older uclibc:

   text    data     bss     dec     hex filename
 759945     604    6684  767233   bb501 busybox_old
 759766     604    6684  767054   bb44e busybox_unstripped

so, we still save on code size.

16 years ago- make the first arg of the filter function passed to rtnl_dump_filter constant
Bernhard Reutner-Fischer [Thu, 12 Jun 2008 15:54:49 +0000 (15:54 -0000)]
- make the first arg of the filter function passed to rtnl_dump_filter constant
  to match normal iproute. No obj-code changes.

16 years agohush: speed up o_addX{chr,str}
Denis Vlasenko [Thu, 12 Jun 2008 13:31:04 +0000 (13:31 -0000)]
hush: speed up o_addX{chr,str}

function                                             old     new   delta
o_addQstr                                              -     162    +162
o_addQchr                                              -      89     +89
o_addstr                                               -      58     +58
o_addqchr                                             50      81     +31
expand_on_ifs                                        103      97      -6
add_till_backquote                                    92      82     -10
expand_variables                                    1281    1217     -64
parse_stream                                        1675    1609     -66
o_addqstr                                            155       -    -155
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 1/4 up/down: 340/-301)           Total: 39 bytes
   text    data     bss     dec     hex filename
 759870     604    6684  767158   bb4b6 busybox_old
 759909     604    6684  767197   bb4dd busybox_unstripped

16 years agohush: fix for nested $()s with escapes + testsuite
Denis Vlasenko [Thu, 12 Jun 2008 12:58:20 +0000 (12:58 -0000)]
hush: fix for nested $()s with escapes + testsuite

16 years agologger: "clean up" a dirty hack a bit
Denis Vlasenko [Wed, 11 Jun 2008 15:43:19 +0000 (15:43 -0000)]
logger: "clean up" a dirty hack a bit

16 years agohush: more backtick and quoting fixes...
Denis Vlasenko [Tue, 10 Jun 2008 22:39:37 +0000 (22:39 -0000)]
hush: more backtick and quoting fixes...

16 years agohush: fix escaping of \[*?; add testsuites for these and for globbing
Denis Vlasenko [Tue, 10 Jun 2008 20:13:40 +0000 (20:13 -0000)]
hush: fix escaping of \[*?; add testsuites for these and for globbing

16 years agohush: fix yet another fallout
Denis Vlasenko [Tue, 10 Jun 2008 18:27:50 +0000 (18:27 -0000)]
hush: fix yet another fallout
hush: move fixed testsuites out of hush-bugs/*

16 years agohush: fix some fallout from prev commits, add testsuite
Denis Vlasenko [Tue, 10 Jun 2008 18:06:24 +0000 (18:06 -0000)]
hush: fix some fallout from prev commits, add testsuite

16 years agohush: search/and/replace style cleanups, no code changes
Denis Vlasenko [Tue, 10 Jun 2008 18:05:12 +0000 (18:05 -0000)]
hush: search/and/replace style cleanups, no code changes

16 years agohush: fix two nasty bugs:
Denis Vlasenko [Tue, 10 Jun 2008 18:04:32 +0000 (18:04 -0000)]
hush: fix two nasty bugs:
hush-bugs/tick2.tests: ok
hush-bugs/tick.tests: ok

function                                             old     new   delta
parse_stream                                        1332    1557    +225
b_addptr                                               -      97     +97
add_till_backquote                                     -      82     +82
b_addstr                                               -      58     +58
b_grow_by                                              -      50     +50
setup_string_in_str                                    -      29     +29
expand_variables                                    1196    1199      +3
expand_on_ifs                                        100      97      -3
b_addqchr                                             57      50      -7
parse_and_run_string                                  48      31     -17
lookup_param                                          27       -     -27
b_addchr                                              75      45     -30
count_ifs                                             44       -     -44
process_command_subs                                 222       -    -222
------------------------------------------------------------------------------
(add/remove: 5/3 grow/shrink: 2/4 up/down: 544/-350)          Total: 194 bytes
   text    data     bss     dec     hex filename
 759354     604    6684  766642   bb2b2 busybox_old
 759534     604    6684  766822   bb366 busybox_unstripped

16 years agohush: fix a memory leak in NOMMU case
Denis Vlasenko [Tue, 10 Jun 2008 16:19:39 +0000 (16:19 -0000)]
hush: fix a memory leak in NOMMU case

16 years agoless: fix a case when regexp matches ""
Denis Vlasenko [Mon, 9 Jun 2008 16:02:39 +0000 (16:02 -0000)]
less: fix a case when regexp matches ""
hush: remove wrong comment, expand another one

16 years agoreword the error msg so people realize that they broke it, they buy it
Mike Frysinger [Mon, 9 Jun 2008 09:38:45 +0000 (09:38 -0000)]
reword the error msg so people realize that they broke it, they buy it

16 years agocosmetics
Denis Vlasenko [Mon, 9 Jun 2008 07:58:53 +0000 (07:58 -0000)]
cosmetics

16 years agomsh_function.patch: picked it up in the wild.
Denis Vlasenko [Mon, 9 Jun 2008 07:50:25 +0000 (07:50 -0000)]
msh_function.patch: picked it up in the wild.
Fixed allocation bugs (it was allocating
one too small vectors) but it still is very buggy,
thus not applied.

16 years agomsh: style cleanups. No code changes.
Denis Vlasenko [Mon, 9 Jun 2008 07:44:19 +0000 (07:44 -0000)]
msh: style cleanups. No code changes.

16 years agomktemp: make default tempfile template shorter;
Denis Vlasenko [Sun, 8 Jun 2008 20:40:33 +0000 (20:40 -0000)]
mktemp: make default tempfile template shorter;
 make help text more understandable

16 years agohush: add yet another bug to testsuite :(
Denis Vlasenko [Sun, 8 Jun 2008 16:47:09 +0000 (16:47 -0000)]
hush: add yet another bug to testsuite :(

16 years agoifenslave: small shrink
Denis Vlasenko [Sun, 8 Jun 2008 08:01:12 +0000 (08:01 -0000)]
ifenslave: small shrink
   text    data     bss     dec     hex filename
 809731     624    7060  817415   c7907 busybox_old
 809629     624    7060  817313   c78a1 busybox_unstripped

16 years agoip: make numeric table work: "ip route list table 255". closes bug 3664.
Denis Vlasenko [Sun, 8 Jun 2008 00:25:55 +0000 (00:25 -0000)]
ip: make numeric table work: "ip route list table 255". closes bug 3664.

function                                             old     new   delta
iproute_list_or_flush                               1270    1300     +30

16 years agoifenslave: tiny shrink
Denis Vlasenko [Sun, 8 Jun 2008 00:24:43 +0000 (00:24 -0000)]
ifenslave: tiny shrink

   text    data     bss     dec     hex filename
   2221       0       0    2221     8ad busybox.t5/networking/ifenslave.o
   2215       0       0    2215     8a7 busybox.t6/networking/ifenslave.o

16 years agodefine CLOCK_MONOTONIC to 1 if it is not defined
Denis Vlasenko [Sat, 7 Jun 2008 23:43:43 +0000 (23:43 -0000)]
define CLOCK_MONOTONIC to 1 if it is not defined

16 years agoifenslave: further shrink by suppressing excessive inlining
Denis Vlasenko [Sat, 7 Jun 2008 22:14:25 +0000 (22:14 -0000)]
ifenslave: further shrink by suppressing excessive inlining
ifenslave: reorder functions to avoid forward declarations

function                                             old     new   delta
enslave                                                -     531    +531
get_drv_info                                           -     176    +176
ifenslave_main                                      1411     671    -740
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 707/-740)          Total: -33 bytes
   text    data     bss     dec     hex filename
 809737     624    7060  817421   c790d busybox_old
 809704     624    7060  817388   c78ec busybox_unstripped

16 years agoifenslave: fix improper longopts definition
Denis Vlasenko [Sat, 7 Jun 2008 22:13:04 +0000 (22:13 -0000)]
ifenslave: fix improper longopts definition
ifenslave: shrink

function                                             old     new   delta
set_hwaddr                                             -      45     +45
set_ifrname_and_do_ioctl                               -      26     +26
set_mtu                                                -      25     +25
ioctl_on_skfd                                          -      13     +13
static.ifenslave_longopts                             31      34      +3
set_if_up                                             39      36      -3
set_if_down                                           39      36      -3
set_if_flags                                          38      26     -12
static.ifra                                           32      16     -16
get_slave_flags                                       40      24     -16
get_if_settings                                       98      67     -31
set_slave_mtu                                         37       -     -37
set_slave_hwaddr                                      52       -     -52
set_master_hwaddr                                     52       -     -52
ifenslave_main                                      1566    1411    -155
------------------------------------------------------------------------------
(add/remove: 4/3 grow/shrink: 1/7 up/down: 112/-377)         Total: -265 bytes
   text    data     bss     dec     hex filename
 810002     624    7060  817686   c7a16 busybox_old
 809737     624    7060  817421   c790d busybox_unstripped

16 years agoadd libbb/print_flags.c...
Denis Vlasenko [Sat, 7 Jun 2008 15:11:08 +0000 (15:11 -0000)]
add libbb/print_flags.c...

16 years agolibbb: introduce and use print_flags().
Denis Vlasenko [Sat, 7 Jun 2008 15:10:29 +0000 (15:10 -0000)]
libbb: introduce and use print_flags().
Mostly by Natanael Copa <natanael.copa AT gmail.com>

function                                             old     new   delta
print_e2flags                                          -     189    +189
print_flags_separated                                  -      86     +86
static.flag_labels                                     -      60     +60
static.dma_wmode_masks                                 -      32     +32
static.flag_masks                                      -      28     +28
static.arp_labels                                      -      16     +16
static.arp_masks                                       -      12     +12
ls_main                                              836     843      +7
...
popstring                                            140     134      -6
arp_show                                             740     708     -32
print_flags                                          189      25    -164
ipaddr_list_or_flush                                2396    2170    -226
process_dev                                         5306    4706    -600
------------------------------------------------------------------------------
(add/remove: 10/0 grow/shrink: 5/10 up/down: 458/-1043)      Total: -585 bytes
   text    data     bss     dec     hex filename
 810564     624    7060  818248   c7c48 busybox_old
 810002     624    7060  817686   c7a16 busybox_unstripped

16 years agoUpdate a link to cross-compiling HOWTO.
Denis Vlasenko [Sat, 7 Jun 2008 13:59:27 +0000 (13:59 -0000)]
Update a link to cross-compiling HOWTO.

16 years agoFix trivial problems: "make clean" cleaning too much
Denis Vlasenko [Sat, 7 Jun 2008 12:23:44 +0000 (12:23 -0000)]
Fix trivial problems: "make clean" cleaning too much
and add #include to pull in __be32 typedef.

16 years agogrep: make "-f -" work (+ testsuite)
Denis Vlasenko [Sat, 7 Jun 2008 05:19:31 +0000 (05:19 -0000)]
grep: make "-f -" work (+ testsuite)
diff: small code shrink

function                                             old     new   delta
grep_main                                            722     714      -8
diffreg                                             1825    1793     -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-40)             Total: -40 bytes

16 years agoBuild system: track -Wl,-elf2flt in CFLAGS_busybox too.
Denis Vlasenko [Fri, 6 Jun 2008 16:11:12 +0000 (16:11 -0000)]
Build system: track -Wl,-elf2flt in CFLAGS_busybox too.
Document in comments that it generally should be thers,
not in LDFLAGS

16 years agoklogd: make help text more understandable
Denis Vlasenko [Fri, 6 Jun 2008 16:08:04 +0000 (16:08 -0000)]
klogd: make help text more understandable
klogd: by using a register instead of global variable, shrink code a bit

function                                             old     new   delta
klogd_main                                           372     362     -10
packed_usage                                       24504   24486     -18
   text    data     bss     dec     hex filename
 808464     642    7180  816286   c749e busybox_old
 808422     642    7180  816244   c7474 busybox_unstripped

16 years ago- fix compilation on standard-conforming compilers
Bernhard Reutner-Fischer [Fri, 6 Jun 2008 10:31:39 +0000 (10:31 -0000)]
- fix compilation on standard-conforming compilers

16 years ago- fix copy'n paste error for the release date
Bernhard Reutner-Fischer [Fri, 6 Jun 2008 08:40:28 +0000 (08:40 -0000)]
- fix copy'n paste error for the release date

16 years agoip: support for the LOWER_UP flag by Natanael Copa <natanael.copa@gmail.com>.
Denis Vlasenko [Thu, 5 Jun 2008 14:01:04 +0000 (14:01 -0000)]
ip: support for the LOWER_UP flag by Natanael Copa <natanael.copa@gmail.com>.
~50 bytes code growth.

16 years agowhich: -a support (needed for bfin uclibc build script)
Denis Vlasenko [Thu, 5 Jun 2008 13:33:59 +0000 (13:33 -0000)]
which: -a support (needed for bfin uclibc build script)

real support (with CONFIG_DESKTOP=y): 120+ bytes:
   text    data     bss     dec     hex filename
 807958     624    7036  815618   c7202 busybox_old
 808085     624    7036  815745   c7281 busybox_unstripped

"fake" support (with CONFIG_DESKTOP unset): ~45 bytes:
   text    data     bss     dec     hex filename
 797790     611    6996  805397   c4a15 busybox_old
 797834     611    6996  805441   c4a41 busybox_unstripped

16 years ago- The conffiles control file isn't required in Debian packages, so don't
Bernhard Reutner-Fischer [Thu, 5 Jun 2008 12:18:42 +0000 (12:18 -0000)]
- The conffiles control file isn't required in Debian packages, so don't
  error out if it's missing. (Peter Korsgaard)

16 years agomktemp: make argument optional (coreutil 6.12 compat)
Denis Vlasenko [Thu, 5 Jun 2008 12:06:00 +0000 (12:06 -0000)]
mktemp: make argument optional (coreutil 6.12 compat)

function                                             old     new   delta
mktemp_main                                          157     174     +17
packed_usage                                       24508   24504      -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 17/-4)              Total: 13 bytes

16 years agoash testsuite: modify it so that it can run hush and msh tests
Denis Vlasenko [Thu, 5 Jun 2008 09:07:02 +0000 (09:07 -0000)]
ash testsuite: modify it so that it can run hush and msh tests

16 years agoadded testsuite for printf by Cristian Ionescu-Idbohrn
Denis Vlasenko [Thu, 5 Jun 2008 08:27:26 +0000 (08:27 -0000)]
added testsuite for printf by Cristian Ionescu-Idbohrn

16 years agoreplace single-char printf's with bb_putchar
Denis Vlasenko [Thu, 5 Jun 2008 06:51:06 +0000 (06:51 -0000)]
replace single-char printf's with bb_putchar

16 years agolibiproute: use stdout directly instead of passing it as a parameter
Denis Vlasenko [Thu, 5 Jun 2008 05:00:24 +0000 (05:00 -0000)]
libiproute: use stdout directly instead of passing it as a parameter

function                                             old     new   delta
iprule_list                                           86      82      -4
print_rule                                           860     791     -69
ipaddr_list_or_flush                                2484    2384    -100
print_addrinfo                                      1498    1292    -206
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-379)           Total: -379 bytes

16 years agoannounce 1.10.3
Denis Vlasenko [Thu, 5 Jun 2008 01:17:49 +0000 (01:17 -0000)]
announce 1.10.3

16 years agoconfig help text: fix capitalization
Denis Vlasenko [Wed, 4 Jun 2008 22:41:14 +0000 (22:41 -0000)]
config help text: fix capitalization

16 years agoremove -fno-jump-tables - after stripping it proved to be worse
Denis Vlasenko [Wed, 4 Jun 2008 11:53:24 +0000 (11:53 -0000)]
remove -fno-jump-tables - after stripping it proved to be worse

16 years agobuild system: add PIE build option
Denis Vlasenko [Wed, 4 Jun 2008 11:28:24 +0000 (11:28 -0000)]
build system: add PIE build option

16 years agochange default rtcwake mode to match changed behavior in upstream util-linux
Mike Frysinger [Wed, 4 Jun 2008 10:33:33 +0000 (10:33 -0000)]
change default rtcwake mode to match changed behavior in upstream util-linux

16 years agonetworking/interface.c: fix indentation
Denis Vlasenko [Wed, 4 Jun 2008 07:59:51 +0000 (07:59 -0000)]
networking/interface.c: fix indentation

16 years agoRemove stray debug instrumentation
Denis Vlasenko [Mon, 2 Jun 2008 22:24:34 +0000 (22:24 -0000)]
Remove stray debug instrumentation

16 years agomake the help for rtcwake reflect the actual default behavior
Mike Frysinger [Mon, 2 Jun 2008 20:37:45 +0000 (20:37 -0000)]
make the help for rtcwake reflect the actual default behavior

16 years ago- add FIXME. Perhaps somebody is interrested in looking into this one.
Bernhard Reutner-Fischer [Mon, 2 Jun 2008 19:23:47 +0000 (19:23 -0000)]
- add FIXME. Perhaps somebody is interrested in looking into this one.
  We would try to be clever and compare the *data instead of the *elt.

Somethink like this might be of more general use:
/* Unlink arbitrary element from the list that contains data */
void llist_unlink_data(llist_t **head, void *data)
{
    llist_t *elt;

    for (elt = *head; elt; elt = elt->link) {
        if (elt->data == data) {
            llist_unlink(elt);
            return;
        }
    }
}

16 years ago- add alias support
Bernhard Reutner-Fischer [Mon, 2 Jun 2008 18:59:16 +0000 (18:59 -0000)]
- add alias support

16 years ago- revert revision 22183 since it breaks -b /abs /abs/path/to/mod.ko
Bernhard Reutner-Fischer [Mon, 2 Jun 2008 13:40:13 +0000 (13:40 -0000)]
- revert revision 22183 since it breaks -b /abs /abs/path/to/mod.ko

16 years ago- just chdir to the basedir (-30b).
Bernhard Reutner-Fischer [Mon, 2 Jun 2008 13:34:36 +0000 (13:34 -0000)]
- just chdir to the basedir (-30b).

16 years ago- optional fancy pruning-mode for depmod
Bernhard Reutner-Fischer [Mon, 2 Jun 2008 13:28:47 +0000 (13:28 -0000)]
- optional fancy pruning-mode for depmod

16 years ago- pm_states[PM_SUSPEND_MAX] suggests to support "standby" and not "suspend"
Bernhard Reutner-Fischer [Mon, 2 Jun 2008 11:01:40 +0000 (11:01 -0000)]
- pm_states[PM_SUSPEND_MAX] suggests to support "standby" and not "suspend"
  Thanks to Paulius Zaleckas for mentioning this.

16 years agoReinstate CONFIG_CROSS_COMPILE_PREFIX
Denis Vlasenko [Mon, 2 Jun 2008 04:51:29 +0000 (04:51 -0000)]
Reinstate CONFIG_CROSS_COMPILE_PREFIX

16 years agoash: optional printf builtin. +25 bytes if off, +35 if on.
Denis Vlasenko [Sun, 1 Jun 2008 22:36:39 +0000 (22:36 -0000)]
ash: optional printf builtin. +25 bytes if off, +35 if on.
by Cristian Ionescu-Idbohrn.

16 years agomsh: fix ENOENT testcase
Denis Vlasenko [Sun, 1 Jun 2008 14:16:54 +0000 (14:16 -0000)]
msh: fix ENOENT testcase

16 years ago- use ut_user rather than ut_name (Cristian Ionescu-Idbohrn)
Bernhard Reutner-Fischer [Sun, 1 Jun 2008 10:10:22 +0000 (10:10 -0000)]
- use ut_user rather than ut_name (Cristian Ionescu-Idbohrn)
- use ut_tv.tv_sec rather than ut_time (me)
- shrink halt a little bit (me):
halt_main                                            464     433     -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31)             Total: -31 bytes

16 years ago- shrink modprobe a little bit (~-40 bytes). ACKed by Yann.
Bernhard Reutner-Fischer [Sat, 31 May 2008 18:50:17 +0000 (18:50 -0000)]
- shrink modprobe a little bit (~-40 bytes). ACKed by Yann.

16 years agoprintf: fix a trivial bug
Denis Vlasenko [Sat, 31 May 2008 18:32:56 +0000 (18:32 -0000)]
printf: fix a trivial bug

16 years agomdev: add commented-out debug code to open stdio.
Denis Vlasenko [Sat, 31 May 2008 18:27:58 +0000 (18:27 -0000)]
mdev: add commented-out debug code to open stdio.

16 years agoprintf: code shrink by eliminating string alloc/copy
Denis Vlasenko [Sat, 31 May 2008 11:41:50 +0000 (11:41 -0000)]
printf: code shrink by eliminating string alloc/copy

function                                             old     new   delta
print_direc                                          428     382     -46

16 years agolibiproute: fix option parsing, so that "ip -o link" works again.
Denis Vlasenko [Sat, 31 May 2008 07:34:14 +0000 (07:34 -0000)]
libiproute: fix option parsing, so that "ip -o link" works again.
closes bug 3524

16 years agolibiproute: style fixes, and using smallint as appropriate
Denis Vlasenko [Sat, 31 May 2008 07:33:18 +0000 (07:33 -0000)]
libiproute: style fixes, and using smallint as appropriate

function                                             old     new   delta
print_route                                         1730    1731      +1
print_addrinfo                                      1497    1498      +1
iproute_list_or_flush                               1232    1229      -3
ipaddr_list_or_flush                                2490    2484      -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 2/-9)               Total: -7 bytes

16 years agorunsvdir: make it more robust against libc buglets (errno accidentally set to !0)
Denis Vlasenko [Sat, 31 May 2008 07:00:33 +0000 (07:00 -0000)]
runsvdir: make it more robust against libc buglets (errno accidentally set to !0)
closes bug 3514

function                                             old     new   delta
runsvdir_main                                       1672    1664      -8

16 years agomsh: fix the case where the file has exec bit but can't be run directly
Denis Vlasenko [Fri, 30 May 2008 22:28:32 +0000 (22:28 -0000)]
msh: fix the case where the file has exec bit but can't be run directly
     (run "$SHELL $file" instead)
msh: fix exit codes when command is not found or can't be execed
     (with testcases)

16 years ago- add FIXME to use hasmntopt()
Bernhard Reutner-Fischer [Fri, 30 May 2008 10:44:37 +0000 (10:44 -0000)]
- add FIXME to use hasmntopt()

16 years ago- fix overflow; improve documentation while at it
Bernhard Reutner-Fischer [Wed, 28 May 2008 15:57:31 +0000 (15:57 -0000)]
- fix overflow; improve documentation while at it

16 years agofuser: a now, the corrected fix (vda botched previous one)
Denis Vlasenko [Wed, 28 May 2008 14:57:58 +0000 (14:57 -0000)]
fuser: a now, the corrected fix (vda botched previous one)

16 years ago- misc. improvements and shrinkage
Bernhard Reutner-Fischer [Wed, 28 May 2008 14:20:20 +0000 (14:20 -0000)]
- misc. improvements and shrinkage

16 years ago- add strrchr
Bernhard Reutner-Fischer [Wed, 28 May 2008 14:19:27 +0000 (14:19 -0000)]
- add strrchr

16 years agofiser: opendir "/proc", not "." (by Cristian Ionescu-Idbohrn)
Denis Vlasenko [Wed, 28 May 2008 12:44:22 +0000 (12:44 -0000)]
fiser: opendir "/proc", not "." (by Cristian Ionescu-Idbohrn)

16 years agofind: beautify config prompts a bit
Denis Vlasenko [Wed, 28 May 2008 12:00:59 +0000 (12:00 -0000)]
find: beautify config prompts a bit

16 years agoRemove 'busybox' word from configuration programs
Denis Vlasenko [Wed, 28 May 2008 11:59:32 +0000 (11:59 -0000)]
Remove 'busybox' word from configuration programs
(based on experience of adapting it to uclibc).

16 years ago- move depmod shell script to examples/
Bernhard Reutner-Fischer [Wed, 28 May 2008 11:21:20 +0000 (11:21 -0000)]
- move depmod shell script to examples/

16 years ago- the moddir_base is supposed to be omitted frmo the .dep file
Bernhard Reutner-Fischer [Wed, 28 May 2008 10:35:51 +0000 (10:35 -0000)]
- the moddir_base is supposed to be omitted frmo the .dep file
- other tweaks while at it

16 years ago- Spaghetti alert. Fix clash with ancient fwd-decl. This is an unfortunate
Bernhard Reutner-Fischer [Tue, 27 May 2008 13:27:18 +0000 (13:27 -0000)]
- Spaghetti alert. Fix clash with ancient fwd-decl. This is an unfortunate
  combination of linux not providing a useable linux/module.h to userspace and
  mixing legacy-cruft with the current stuff in one insmod.c.

16 years ago- remove duplicate helptext of dhcprelay and improve it
Bernhard Reutner-Fischer [Tue, 27 May 2008 12:42:39 +0000 (12:42 -0000)]
- remove duplicate helptext of dhcprelay and improve it

16 years ago- Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.
Bernhard Reutner-Fischer [Tue, 27 May 2008 10:55:34 +0000 (10:55 -0000)]
- Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.
  No obj-code changes.

16 years ago- use (uC)libc functions. Saves a dozen bytes.
Bernhard Reutner-Fischer [Tue, 27 May 2008 10:13:54 +0000 (10:13 -0000)]
- use (uC)libc functions. Saves a dozen bytes.

16 years agovda, xmalloc'ing can use *alot* of RAM. Don't forget that there are
Bernhard Reutner-Fischer [Tue, 27 May 2008 09:06:05 +0000 (09:06 -0000)]
vda, xmalloc'ing can use *alot* of RAM. Don't forget that there are
   modules out there that are half a megabyte! mmap()ing is way nicer
   for small mem boxes.

16 years ago- improve help-text
Bernhard Reutner-Fischer [Tue, 27 May 2008 08:41:32 +0000 (08:41 -0000)]
- improve help-text

16 years ago- improve option-handling a bit
Bernhard Reutner-Fischer [Mon, 26 May 2008 21:33:05 +0000 (21:33 -0000)]
- improve option-handling a bit

16 years agoscripts: add a script which prints memory map of running busybox
Denis Vlasenko [Mon, 26 May 2008 18:41:35 +0000 (18:41 -0000)]
scripts: add a script which prints memory map of running busybox

16 years agoscripts: add primitive memory usage meter script
Denis Vlasenko [Mon, 26 May 2008 18:36:37 +0000 (18:36 -0000)]
scripts: add primitive memory usage meter script

16 years agoudhcpc: shrink
Denis Vlasenko [Mon, 26 May 2008 17:32:35 +0000 (17:32 -0000)]
udhcpc: shrink
udhcpc: guard against zero lease time

function                                             old     new   delta
timeout                                                4       -      -4
server_addr                                            4       -      -4
requested_ip                                           4       -      -4
perform_release                                      134     112     -22
udhcpc_main                                         2511    2485     -26
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-60)             Total: -60 bytes