oweals/busybox.git
15 years agosyslogd: create logfile with 0666, not 0600.
Denis Vlasenko [Mon, 2 Mar 2009 14:26:28 +0000 (14:26 -0000)]
syslogd: create logfile with 0666, not 0600.

15 years agotr: update testsuite
Denis Vlasenko [Mon, 2 Mar 2009 12:07:15 +0000 (12:07 -0000)]
tr: update testsuite

15 years agotr: fix overflow in expand and complement, fix stop after [:class:],
Denis Vlasenko [Mon, 2 Mar 2009 12:05:57 +0000 (12:05 -0000)]
tr: fix overflow in expand and complement, fix stop after [:class:],
 fix order of [:xdigit:], make tr require one param at least.

function                                             old     new   delta
expand                                              1743    1849    +106
tr_main                                              463     518     +55
complement                                            72      75      +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 164/0)             Total: 164 bytes

15 years agotr: support [:xdigit:], fix handling of ranges and [x]'s.
Denis Vlasenko [Sun, 1 Mar 2009 04:50:18 +0000 (04:50 -0000)]
tr: support [:xdigit:], fix handling of ranges and [x]'s.
 add testsuite entry for each of 3 bugs fixed.

function                                             old     new   delta
static.classes                                        73      82      +9
expand                                              1738    1743      +5
complement                                            74      72      -2
tr_main                                              472     463      -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 14/-11)              Total: 3 bytes

15 years agorunsv: another tiny optimization
Denis Vlasenko [Thu, 26 Feb 2009 12:38:01 +0000 (12:38 -0000)]
runsv: another tiny optimization

function                                             old     new   delta
startservice                                         297     288      -9
ctrl                                                 435     426      -9

15 years agorunsv: small optimization
Denis Vlasenko [Thu, 26 Feb 2009 12:29:59 +0000 (12:29 -0000)]
runsv: small optimization
*: more paranoia around passing NULL to execl[e]

function                                             old     new   delta
custom                                               240     221     -19

15 years agomodutils: oveflow fix
Denis Vlasenko [Thu, 26 Feb 2009 12:00:52 +0000 (12:00 -0000)]
modutils: oveflow fix

15 years agounzip: fix thinko with le/be conv and size (closes bug 129)
Denis Vlasenko [Thu, 26 Feb 2009 11:21:04 +0000 (11:21 -0000)]
unzip: fix thinko with le/be conv and size (closes bug 129)
awk: make "struct global" hack more robust wrt alignment (closes bug 131)

15 years agologin: fix buglet introduced by "simplification"
Denis Vlasenko [Tue, 24 Feb 2009 17:10:24 +0000 (17:10 -0000)]
login: fix buglet introduced by "simplification"

15 years agoflash_eraseall.c: fix vda's breakage
Denis Vlasenko [Tue, 24 Feb 2009 16:47:03 +0000 (16:47 -0000)]
flash_eraseall.c: fix vda's breakage

15 years ago- rephrase helptext for clarity
Bernhard Reutner-Fischer [Tue, 24 Feb 2009 10:05:15 +0000 (10:05 -0000)]
- rephrase helptext for clarity

15 years ago- improve wording
Bernhard Reutner-Fischer [Tue, 24 Feb 2009 10:03:22 +0000 (10:03 -0000)]
- improve wording

15 years ago- by not calling getpagesize() twice we can save 2 bytes (walter harms)
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 16:51:25 +0000 (16:51 -0000)]
- by not calling getpagesize() twice we can save 2 bytes (walter harms)

15 years ago- fix typo (thanks to Peter Kjellerstedt for noticing)
Bernhard Reutner-Fischer [Mon, 23 Feb 2009 16:21:53 +0000 (16:21 -0000)]
- fix typo (thanks to Peter Kjellerstedt for noticing)

