oweals/busybox.git
16 years agomkswap, readahead: stop using fdlength, it is reported to be unreliable
Denis Vlasenko [Sun, 27 Jan 2008 23:41:34 +0000 (23:41 -0000)]
mkswap, readahead: stop using fdlength, it is reported to be unreliable

16 years agostty: fix mishandling of 'control' keywords (Ralf Friedl <Ralf.Friedl@online.de>)
Denis Vlasenko [Sun, 27 Jan 2008 23:24:31 +0000 (23:24 -0000)]
stty: fix mishandling of 'control' keywords (Ralf Friedl <Ralf.Friedl@online.de>)

16 years agomicrocom: update from the author
Denis Vlasenko [Sun, 27 Jan 2008 22:40:39 +0000 (22:40 -0000)]
microcom: update from the author

16 years agotentatively fix getopt state corruption for NOFORK applets
Denis Vlasenko [Sun, 27 Jan 2008 22:39:55 +0000 (22:39 -0000)]
tentatively fix getopt state corruption for NOFORK applets

16 years ago- fix conflicting decls of syslog related facilitynames and prioritynames tables
Bernhard Reutner-Fischer [Sun, 27 Jan 2008 12:50:12 +0000 (12:50 -0000)]
- fix conflicting decls of syslog related facilitynames and prioritynames tables

16 years agodo not respect CONFIG_MODULES as it breaks building if it is defined in the build env
Mike Frysinger [Sun, 27 Jan 2008 09:41:24 +0000 (09:41 -0000)]
do not respect CONFIG_MODULES as it breaks building if it is defined in the build env

16 years agoudhcpc: filter unwanted packets in kernel
Denis Vlasenko [Fri, 25 Jan 2008 22:46:34 +0000 (22:46 -0000)]
udhcpc: filter unwanted packets in kernel
(Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>)

16 years agofdisk: comment out unused function
Denis Vlasenko [Fri, 25 Jan 2008 20:18:46 +0000 (20:18 -0000)]
fdisk: comment out unused function

16 years agoudhcpc: fix wrong options in decline and release packets
Denis Vlasenko [Fri, 25 Jan 2008 19:27:08 +0000 (19:27 -0000)]
udhcpc: fix wrong options in decline and release packets
(Jonas Danielsson <jonas.danielsson at axis.com>)

16 years agofdisk: fix a case where break was reached only for DOS labels
Denis Vlasenko [Thu, 24 Jan 2008 22:49:15 +0000 (22:49 -0000)]
fdisk: fix a case where break was reached only for DOS labels

16 years agohalt: write wtmp entry if wtmp support is enabled
Denis Vlasenko [Thu, 24 Jan 2008 02:28:00 +0000 (02:28 -0000)]
halt: write wtmp entry if wtmp support is enabled

16 years agohalt: update help text
Denis Vlasenko [Thu, 24 Jan 2008 02:27:30 +0000 (02:27 -0000)]
halt: update help text

16 years agocomment fix
Denis Vlasenko [Thu, 24 Jan 2008 01:33:42 +0000 (01:33 -0000)]
comment fix

16 years agocrond: small code shrink and readability enhancements
Denis Vlasenko [Thu, 24 Jan 2008 01:33:12 +0000 (01:33 -0000)]
crond: small code shrink and readability enhancements

16 years agogrep: fix wrong filename in error message
Denis Vlasenko [Thu, 24 Jan 2008 01:30:36 +0000 (01:30 -0000)]
grep: fix wrong filename in error message

16 years agoas reported by George Boudreau, make sure we properly skip blank lines
Mike Frysinger [Wed, 23 Jan 2008 18:48:26 +0000 (18:48 -0000)]
as reported by George Boudreau, make sure we properly skip blank lines

16 years ago- Fix hdparm's ioctl parameter passing (John Brandwood)
Bernhard Reutner-Fischer [Sat, 19 Jan 2008 11:27:11 +0000 (11:27 -0000)]
- Fix hdparm's ioctl parameter passing (John Brandwood)

