oweals/busybox.git
18 years agoadd -Wundef, fix uncovered bugs
Denis Vlasenko [Fri, 17 Nov 2006 20:29:00 +0000 (20:29 -0000)]
add -Wundef, fix uncovered bugs

18 years agoforgot about avn add... :(
Denis Vlasenko [Fri, 17 Nov 2006 18:58:49 +0000 (18:58 -0000)]
forgot about avn add... :(

18 years agorunit: add runsv, runsvdir and sv. Oh yes.
Denis Vlasenko [Fri, 17 Nov 2006 18:58:16 +0000 (18:58 -0000)]
runit: add runsv, runsvdir and sv. Oh yes.
It even seems to work. +11K. :(

18 years agohttpd: make Bernhard happier
Denis Vlasenko [Fri, 17 Nov 2006 18:26:57 +0000 (18:26 -0000)]
httpd: make Bernhard happier

18 years ago- Set INSTALL_OPTS according to the config.
Bernhard Reutner-Fischer [Fri, 17 Nov 2006 13:54:29 +0000 (13:54 -0000)]
- Set INSTALL_OPTS according to the config.

18 years ago- fix generation of the busybox.links install script inputfile
Bernhard Reutner-Fischer [Fri, 17 Nov 2006 13:17:04 +0000 (13:17 -0000)]
- fix generation of the busybox.links install script inputfile

18 years ago- typo fix
Bernhard Reutner-Fischer [Fri, 17 Nov 2006 12:47:50 +0000 (12:47 -0000)]
- typo fix

18 years ago- end may be used uninitialized.
Bernhard Reutner-Fischer [Fri, 17 Nov 2006 11:28:00 +0000 (11:28 -0000)]
- end may be used uninitialized.
- TODO: should eventually use skip_whitespace there

18 years agohttpd: reduce ifdef forest. comment out redundant PATH setting
Denis Vlasenko [Thu, 16 Nov 2006 18:04:43 +0000 (18:04 -0000)]
httpd: reduce ifdef forest. comment out redundant PATH setting

18 years agohttpd:
Denis Vlasenko [Thu, 16 Nov 2006 16:20:12 +0000 (16:20 -0000)]
httpd:
fix union aliasing bug
symptom: wget of non-existent file gets redirected to /text/html/something
on second and subsequend wget attempts
fix double-free bug
symptom: glibc caught double-free (we didn't NULL config->xxx ptrs after free)

18 years agohttpd: add -i (inetd) and -f (foreground) otions.
Denis Vlasenko [Thu, 16 Nov 2006 16:17:02 +0000 (16:17 -0000)]
httpd: add -i (inetd) and -f (foreground) otions.
-i makes possible to run httpd in both inetd and standalone mode
without recompile (or need to have two different binaries)

18 years agohttpd: stop being silly with setenv
Denis Vlasenko [Thu, 16 Nov 2006 16:12:09 +0000 (16:12 -0000)]
httpd: stop being silly with setenv

18 years agosvlogd: new applet. +9k. Still too big, but it was 12k yesterday.
Denis Vlasenko [Thu, 16 Nov 2006 02:27:24 +0000 (02:27 -0000)]
svlogd: new applet. +9k. Still too big, but it was 12k yesterday.

18 years agoremove duplicate flag decls
Mike Frysinger [Wed, 15 Nov 2006 21:52:10 +0000 (21:52 -0000)]
remove duplicate flag decls

18 years agoumount: umount -a shouldn't stop on first failure
Denis Vlasenko [Sun, 12 Nov 2006 17:23:45 +0000 (17:23 -0000)]
umount: umount -a shouldn't stop on first failure

18 years agohttpd: cosmetic fixes (the bug which was being hunted down
Denis Vlasenko [Fri, 10 Nov 2006 23:28:57 +0000 (23:28 -0000)]
httpd: cosmetic fixes (the bug which was being hunted down
turned out to be nonexistent :)

18 years agowget: fix error message.
Denis Vlasenko [Fri, 10 Nov 2006 23:25:53 +0000 (23:25 -0000)]
wget: fix error message.
Bad:
wget http://127.0.0.1:81/fgdg/Makefile
Connecting to 127.0.0.1[127.0.0.1]:81
: HTTP/1.0 404 Not Foundror 404 Not Found
Good:
wget http://127.0.0.1:81/fgdg/Makefile
Connecting to 127.0.0.1[127.0.0.1]:81
get: server returned error: HTTP/1.0 404 Not Found

nslookup: fix my mistake
applets: make Bernhard Fischer <rep.nop@aon.at> happy :)

18 years agoadd && !defined(__UCLIBC__) to static link warning check
Denis Vlasenko [Thu, 9 Nov 2006 00:00:12 +0000 (00:00 -0000)]
add && !defined(__UCLIBC__) to static link warning check

18 years agosmall ipv6 doc changes; nslookup a tiny bit smaller
Denis Vlasenko [Tue, 7 Nov 2006 19:05:43 +0000 (19:05 -0000)]
small ipv6 doc changes; nslookup a tiny bit smaller

18 years agogetty: remove ancient termio support (was using termois anyway)
Denis Vlasenko [Tue, 7 Nov 2006 01:52:10 +0000 (01:52 -0000)]
getty: remove ancient termio support (was using termois anyway)

18 years agohttpd: sendCgi() forked child needs to close opened
Denis Vlasenko [Sun, 5 Nov 2006 19:47:33 +0000 (19:47 -0000)]
httpd: sendCgi() forked child needs to close opened
server socket and accepted socket

18 years agorename: compare_string_array -> index_in_str_array
Denis Vlasenko [Sun, 5 Nov 2006 18:05:09 +0000 (18:05 -0000)]
rename: compare_string_array -> index_in_str_array
introduce index_in_substr_array and use it in
iproute2

18 years agops: add documentation on POSIX ps
Denis Vlasenko [Sun, 5 Nov 2006 00:47:38 +0000 (00:47 -0000)]
ps: add documentation on POSIX ps

18 years agousage.h: stop using ancient USAGE_xxx (we have USE_xx now)
Denis Vlasenko [Sun, 5 Nov 2006 00:46:35 +0000 (00:46 -0000)]
usage.h: stop using ancient USAGE_xxx (we have USE_xx now)

18 years agops: implement POSIX-like options, most notably -o
Denis Vlasenko [Sun, 5 Nov 2006 00:45:47 +0000 (00:45 -0000)]
ps: implement POSIX-like options, most notably -o
(activated by CONFIG_DESKTOP)

18 years agosmart_ulltoa5: make available in libbb
Denis Vlasenko [Sun, 5 Nov 2006 00:44:39 +0000 (00:44 -0000)]
smart_ulltoa5: make available in libbb

18 years agoreplace /proc scanning code by more versatile one.
Denis Vlasenko [Sun, 5 Nov 2006 00:43:51 +0000 (00:43 -0000)]
replace /proc scanning code by more versatile one.
Use it where appropriate.
Stop scanning /etc/passwd *for every process*!!! (uid->username)
top: reduce memory usage - we won't save unneeded fields
from /proc info anymore. Downside: ~+250 bytes of code

18 years agotop: improve CPU% calculation
Denis Vlasenko [Sun, 5 Nov 2006 00:38:51 +0000 (00:38 -0000)]
top: improve CPU% calculation
style fixes

18 years agoFix kbuild bugs noticed by Bernhard Fischer <rep.nop@aon.at>
Denis Vlasenko [Thu, 2 Nov 2006 22:09:37 +0000 (22:09 -0000)]
Fix kbuild bugs noticed by Bernhard Fischer <rep.nop@aon.at>

18 years agoUnneeded code removed, usused field "unsigned pscpu" removed
Denis Vlasenko [Wed, 1 Nov 2006 20:20:37 +0000 (20:20 -0000)]
Unneeded code removed, usused field "unsigned pscpu" removed

18 years agomostly style fixes
Denis Vlasenko [Wed, 1 Nov 2006 10:25:35 +0000 (10:25 -0000)]
mostly style fixes

18 years agopidof: reduce #ifdef forest
Denis Vlasenko [Wed, 1 Nov 2006 09:17:47 +0000 (09:17 -0000)]
pidof: reduce #ifdef forest

18 years agoPID should be stored in pid_t, not int or long.
Denis Vlasenko [Wed, 1 Nov 2006 09:16:49 +0000 (09:16 -0000)]
PID should be stored in pid_t, not int or long.
find_pid_by_name() was returning 0 or -1 in last array element,
but -1 was never checked. We can use just 0 intead.

18 years agops: reduce #ifdef forest
Denis Vlasenko [Wed, 1 Nov 2006 09:14:52 +0000 (09:14 -0000)]
ps: reduce #ifdef forest

18 years ago#if CONFIG_xxx -> #if ENABLE_xxx
Denis Vlasenko [Wed, 1 Nov 2006 09:13:26 +0000 (09:13 -0000)]
#if CONFIG_xxx -> #if ENABLE_xxx

18 years agofind: -type T was actually meaning ! -type T!
Denis Vlasenko [Tue, 31 Oct 2006 23:39:37 +0000 (23:39 -0000)]
find: -type T was actually meaning ! -type T!
With this fix, "make mrproper" works correctly

18 years agobuild system: Makefiles are in source dir, add $(srctree)
Denis Vlasenko [Tue, 31 Oct 2006 23:03:09 +0000 (23:03 -0000)]
build system: Makefiles are in source dir, add $(srctree)

18 years agoreads: fix bug 1078
Denis Vlasenko [Tue, 31 Oct 2006 22:46:08 +0000 (22:46 -0000)]
reads: fix bug 1078

18 years agoadd usefun info on SIGINT handling peculiarities
Denis Vlasenko [Tue, 31 Oct 2006 18:41:29 +0000 (18:41 -0000)]
add usefun info on SIGINT handling peculiarities

18 years agologin: add big fat comment about SIGINT - prevent
Denis Vlasenko [Tue, 31 Oct 2006 18:30:56 +0000 (18:30 -0000)]
login: add big fat comment about SIGINT - prevent
adding/deleting that code again and again

18 years agologin: re-enable Ctrl-^C before execing shell.
Denis Vlasenko [Tue, 31 Oct 2006 17:34:44 +0000 (17:34 -0000)]
login: re-enable Ctrl-^C before execing shell.

18 years agodd: fix bugs: always assumed conv=sync, died on write errors
Denis Vlasenko [Tue, 31 Oct 2006 15:55:56 +0000 (15:55 -0000)]
dd: fix bugs: always assumed conv=sync, died on write errors
w/o perror and statictics. Several small improvements

18 years agofind: implement -prune. "make clean" now works! :)
Denis Vlasenko [Tue, 31 Oct 2006 03:21:02 +0000 (03:21 -0000)]
find: implement -prune. "make clean" now works! :)

18 years agofind: fix implicit -print (sometime differed from standard)
Denis Vlasenko [Tue, 31 Oct 2006 03:20:13 +0000 (03:20 -0000)]
find: fix implicit -print (sometime differed from standard)

18 years agofind: implement ( )
Denis Vlasenko [Mon, 30 Oct 2006 02:10:47 +0000 (02:10 -0000)]
find: implement ( )

18 years ago"#warning: http://...." doesn't work (gcc thinks that it's a comment!)
Denis Vlasenko [Sun, 29 Oct 2006 19:37:13 +0000 (19:37 -0000)]
"#warning: ...." doesn't work (gcc thinks that it's a comment!)