15 years ago- Dual-license the config parser also under "LGLPv2.1 or later"
Bernhard Reutner-Fischer [Sun, 22 Feb 2009 10:57:23 +0000 (10:57 -0000)]
- Dual-license the config parser also under "LGLPv2.1 or later"
  (Vladimir Dronnikov)

15 years agomake modutils compile again
Ned Ludd [Fri, 20 Feb 2009 04:56:00 +0000 (04:56 -0000)]
make modutils compile again

15 years agodepmod: accept and ignore -r (Linux kernle build needs this)
Denis Vlasenko [Thu, 19 Feb 2009 01:25:42 +0000 (01:25 -0000)]
depmod: accept and ignore -r (Linux kernle build needs this)

15 years agoflash_eraseall: shrink
Denis Vlasenko [Thu, 19 Feb 2009 01:17:12 +0000 (01:17 -0000)]
flash_eraseall: shrink

function                                             old     new   delta
flash_eraseall_main                                 1044    1006     -38

15 years ago- add big busybox logo as transparent png
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 21:09:07 +0000 (21:09 -0000)]
- add big busybox logo as transparent png

15 years ago- bail out if screen resolution does not match PPM dimensions.
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 15:28:43 +0000 (15:28 -0000)]
- bail out if screen resolution does not match PPM dimensions.
  Previously a 640x480 PPM on an e.g. 720x400 console would just segfault when
  reading the lines. While this bug should perhaps be fixed to handle such cases
  properly we just exit gracefully until somebody is willing to take care of it
  properly.

15 years ago- document ppm header and skip whitespace
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 15:13:05 +0000 (15:13 -0000)]
- document ppm header and skip whitespace

15 years ago- update TODOs
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 14:05:54 +0000 (14:05 -0000)]
- update TODOs

15 years ago- eliminate globals
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 13:42:51 +0000 (13:42 -0000)]
- eliminate globals

15 years ago- make it compile and shrink it a little bit (~-110 bytes)
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 13:26:29 +0000 (13:26 -0000)]
- make it compile and shrink it a little bit (~-110 bytes)
   text    data     bss     dec     hex filename
   1533       4       0    1537     601 miscutils/flash_eraseall.o.old
   1415       4       0    1419     58b miscutils/flash_eraseall.o
- add some FIXMEs

15 years ago- add flash_eraseall
Bernhard Reutner-Fischer [Wed, 18 Feb 2009 13:23:46 +0000 (13:23 -0000)]
- add flash_eraseall
This is the result after converting mtd-utils' flash_eraseall to BB.
The functionality given by this patch almost the same except that this
one does not support long options.
I needed this tool a system which does not have a lot of flash for RFS
and merging this into BB as the only way out.

[bigeasy@]$ ./scripts/bloat-o-meter bb_wo_fl bb_w_fl
function                                             old     new   delta
flash_eraseall_main                                    -    1072   +1072
show_progress                                          -      62     +62
packed_usage                                       25156   25176     +20
applet_names                                        1958    1973     +15
applet_main                                         2352    2360      +8
target_endian                                          -       4      +4
applet_nameofs                                       588     590      +2
applet_install_loc                                   147     148      +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 5/0 up/down: 1184/0)           Total: 1184 bytes
[bigeasy@]$ size miscutils/flash_eraseall.o
   text    data     bss     dec     hex filename
   1586       4       0    1590     636 miscutils/flash_eraseall.o

Signed-off-by: Benedigt Spranger <b.spranger@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
15 years ago- PPMs can have comments in the header.
Bernhard Reutner-Fischer [Mon, 16 Feb 2009 12:36:50 +0000 (12:36 -0000)]
- PPMs can have comments in the header.
  Thanks to Denys for pointing that out. (~+7b)

15 years agoash: make dot command search current directory first, as bash does.
Denis Vlasenko [Sun, 15 Feb 2009 12:40:30 +0000 (12:40 -0000)]
ash: make dot command search current directory first, as bash does.