16 years agoeliminated CONFIG_FEATURE_EDITING_FANCY_KEYS. the size savings
Paul Fox [Fri, 18 Jan 2008 20:41:24 +0000 (20:41 -0000)]
eliminated CONFIG_FEATURE_EDITING_FANCY_KEYS.  the size savings
was small, compared to the total size of the command-line editing
features, and it removed key bindings that most wouldn't consider
"fancy", like ^U, and 'l' and 'h' in vi mode, ^F and ^B in emacs
mode.

16 years ago- correct helptext of stat (Cristian Ionescu-Idbohrn)
Bernhard Reutner-Fischer [Thu, 17 Jan 2008 11:05:09 +0000 (11:05 -0000)]
- correct helptext of stat (Cristian Ionescu-Idbohrn)

16 years ago- implement brctl setpathcost, setportprio, setbridgeprio, stp
Bernhard Reutner-Fischer [Mon, 14 Jan 2008 16:10:11 +0000 (16:10 -0000)]
- implement brctl setpathcost, setportprio, setbridgeprio, stp
   text    data     bss     dec     hex filename
    907      20       0     927     39f networking/brctl.o

16 years ago- mention strtod code-duplication as TODO for cleanup
Bernhard Reutner-Fischer [Mon, 14 Jan 2008 14:32:56 +0000 (14:32 -0000)]
- mention strtod code-duplication as TODO for cleanup

16 years ago- shrink a bit and implement time related fancy features. Improve help texts.
Bernhard Reutner-Fischer [Sun, 13 Jan 2008 18:43:50 +0000 (18:43 -0000)]
- shrink a bit and implement time related fancy features. Improve help texts.
   text    data     bss     dec     hex filename
    253      20       0     273     111 networking/brctl.o.bare
    613      20       0     633     279 networking/brctl.o.fancy-time

16 years ago- fix commentary typo
Bernhard Reutner-Fischer [Sun, 13 Jan 2008 17:52:53 +0000 (17:52 -0000)]
- fix commentary typo

16 years ago- save four bytes by manually hoisting the br assignment
Bernhard Reutner-Fischer [Sun, 13 Jan 2008 15:43:28 +0000 (15:43 -0000)]
- save four bytes by manually hoisting the br assignment

16 years ago- update defconfig
Bernhard Reutner-Fischer [Sun, 13 Jan 2008 15:33:13 +0000 (15:33 -0000)]
- update defconfig

16 years ago- new applet brctl
Bernhard Reutner-Fischer [Sun, 13 Jan 2008 15:23:27 +0000 (15:23 -0000)]
- new applet brctl
   text    data     bss     dec     hex filename
    289      20       0     309     135 networking/brctl.o
    335      23       0     358     166 networking/brctl-verbose-ops.o

16 years ago- add ipsvd
Bernhard Reutner-Fischer [Fri, 11 Jan 2008 20:52:45 +0000 (20:52 -0000)]
- add ipsvd

16 years agoenable use of ^V prefix to allow forced insertion of any character. in
Paul Fox [Fri, 11 Jan 2008 16:50:08 +0000 (16:50 -0000)]
enable use of ^V prefix to allow forced insertion of any character.  in
particular, without this it's impossible to enter a TAB on the commandline
(whether tab completion is enabled or not).

16 years agoallow 8-bit characters
Paul Fox [Fri, 11 Jan 2008 16:12:57 +0000 (16:12 -0000)]
allow 8-bit characters

16 years agotac: handle NULs properly. +145 bytes
Denis Vlasenko [Wed, 9 Jan 2008 23:00:00 +0000 (23:00 -0000)]
tac: handle NULs properly. +145 bytes

16 years agohush: report [v]fork failures
Denis Vlasenko [Tue, 8 Jan 2008 20:32:12 +0000 (20:32 -0000)]
hush: report [v]fork failures
hush: more correct handling of piping
config: add CONFIG_NOMMU

16 years agowhitespace fixes
Denis Vlasenko [Mon, 7 Jan 2008 19:06:47 +0000 (19:06 -0000)]
whitespace fixes