18 years agowebsite: fix link
Denis Vlasenko [Sun, 29 Oct 2006 19:34:49 +0000 (19:34 -0000)]
website: fix link

18 years agowebsite: announce 1.2.2.1
Denis Vlasenko [Sun, 29 Oct 2006 19:30:55 +0000 (19:30 -0000)]
website: announce 1.2.2.1

18 years agofind: a lot more compliant to 'standard' find
Denis Vlasenko [Sun, 29 Oct 2006 19:07:01 +0000 (19:07 -0000)]
find: a lot more compliant to 'standard' find
(we were not respecting order of actions!).
Add -o and -a handling.

18 years agofind: small improvement
Denis Vlasenko [Sun, 29 Oct 2006 19:03:56 +0000 (19:03 -0000)]
find: small improvement

18 years agofind: fix -exec to work like stock find does.
Denis Vlasenko [Sun, 29 Oct 2006 00:21:47 +0000 (00:21 -0000)]
find: fix -exec to work like stock find does.

18 years agols: silly comment fixes
Denis Vlasenko [Sat, 28 Oct 2006 13:02:55 +0000 (13:02 -0000)]
ls: silly comment fixes

18 years agochmod: typo in comments
Denis Vlasenko [Sat, 28 Oct 2006 12:42:40 +0000 (12:42 -0000)]
chmod: typo in comments