15 years agoMake "shadowed" numeric config entries (ones which depend on
Denis Vlasenko [Sun, 15 Feb 2009 12:01:14 +0000 (12:01 -0000)]
Make "shadowed" numeric config entries (ones which depend on
other options which are off) to have the value of 0, not "".

15 years agovolume_id: abort early on read failures.
Denis Vlasenko [Sun, 15 Feb 2009 05:51:19 +0000 (05:51 -0000)]
volume_id: abort early on read failures.
 should help with probing missing fdd's

15 years agoinit: fix compile breakage with '# CONFIG_FEATURE_KILL_REMOVED is not set'
Denis Vlasenko [Sat, 14 Feb 2009 20:58:13 +0000 (20:58 -0000)]
init: fix compile breakage with '# CONFIG_FEATURE_KILL_REMOVED is not set'
runsvdir.c: fix typo in comment

15 years ago- improve wording
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 13:17:48 +0000 (13:17 -0000)]
- improve wording

15 years ago- improve helptext
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:58:48 +0000 (12:58 -0000)]
- improve helptext

15 years ago- misc untested shrinkage:
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:36:16 +0000 (12:36 -0000)]
- misc untested shrinkage:
$ ./scripts/bloat-o-meter _bb_un.oorig busybox_unstripped
function                                             old     new   delta
fbsplash_main                                        595     985    +390
fb_drawimage                                         493       -    -493
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 390/-493)         Total: -103 bytes

$ size miscutils/fbsplash.o*
   text           data     bss     dec     hex filename
   2019              0       0    2019     7e3 miscutils/fbsplash.o.oorig
   1857              0       0    1857     741 miscutils/fbsplash.o.new

15 years ago- improve helptext of obsolete devfs stuff..
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:19:37 +0000 (12:19 -0000)]
- improve helptext of obsolete devfs stuff..

15 years ago- cosmetic typo in helptext
Bernhard Reutner-Fischer [Sat, 14 Feb 2009 12:13:13 +0000 (12:13 -0000)]
- cosmetic typo in helptext

15 years agokillall and sestatus also need ARGVN scanning
Denis Vlasenko [Sat, 14 Feb 2009 01:36:11 +0000 (01:36 -0000)]
killall and sestatus also need ARGVN scanning

15 years agomdev: if /sys/class/block exists, don't scan /sys/block
Denis Vlasenko [Fri, 13 Feb 2009 00:02:54 +0000 (00:02 -0000)]
mdev: if /sys/class/block exists, don't scan /sys/block

15 years agofunction old new delta
Denis Vlasenko [Sat, 7 Feb 2009 22:30:39 +0000 (22:30 -0000)]
function                                             old     new   delta
kill_main                                            706     884    +178

15 years agohttpd: tiny optimization
Denis Vlasenko [Thu, 5 Feb 2009 12:38:21 +0000 (12:38 -0000)]
httpd: tiny optimization

15 years agohttpd:
Denis Vlasenko [Wed, 4 Feb 2009 23:43:44 +0000 (23:43 -0000)]
httpd:

Kill config options by making them always on:

FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP
FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES

This makes httpd.c remotely readable - it had ~125 #ifdefs, now it has ~100.
The growth on a .config with all FEATURE_HTTPDs off is:

function                                             old     new   delta
send_file_and_exit                                     -     269    +269
parse_conf                                           683     763     +80
free_llist                                             -      32     +32
httpd_main                                           427     454     +27
sighup_handler                                         -      15     +15
handle_incoming_and_exit                            1110     905    -205
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 2/1 up/down: 423/-205)          Total: 218 bytes

15 years agosendmail: remove erroneous usage lines
Denis Vlasenko [Wed, 4 Feb 2009 00:01:07 +0000 (00:01 -0000)]
sendmail: remove erroneous usage lines

15 years agocrond,crontab: make cron directory location configurable
Denis Vlasenko [Tue, 3 Feb 2009 23:59:41 +0000 (23:59 -0000)]
crond,crontab: make cron directory location configurable