16 years agops: fix yet another buglet from recent ulltoa conversion :(
Denis Vlasenko [Mon, 7 Jan 2008 16:51:25 +0000 (16:51 -0000)]
ps: fix yet another buglet from recent ulltoa conversion :(

16 years agops: fix COMMAND column adjustment
Denis Vlasenko [Mon, 7 Jan 2008 16:41:41 +0000 (16:41 -0000)]
ps: fix COMMAND column adjustment

16 years agotac: *really* add tac.c now
Denis Vlasenko [Mon, 7 Jan 2008 16:14:14 +0000 (16:14 -0000)]
tac: *really* add tac.c now

16 years agops: fix build breakage from vda's recent commit
Denis Vlasenko [Mon, 7 Jan 2008 16:13:14 +0000 (16:13 -0000)]
ps: fix build breakage from vda's recent commit
*: whitespace fixes

16 years agosyslogd: fix shmat error check
Denis Vlasenko [Mon, 7 Jan 2008 15:58:02 +0000 (15:58 -0000)]
syslogd: fix shmat error check

16 years agotac: new applet. ~240 bytes.
Denis Vlasenko [Sun, 6 Jan 2008 06:27:17 +0000 (06:27 -0000)]
tac: new applet. ~240 bytes.

Copyright (C) 2003  Yang Xiaopeng  <yxp at hanwang.com.cn>
Copyright (C) 2007  Natanael Copa  <natanael.copa@gmail.com>
Copyright (C) 2007  Tito Ragusa    <farmatito@tiscali.it>

16 years agops: fix overflow in USER and VSZ columns
Denis Vlasenko [Sun, 6 Jan 2008 03:26:53 +0000 (03:26 -0000)]
ps: fix overflow in USER and VSZ columns

function                                             old     new   delta
smart_ulltoa4                                          -     280    +280
smart_ulltoa5                                        283     408    +125
ulltoa6_and_space                                      -      25     +25
scale                                                 28      38     +10
bbunpack                                             358     366      +8
ps_main                                              259     261      +2
glob3                                                 35      37      +2
fill_bounds                                          172     174      +2
process_stdin                                        456     446     -10
smart_ulltoa6                                        406       -    -406
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 6/1 up/down: 454/-416)           Total: 38 bytes

16 years agops: add conditional support for -o [e]time
Denis Vlasenko [Sat, 5 Jan 2008 03:26:41 +0000 (03:26 -0000)]
ps: add conditional support for -o [e]time

16 years agoMakefile.help: removing allbareconfig target from help
Denis Vlasenko [Fri, 4 Jan 2008 20:10:51 +0000 (20:10 -0000)]
Makefile.help: removing allbareconfig target from help
applet_tables: fix allnoconfig

16 years agoip route: "ip route" was misbehaving (extra argv+1 ate 1st env var)
Denis Vlasenko [Fri, 4 Jan 2008 15:28:28 +0000 (15:28 -0000)]
ip route: "ip route" was misbehaving (extra argv+1 ate 1st env var)

16 years agoinit: wait for orphaned children too while waiting
Denis Vlasenko [Fri, 4 Jan 2008 15:10:47 +0000 (15:10 -0000)]
init: wait for orphaned children too while waiting
for sysinit-like processes (Harald Küthe <harald-tuxbox@arcor.de>)

16 years agosyslogd: avoid excessive tine() system calls
Denis Vlasenko [Thu, 3 Jan 2008 12:13:42 +0000 (12:13 -0000)]
syslogd: avoid excessive tine() system calls

function                                             old     new   delta
timestamp_and_log_internal                             -      24     +24
log_locally                                          741     744      +3
timestamp_and_log                                    313     314      +1
syslogd_main                                         904     897      -7
quit_signal                                          101      94      -7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/2 up/down: 28/-14)             Total: 14 bytes

16 years agosyslogd: don't die if remote host's IP cannot be resolved.
Denis Vlasenko [Thu, 3 Jan 2008 12:12:27 +0000 (12:12 -0000)]
syslogd: don't die if remote host's IP cannot be resolved.
retry resolutions every two minutes instead.