18 years agols: cleanup part 2. ifdef forest is much less scary now :)
Denis Vlasenko [Sat, 28 Oct 2006 12:37:51 +0000 (12:37 -0000)]
ls: cleanup part 2. ifdef forest is much less scary now :)

18 years agols: cleanup part 1
Denis Vlasenko [Sat, 28 Oct 2006 12:37:16 +0000 (12:37 -0000)]
ls: cleanup part 1

18 years agorecursive_action: add depth param
Denis Vlasenko [Fri, 27 Oct 2006 23:42:25 +0000 (23:42 -0000)]
recursive_action: add depth param
chmod: match coreutils versus following links

18 years agochgrp: just call chown! :)
Denis Vlasenko [Fri, 27 Oct 2006 23:28:38 +0000 (23:28 -0000)]
chgrp: just call chown! :)

18 years agorecursive_action: preparatory changes. will introduce "int level".
Denis Vlasenko [Fri, 27 Oct 2006 17:59:14 +0000 (17:59 -0000)]
recursive_action: preparatory changes. will introduce "int level".

18 years agochown: add -vcf support if CONFIG_DESKTOP
Denis Vlasenko [Fri, 27 Oct 2006 16:07:20 +0000 (16:07 -0000)]
chown: add -vcf support if CONFIG_DESKTOP
chmod: stop following symlinks