15 years agotelnetd: do not advertise TELNET_LFLOW, we do not support
Denis Vlasenko [Mon, 2 Feb 2009 23:43:57 +0000 (23:43 -0000)]
telnetd: do not advertise TELNET_LFLOW, we do not support
it properly.

15 years agoudhcpd: add code which rejects lease files with suspicious or old timestamp.
Denis Vlasenko [Mon, 2 Feb 2009 10:48:06 +0000 (10:48 -0000)]
udhcpd: add code which rejects lease files with suspicious or old timestamp.
*: s/time(0)/time(NULL)/g

15 years agologin: small simplification by Walter Harms. -10 bytes
Denis Vlasenko [Mon, 2 Feb 2009 00:15:57 +0000 (00:15 -0000)]
login: small simplification by Walter Harms. -10 bytes

15 years agologin: cleanup work by Walter Harms. No logic changes.
Denis Vlasenko [Mon, 2 Feb 2009 00:15:00 +0000 (00:15 -0000)]
login: cleanup work by Walter Harms. No logic changes.

15 years agodhcpd,dumpleases: write and use 64-bit current time in lease file.
Denis Vlasenko [Sun, 1 Feb 2009 00:40:45 +0000 (00:40 -0000)]
dhcpd,dumpleases: write and use 64-bit current time in lease file.
 without it, determination of remaining lease time is unreliable.
 Yes, it's costly in code size, but without it, dumpleases output
 is misleading!

function                                             old     new   delta
read_leases                                          143     282    +139
dumpleases_main                                      447     572    +125
write_leases                                         193     233     +40
hton64                                                29      58     +29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 333/0)             Total: 333 bytes

15 years agomodutils-24: code shrink
Denis Vlasenko [Sat, 31 Jan 2009 23:33:54 +0000 (23:33 -0000)]
modutils-24: code shrink

function                                             old     new   delta
helper_create_alloced_section                          -     117    +117
print_load_map                                       474     450     -24
bb_init_module_24                                   4615    4545     -70
obj_create_alloced_section                           131      30    -101
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 117/-195)          Total: -78 bytes

15 years agoionice: new applet, adapted from Linux kernel' example by Walter Harms
Denis Vlasenko [Sat, 31 Jan 2009 21:45:57 +0000 (21:45 -0000)]
ionice: new applet, adapted from Linux kernel' example by Walter Harms

   text    data     bss     dec     hex filename
1050316     924   10952 1062192  103530 busybox_old
1050758     924   10952 1062634  1036ea busybox_unstripped

15 years agobrctl: fix compilation on 2.4.x kernels
Denis Vlasenko [Sat, 31 Jan 2009 20:08:21 +0000 (20:08 -0000)]
brctl: fix compilation on 2.4.x kernels

15 years agoinit: remove wait() loop on restart, it may be dangerous
Denis Vlasenko [Sat, 31 Jan 2009 19:26:12 +0000 (19:26 -0000)]
init: remove wait() loop on restart, it may be dangerous

15 years agoinit: fix a bug where on reload order of entries might be wrong
Denis Vlasenko [Sat, 31 Jan 2009 18:55:54 +0000 (18:55 -0000)]
init: fix a bug where on reload order of entries might be wrong

function                                             old     new   delta
run_shutdown_and_kill_processes                        -      97     +97
pause_and_low_level_reboot                             -      48     +48
run_actions                                           81     107     +26
restart_handler                                       56      81     +25
new_init_action                                      137     150     +13
run                                                  576     579      +3
open_stdio_to_tty                                    110      98     -12
check_delayed_sigs                                   195     170     -25
waitfor                                              354     318     -36
low_level_reboot                                      53       -     -53
kill_all_processes                                   115       -    -115
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/3 up/down: 212/-241)          Total: -29 bytes

15 years agomodutils-24: use xasprintf and xzalloc where appropriate,
Denis Vlasenko [Sat, 31 Jan 2009 14:22:24 +0000 (14:22 -0000)]
modutils-24: use xasprintf and xzalloc where appropriate,
 remove unreachanble code