function                                             old     new   delta
syslogd_main                                         865     904     +39
timestamp_and_log                                    324     313     -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 39/-11)             Total: 28 bytes

16 years agolibbb: introduce and use safe_waitpid (loops in EINTR)
Denis Vlasenko [Wed, 2 Jan 2008 19:55:04 +0000 (19:55 -0000)]
libbb: introduce and use safe_waitpid (loops in EINTR)
*: use more approproate (shorter) versions of wait()

function                                             old     new   delta
safe_waitpid                                           -      48     +48
wait_any_nohang                                        -      17     +17
send_tree                                            365     369      +4
processorstop                                        432     435      +3
text_yank                                            110     108      -2
make_human_readable_str                              202     200      -2
crond_main                                          1368    1366      -2
handle_sigchld                                        49      43      -6
reapchild                                            166     159      -7
custom                                               260     250     -10
checkscript                                          191     177     -14
wait_nohang                                           17       -     -17
wait_pid                                              43       -     -43
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 2/7 up/down: 72/-103)           Total: -31 bytes

16 years agoadding libbb/printable.c
Denis Vlasenko [Sun, 30 Dec 2007 20:13:39 +0000 (20:13 -0000)]
adding libbb/printable.c

16 years agolibbb: introduce fputc_printable (from ed)
Denis Vlasenko [Sun, 30 Dec 2007 01:59:53 +0000 (01:59 -0000)]
libbb: introduce fputc_printable (from ed)
netstat: print control chars as ^C etc
vi: style fixlet

function                                             old     new   delta
fputc_printable                                        -     100    +100
unix_do_one                                          451     487     +36
printLines                                           258     190     -68
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 136/-68)            Total: 68 bytes

16 years agohttpd: support for "I:index.xml" syntax (Peter Korsgaard <jacmet@uclibc.org>)
Denis Vlasenko [Sat, 29 Dec 2007 02:16:23 +0000 (02:16 -0000)]
httpd: support for "I:index.xml" syntax (Peter Korsgaard <jacmet@uclibc.org>)

function                                             old     new   delta
parse_conf                                          1481    1507     +26
handle_incoming_and_exit                            2650    2663     +13
httpd_main                                           749     759     +10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 49/0)               Total: 49 bytes

16 years agotrylink: instead of build error, disable --gc-sections if GLIBC && STATIC
Denis Vlasenko [Fri, 28 Dec 2007 17:04:42 +0000 (17:04 -0000)]
trylink: instead of build error, disable --gc-sections if GLIBC && STATIC
nameif: glibc build fixlet

16 years agonetstat: in error message, report filename and line number
Denis Vlasenko [Wed, 26 Dec 2007 21:49:33 +0000 (21:49 -0000)]
netstat: in error message, report filename and line number
where we see problematic data

   text    data     bss     dec     hex filename
 778456     832    7344  786632   c00c8 busybox_old
 778394     832    7344  786570   c008a busybox_unstripped

16 years agosave a bit of code with *strchrnul = '\0' trick
Denis Vlasenko [Wed, 26 Dec 2007 20:56:55 +0000 (20:56 -0000)]
save a bit of code with *strchrnul = '\0' trick

function                                             old     new   delta
nextline                                              59      55      -4
include_conf                                         902     898      -4
read_config                                          414     406      -8
fsck_main                                           1880    1869     -11

16 years agoFix xmalloc_fgets_str so that it really does NOT strip terminator.
Denis Vlasenko [Wed, 26 Dec 2007 20:44:45 +0000 (20:44 -0000)]
Fix xmalloc_fgets_str so that it really does NOT strip terminator.
Add xmalloc_fgetline_str which does strip terminator,
and use it in dpkg instead of xmalloc_fgets_str.
netstat: use xmalloc_fgets_str - allows to eat strings with NULs
(this fixes bug with some weird /proc/net/unix input)

