people/mcb30/busybox.git
18 years agoNEW APPLET: pipe_progress, used by debian installer
bug1 [Fri, 14 Nov 2003 10:04:33 +0000 (10:04 +0000)]
NEW APPLET: pipe_progress, used by debian installer

git-svn-id: svn://busybox.net/trunk/busybox@7912 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix build error with tar -j
bug1 [Fri, 14 Nov 2003 09:22:24 +0000 (09:22 +0000)]
Fix build error with tar -j

git-svn-id: svn://busybox.net/trunk/busybox@7910 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove some tar_gz stuff that get dragged in
bug1 [Fri, 14 Nov 2003 09:21:27 +0000 (09:21 +0000)]
Remove some tar_gz stuff that get dragged in

git-svn-id: svn://busybox.net/trunk/busybox@7909 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove debugging noise.
bug1 [Fri, 14 Nov 2003 08:30:46 +0000 (08:30 +0000)]
Remove debugging noise.

git-svn-id: svn://busybox.net/trunk/busybox@7908 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRead in blocks rather than one char at a time, greatly improves speed
bug1 [Fri, 14 Nov 2003 08:26:25 +0000 (08:26 +0000)]
Read in blocks rather than one char at a time, greatly improves speed

git-svn-id: svn://busybox.net/trunk/busybox@7907 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoOskar Liljeblad writes:
andersen [Fri, 14 Nov 2003 03:11:29 +0000 (03:11 +0000)]
Oskar Liljeblad writes:

Here's a fix for the hard-coded device name in fbset.

git-svn-id: svn://busybox.net/trunk/busybox@7906 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMichael Smith writes:
andersen [Fri, 14 Nov 2003 03:04:08 +0000 (03:04 +0000)]
Michael Smith writes:

I noticed a problem with ifconfig in busybox 0.60.5. The matching code
seems to exist in busybox CVS as well, so I'll paste in the patch that
fixed it.

I was running:
 # ifconfig wan0 1.2.3.4 pointopoint 1.2.3.5 netmask 255.255.255.255

I was seeing the inet addr and P-t-P addr both being set to 1.2.3.5
(the pointopoint address).

wan0      Link encap:Point-Point Protocol
          inet addr:1.2.3.5  P-t-P:1.2.3.5  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          ...

The patch below seems to fix it.

git-svn-id: svn://busybox.net/trunk/busybox@7904 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUlrich Marx writes:
andersen [Fri, 14 Nov 2003 03:00:04 +0000 (03:00 +0000)]
Ulrich Marx writes:

hello

i had some trouble with the filedescriptor in udhcp.
Two things happened on my device:
1.) broken or not connected cable (no dhcp-server)
2.) daemonizing (starting with option -b)

i got a filedescriptor fd=0 from function raw_socket,
after daemonizing (daemon call) the fd is closed.
Client can't recieve data's anymore.

i fixed this problem (like pidfile handling):

git-svn-id: svn://busybox.net/trunk/busybox@7903 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSteven Seeger writes:
andersen [Fri, 14 Nov 2003 02:49:19 +0000 (02:49 +0000)]
Steven Seeger writes:

Hey guys. I've found a bug in modprobe where it generates bad strings and
makes sytem calls with them. The following patch seems to have fixed the
problem. It is rather inherited elsewhere, as there seems to be incorrect
entries in the list which results in more dependencies than really exist for
a given call to mod_process. But, this patch prevents the bad text from
going to the screen. You will notice there are cases where lcmd goes
unmodified before calling system.

Please consider the following patch.

Thanks.

-Steve

git-svn-id: svn://busybox.net/trunk/busybox@7902 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVladimir N. Oleynik (vodz) writes:
andersen [Fri, 14 Nov 2003 02:44:28 +0000 (02:44 +0000)]
Vladimir N. Oleynik (vodz) writes:

Hi Glenn.

I analysed BSS size gzip applet and found may be mistake:
updcrc() checking  if (crc_table_empty) but not resetted this var.
This do make slow gzip applet ;-)

--w
vodz

git-svn-id: svn://busybox.net/trunk/busybox@7901 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMarc Kleine-Budde noticed a missing semicolon
andersen [Fri, 14 Nov 2003 02:40:08 +0000 (02:40 +0000)]
Marc Kleine-Budde noticed a missing semicolon