18 years agochmod: support -vcf if CONFIG_DESKTOP
Denis Vlasenko [Fri, 27 Oct 2006 15:13:54 +0000 (15:13 -0000)]
chmod: support -vcf if CONFIG_DESKTOP

18 years agomodprobe: reformat to match bbox style
Denis Vlasenko [Fri, 27 Oct 2006 15:12:50 +0000 (15:12 -0000)]
modprobe: reformat to match bbox style

18 years agoOFF_T_FMT -> OFF_FMT
Denis Vlasenko [Fri, 27 Oct 2006 13:00:07 +0000 (13:00 -0000)]
OFF_T_FMT -> OFF_FMT

18 years agotop: batch mode should output all processes
Denis Vlasenko [Fri, 27 Oct 2006 09:34:22 +0000 (09:34 -0000)]
top: batch mode should output all processes

18 years agoFix largefile breakage; advance version to 1.2.2
Denis Vlasenko [Fri, 27 Oct 2006 09:05:40 +0000 (09:05 -0000)]
Fix largefile breakage; advance version to 1.2.2

18 years agoreshuffle libbb.h contents so that order of decls makes sense
Denis Vlasenko [Fri, 27 Oct 2006 09:05:02 +0000 (09:05 -0000)]
reshuffle libbb.h contents so that order of decls makes sense
Found bad typo in largefile support :)

18 years agoget_terminal_width_height: do not pass insanely large values
Denis Vlasenko [Fri, 27 Oct 2006 09:03:24 +0000 (09:03 -0000)]
get_terminal_width_height: do not pass insanely large values

18 years agolast nail into error_msg() (de)capitalization
Denis Vlasenko [Fri, 27 Oct 2006 09:02:31 +0000 (09:02 -0000)]
last nail into error_msg() (de)capitalization