build system: correct some dependencies in config system
init: convert one #if into if() - for Rob.

function                                             old     new   delta
obj_string_patch                                     136     129      -7
bb_init_module_24                                   4759    4615    -144
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-151)           Total: -151 bytes

15 years agoinit: small correction in a comment
Denis Vlasenko [Sat, 31 Jan 2009 01:07:05 +0000 (01:07 -0000)]
init: small correction in a comment

15 years agoinit: major improvement in documentation and signal handling.
Denis Vlasenko [Sat, 31 Jan 2009 01:03:45 +0000 (01:03 -0000)]
init: major improvement in documentation and signal handling.
 Lots of nasty, but hard to trip, races are fixed.

   text    data     bss     dec     hex filename
1038828     924   10932 1050684  10083c busybox_old
1038787     924   10932 1050643  100813 busybox_unstripped

15 years agoinit: preparatory patch, no code changes
Denis Vlasenko [Sat, 31 Jan 2009 01:02:07 +0000 (01:02 -0000)]
init: preparatory patch, no code changes

15 years agoinit: reinstate proper handling of !ENABLE_FEATURE_USE_INITTAB
Denis Vlasenko [Thu, 29 Jan 2009 02:01:04 +0000 (02:01 -0000)]
init: reinstate proper handling of !ENABLE_FEATURE_USE_INITTAB

15 years agoinit: reduce ifdef forest (specially for Rob's happiness)
Denis Vlasenko [Wed, 28 Jan 2009 23:56:31 +0000 (23:56 -0000)]
init: reduce ifdef forest (specially for Rob's happiness)

15 years ago- be gentle to syntax highlighting
Bernhard Reutner-Fischer [Tue, 27 Jan 2009 18:54:41 +0000 (18:54 -0000)]
- be gentle to syntax highlighting

15 years ago- update Michele address
Bernhard Reutner-Fischer [Tue, 27 Jan 2009 12:56:33 +0000 (12:56 -0000)]
- update Michele address

15 years agoawk: in BEGIN section $0 should be "", not "0".
Denis Vlasenko [Sun, 25 Jan 2009 01:00:15 +0000 (01:00 -0000)]
awk: in BEGIN section $0 should be "", not "0".

15 years agotraceroute: allow -w NUM as small as 1
Denis Vlasenko [Sat, 24 Jan 2009 21:23:41 +0000 (21:23 -0000)]
traceroute: allow -w NUM as small as 1

15 years agotraceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMP
Denis Vlasenko [Sat, 24 Jan 2009 20:14:24 +0000 (20:14 -0000)]
traceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMP
 packets and rely on the kernel to form IP headers, select source IP
 and interface. Doing it in traceroute wasn't working too good,
 and was bloating it.

function                                             old     new   delta
freehostinfo                                          29       -     -29
setsin                                                30       -     -30
in_cksum                                              57       -     -57
gethostinfo                                          165       -    -165
ifaddrlist                                           364       -    -364
traceroute_main                                     3713    2951    -762
------------------------------------------------------------------------------
(add/remove: 0/5 grow/shrink: 0/1 up/down: 0/-1407)         Total: -1407 bytes

15 years agotraceroute: preparatory trivial cleanups
Denis Vlasenko [Sat, 24 Jan 2009 20:11:36 +0000 (20:11 -0000)]
traceroute: preparatory trivial cleanups

function                                             old     new   delta
traceroute_main                                     3932    3713    -219

15 years agotunctl: new applet by Vladimir
Denis Vlasenko [Fri, 23 Jan 2009 02:07:14 +0000 (02:07 -0000)]
tunctl: new applet by Vladimir

function                                             old     new   delta
tunctl_main                                            -     371    +371
packed_usage                                       25669   25799    +130
applet_names                                        1981    1988      +7
applet_main                                         1192    1196      +4
applet_nameofs                                       596     598      +2
applet_install_loc                                   149     150      +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 515/0)             Total: 515 bytes

15 years ago- add CONFIG_EXTRA_CFLAGS (thanks to keesj)
Bernhard Reutner-Fischer [Thu, 22 Jan 2009 13:27:14 +0000 (13:27 -0000)]
- add CONFIG_EXTRA_CFLAGS (thanks to keesj)
  This helps with remembering additional flags like e.g. cpu settings for
  people who did not configured their compiler to produce code for their cpu
  per default.

15 years agotar: stop changing net tarfile's mode, GNU tar doesn't do it
Denis Vlasenko [Tue, 20 Jan 2009 02:52:57 +0000 (02:52 -0000)]
tar: stop changing net tarfile's mode, GNU tar doesn't do it

15 years agouname: use wider integer for option bits
Denis Vlasenko [Mon, 19 Jan 2009 16:38:30 +0000 (16:38 -0000)]
uname: use wider integer for option bits

15 years agouname: add support for -i and -o, fix printing of unknown -p
Denis Vlasenko [Mon, 19 Jan 2009 16:32:23 +0000 (16:32 -0000)]
uname: add support for -i and -o, fix printing of unknown -p
 value with -a option

function                                             old     new   delta
uname_main                                           166     185     +19
utsname_offset                                        12      16      +4
options                                              621     623      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 25/0)               Total: 25 bytes