function                                             old     new   delta
xmalloc_fgets_internal                                 -     191    +191
xmalloc_fgetline_str                                   -      18     +18
do_info                                              116     120      +4
unix_do_one                                          451     447      -4
tcp_do_one                                           423     419      -4
send_tree                                            369     365      -4
xmalloc_fgets_str                                    178      15    -163
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/4 up/down: 213/-175)           Total: 38 bytes
   text    data     bss     dec     hex filename
 778445     832    7344  786621   c00bd busybox_old
 778483     832    7344  786659   c00e3 busybox_unstripped

16 years agoinit: don't spawn tons of waiting children, one is enough
Denis Vlasenko [Wed, 26 Dec 2007 18:32:58 +0000 (18:32 -0000)]
init: don't spawn tons of waiting children, one is enough
init: shrink signal disabling code
init: rename some functions
   text    data     bss     dec     hex filename
 778657     832    7344  786833   c0191 busybox_old
 778445     832    7344  786621   c00bd busybox_unstripped

16 years agoinit: sometimes, #ifdefs are cleaner.
Denis Vlasenko [Tue, 25 Dec 2007 16:08:53 +0000 (16:08 -0000)]
init: sometimes, #ifdefs are cleaner.

16 years agosync examples to what actual actual code expects
Denis Vlasenko [Tue, 25 Dec 2007 15:32:56 +0000 (15:32 -0000)]
sync examples to what actual actual code expects

16 years agoadd expected output
Mike Frysinger [Tue, 25 Dec 2007 04:35:05 +0000 (04:35 -0000)]
add expected output

16 years agoconvert #if to if -- let gcc optimize away dead code for us
Mike Frysinger [Tue, 25 Dec 2007 04:30:14 +0000 (04:30 -0000)]
convert #if to if -- let gcc optimize away dead code for us

16 years agoinit: add FEATURE_KILL_REMOVED (Eugene Bordenkircher <eugebo@gmail.com>)
Denis Vlasenko [Tue, 25 Dec 2007 01:08:58 +0000 (01:08 -0000)]
init: add FEATURE_KILL_REMOVED (Eugene Bordenkircher <eugebo@gmail.com>)
init: slight size optimization

16 years agofix typo in web page
Denis Vlasenko [Mon, 24 Dec 2007 17:33:56 +0000 (17:33 -0000)]
fix typo in web page

16 years agoMakefile: change version to 1.10.0.svn
Denis Vlasenko [Mon, 24 Dec 2007 17:32:22 +0000 (17:32 -0000)]
Makefile: change version to 1.10.0.svn
udhcpc: make UDP packet sending the same as raw sending in regards
  to error messages. Minor code size shrink. Total size grows due
  to added messages:

   text    data     bss     dec     hex filename
 770312     683    7244  778239   bdfff busybox_old
 770327     683    7244  778254   be00e busybox_unstripped

16 years agoAnnounce 1.9.0 1_9_0
Denis Vlasenko [Mon, 24 Dec 2007 14:43:25 +0000 (14:43 -0000)]
Announce 1.9.0

16 years agohush: fixlet for NOMMU
Denis Vlasenko [Mon, 24 Dec 2007 14:26:57 +0000 (14:26 -0000)]
hush: fixlet for NOMMU
update TODO_config_nommu

16 years agonameif: extended matching (Nico Erfurth <masta@perlgolf.de>)
Denis Vlasenko [Mon, 24 Dec 2007 14:09:19 +0000 (14:09 -0000)]
nameif: extended matching (Nico Erfurth <masta@perlgolf.de>)
*: whitespace fixes

function                                             old     new   delta
prepend_new_eth_table                                  -     304    +304
nameif_main                                          620     684     +64
cc_macaddr                                            51       -     -51
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/0 up/down: 368/-51)           Total: 317 bytes

16 years agodefconfig: update
Denis Vlasenko [Mon, 24 Dec 2007 12:16:24 +0000 (12:16 -0000)]
defconfig: update
appletli.c: add vda's (C)
top: fixlet for incorrect display of "0"
Makefile: reduce stack size from 20k to 16k