18 years agoAs usual, I forgot "svn del"...
Denis Vlasenko [Fri, 27 Oct 2006 07:17:36 +0000 (07:17 -0000)]
As usual, I forgot "svn del"...

18 years ago...and yet another small fix. Ouch...
Denis Vlasenko [Thu, 26 Oct 2006 23:39:04 +0000 (23:39 -0000)]
...and yet another small fix. Ouch...

18 years agoFix minor breakage in previous commit
Denis Vlasenko [Thu, 26 Oct 2006 23:32:43 +0000 (23:32 -0000)]
Fix minor breakage in previous commit

18 years agorename functions to more understandable names
Denis Vlasenko [Thu, 26 Oct 2006 23:25:17 +0000 (23:25 -0000)]
rename functions to more understandable names

18 years agoremove bb_printf and the like
Denis Vlasenko [Thu, 26 Oct 2006 23:21:47 +0000 (23:21 -0000)]
remove bb_printf and the like

18 years agoadd ipv6 developer doc
Denis Vlasenko [Thu, 26 Oct 2006 17:21:13 +0000 (17:21 -0000)]
add ipv6 developer doc

18 years agonslookup: make it more IPv6 friendly
Denis Vlasenko [Thu, 26 Oct 2006 17:17:59 +0000 (17:17 -0000)]
nslookup: make it more IPv6 friendly

18 years agomount: use switch (compare_string_array(..))
Denis Vlasenko [Thu, 26 Oct 2006 01:47:34 +0000 (01:47 -0000)]
mount: use switch (compare_string_array(..))
where appropriate, saves >100 bytes.

18 years agoxconnect is non-conforming to "xfunc like libc" rule. Fixing
Denis Vlasenko [Thu, 26 Oct 2006 01:09:46 +0000 (01:09 -0000)]
xconnect is non-conforming to "xfunc like libc" rule. Fixing

18 years agoip: "ip addr del" and "ip addr delete" both should work
Denis Vlasenko [Thu, 26 Oct 2006 00:38:22 +0000 (00:38 -0000)]
ip: "ip addr del" and "ip addr delete" both should work

18 years agosilly size savings and capitalization fixes
Denis Vlasenko [Thu, 26 Oct 2006 00:37:00 +0000 (00:37 -0000)]
silly size savings and capitalization fixes

18 years ago- revert r16191; re-add resize() applet.
Bernhard Reutner-Fischer [Wed, 25 Oct 2006 15:07:56 +0000 (15:07 -0000)]
- revert r16191; re-add resize() applet.
   text    data     bss     dec     hex filename
    288       0       0     288     120 console-tools/_resize.o.gcc-2.95
    258       0       0     258     102 console-tools/_resize.o.gcc-3.3
    252       0       0     252      fc console-tools/_resize.o.gcc-3.4

18 years agosed: mostly style fixes, very small changes in actual code
Denis Vlasenko [Wed, 25 Oct 2006 12:46:46 +0000 (12:46 -0000)]
sed: mostly style fixes, very small changes in actual code

18 years agouse skip_whitespace where appropriate
Denis Vlasenko [Wed, 25 Oct 2006 12:46:03 +0000 (12:46 -0000)]
use skip_whitespace where appropriate

18 years agowget: wget $'-\207' ... should not be allowed to work. ever. :)
Denis Vlasenko [Wed, 25 Oct 2006 00:33:44 +0000 (00:33 -0000)]
wget: wget $'-\207' ... should not be allowed to work. ever. :)
So fix wget & getopt32. Also fix multiple --header options
order: add and use rev_llist.

18 years agoPut up BusyBox 1.2.2 and get out of Denis' way. Also minor tweak to
Rob Landley [Tue, 24 Oct 2006 21:46:19 +0000 (21:46 -0000)]
Put up BusyBox 1.2.2 and get out of Denis' way.  Also minor tweak to
autodocifier.pl so USAGE_ macros that haven't been converted to USE_ yet
get correctly stripped out when generating BusyBox.html.