git-svn-id: svn://busybox.net/trunk/busybox@7900 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMerge common parts of sha1sum and md5sum, which is everything except the
bug1 [Mon, 10 Nov 2003 04:33:55 +0000 (04:33 +0000)]
Merge common parts of sha1sum and md5sum, which is everything except the
algorithms.
Move algorithms to hash_fd and make them available via a common
function.

git-svn-id: svn://busybox.net/trunk/busybox@7863 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAdd some basic cvs usage info
andersen [Sat, 8 Nov 2003 00:33:02 +0000 (00:33 +0000)]
Add some basic cvs usage info

git-svn-id: svn://busybox.net/trunk/busybox@7852 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRob Landley writes:
andersen [Sat, 8 Nov 2003 00:23:23 +0000 (00:23 +0000)]
Rob Landley writes:

Remove three entries in defconfig that config no longer has.

Rob

git-svn-id: svn://busybox.net/trunk/busybox@7851 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Steven Scholz to send the output from 'time'
andersen [Fri, 7 Nov 2003 21:39:14 +0000 (21:39 +0000)]
Patch from Steven Scholz to send the output from 'time'
to stderr, rather than stdout, so that things like

~ # time bunzip2 -c /tmp/test.bz2 > /dev/null
real    0m 29.44s
user    0m 29.30s
sys     0m 0.12s

operate as expected.

git-svn-id: svn://busybox.net/trunk/busybox@7849 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoThis appears to be the correct fix to make CONFIG_FEATURE_DEB_TAR_BZ2
andersen [Fri, 7 Nov 2003 21:31:58 +0000 (21:31 +0000)]
This appears to be the correct fix to make CONFIG_FEATURE_DEB_TAR_BZ2
support compile.  Glenn, you may want to verify this.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7848 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agofix comment
andersen [Fri, 7 Nov 2003 21:22:09 +0000 (21:22 +0000)]
fix comment

git-svn-id: svn://busybox.net/trunk/busybox@7847 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agowrap bb help output if CONFIG_FEATURE_AUTOWIDTH
timr [Fri, 7 Nov 2003 19:37:20 +0000 (19:37 +0000)]
wrap bb help output if CONFIG_FEATURE_AUTOWIDTH

git-svn-id: svn://busybox.net/trunk/busybox@7846 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAs vodz pointed out, setting unset_env to NULL is sufficient
andersen [Fri, 7 Nov 2003 11:20:21 +0000 (11:20 +0000)]
As vodz pointed out, setting unset_env to NULL is sufficient

git-svn-id: svn://busybox.net/trunk/busybox@7844 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRewrite, 800+ bytes smaller and more robust.
bug1 [Thu, 6 Nov 2003 03:17:23 +0000 (03:17 +0000)]
Rewrite, 800+ bytes smaller and more robust.

git-svn-id: svn://busybox.net/trunk/busybox@7817 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoBy popular demand, revert to version 1.21, since Rules.mak:1.22
andersen [Wed, 5 Nov 2003 11:34:26 +0000 (11:34 +0000)]
By popular demand, revert to version 1.21, since Rules.mak:1.22
causes the build to ignore CROSS_COMPILER_PREFIX set in .config

git-svn-id: svn://busybox.net/trunk/busybox@7815 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix tar -j support
bug1 [Wed, 5 Nov 2003 04:55:58 +0000 (04:55 +0000)]
Fix tar -j support
Use the old fork() method of tar compression support, rather than
read_bz2....
 - (*uncompress)(int in, int out) seems like a more natural interface
for compression code.
 - it might improve performance by seperating the work into one cpu
bound and one io bound process.
 - There is extra code required to do read_[gz|bunzip] since (*uncompress)(int in,
int out) will normally be used by the standalone compression applet.

There have been problems with this method so if you see a "Short read"
error let me know.

git-svn-id: svn://busybox.net/trunk/busybox@7800 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix oversight with CONFIG_FEATURE_AUTOWIDTH handling
andersen [Tue, 4 Nov 2003 23:16:48 +0000 (23:16 +0000)]
Fix oversight with CONFIG_FEATURE_AUTOWIDTH handling

git-svn-id: svn://busybox.net/trunk/busybox@7780 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSet unset_env pointing to a NULL item, to prevent us from walking
andersen [Mon, 3 Nov 2003 22:46:14 +0000 (22:46 +0000)]
Set unset_env pointing to a NULL item, to prevent us from walking
off the end of the list and segfaulting.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7766 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix rdate and ftpget/ftpput so they compile with the new xconnect.
andersen [Mon, 3 Nov 2003 21:20:18 +0000 (21:20 +0000)]
Fix rdate and ftpget/ftpput so they compile with the new xconnect.
I have checked rdate.  Someone should also check ftpget/ftpput to
be sure they still work.