16 years agood: reduce data/bss usage (code size went down too)
Denis Vlasenko [Mon, 24 Dec 2007 12:14:24 +0000 (12:14 -0000)]
od: reduce data/bss usage (code size went down too)

16 years agoumount: fix fallout from stack reduction change
Denis Vlasenko [Mon, 24 Dec 2007 12:11:57 +0000 (12:11 -0000)]
umount: fix fallout from stack reduction change

16 years agovi: speed up some string ops
Denis Vlasenko [Sun, 23 Dec 2007 02:36:51 +0000 (02:36 -0000)]
vi: speed up some string ops

16 years agocttyhack: trivial build fixlet
Denis Vlasenko [Sat, 22 Dec 2007 19:57:28 +0000 (19:57 -0000)]
cttyhack: trivial build fixlet

16 years agovi: reduce amount of memset'ing on each screen refresh
Denis Vlasenko [Sat, 22 Dec 2007 17:31:29 +0000 (17:31 -0000)]
vi: reduce amount of memset'ing on each screen refresh

16 years agovi: introduce FEATURE_VI_8BIT (as vi currently is not Unicode capable,
Denis Vlasenko [Sat, 22 Dec 2007 17:00:11 +0000 (17:00 -0000)]
vi: introduce FEATURE_VI_8BIT (as vi currently is not Unicode capable,
people may want to disable display of high-bit chars)
ip: build fixlet

16 years agoperror_nomsg: don't print extra colon
Denis Vlasenko [Sat, 22 Dec 2007 15:44:23 +0000 (15:44 -0000)]
perror_nomsg: don't print extra colon
losetup: print name of loop device in error messages

16 years agovi: change MAX_LINELEN meaning: now it is the biggest supported
Denis Vlasenko [Sat, 22 Dec 2007 15:40:13 +0000 (15:40 -0000)]
vi: change MAX_LINELEN meaning: now it is the biggest supported
screen wigth. Introduce MAX_TABSTOP and MAX_INPUT_LEN. Fix redraw
of very long lines and cursor movement past NULs.

16 years agofix buglets found by randomconfig
Denis Vlasenko [Fri, 21 Dec 2007 22:18:16 +0000 (22:18 -0000)]
fix buglets found by randomconfig

16 years agovi: fix a problem with displaying overlong lines
Denis Vlasenko [Fri, 21 Dec 2007 21:34:37 +0000 (21:34 -0000)]
vi: fix a problem with displaying overlong lines

16 years agoudhcp: decided to not send "short" dhcp packets,
Denis Vlasenko [Fri, 21 Dec 2007 16:32:30 +0000 (16:32 -0000)]
udhcp: decided to not send "short" dhcp packets,
but lets add comments how to do it if needed.

16 years agoudhcp: fix oversized packet sending (introduced by "slack for bad dhcp servers" options);
Denis Vlasenko [Thu, 20 Dec 2007 21:11:38 +0000 (21:11 -0000)]
udhcp: fix oversized packet sending (introduced by "slack for bad dhcp servers" options);
slight optimizations and function renaming

udhcp_send_raw_packet                                  -     391    +391
udhcp_send_kernel_packet                               -     197    +197
udhcp_recv_packet                                      -     134    +134
get_raw_packet                                       353     326     -27
udhcp_get_packet                                     134       -    -134
udhcp_kernel_packet                                  197       -    -197
udhcp_raw_packet                                     391       -    -391
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/1 up/down: 722/-749)          Total: -27 bytes

16 years agofdisk: reduce global data/bss usage. 8k data+bss build is achievable soon ;)
Denis Vlasenko [Sun, 16 Dec 2007 17:22:33 +0000 (17:22 -0000)]
fdisk: reduce global data/bss usage. 8k data+bss build is achievable soon ;)

(add/remove: 0/13 grow/shrink: 6/19 up/down: 74/-492)        Total: -418 bytes
   text    data     bss     dec     hex filename
 778330     860    7408  786598   c00a6 busybox_old
 777970     840    7376  786186   bff0a busybox_unstripped

