oweals/busybox.git
24 years agoGrammer fix. Changed "longer then" to "longer than". Fix thanks to Jim
Eric Andersen [Tue, 14 Nov 2000 22:15:48 +0000 (22:15 -0000)]
Grammer fix.  Changed "longer then" to "longer than".  Fix thanks to Jim
Gleason <jimg@lineo.com>.

24 years agoPatch from Gennady Feldman <gfeldman@tradeline.net> to:
Eric Andersen [Tue, 14 Nov 2000 21:59:22 +0000 (21:59 -0000)]
Patch from Gennady Feldman <gfeldman@tradeline.net> to:
    1. Opens redirections w/ the right access.
    2. Doesn't do globbing for every single parameter (so it
doesn't stat every parameter).

24 years agoUlp. "expr" listed as a second "echo" (oops) -- thanks to David Douthitt
Eric Andersen [Tue, 14 Nov 2000 21:28:09 +0000 (21:28 -0000)]
Ulp.  "expr" listed as a second "echo" (oops) -- thanks to David Douthitt
for noticing....

24 years agoAdd in Zdisk
Eric Andersen [Tue, 14 Nov 2000 21:12:39 +0000 (21:12 -0000)]
Add in Zdisk

24 years agoRemove unneeded junk
Eric Andersen [Tue, 14 Nov 2000 20:31:45 +0000 (20:31 -0000)]
Remove unneeded junk

24 years agoMove flush_outbuf to the file in which it is used, and by doing so fix a
Matt Kraai [Wed, 8 Nov 2000 06:52:57 +0000 (06:52 -0000)]
Move flush_outbuf to the file in which it is used, and by doing so fix a
nasty error dealing with two different variables with the same name.

24 years agoFix some bugs reported by Jim Gleason <jimg@lineo.com> and others I
Matt Kraai [Wed, 8 Nov 2000 02:35:47 +0000 (02:35 -0000)]
Fix some bugs reported by Jim Gleason <jimg@lineo.com> and others I
introduced.

24 years agoCleanup of duplicated symbols -- found by compiling with
Eric Andersen [Tue, 7 Nov 2000 06:52:13 +0000 (06:52 -0000)]
Cleanup of duplicated symbols -- found by compiling with
LDFLAGS += -Wl,-warn-common