git-svn-id: svn://busybox.net/trunk/busybox@7765 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAvoid conflicts with the 2.6 kernel headers, which define
andersen [Mon, 3 Nov 2003 08:59:51 +0000 (08:59 +0000)]
Avoid conflicts with the 2.6 kernel headers, which define
_IOR rather differently, thereby breaking the BLKGETSIZE64
ioctl.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7756 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRework wget, the xconnect interface, and its various clients
andersen [Fri, 31 Oct 2003 09:31:46 +0000 (09:31 +0000)]
Rework wget, the xconnect interface, and its various clients
in order to fix the problems with round robin DNS reported
by Andrew Flegg:
    http://busybox.net/lists/busybox/2003-October/009579.html

This removes the ipv6 specific xconnect dns lookups.  I do
not see why that would need to be special cased for ipv6 as
was done, but that will just have to be tested.

So IPV6 people -- please test this change!

 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7735 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPut back the tar support stubs (and warnings) for now.
andersen [Fri, 31 Oct 2003 08:52:57 +0000 (08:52 +0000)]
Put back the tar support stubs (and warnings) for now.

git-svn-id: svn://busybox.net/trunk/busybox@7734 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoTry to make indent formatting less horrible
andersen [Fri, 31 Oct 2003 08:19:44 +0000 (08:19 +0000)]
Try to make indent formatting less horrible

git-svn-id: svn://busybox.net/trunk/busybox@7733 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from David Meggy to make the swap default to the new version if no
bug1 [Fri, 31 Oct 2003 02:04:18 +0000 (02:04 +0000)]
Patch from David Meggy to make the swap default to the new version if no
version is specified and the kernel is relatively new.

git-svn-id: svn://busybox.net/trunk/busybox@7731 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoMove the tail -c option from FANCY_TAIL to the default tail, this makes
bug1 [Fri, 31 Oct 2003 00:35:59 +0000 (00:35 +0000)]
Move the tail -c option from FANCY_TAIL to the default tail, this makes
the default tail options conform to SUSv3, with the non-SUS
option all in FANCY_TAIL

git-svn-id: svn://busybox.net/trunk/busybox@7730 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix stupid typo
andersen [Fri, 31 Oct 2003 00:21:28 +0000 (00:21 +0000)]
Fix stupid typo

git-svn-id: svn://busybox.net/trunk/busybox@7729 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRemove config options for sort -u and sort -r, they are always enabled
bug1 [Fri, 31 Oct 2003 00:04:24 +0000 (00:04 +0000)]
Remove config options for sort -u and sort -r, they are always enabled

git-svn-id: svn://busybox.net/trunk/busybox@7728 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAdd a comment with link to the SUSv3 standard for xargs
bug1 [Thu, 30 Oct 2003 22:51:33 +0000 (22:51 +0000)]
Add a comment with link to the SUSv3 standard for xargs

git-svn-id: svn://busybox.net/trunk/busybox@7727 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agorun through indent
bug1 [Thu, 30 Oct 2003 22:47:16 +0000 (22:47 +0000)]
run through indent

git-svn-id: svn://busybox.net/trunk/busybox@7726 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Dmitry Zakharov,
bug1 [Thu, 30 Oct 2003 13:36:39 +0000 (13:36 +0000)]
Patch from Dmitry Zakharov,
Fixes two bugs:
- END block didn't execute after an exit() call
- huge memory consumption and performance degradation on large input
(now performance is comparable to gawk)

git-svn-id: svn://busybox.net/trunk/busybox@7725 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agomake certain values specified in the environment always win
andersen [Thu, 30 Oct 2003 07:48:38 +0000 (07:48 +0000)]
make certain values specified in the environment always win

git-svn-id: svn://busybox.net/trunk/busybox@7724 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAccept the -c option and do nothing
bug1 [Wed, 29 Oct 2003 11:10:02 +0000 (11:10 +0000)]
Accept the -c option and do nothing