16 years agomsh: reduce global data/bss usage
Denis Vlasenko [Sun, 16 Dec 2007 17:21:29 +0000 (17:21 -0000)]
msh: reduce global data/bss usage

(add/remove: 1/5 grow/shrink: 28/6 up/down: 464/-394)          Total: 70 bytes
   text    data     bss     dec     hex filename
 778077     908    7568  786553   c0079 busybox_old
 778330     860    7408  786598   c00a6 busybox_unstripped

16 years agoash: reduce global data/bss usage
Denis Vlasenko [Sun, 16 Dec 2007 17:20:38 +0000 (17:20 -0000)]
ash: reduce global data/bss usage

(add/remove: 4/29 grow/shrink: 76/21 up/down: 1007/-1713)    Total: -706 bytes
   text    data     bss     dec     hex filename
 777206    1084    8976  787266   c0342 busybox_old
 778077     908    7568  786553   c0079 busybox_unstripped

16 years agotraceroute: stop using global data/bss
Denis Vlasenko [Sun, 16 Dec 2007 17:19:40 +0000 (17:19 -0000)]
traceroute: stop using global data/bss

(add/remove: 0/15 grow/shrink: 0/1 up/down: 0/-95)            Total: -95 bytes
   text    data     bss     dec     hex filename
 777245    1094    9008  787347   c0393 busybox_old
 777206    1084    8976  787266   c0342 busybox_unstripped

16 years agoadd a link to vda's pet projects
Denis Vlasenko [Thu, 13 Dec 2007 00:15:50 +0000 (00:15 -0000)]
add a link to vda's pet projects

16 years agonum conversions: allow for leading '+' (renice needs that)
Denis Vlasenko [Tue, 11 Dec 2007 13:15:11 +0000 (13:15 -0000)]
num conversions: allow for leading '+' (renice needs that)

16 years agocttyhack: add missing ';'
Denis Vlasenko [Mon, 10 Dec 2007 08:40:29 +0000 (08:40 -0000)]
cttyhack: add missing ';'
init: remove pointless access() check

16 years agoinit: remove superfluous forks and messing up with argv[0]
Denis Vlasenko [Mon, 10 Dec 2007 07:06:04 +0000 (07:06 -0000)]
init: remove superfluous forks and messing up with argv[0]
cttyhack: add stealing of ctty

16 years agoudhcpc: support for -O <option>.
Denis Vlasenko [Mon, 10 Dec 2007 07:03:38 +0000 (07:03 -0000)]
udhcpc: support for -O <option>.
Two important notes:
* nissrv and nisdomain are not requested by default anymore!
* inconsistency between "XXXsvr" and "XXsrv" in option names resolved,
  all are "XXXsrv" now.

function                                             old     new   delta
udhcpc_main                                         2494    2600    +106
packed_usage                                       23023   23067     +44
add_requests                                          91     119     +28
static.udhcpc_longopts                               209     226     +17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 195/0)             Total: 195 bytes

16 years agofind: add -iname support (Alexander Griesser <alexander.griesser@lkh-vil.or.at>)
Denis Vlasenko [Sun, 9 Dec 2007 10:07:39 +0000 (10:07 -0000)]
find: add -iname support (Alexander Griesser <alexander.griesser@lkh-vil.or.at>)

16 years agolineedit: don't violate API if we do simple fgets
Denis Vlasenko [Sun, 9 Dec 2007 10:03:28 +0000 (10:03 -0000)]
lineedit: don't violate API if we do simple fgets
ash: cosmetic style fixes, no code changes

16 years agovi: don't use common_bufsiz as read buffer, it can be too small
Denis Vlasenko [Sun, 9 Dec 2007 04:13:43 +0000 (04:13 -0000)]
vi: don't use common_bufsiz as read buffer, it can be too small
(found by Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>)