24 years agoRemoved REG_NEWLINE from regcomp to fix the same bug found in grep where it
Mark Whitley [Fri, 3 Nov 2000 20:23:49 +0000 (20:23 -0000)]
Removed REG_NEWLINE from regcomp to fix the same bug found in grep where it
would not match blank lines (bug #1064). Followed Matt Kraii's suit on his
1.42 revision of grep. Tested it, works.

24 years agoNow, what was that logic block doing up there?
Mark Whitley [Fri, 3 Nov 2000 20:02:35 +0000 (20:02 -0000)]
Now, what was that logic block doing up there?

24 years agoRe-worked the support for s///p, fixed a backref limit buglet, and cleaned up
Mark Whitley [Fri, 3 Nov 2000 19:47:00 +0000 (19:47 -0000)]
Re-worked the support for s///p, fixed a backref limit buglet, and cleaned up
a few other ugly places (do_subst_command got a much-needed overhaul). Also
took out BB_FEATURE_SED_PATTERN_SPACE from Config.h[.Hurd] as the 'p' is now a
standard feature (adds almost no bloat).

24 years agoWarning cleanup from Gennady Feldman
Eric Andersen [Thu, 2 Nov 2000 17:02:26 +0000 (17:02 -0000)]
Warning cleanup from Gennady Feldman
 -Erik

24 years agoFix uname problem that was breaking poweroff.
Eric Andersen [Mon, 30 Oct 2000 17:22:04 +0000 (17:22 -0000)]
Fix uname problem that was breaking poweroff.

24 years agoThis was redundant
Eric Andersen [Sun, 29 Oct 2000 07:02:47 +0000 (07:02 -0000)]
This was redundant

24 years agoMake fbset compile with the readmode feature by pulling defs from fb.h.
Matt Kraai [Sat, 28 Oct 2000 16:56:32 +0000 (16:56 -0000)]
Make fbset compile with the readmode feature by pulling defs from fb.h.

24 years agoMake features independent.
Matt Kraai [Sat, 28 Oct 2000 06:40:09 +0000 (06:40 -0000)]
Make features independent.

24 years agoWe also need to declare info if the USERNAMES feature is enabled.
Matt Kraai [Sat, 28 Oct 2000 01:21:22 +0000 (01:21 -0000)]
We also need to declare info if the USERNAMES feature is enabled.

24 years agoAdd in -lgcc to add needed symbold when linking vs uclibc.
Eric Andersen [Fri, 27 Oct 2000 18:26:18 +0000 (18:26 -0000)]
Add in -lgcc to add needed symbold when linking vs uclibc.

24 years agoOops. I never committed this. Update version to 0.48pre...
Eric Andersen [Fri, 27 Oct 2000 18:09:53 +0000 (18:09 -0000)]
Oops.  I never committed this.  Update version to 0.48pre...

24 years agoSilence a warning,
Eric Andersen [Thu, 26 Oct 2000 07:57:27 +0000 (07:57 -0000)]
Silence a warning,

24 years agoThis was broken when applets moved to applets.h. Fix it.
Eric Andersen [Thu, 26 Oct 2000 04:17:49 +0000 (04:17 -0000)]
This was broken when applets moved to applets.h.  Fix it.

24 years agoFixed error handling and TRUE/FALSE usage.
Matt Kraai [Wed, 25 Oct 2000 19:09:03 +0000 (19:09 -0000)]
Fixed error handling and TRUE/FALSE usage.

24 years agoRestore --help handling I mistakenly removed.
Matt Kraai [Wed, 25 Oct 2000 19:05:38 +0000 (19:05 -0000)]
Restore --help handling I mistakenly removed.

24 years agoAvoid reinventing the wheel (and thus save some space).
Matt Kraai [Wed, 25 Oct 2000 19:00:51 +0000 (19:00 -0000)]
Avoid reinventing the wheel (and thus save some space).

24 years agoAdded a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSE
Matt Kraai [Wed, 25 Oct 2000 17:00:36 +0000 (17:00 -0000)]
Added a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSE
uses, and other minor fixes.

24 years agoCleaned up error handling, TRUE/FALSE usage, and other minor issues.
Matt Kraai [Wed, 25 Oct 2000 16:48:15 +0000 (16:48 -0000)]
Cleaned up error handling, TRUE/FALSE usage, and other minor issues.

24 years agoClean up error handling and uses of TRUE/FALSE.
Matt Kraai [Wed, 25 Oct 2000 16:40:21 +0000 (16:40 -0000)]
Clean up error handling and uses of TRUE/FALSE.

24 years agoCleaned up error handling and uses of TRUE/FALSE.
Matt Kraai [Wed, 25 Oct 2000 16:38:00 +0000 (16:38 -0000)]
Cleaned up error handling and uses of TRUE/FALSE.

24 years agoCleaned up error message handling.
Matt Kraai [Wed, 25 Oct 2000 16:25:50 +0000 (16:25 -0000)]
Cleaned up error message handling.

24 years agoAdded a fatalPerror function to simplify error handling.
Matt Kraai [Wed, 25 Oct 2000 15:10:08 +0000 (15:10 -0000)]
Added a fatalPerror function to simplify error handling.

24 years agoFix for bug #1068 from Kent Robotti
Glenn L McGrath [Wed, 25 Oct 2000 03:31:15 +0000 (03:31 -0000)]
Fix for bug #1068 from Kent Robotti

Call perror and exit instead of fatalError

24 years agoApplied patch from Gaute B Strokkenes <gs234@cam.ac.uk> to use a binary search
Mark Whitley [Wed, 25 Oct 2000 00:28:27 +0000 (00:28 -0000)]
Applied patch from Gaute B Strokkenes <gs234@cam.ac.uk> to use a binary search
to locate applets, rather than a linear search. Also, broke out the listing of
applets into it's own file: applets.h.

24 years agoFix error messages.
Matt Kraai [Mon, 23 Oct 2000 18:03:46 +0000 (18:03 -0000)]
Fix error messages.

24 years agoFix error message.
Matt Kraai [Mon, 23 Oct 2000 17:55:27 +0000 (17:55 -0000)]
Fix error message.

24 years agoPut getopt_usage where it belongs and added *_usage entries in busybox.[ch]
Mark Whitley [Thu, 19 Oct 2000 22:28:06 +0000 (22:28 -0000)]
Put getopt_usage where it belongs and added *_usage entries in busybox.[ch]

24 years agoPiss people off by removing [+-][0-9]+ options from tail.
Matt Kraai [Thu, 19 Oct 2000 21:28:32 +0000 (21:28 -0000)]
Piss people off by removing [+-][0-9]+ options from tail.

24 years agoRemove broken error test found by Bryan Rittmeyer <bryan@ixiacom.com>.
Matt Kraai [Mon, 16 Oct 2000 16:22:27 +0000 (16:22 -0000)]
Remove broken error test found by Bryan Rittmeyer <bryan@ixiacom.com>.

24 years agoFix handling of ^$ by removing the newline from input lines and by not
Matt Kraai [Fri, 13 Oct 2000 18:55:06 +0000 (18:55 -0000)]
Fix handling of ^$ by removing the newline from input lines and by not
compiling with REG_NEWLINE.

24 years agoConsolidate stat(2) and lstat(2) calls and error handling.
Matt Kraai [Fri, 13 Oct 2000 18:03:21 +0000 (18:03 -0000)]
Consolidate stat(2) and lstat(2) calls and error handling.

24 years agoExit with failure status if we are unable to list any files or
Matt Kraai [Fri, 13 Oct 2000 17:59:43 +0000 (17:59 -0000)]
Exit with failure status if we are unable to list any files or
directories.  Patch thanks to Kent Robotti <robotti@metconnect.com>.

24 years agoApply a patch from Matt Kraai to fix buffer overrun and convert to
Eric Andersen [Thu, 12 Oct 2000 22:40:14 +0000 (22:40 -0000)]
Apply a patch from Matt Kraai to fix buffer overrun and convert to
using synamically allocated storage.
 -Erik

24 years agoApply patch from "Orion Poplawski" <OPoplawski@cqg.com> to make
Eric Andersen [Thu, 12 Oct 2000 22:30:31 +0000 (22:30 -0000)]
Apply patch from "Orion Poplawski" <OPoplawski@cqg.com> to make
hostname do "--file"
 -Erik

24 years agoAdded cmp and readlink applets from Matt Kraai.
Mark Whitley [Mon, 9 Oct 2000 18:56:47 +0000 (18:56 -0000)]
Added cmp and readlink applets from Matt Kraai.

24 years agoPatch from Matt Kraai so wc will return a proper error code
Eric Andersen [Mon, 9 Oct 2000 18:21:44 +0000 (18:21 -0000)]
Patch from Matt Kraai so wc will return a proper error code
when failing to open a file, and will not use file when it
didn't open the file.
 -Erik

24 years agoFix a thinko. Patch from Justus Pendleton <justus@acm.org>
Eric Andersen [Mon, 9 Oct 2000 17:54:38 +0000 (17:54 -0000)]
Fix a thinko.  Patch from Justus Pendleton <justus@acm.org>

24 years agoApply a patch from Matt Kraai:
Eric Andersen [Mon, 9 Oct 2000 17:51:25 +0000 (17:51 -0000)]
Apply a patch from Matt Kraai:
    "The -L option to ls doesn't behave correctly for files listed explicitly
    on the command line, only those in directories that are listed.  The
    appended patch fixes this problem.  Would someone please commit it?"
 -Erik

24 years agoPatch from Matt Kraai: "When it encounters a problem creating a link, ln
Eric Andersen [Wed, 4 Oct 2000 16:02:53 +0000 (16:02 -0000)]
Patch from Matt Kraai: "When it encounters a problem creating a link, ln
shouldn't give up entirely but instead continue processing the rest of its
arguments.  The attached patch does this."

24 years agoRewrite to use getopt and return instead of exit, a seperate function (fs_link) does...
Glenn L McGrath [Wed, 4 Oct 2000 09:34:35 +0000 (09:34 -0000)]
Rewrite to use getopt and return instead of exit, a seperate function (fs_link) does the actual work.

24 years agoAdd a spiffy progress meter.
Eric Andersen [Tue, 3 Oct 2000 00:21:45 +0000 (00:21 -0000)]
Add a spiffy progress meter.
 -Erik

24 years agoTry to guess an output filename
Eric Andersen [Mon, 2 Oct 2000 23:19:38 +0000 (23:19 -0000)]
Try to guess an output filename

24 years agoApply patch from Giulio Orsero <giulioo@pobox.com> to ensure
Eric Andersen [Sun, 1 Oct 2000 17:01:36 +0000 (17:01 -0000)]
Apply patch from Giulio Orsero <giulioo@pobox.com> to ensure
get_last_path_component is defined under all configurations,
 -Erik

24 years agoGeneral cleanup of comments, defines, includes, and global variables, removed those...
Glenn L McGrath [Fri, 29 Sep 2000 06:46:59 +0000 (06:46 -0000)]
General cleanup of comments, defines, includes, and global variables, removed those that arent needed, grouped those remaining at the top.
Re-ordered functions to the order they are called.
Removed static crc table, it now generates the table once for itself.
Results in source reduced by 40%, so it should be a lot easier to work on in the future, binary size only reduced by under 2KB though.

24 years agoFixes to allow compilation on systems with glibc 2.1.92
Pavel Roskin [Thu, 28 Sep 2000 20:52:55 +0000 (20:52 -0000)]
Fixes to allow compilation on systems with glibc 2.1.92

24 years ago+ shortened main() a little, and a few aesthetic cleanups here & there.
John Beppu [Thu, 28 Sep 2000 17:49:59 +0000 (17:49 -0000)]
+ shortened main() a little, and a few aesthetic cleanups here & there.

24 years agoRewrote head to perservere when it can't open a file, and share code
Matt Kraai [Wed, 27 Sep 2000 04:09:22 +0000 (04:09 -0000)]
Rewrote head to perservere when it can't open a file, and share code
with cat.

24 years agoContinue concatenating files even if we can't open one.
Matt Kraai [Wed, 27 Sep 2000 03:01:40 +0000 (03:01 -0000)]
Continue concatenating files even if we can't open one.

24 years agoConsolidate handling of some fopen failures.
Matt Kraai [Wed, 27 Sep 2000 02:43:35 +0000 (02:43 -0000)]
Consolidate handling of some fopen failures.

24 years agoRewrote uniq to be less than a third of the size, and fixed some other
Matt Kraai [Wed, 27 Sep 2000 02:29:39 +0000 (02:29 -0000)]
Rewrote uniq to be less than a third of the size, and fixed some other
minor problems.

24 years agoFix up the docs
Eric Andersen [Tue, 26 Sep 2000 22:20:06 +0000 (22:20 -0000)]
Fix up the docs

24 years agoupdate the docs
Eric Andersen [Tue, 26 Sep 2000 06:15:12 +0000 (06:15 -0000)]
update the docs

24 years agoLog the devps patch update 0_47
Eric Andersen [Tue, 26 Sep 2000 05:08:04 +0000 (05:08 -0000)]
Log the devps patch update

24 years agoFinal touchups for the release...
Eric Andersen [Tue, 26 Sep 2000 05:02:50 +0000 (05:02 -0000)]
Final touchups for the release...
 -Erik

24 years agoAdd in busybox.h. I renamed it, and forgot to commit the newky named version.
Eric Andersen [Tue, 26 Sep 2000 01:09:18 +0000 (01:09 -0000)]
Add in busybox.h.  I renamed it, and forgot to commit the newky named version.
 -Erik

24 years agoYet more polish (thanks again to kent robotti for the bug reports).
Eric Andersen [Tue, 26 Sep 2000 01:00:15 +0000 (01:00 -0000)]
Yet more polish (thanks again to kent robotti for the bug reports).
 -Erik

24 years agoRemove all reference to the now obsolete /dev/modules
Eric Andersen [Tue, 26 Sep 2000 00:52:05 +0000 (00:52 -0000)]
Remove all reference to the now obsolete /dev/modules
 -Erik

24 years agoUpdate my devps patch for the latest 2.2 kernel.
Eric Andersen [Tue, 26 Sep 2000 00:20:28 +0000 (00:20 -0000)]
Update my devps patch for the latest 2.2 kernel.
 -Erik

24 years agoFix name
Eric Andersen [Mon, 25 Sep 2000 22:53:33 +0000 (22:53 -0000)]
Fix name

24 years agoSome more polish to make xargs act like GNU xargs (thanks to kent robotti
Eric Andersen [Mon, 25 Sep 2000 22:53:05 +0000 (22:53 -0000)]
Some more polish to make xargs act like GNU xargs (thanks to kent robotti
<robotti@metconnect.com> for testing and pointing out the differences)
 -Erik

24 years agoRenamed "internal.h" to the more sensible "busybox.h".
Eric Andersen [Mon, 25 Sep 2000 21:45:58 +0000 (21:45 -0000)]
Renamed "internal.h" to the more sensible "busybox.h".
 -Erik

24 years agoGratuitously changed the file "busybox.defs.h" to the more
Eric Andersen [Mon, 25 Sep 2000 21:28:07 +0000 (21:28 -0000)]
Gratuitously changed the file "busybox.defs.h" to the more
sensible and noticable "Config.h".
 -Erik

24 years agoFix from Matt Kraai for the to the "busybox --install prints out on STDERR
Eric Andersen [Mon, 25 Sep 2000 20:35:54 +0000 (20:35 -0000)]
Fix from Matt Kraai for the  to the "busybox --install prints out on STDERR
"File already exists" messages for all files (including the ones that DON'T
exist)" problem reported by "Bruno L. F. Cabral" <bruno@openline.com.br>.

Thanks Matt!
 -Erik

24 years agoFinal (I think) version of xargs. Throw away all that tedious string
Eric Andersen [Mon, 25 Sep 2000 20:23:21 +0000 (20:23 -0000)]
Final (I think) version of xargs.  Throw away all that tedious string
scrubbing, and quit using system.  Instead, use fork() and exec(), which
yields and smaller, simpler, and cleaner design.
 -Erik

24 years agoBe ever so pedantic about escaping chars that the shell might not like...
Eric Andersen [Mon, 25 Sep 2000 18:41:18 +0000 (18:41 -0000)]
Be ever so pedantic about escaping chars that the shell might not like...

24 years agoRemove a now unneeded check
Eric Andersen [Mon, 25 Sep 2000 16:58:39 +0000 (16:58 -0000)]
Remove a now unneeded check

24 years agomodified by Bryan Rittmeyer <bryan@ixiacom.com> to support SH4
Eric Andersen [Sun, 24 Sep 2000 03:44:29 +0000 (03:44 -0000)]
modified by Bryan Rittmeyer <bryan@ixiacom.com> to support SH4

24 years agoUpdate newdoc dependancy
Eric Andersen [Sun, 24 Sep 2000 02:42:48 +0000 (02:42 -0000)]
Update newdoc dependancy

24 years agoUpdate a few entries for 0.47...
Eric Andersen [Sun, 24 Sep 2000 02:42:18 +0000 (02:42 -0000)]
Update a few entries for 0.47...

24 years agoDoc update
Eric Andersen [Sun, 24 Sep 2000 02:41:44 +0000 (02:41 -0000)]
Doc update

24 years agoFix up xargs so that things like 'cat cat.c | xargs echo' will
Eric Andersen [Sun, 24 Sep 2000 02:40:56 +0000 (02:40 -0000)]
Fix up xargs so that things like 'cat cat.c | xargs echo' will
work properly.
 -Erik

24 years agoFix xargs option parsing
Eric Andersen [Sun, 24 Sep 2000 01:12:54 +0000 (01:12 -0000)]
Fix xargs option parsing

24 years agoFix bug#1043 -- hanlde long filenames and links (in this case, by complaining
Eric Andersen [Sun, 24 Sep 2000 00:54:37 +0000 (00:54 -0000)]
Fix bug#1043 -- hanlde long filenames and links (in this case, by complaining
that thay exist and skipping such files when extracting and when archiving.
 -Erik

24 years agoFix an obscure option parsing bug.
Eric Andersen [Sat, 23 Sep 2000 22:36:24 +0000 (22:36 -0000)]
Fix an obscure option parsing bug.

24 years agoForce optind=1 for libc5 when doing cp in cp_mv.c
Eric Andersen [Sat, 23 Sep 2000 20:55:59 +0000 (20:55 -0000)]
Force optind=1 for libc5 when doing cp in cp_mv.c

24 years agoFix potential memory overrun...
Eric Andersen [Sat, 23 Sep 2000 19:56:46 +0000 (19:56 -0000)]
Fix potential memory overrun...

24 years agoFix the bandaid.
Eric Andersen [Sat, 23 Sep 2000 19:55:59 +0000 (19:55 -0000)]
Fix the bandaid.

24 years agoFix memory problems, and make behavior correct.
Eric Andersen [Sat, 23 Sep 2000 19:53:31 +0000 (19:53 -0000)]
Fix memory problems, and make behavior correct.

24 years agoupdate docs for xargs
Eric Andersen [Sat, 23 Sep 2000 06:12:34 +0000 (06:12 -0000)]
update docs for xargs

24 years agoupdate usage for xargs
Eric Andersen [Sat, 23 Sep 2000 06:11:03 +0000 (06:11 -0000)]
update usage for xargs

24 years agorewrite, so it should be firly clean now
Eric Andersen [Sat, 23 Sep 2000 06:10:14 +0000 (06:10 -0000)]
rewrite, so it should be firly clean now

24 years agoUse minix xargs instead, and update docs accordingly
Eric Andersen [Fri, 22 Sep 2000 20:22:28 +0000 (20:22 -0000)]
Use minix xargs instead, and update docs accordingly
 -Erik

24 years agoComment on xargs choice.
Eric Andersen [Fri, 22 Sep 2000 20:02:34 +0000 (20:02 -0000)]
Comment on xargs choice.

24 years agoAdd in xargs
Eric Andersen [Fri, 22 Sep 2000 20:01:23 +0000 (20:01 -0000)]
Add in xargs

24 years agoStart the great EXIT_{SUCCESS,FAILURE} migration.
Matt Kraai [Fri, 22 Sep 2000 03:45:34 +0000 (03:45 -0000)]
Start the great EXIT_{SUCCESS,FAILURE} migration.

24 years agoClean up error messages.
Matt Kraai [Fri, 22 Sep 2000 03:36:27 +0000 (03:36 -0000)]
Clean up error messages.

24 years agoAdd support for the -L option to ls.
Matt Kraai [Fri, 22 Sep 2000 03:11:47 +0000 (03:11 -0000)]
Add support for the -L option to ls.

24 years agoFix loop.h dependencies.
Matt Kraai [Fri, 22 Sep 2000 02:33:29 +0000 (02:33 -0000)]
Fix loop.h dependencies.

24 years agoApply a bandaid suggested by Jon McClintock <jonm@bluemug.com>, since deallocvt
Eric Andersen [Fri, 22 Sep 2000 00:40:39 +0000 (00:40 -0000)]
Apply a bandaid suggested by Jon McClintock <jonm@bluemug.com>, since deallocvt
has code for handling no arguments, but the usage checking code aborted if
there are any other than two arguments.
 -Erik

24 years agoFix for bug #1042 -- applied the patch from Larry Doolittle
Eric Andersen [Fri, 22 Sep 2000 00:38:07 +0000 (00:38 -0000)]
Fix for bug #1042 -- applied the patch from Larry Doolittle
<ldoolitt@recycle.lbl.gov> to fix the bug.
 -Erik

24 years agoBetter cross libc compatibility (so Dave Cinege can stop complaining
Eric Andersen [Fri, 22 Sep 2000 00:22:10 +0000 (00:22 -0000)]
Better cross libc compatibility (so Dave Cinege can stop complaining
that I broke it).
 -Erik

24 years agoDecouple DODEBUG and DOSTATIC
Eric Andersen [Thu, 21 Sep 2000 22:26:02 +0000 (22:26 -0000)]
Decouple DODEBUG and DOSTATIC