15 years agodhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitialized
Denis Vlasenko [Wed, 14 Jan 2009 00:28:03 +0000 (00:28 -0000)]
dhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitialized

15 years agolibbb: shrink linked list ops (by xmaks AT email.cz)
Denis Vlasenko [Tue, 13 Jan 2009 15:22:50 +0000 (15:22 -0000)]
libbb: shrink linked list ops (by xmaks AT email.cz)

function                                             old     new   delta
llist_pop                                             33      29      -4
llist_unlink                                          47      28     -19
llist_add_to_end                                      50      31     -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42)             Total: -42 bytes

15 years agodepmod: fix -b option (by timo.teras AT iki.fi)
Denis Vlasenko [Mon, 12 Jan 2009 22:12:22 +0000 (22:12 -0000)]
depmod: fix -b option (by timo.teras AT iki.fi)

function                                             old     new   delta
xfreopen_write                                         -      35     +35
parse_module                                         346     353      +7
depmod_main                                          553     546      -7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 42/-7)              Total: 35 bytes

15 years agoadduser: allow adding to group 0; don't _create_ /etc/shadow,
Denis Vlasenko [Mon, 12 Jan 2009 09:20:49 +0000 (09:20 -0000)]
adduser: allow adding to group 0; don't _create_ /etc/shadow,
 only append data if it exists.

function                                             old     new   delta
adduser_main                                         642     667     +25

15 years agomdev: fix breakage caused by unified parser usage
Denis Vlasenko [Mon, 12 Jan 2009 07:57:52 +0000 (07:57 -0000)]
mdev: fix breakage caused by unified parser usage

15 years ago- use https for bugzilla URLs
Bernhard Reutner-Fischer [Sat, 10 Jan 2009 11:36:38 +0000 (11:36 -0000)]
- use https for bugzilla URLs

15 years ago- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot
Bernhard Reutner-Fischer [Fri, 9 Jan 2009 14:49:11 +0000 (14:49 -0000)]
- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot

15 years agodo not whine if /sys/block does not exist ... embedded systems dont need stinkin...
Mike Frysinger [Thu, 8 Jan 2009 17:19:01 +0000 (17:19 -0000)]
do not whine if /sys/block does not exist ... embedded systems dont need stinkin block devices

15 years agosysctl: fix another corner case with "dots and slashes"
Denis Vlasenko [Thu, 8 Jan 2009 03:35:47 +0000 (03:35 -0000)]
sysctl: fix another corner case with "dots and slashes"