16 years agosignal names hack was wrong, it broke "get signal name" function.
Denis Vlasenko [Tue, 4 Dec 2007 21:44:52 +0000 (21:44 -0000)]
signal names hack was wrong, it broke "get signal name" function.
Reverting :(

16 years agogetty: a small code shrink
Denis Vlasenko [Tue, 4 Dec 2007 18:46:01 +0000 (18:46 -0000)]
getty: a small code shrink

touch                                                  -      40     +40
fakehost                                               4       -      -4
getty_main                                          2546    2493     -53

16 years agoMake signal table a bit smaller
Denis Vlasenko [Tue, 4 Dec 2007 10:20:48 +0000 (10:20 -0000)]
Make signal table a bit smaller

get_signum                                           136     151     +15
signals                                              224     192     -32

16 years agoguard against SIGxxx >= 32 (no code changes on i386)
Denis Vlasenko [Tue, 4 Dec 2007 10:05:28 +0000 (10:05 -0000)]
guard against SIGxxx >= 32 (no code changes on i386)

16 years agogetty: don't accept ancient '#' and '@' as backspace/kill line,
Denis Vlasenko [Tue, 4 Dec 2007 09:48:40 +0000 (09:48 -0000)]
getty: don't accept ancient '#' and '@' as backspace/kill line,
it only confuses people.
(Alexander Griesser <alexander.griesser@lkh-vil.or.at> (LKH Villach))
various other cleanups.

function                                             old     new   delta
getty_main                                          2526    2546     +20
static.baud_index                                      4       -      -4
parse_speeds                                          91       -     -91
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/0 up/down: 20/-95)            Total: -75 bytes
   text    data     bss     dec     hex filename
 773152    1086    9008  783246   bf38e busybox_old
 773081    1086    9008  783175   bf347 busybox_unstripped

16 years agolineedit: reduce stack usage
Denis Vlasenko [Mon, 3 Dec 2007 10:45:14 +0000 (10:45 -0000)]
lineedit: reduce stack usage
netstat: reduce stack usage; fix handling of NULs in unix socket filenames

static.has_inode                                       1       -      -1
do_info                                              119     116      -3
deinit_S                                              60      51      -9
unix_do_one                                          578     451    -127
parse_and_put_prompt                                 966     825    -141
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-281)           Total: -281 bytes

16 years agofix whitespace damage
Denis Vlasenko [Sun, 2 Dec 2007 08:56:53 +0000 (08:56 -0000)]
fix whitespace damage

16 years agomkfs.minix: add testsuite; disable code which makes images variable
Denis Vlasenko [Sun, 2 Dec 2007 08:55:34 +0000 (08:55 -0000)]
mkfs.minix: add testsuite; disable code which makes images variable

16 years agoattack the biggest stack users:
Denis Vlasenko [Sun, 2 Dec 2007 08:35:37 +0000 (08:35 -0000)]
attack the biggest stack users:
-mkfs_minix_main [busybox_unstripped]:                  4288
-mkfs_minix_main [busybox_unstripped]:                  4276
-grave [busybox_unstripped]:                            4260
(bzip2 users too - not listed)

price we pay in code size increase:
mainSort                                            2458    2515     +57
grave                                               1005    1058     +53
sendMTFValues                                       2177    2195     +18
BZ2_blockSort                                        122     125      +3
mkfs_minix_main                                     3070    3022     -48
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 131/-48)            Total: 83 bytes

16 years agoexplain why we use mmap instead of malloc
Denis Vlasenko [Sun, 2 Dec 2007 07:18:29 +0000 (07:18 -0000)]
explain why we use mmap instead of malloc

16 years agolibnetlink: comment out unused code; don't use 8k stack buffers
Denis Vlasenko [Sun, 2 Dec 2007 06:30:57 +0000 (06:30 -0000)]
libnetlink: comment out unused code; don't use 8k stack buffers

function                                             old     new   delta
ipaddr_modify                                       1305    1297      -8
do_iprule                                            963     955      -8
do_iproute                                          2193    2169     -24
xrtnl_dump_filter                                    418     391     -27
rtnl_talk                                            671     536    -135
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-202)           Total: -202 bytes