18 years ago- add nmeter and raidautorun to defconfig.
Bernhard Reutner-Fischer [Tue, 24 Oct 2006 20:07:29 +0000 (20:07 -0000)]
- add nmeter and raidautorun to defconfig.

18 years ago- we take exactly one argument.
Bernhard Reutner-Fischer [Tue, 24 Oct 2006 20:06:55 +0000 (20:06 -0000)]
- we take exactly one argument.

18 years agowget: -100 bytes, reduce stack usage, remove --header length limit
Denis Vlasenko [Mon, 23 Oct 2006 23:21:58 +0000 (23:21 -0000)]
wget: -100 bytes, reduce stack usage, remove --header length limit

18 years agowatch: fix warning
Denis Vlasenko [Mon, 23 Oct 2006 22:43:02 +0000 (22:43 -0000)]
watch: fix warning
getty: fix breakage; fix excessive stack usage

18 years agogetty: conditionally disable handling of all-caps terminals.
Denis Vlasenko [Mon, 23 Oct 2006 10:17:34 +0000 (10:17 -0000)]
getty: conditionally disable handling of all-caps terminals.

18 years agogetty: cleanup part 2
Denis Vlasenko [Mon, 23 Oct 2006 02:11:22 +0000 (02:11 -0000)]
getty: cleanup part 2

18 years agogetty: cleanup part 1
Denis Vlasenko [Mon, 23 Oct 2006 02:10:45 +0000 (02:10 -0000)]
getty: cleanup part 1

18 years ago__GLIBC__ -> defined(__GLIBC__)
Denis Vlasenko [Mon, 23 Oct 2006 00:42:24 +0000 (00:42 -0000)]
__GLIBC__ -> defined(__GLIBC__)

18 years agogrep: "grep -h pattern file1 file2" ignored -h
Denis Vlasenko [Sun, 22 Oct 2006 11:42:51 +0000 (11:42 -0000)]
grep: "grep -h pattern file1 file2" ignored -h
(precluded kernel's "make modules")

18 years agocp: update help text
Denis Vlasenko [Sun, 22 Oct 2006 10:05:01 +0000 (10:05 -0000)]
cp: update help text

18 years agocp: add support for -s, -l. Fix free(nonmalloc) bug.
Denis Vlasenko [Sat, 21 Oct 2006 23:40:20 +0000 (23:40 -0000)]
cp: add support for -s, -l. Fix free(nonmalloc) bug.
    Add doc on POSIX's rules on -i and -f (insane!).
ln: make "ln dangling_symlink new_link" work.

18 years agowatch: execute command thru shell, not fork/exec. Other fixes
Denis Vlasenko [Fri, 20 Oct 2006 23:48:30 +0000 (23:48 -0000)]
watch: execute command thru shell, not fork/exec. Other fixes

18 years agochpst: add overlooked copyright statement
Denis Vlasenko [Fri, 20 Oct 2006 19:40:44 +0000 (19:40 -0000)]
chpst: add overlooked copyright statement

18 years agoraidautorun: new applet, by:
Denis Vlasenko [Fri, 20 Oct 2006 19:39:48 +0000 (19:39 -0000)]
raidautorun: new applet, by:
Thomas Jarosch (email?) and
Bernhard Fischer <rep.nop@aon.at>

18 years agoreadlink: do not emit errors if file doesnt not exist / not a link
Denis Vlasenko [Fri, 20 Oct 2006 18:36:55 +0000 (18:36 -0000)]
readlink: do not emit errors if file doesnt not exist / not a link
getopt32: add =N support

18 years agoAdded compile-time warning for STATIC+GLIBC build
Denis Vlasenko [Fri, 20 Oct 2006 13:42:57 +0000 (13:42 -0000)]
Added compile-time warning for STATIC+GLIBC build

18 years agomessage string changes, mostly for consistency, also -32 bytes in .rodata
Denis Vlasenko [Fri, 20 Oct 2006 13:28:22 +0000 (13:28 -0000)]
message string changes, mostly for consistency, also -32 bytes in .rodata