git-svn-id: svn://busybox.net/trunk/busybox@7723 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agofix a bug where `which' doesn't check whether the file passed as an argument
bug1 [Wed, 29 Oct 2003 04:50:35 +0000 (04:50 +0000)]
fix a bug where `which' doesn't check whether the file passed as an argument
is a regular file, patch by Arthur Othieno

git-svn-id: svn://busybox.net/trunk/busybox@7722 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agomake CONFIG_FEATURE_UNARCHIVE_TAPE common between itar and cpio, patch
bug1 [Wed, 29 Oct 2003 04:46:30 +0000 (04:46 +0000)]
make CONFIG_FEATURE_UNARCHIVE_TAPE common between itar and cpio, patch
by Arthur Othieno

git-svn-id: svn://busybox.net/trunk/busybox@7721 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years ago"A few references to sourcefiles and URLs in docs/contributing.txt had
bug1 [Wed, 29 Oct 2003 03:40:47 +0000 (03:40 +0000)]
"A few references to sourcefiles and URLs in docs/contributing.txt had
gone stale" - Peter Korsgaard

git-svn-id: svn://busybox.net/trunk/busybox@7720 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUse the return value from uncompress_bunzip, fix some typo
bug1 [Wed, 29 Oct 2003 03:37:54 +0000 (03:37 +0000)]
Use the return value from uncompress_bunzip, fix some typo

git-svn-id: svn://busybox.net/trunk/busybox@7719 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAdd some error messages, use xmalloc instead of malloc
bug1 [Tue, 28 Oct 2003 23:32:12 +0000 (23:32 +0000)]
Add some error messages, use xmalloc instead of malloc

git-svn-id: svn://busybox.net/trunk/busybox@7718 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix a logic error, the old bunzip code returned non-zero for success,
bug1 [Tue, 28 Oct 2003 23:04:50 +0000 (23:04 +0000)]
Fix a logic error, the old bunzip code returned non-zero for success,
new code returns 0 for success.

git-svn-id: svn://busybox.net/trunk/busybox@7717 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoConditionally compile some files.
bug1 [Tue, 28 Oct 2003 10:44:58 +0000 (10:44 +0000)]
Conditionally compile some files.
This hides a bug related to the new bunzip code in the tar and dpkg[-deb]
applets.
It will also reduce compile time a little as some unused files wont be
compiled.

git-svn-id: svn://busybox.net/trunk/busybox@7716 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAnother bzip2 update and speedup from Manuel Novoa III, with some
andersen [Thu, 23 Oct 2003 06:52:01 +0000 (06:52 +0000)]
Another bzip2 update and speedup from Manuel Novoa III, with some
additional changes (primarily lots of comments) from Rob Landley.

git-svn-id: svn://busybox.net/trunk/busybox@7708 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agothe dc applet now needs libm
andersen [Wed, 22 Oct 2003 22:29:08 +0000 (22:29 +0000)]
the dc applet now needs libm
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7706 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agosigh
andersen [Wed, 22 Oct 2003 11:36:55 +0000 (11:36 +0000)]
sigh

git-svn-id: svn://busybox.net/trunk/busybox@7703 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoGoetz Bock writes:
andersen [Wed, 22 Oct 2003 11:24:39 +0000 (11:24 +0000)]
Goetz Bock writes:

Dear list,

during my quest do pack busybox into an RPM, I've fixed a small bug
(missing \n) in dc's usage. And added two additional operations: mod and
exp/power.

Feel free to drop them.

git-svn-id: svn://busybox.net/trunk/busybox@7702 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agolast_patch116 from vodz:
andersen [Wed, 22 Oct 2003 10:56:47 +0000 (10:56 +0000)]
last_patch116 from vodz:

Stephane,

>Using busybox+uclibc, crond syslog messages look like:
>
>Oct  9 09:04:46 soekris cron.notice crond[347]: ^Icrond 2.3.2 dillon,
>started, log level 8

Thanks for testing.

>The attached patch corrects the problem.

Your patch is not correct.
Correct patch attached.

Also. Last patch have
- add "Broken pipe" message to ash.c
- busybox ash synced with dash_0.4.18

--w
vodz

git-svn-id: svn://busybox.net/trunk/busybox@7701 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoTomasz Motylewski reported that the 'which' applet does not find
andersen [Wed, 22 Oct 2003 10:38:22 +0000 (10:38 +0000)]
Tomasz Motylewski reported that the 'which' applet does not find
files when the full file PATH is specified.

This patch from Arthur Othieno fixes it.

git-svn-id: svn://busybox.net/trunk/busybox@7700 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Arthur Othieno for style-guide.txt conformance
andersen [Wed, 22 Oct 2003 10:34:15 +0000 (10:34 +0000)]
Patch from Arthur Othieno for style-guide.txt conformance

git-svn-id: svn://busybox.net/trunk/busybox@7699 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Arthur Othieno for docs/style-guide.txt conformance.
andersen [Wed, 22 Oct 2003 10:30:53 +0000 (10:30 +0000)]
Patch from Arthur Othieno for docs/style-guide.txt conformance.

git-svn-id: svn://busybox.net/trunk/busybox@7698 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Arthur Othieno to fix a compiler warning
andersen [Wed, 22 Oct 2003 10:26:38 +0000 (10:26 +0000)]
Patch from Arthur Othieno to fix a compiler warning

git-svn-id: svn://busybox.net/trunk/busybox@7697 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agomake this a little bit less messy
andersen [Wed, 22 Oct 2003 10:23:04 +0000 (10:23 +0000)]
make this a little bit less messy

git-svn-id: svn://busybox.net/trunk/busybox@7696 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUpdate mail location
andersen [Wed, 22 Oct 2003 10:19:01 +0000 (10:19 +0000)]
Update mail location

git-svn-id: svn://busybox.net/trunk/busybox@7695 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDisable any buffering to stdout
andersen [Wed, 22 Oct 2003 10:18:24 +0000 (10:18 +0000)]
Disable any buffering to stdout

git-svn-id: svn://busybox.net/trunk/busybox@7694 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoTito writes:
andersen [Wed, 22 Oct 2003 10:10:50 +0000 (10:10 +0000)]
Tito writes:

Hi to all,
I'm sorry but  I didn't spot this big fat bug until now,
Matteo Croce emailed me about it.
Please apply this patch as the devfsd applet is broken
and works only on a system booted with a standard devfsd
( the test I mostly did :-(   ), but if used at boot time
it DOESN'T WORK.

Thanks in advance and please apply
Tito

git-svn-id: svn://busybox.net/trunk/busybox@7693 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAndreas Mohr writes:
andersen [Wed, 22 Oct 2003 09:58:56 +0000 (09:58 +0000)]
Andreas Mohr writes:

the busybox menuconfig triggered my "inacceptable number of spelling mistakes"
upper level, so I decided to make a patch ;-)

I also improved some wording to describe some things in a better way.

Many thanks for an incredible piece of software!

Andreas Mohr, random OSS developer

git-svn-id: svn://busybox.net/trunk/busybox@7692 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDo a better job of dealing with screwy s390 abi changes
andersen [Tue, 21 Oct 2003 06:45:29 +0000 (06:45 +0000)]
Do a better job of dealing with screwy s390 abi changes

git-svn-id: svn://busybox.net/trunk/busybox@7685 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoccording to this:
andersen [Mon, 20 Oct 2003 05:40:40 +0000 (05:40 +0000)]
ccording to this:
    http://sources.redhat.com/ml/binutils/2003-01/msg00290.html
The name R_390_GOTOFF was changed to R_390_GOTOFF32.
 -Erik

git-svn-id: svn://busybox.net/trunk/busybox@7680 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoManuel Novoa III writes:
andersen [Sat, 18 Oct 2003 01:59:46 +0000 (01:59 +0000)]
Manuel Novoa III writes:

Hello Rob,

Here's a patch to your bunzip-3.c file.  Nice work btw.

One minor bug fix... checking for error return when read()ing.
Some size/performance optimizations as well.  One instance of
memset() seems unnecssary.  You might want to take a look.

Anyway, on my machine, decompressing linux-2.6.0-test7.tar.bz2
to /dev/null gave the following times:

        bunzip-3.c    bzcat (system)   bunzip-3.c (patched)
real    0m24.420s     0m22.725s        0m20.701s
user    0m23.930s     0m22.170s        0m20.180s
sys     0m0.070s      0m0.080s         0m0.140s

Size of the patched version is comparable (slightly larger or
smaller depending on compiler flags).

Manuel

git-svn-id: svn://busybox.net/trunk/busybox@7665 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoRob Landley's new micro-bunzip version 3. Rob writes:
andersen [Sat, 18 Oct 2003 01:58:35 +0000 (01:58 +0000)]
Rob Landley's new micro-bunzip version 3.  Rob writes:

The API for using partial writes, as described in my last message, sucked.

So here's a patch against my last patch that changes things so that
write_bunzip_data calls read_bunzip_data itself behind the scenes whenever
necessary.  So usage is now just start_bunzip(), write_bunzip_data() until it
returns a negative number, and then the cleanup at the end of
uncompressStream.

It adds 32 bytes to the executable, but it should allow the caller (tar) to be
simplified enough to compensate.  Total -Os stripped exe size now 6856 bytes.

Rob

P.S.  I attached the whole C file so you don't have to keep incremental
patches straight if you don't want to. :)

P.S.  In the version I'm banging on now, I've simplified the license to just
LGPL.  I read the OSL a bit more closely and the patent termination clause
would have bit IBM in their counter-suit of SCO if the code in question had
been OSL instead of GPL, and I've decided I just don't want to beta-test
legal code right now.

git-svn-id: svn://busybox.net/trunk/busybox@7664 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoold gcc
timr [Fri, 17 Oct 2003 18:54:55 +0000 (18:54 +0000)]
old gcc

git-svn-id: svn://busybox.net/trunk/busybox@7663 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPaul Mundt (lethal) writes:
andersen [Sat, 11 Oct 2003 18:47:20 +0000 (18:47 +0000)]
Paul Mundt (lethal) writes:

Erik,

The format for /proc/meminfo has changed between 2.4 and 2.6, quite considerably.
In addition to the removal of the two-line summary that was present in 2.4,
MemShared was also removed. Presently (at least in busybox CVS HEAD), top fails
to parse this correctly and spews forth a:

top: failed to read 'meminfo'

message. This patch switches around some of the semantics a little to do sane
parsing for both 2.4 and 2.6. Also, in the event that the summary gets yanked
from 2.4, this patch will deal with that as well. With this patch, I'm able
to run top correctly on 2.6.0-test7 (tested on sh).

Please apply.

 procps/top.c |   60 +++++++++++++++++++++++++++++++++++++++++++++++------------
  1 files changed, 48 insertions(+), 12 deletions(-)

git-svn-id: svn://busybox.net/trunk/busybox@7639 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVodz last_patch_117, update options for new xargs
bug1 [Fri, 10 Oct 2003 23:15:23 +0000 (23:15 +0000)]
Vodz last_patch_117, update options for new xargs

git-svn-id: svn://busybox.net/trunk/busybox@7635 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVods versions of xargs
bug1 [Fri, 10 Oct 2003 12:10:18 +0000 (12:10 +0000)]
Vods versions of xargs

git-svn-id: svn://busybox.net/trunk/busybox@7634 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoI don't need to have my email adder listed twice
andersen [Thu, 9 Oct 2003 21:19:21 +0000 (21:19 +0000)]
I don't need to have my email adder listed twice

git-svn-id: svn://busybox.net/trunk/busybox@7630 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDo not use kernel headers
andersen [Thu, 9 Oct 2003 21:02:23 +0000 (21:02 +0000)]
Do not use kernel headers

git-svn-id: svn://busybox.net/trunk/busybox@7629 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix an ommision preventing building, patch by Tito.
bug1 [Thu, 9 Oct 2003 13:40:17 +0000 (13:40 +0000)]
Fix an ommision preventing building, patch by Tito.

git-svn-id: svn://busybox.net/trunk/busybox@7628 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoexample devfs config file, patch from Tito.
bug1 [Thu, 9 Oct 2003 13:25:00 +0000 (13:25 +0000)]
example devfs config file, patch from Tito.

git-svn-id: svn://busybox.net/trunk/busybox@7627 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoNew applet, devfsd, by Matteo Croce and Tito
bug1 [Thu, 9 Oct 2003 11:46:23 +0000 (11:46 +0000)]
New applet, devfsd, by Matteo Croce and Tito

git-svn-id: svn://busybox.net/trunk/busybox@7626 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Steven Scholz, fix some warnings
bug1 [Thu, 9 Oct 2003 11:38:45 +0000 (11:38 +0000)]
Patch from Steven Scholz, fix some warnings

git-svn-id: svn://busybox.net/trunk/busybox@7625 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoBugfix for xargs
bug1 [Thu, 9 Oct 2003 11:06:45 +0000 (11:06 +0000)]
Bugfix for xargs

git-svn-id: svn://busybox.net/trunk/busybox@7624 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoArnd Ben Otto writes:
andersen [Thu, 9 Oct 2003 09:43:18 +0000 (09:43 +0000)]
Arnd Ben Otto writes:

Hi Eric

I have written a small patch for the Busybox syslogd. With this patch
one can limit the size of the messagfile. As soon as the limit is
reached the syslogd can rotate or purge the messagefile(s) on his own.
There is no necessity to use an external rotatescript.

Even if logread does something similar, its very handy to have some
messagefile after your box crash.

I wrote this patch initial vor BB 0.6x where no cron daemon was avail.
Now I adapted it for the new Version and i hope it is still useful. At
least I still use it :-)

bye
Arnd

git-svn-id: svn://busybox.net/trunk/busybox@7623 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoWe did not have a safe_write, which is the analog to safe_read. Convert
andersen [Thu, 9 Oct 2003 08:35:42 +0000 (08:35 +0000)]
We did not have a safe_write, which is the analog to safe_read.  Convert
full_write to use safe_write internally, which is needed to guarantee proper
behavior, i.e. when writing to a pipe.

git-svn-id: svn://busybox.net/trunk/busybox@7621 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix some warnings that have crept in recently
andersen [Thu, 9 Oct 2003 08:18:36 +0000 (08:18 +0000)]
Fix some warnings that have crept in recently

git-svn-id: svn://busybox.net/trunk/busybox@7620 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Tito, size optimisation and fix error in exit code of -V
bug1 [Thu, 9 Oct 2003 07:28:22 +0000 (07:28 +0000)]
Patch from Tito, size optimisation and fix error in exit code of -V
option

git-svn-id: svn://busybox.net/trunk/busybox@7619 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoComaptability with gcc-2.95
bug1 [Thu, 9 Oct 2003 07:22:59 +0000 (07:22 +0000)]
Comaptability with gcc-2.95

git-svn-id: svn://busybox.net/trunk/busybox@7618 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVodz last_patch_105 without his xargs patch which doenst apply cleanly
bug1 [Mon, 6 Oct 2003 13:23:06 +0000 (13:23 +0000)]
Vodz last_patch_105 without his xargs patch which doenst apply cleanly

git-svn-id: svn://busybox.net/trunk/busybox@7605 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoAdd the x, n, s and E options, remove -r as its expected behaviour.
bug1 [Sat, 4 Oct 2003 14:44:27 +0000 (14:44 +0000)]
Add the x, n, s and E options, remove -r as its expected behaviour.

git-svn-id: svn://busybox.net/trunk/busybox@7601 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Rob Landley;
bug1 [Sat, 4 Oct 2003 05:27:56 +0000 (05:27 +0000)]
Patch from Rob Landley;
Moving on to building diffutils, busybox sed needs this patch to get
past the first problem.  (Passing it a multi-line command line argument
with -e works, but if you don't use -e it doesn't break up the multiple
lines...)

git-svn-id: svn://busybox.net/trunk/busybox@7600 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoWoops, the previous patch reversal wasnt complete, breaking everything.
bug1 [Sat, 4 Oct 2003 00:05:47 +0000 (00:05 +0000)]
Woops, the previous patch reversal wasnt complete, breaking everything.

git-svn-id: svn://busybox.net/trunk/busybox@7599 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoReverse my previous changes and make a note about why its dont this way
bug1 [Fri, 3 Oct 2003 13:21:10 +0000 (13:21 +0000)]
Reverse my previous changes and make a note about why its dont this way

git-svn-id: svn://busybox.net/trunk/busybox@7598 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoDont mix xarg options with utility option, fixes example of
bug1 [Fri, 3 Oct 2003 13:15:44 +0000 (13:15 +0000)]
Dont mix xarg options with utility option, fixes example of
`echo "README" | xargs ls -al`
Dont specify a path for the default behaviour of echo
args allocated space for an extra ptr
Use defines for the different options

git-svn-id: svn://busybox.net/trunk/busybox@7597 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoVodz, last_patch_114
bug1 [Fri, 3 Oct 2003 10:50:56 +0000 (10:50 +0000)]
Vodz, last_patch_114
- env vars CONTENT_TYPE, CONTENT_LENGTH, HTTPD_REFERER, REMOTE_USER and
AUTH_TYPE(Basic always).
- POST data pipied now (previous version have loading into memory may be
big size data and reducing with hardcoded limit)
- removed $CGI_foo environment variables, else my have rubbish
enviroment if POST data have big binary file

git-svn-id: svn://busybox.net/trunk/busybox@7596 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch by Rob Landley, fix warning
bug1 [Fri, 3 Oct 2003 08:28:59 +0000 (08:28 +0000)]
Patch by Rob Landley, fix warning

git-svn-id: svn://busybox.net/trunk/busybox@7595 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoargc has already been decremented
bug1 [Fri, 3 Oct 2003 07:51:30 +0000 (07:51 +0000)]
argc has already been decremented

git-svn-id: svn://busybox.net/trunk/busybox@7594 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Rob Landley, Simplify organisation of arguments.
bug1 [Fri, 3 Oct 2003 03:25:30 +0000 (03:25 +0000)]
Patch from Rob Landley, Simplify organisation of arguments.

git-svn-id: svn://busybox.net/trunk/busybox@7593 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoFix -C option when creating tar files.
bug1 [Thu, 2 Oct 2003 14:33:23 +0000 (14:33 +0000)]
Fix -C option when creating tar files.
Need to chdir after the tar file is opened, so make common tar filename
parsing and send the file descriptor rather than filename to
writeTarFile.
Modify the verboseFlag operation to determine wether to display on
stderr or stdout at display time, simpler than doing it in tar_main.

git-svn-id: svn://busybox.net/trunk/busybox@7589 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoThomas Lundquist, update for current structure
bug1 [Wed, 1 Oct 2003 11:33:46 +0000 (11:33 +0000)]
Thomas Lundquist, update for current structure

git-svn-id: svn://busybox.net/trunk/busybox@7587 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Rob Landley to fix backrefs
bug1 [Wed, 1 Oct 2003 10:26:23 +0000 (10:26 +0000)]
Patch from Rob Landley to fix backrefs

git-svn-id: svn://busybox.net/trunk/busybox@7586 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch by Rob Landley, fix "newline after edit command"
bug1 [Wed, 1 Oct 2003 06:45:11 +0000 (06:45 +0000)]
Patch by Rob Landley, fix "newline after edit command"

git-svn-id: svn://busybox.net/trunk/busybox@7584 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch by Rob Landley, work in progress update, fixes lots of bugs,
bug1 [Wed, 1 Oct 2003 03:06:16 +0000 (03:06 +0000)]
Patch by Rob Landley, work in progress update, fixes lots of bugs,
introduces a few others (but they are being worked on)

git-svn-id: svn://busybox.net/trunk/busybox@7583 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch by Guillaume Morin
bug1 [Fri, 26 Sep 2003 10:45:55 +0000 (10:45 +0000)]
Patch by Guillaume Morin
Fix two race conditions, as described at.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=212764

git-svn-id: svn://busybox.net/trunk/busybox@7567 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch from Fillod Stephane
bug1 [Fri, 26 Sep 2003 01:03:16 +0000 (01:03 +0000)]
Patch from Fillod Stephane
Add follow mode to logread, ala "tail -f /var/log/messages"
Note: output to a slow serial terminal can have side effects
on syslog because of the semaphore. In such case, define
RC_LOGREAD.

git-svn-id: svn://busybox.net/trunk/busybox@7565 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoadd size parameter to syslogd -C
bug1 [Fri, 26 Sep 2003 00:49:05 +0000 (00:49 +0000)]
add size parameter to syslogd -C
Patch by Padraig, resubmitted by Fillod Stephane

git-svn-id: svn://busybox.net/trunk/busybox@7564 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoPatch by Fillod Stephane, declare variables as static to not clobber
bug1 [Fri, 26 Sep 2003 00:33:18 +0000 (00:33 +0000)]
Patch by Fillod Stephane, declare variables as static to not clobber
busybox namespace

git-svn-id: svn://busybox.net/trunk/busybox@7563 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoUse a variable for the config files, makes it easier to syncronise with
bug1 [Wed, 24 Sep 2003 15:48:29 +0000 (15:48 +0000)]
Use a variable for the config files, makes it easier to syncronise with
debian builds

git-svn-id: svn://busybox.net/trunk/busybox@7562 69ca8d6d-28ef-0310-b511-8ec308f3f277

18 years agoSyncronise with debian busybox-cvs package
bug1 [Wed, 24 Sep 2003 15:30:44 +0000 (15:30 +0000)]
Syncronise with debian busybox-cvs package

git-svn-id: svn://busybox.net/trunk/busybox@7561 69ca8d6d-28ef-0310-b511-8ec308f3f277