15 years agoprintf: make integer format strings print long long-sized values.
Denis Vlasenko [Sun, 4 Jan 2009 02:58:58 +0000 (02:58 -0000)]
printf: make integer format strings print long long-sized values.

function                                             old     new   delta
printf_main                                          668     834    +166
bb_strtoll                                             -      84     +84
print_direc                                          391     431     +40
conv_strtoull                                          -      19     +19
conv_strtoll                                           -      19     +19
conv_strtoul                                          16       -     -16
conv_strtol                                           16       -     -16
------------------------------------------------------------------------------
(add/remove: 4/2 grow/shrink: 2/0 up/down: 342/-32)           Total: 296 bytes

15 years agoudhcpd: disable opton to have absolute lease times in lease file
Denis Vlasenko [Thu, 1 Jan 2009 17:52:09 +0000 (17:52 -0000)]
udhcpd: disable opton to have absolute lease times in lease file
 (that does not work with dumpleases)
dumpleases: fix -a option.
networking/udhcp/*: code shrink, more compact static leases struture,
 better comments, etc

function                                             old     new   delta
find_free_or_expired_address                           -     147    +147
nobody_responds_to_arp                                 -      84     +84
read_opt                                             781     830     +49
dumpleases_main                                      435     447     +12
send_ACK                                             229     232      +3
read_staticlease                                      90      93      +3
addStaticLease                                        60      61      +1
getIpByMac                                            46      43      -3
reservedIp                                            31      20     -11
keywords                                             304     288     -16
send_offer                                           428     403     -25
write_leases                                         225     193     -32
read_leases                                          184     143     -41
read_yn                                               64       -     -64
find_address                                         191       -    -191
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 5/6 up/down: 299/-383)          Total: -84 bytes

15 years agowebsite: announce 1.13.2 amd 1.12.4
Denis Vlasenko [Wed, 31 Dec 2008 03:43:24 +0000 (03:43 -0000)]
website: announce 1.13.2 amd 1.12.4

15 years agodc: fix the "base 2" patch omission of base not being set
Denis Vlasenko [Tue, 30 Dec 2008 10:40:05 +0000 (10:40 -0000)]
dc: fix the "base 2" patch omission of base not being set

15 years agolibbb: add bb_unsetenv (taken from hush).
Denis Vlasenko [Tue, 30 Dec 2008 05:05:31 +0000 (05:05 -0000)]
libbb: add bb_unsetenv (taken from hush).
udhcpc: stop filtering environment passed to the script.
crond: fix uncovered potential bug (failing unsetenv)
mdev: fix uncovered potential bug (failing unsetenv)
tcp, udpsvd: fix uncovered potential bug (failing unsetenv)

function                                             old     new   delta
safe_setenv                                            -      58     +58
bb_unsetenv                                            -      55     +55
builtin_unset                                        139     138      -1
tcpudpsvd_main                                      1843    1830     -13
free_strings_and_unsetenv                             87      53     -34
udhcp_run_script                                    1186    1133     -53
safe_setenv4                                          62       -     -62
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/4 up/down: 113/-163)          Total: -50 bytes

15 years agosysctl: fix gcc warning (false positive)
Denis Vlasenko [Mon, 29 Dec 2008 01:03:17 +0000 (01:03 -0000)]
sysctl: fix gcc warning (false positive)

15 years agounexpand: fix incorrect expansion, add test for it
Denis Vlasenko [Fri, 26 Dec 2008 14:56:03 +0000 (14:56 -0000)]
unexpand: fix incorrect expansion, add test for it

function                                             old     new   delta
expand_main                                          676     656     -20

15 years agos/an user/a user/
Denis Vlasenko [Thu, 25 Dec 2008 01:01:23 +0000 (01:01 -0000)]
s/an user/a user/

15 years ago*: tweak error messages
Denis Vlasenko [Wed, 24 Dec 2008 03:11:43 +0000 (03:11 -0000)]
*: tweak error messages
sysctl: shrink; support recursing if name is a directory:
 "sysctl net.ipv4.conf". Patch by xmaks AT email.cz

   text    data     bss     dec     hex filename
 793659     504    7492  801655   c3b77 busybox_old
 793576     504    7492  801572   c3b24 busybox_unstripped

15 years agolibbb: introduce and use xmalloc_ttyname (-32 in bss).
Denis Vlasenko [Tue, 23 Dec 2008 23:36:47 +0000 (23:36 -0000)]
libbb: introduce and use xmalloc_ttyname (-32 in bss).
ash: small code shrink

   text    data     bss     dec     hex filename
 793669     504    7524  801697   c3ba1 busybox_old
 793659     504    7492  801655   c3b77 busybox_unstripped

15 years ago- we already have an impl for man
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 17:09:12 +0000 (17:09 -0000)]
- we already have an impl for man

15 years agoAdd fancy svn browser thingy (via Lance Albertson of OSL)
Bernhard Reutner-Fischer [Thu, 18 Dec 2008 00:44:58 +0000 (00:44 -0000)]
Add fancy svn browser thingy (via Lance Albertson of OSL)

15 years agoUpdate links to new site locations (via Lance Albertson at OSL)
Bernhard Reutner-Fischer [Thu, 18 Dec 2008 00:43:31 +0000 (00:43 -0000)]
Update links to new site locations (via Lance Albertson at OSL)

15 years agoash: fix CONFIG_ASH_OPTIMIZE_FOR_SIZE off + high-bit chars case
Denis Vlasenko [Mon, 15 Dec 2008 11:26:36 +0000 (11:26 -0000)]
ash: fix CONFIG_ASH_OPTIMIZE_FOR_SIZE off + high-bit chars case
(do we even need CONFIG_ASH_OPTIMIZE_FOR_SIZE conditional?)

15 years agoexpand: fix incorrect expansion exactly on tab boundary; shrink the code
Denis Vlasenko [Sun, 14 Dec 2008 15:45:25 +0000 (15:45 -0000)]
expand: fix incorrect expansion exactly on tab boundary; shrink the code

function                                             old     new   delta
expand_main                                          698     676     -22
xputchar                                              53       -     -53

15 years agowatchdog: build fixes, no code changes
Denis Vlasenko [Sun, 14 Dec 2008 14:49:06 +0000 (14:49 -0000)]
watchdog: build fixes, no code changes

15 years agoheader_verbose_list: show off_t size, not cast to (unsigned)
Denis Vlasenko [Fri, 12 Dec 2008 02:14:35 +0000 (02:14 -0000)]
header_verbose_list: show off_t size, not cast to (unsigned)
get_header_tar: support GNU tar's "base256" encoding

function                                             old     new   delta
get_header_tar                                      1536    1600     +64
header_verbose_list                                  242     257     +15

15 years agolibiproute: fix buggy open check: s/if (fd)/if (fd >= 0)/
Denis Vlasenko [Wed, 10 Dec 2008 14:14:09 +0000 (14:14 -0000)]
libiproute: fix buggy open check: s/if (fd)/if (fd >= 0)/
less: small optimization -15 bytes

15 years agoash: printf builtin with no arguments should not exit
Denis Vlasenko [Wed, 10 Dec 2008 11:51:45 +0000 (11:51 -0000)]
ash: printf builtin with no arguments should not exit

15 years agomount: make it more readable
Denis Vlasenko [Wed, 10 Dec 2008 11:39:18 +0000 (11:39 -0000)]
mount: make it more readable

15 years agoplacate Rob's qualms about mount.c
Denis Vlasenko [Wed, 10 Dec 2008 11:28:30 +0000 (11:28 -0000)]
placate Rob's qualms about mount.c

15 years agoadd a note that SO_BINDTODEVICE needs padded iface name on 2.6.26
Denis Vlasenko [Wed, 10 Dec 2008 11:24:33 +0000 (11:24 -0000)]
add a note that SO_BINDTODEVICE needs padded iface name on 2.6.26