oweals/busybox.git
23 years agoMake HUMAN_READABLE be single argument like the others.
Eric Andersen [Fri, 23 Feb 2001 13:23:03 +0000 (13:23 -0000)]
Make HUMAN_READABLE be single argument like the others.

23 years agoforgot a comma.
John Beppu [Fri, 23 Feb 2001 13:04:39 +0000 (13:04 -0000)]
forgot a comma.

23 years agoMore usage cleanups from kent robotti. I know some of these were
Eric Andersen [Fri, 23 Feb 2001 10:07:09 +0000 (10:07 -0000)]
More usage cleanups from kent robotti.  I know some of these were
applied previously but apparently lost with some of the latest changes.

23 years agoFix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>
Eric Andersen [Fri, 23 Feb 2001 06:36:53 +0000 (06:36 -0000)]
Fix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>

23 years agospace after \ make preprocessor sad
David Kimdon [Fri, 23 Feb 2001 06:03:22 +0000 (06:03 -0000)]
space after \ make preprocessor sad

23 years agoutility.c must include stdarg.h
David Kimdon [Fri, 23 Feb 2001 03:55:24 +0000 (03:55 -0000)]
utility.c must include stdarg.h

23 years agoI can't leave it alone.
John Beppu [Fri, 23 Feb 2001 03:12:45 +0000 (03:12 -0000)]
I can't leave it alone.

23 years agominor cleanup... all that's left to do is
John Beppu [Fri, 23 Feb 2001 02:54:31 +0000 (02:54 -0000)]
minor cleanup...  all that's left to do is
* make headers and footers for both the POD and SGML content
* make an SGML generator
* finish the command-line handling

Also, some of the documentation in usage.h will have to
be adjusted.  expr needs some lines to be indented, and
ls has a stray comma.  I may have missed some things...
but it looks OK for the most part.

23 years agoThis is the remixed autodocufier.pl.
John Beppu [Fri, 23 Feb 2001 02:33:28 +0000 (02:33 -0000)]
This is the remixed autodocufier.pl.

23 years agoStub out pivot_root so it won't fail to compile.
Eric Andersen [Fri, 23 Feb 2001 02:31:03 +0000 (02:31 -0000)]
Stub out pivot_root so it won't fail to compile.
 -Erik

23 years agoSomewhere along the line, MAKE_LINKS got broken, thereby breaking
Eric Andersen [Fri, 23 Feb 2001 02:16:29 +0000 (02:16 -0000)]
Somewhere along the line, MAKE_LINKS got broken, thereby breaking
'make install'.  Fix that.

23 years agoArgh. I should know to compile first.
Eric Andersen [Fri, 23 Feb 2001 02:04:33 +0000 (02:04 -0000)]
Argh.  I should know to compile first.

23 years agoOnly default to BB_FEATURE_NEW_MODULE_INTERFACE when
Eric Andersen [Fri, 23 Feb 2001 02:00:35 +0000 (02:00 -0000)]
Only default to BB_FEATURE_NEW_MODULE_INTERFACE when
BB_FEATURE_OLD_MODULE_INTERFACE is not defined.
 -Erik

23 years agoMake utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
Eric Andersen [Fri, 23 Feb 2001 01:58:18 +0000 (01:58 -0000)]
Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
is enabled.
 -Erik

23 years agoYet another fix. I think I got it this time.
Eric Andersen [Fri, 23 Feb 2001 01:39:26 +0000 (01:39 -0000)]
Yet another fix.  I think I got it this time.
 -Erik

23 years agoI should be more careful...
Eric Andersen [Fri, 23 Feb 2001 00:05:56 +0000 (00:05 -0000)]
I should be more careful...

23 years agoTurn off the printf attribute for the ?error_msg* functions, since it
Eric Andersen [Thu, 22 Feb 2001 23:38:48 +0000 (23:38 -0000)]
Turn off the printf attribute for the ?error_msg* functions, since it
is ok to pass them a NULL, unlike printf.  This silences a pointless
warning message.
 -Erik

23 years agoAdd in kent robotti's updated dos2unix.c
Eric Andersen [Thu, 22 Feb 2001 23:37:30 +0000 (23:37 -0000)]
Add in kent robotti's updated dos2unix.c

23 years agoFix up Makefile -- uClibc nfs works these days
Eric Andersen [Thu, 22 Feb 2001 23:36:30 +0000 (23:36 -0000)]
Fix up Makefile -- uClibc nfs works these days

23 years agoCommit a few updates to the usage messages.
Eric Andersen [Thu, 22 Feb 2001 23:32:59 +0000 (23:32 -0000)]
Commit a few updates to the usage messages.

23 years agoFirst pass at making up an automagical usage message extractor, which
Eric Andersen [Thu, 22 Feb 2001 22:47:06 +0000 (22:47 -0000)]
First pass at making up an automagical usage message extractor, which
will be used (when it works) to autogenerate documentation.  Based on
code written by Mark Whitley.

23 years agoAccount for remainder, and reset page_height for each and every page.
Eric Andersen [Thu, 22 Feb 2001 21:49:32 +0000 (21:49 -0000)]
Account for remainder, and reset page_height for each and every page.

23 years agoMake busybox and busybox-static conflict/replace each other
Eric Andersen [Thu, 22 Feb 2001 05:21:35 +0000 (05:21 -0000)]
Make busybox and busybox-static conflict/replace each other

23 years agoFix malformed build-depends. Update list of bugs to close
Eric Andersen [Thu, 22 Feb 2001 05:08:16 +0000 (05:08 -0000)]
Fix malformed build-depends.  Update list of bugs to close
 -Erik

23 years agoMake md5sum not display filename when reading stdin
Eric Andersen [Thu, 22 Feb 2001 04:59:16 +0000 (04:59 -0000)]
Make md5sum not display filename when reading stdin
 -Erik

23 years agoMake init compile when DEBUG_INIT is enabled
Eric Andersen [Thu, 22 Feb 2001 04:55:33 +0000 (04:55 -0000)]
Make init compile when DEBUG_INIT is enabled
 -Erik

23 years agoAnother update to the way usage messages are done by Evin Robertson
Eric Andersen [Thu, 22 Feb 2001 01:15:47 +0000 (01:15 -0000)]
Another update to the way usage messages are done by Evin Robertson
<nitfol@my-deja.com>, which makes things just a little bit smaller, but makes
usage.h more readable/maintainable IMHO.
 -Erik

23 years agoRevert my change to do extra termType checking. That is done elsewhere.
Eric Andersen [Thu, 22 Feb 2001 00:50:20 +0000 (00:50 -0000)]
Revert my change to do extra termType checking.  That is done elsewhere.
Silly me.
 -Erik

23 years agoAdjust the terminal height for any overlap, so that no lines
Eric Andersen [Thu, 22 Feb 2001 00:22:46 +0000 (00:22 -0000)]
Adjust the terminal height for any overlap, so that no lines
get lost off the top
 -Erik

23 years agoOops! I left in my debug noise.
Eric Andersen [Wed, 21 Feb 2001 00:27:22 +0000 (00:27 -0000)]
Oops!  I left in my debug noise.

23 years agodf was totally broken. So I fixed it.
Eric Andersen [Wed, 21 Feb 2001 00:24:51 +0000 (00:24 -0000)]
df was totally broken.  So I fixed it.
 -Erik

23 years agoSmall patch from Kent Robotti to show megabytes in human-readable output.
Mark Whitley [Tue, 20 Feb 2001 21:57:55 +0000 (21:57 -0000)]
Small patch from Kent Robotti to show megabytes in human-readable output.

23 years agoMinor cleanup.
Eric Andersen [Tue, 20 Feb 2001 21:52:49 +0000 (21:52 -0000)]
Minor cleanup.

23 years agoApply a patch from Magnus Damm <damm@opensource.se> to support
Eric Andersen [Tue, 20 Feb 2001 20:47:08 +0000 (20:47 -0000)]
Apply a patch from Magnus Damm <damm@opensource.se> to support
powerpc with busybox insmod
 -Erik

23 years agoCommit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
Eric Andersen [Tue, 20 Feb 2001 18:01:50 +0000 (18:01 -0000)]
Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
environment variables set from the kernel command line to be inherited
bu application programs.  Slightly changed to special case handling of
TERM, so that it has sane defaults when on a serial console.
 -Erik

23 years agoOops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
Eric Andersen [Tue, 20 Feb 2001 06:42:29 +0000 (06:42 -0000)]
Oops.  Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
after busybox.h is included.

23 years agoThis fixes lash so it handles environment variable expansion, regardless
Eric Andersen [Tue, 20 Feb 2001 06:38:44 +0000 (06:38 -0000)]
This fixes lash so it handles environment variable expansion, regardless
of where the environment variables are located in an argument.  This allows
things like 'echo foo$1$SHELL' to expand the same way bash would expand it.
Of course, to make this work I introduced a memory leak, and I am too tired
to find a way to fix it.
 -Erik

23 years agoCleanup the use of 'find' to prevent error msgs.
Eric Andersen [Tue, 20 Feb 2001 06:22:54 +0000 (06:22 -0000)]
Cleanup the use of 'find' to prevent error msgs.
 -Erik

23 years agoOops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS
Eric Andersen [Tue, 20 Feb 2001 06:16:29 +0000 (06:16 -0000)]
Oops.  Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS
 -Erik

23 years agoIt turns out that DODMALLOC was broken when I reorganized busybox.h
Eric Andersen [Tue, 20 Feb 2001 06:14:08 +0000 (06:14 -0000)]
It turns out that DODMALLOC was broken when I reorganized busybox.h
header file usage before the 0.49 release.  To fix it, I had to move
the '#include "busybox.h"' to the end of the list of #include files.
 -Erik

23 years agoPut back Vladimir's testing defines, which I mistakenly removed.
Eric Andersen [Sun, 18 Feb 2001 20:26:48 +0000 (20:26 -0000)]
Put back Vladimir's testing defines, which I mistakenly removed.

23 years agoA few more cleanups from Vladimir.
Eric Andersen [Sun, 18 Feb 2001 20:15:36 +0000 (20:15 -0000)]
A few more cleanups from Vladimir.

23 years agoAnother patch from Vladimir to eliminate obsolete junk.
Eric Andersen [Sun, 18 Feb 2001 20:13:18 +0000 (20:13 -0000)]
Another patch from Vladimir to eliminate obsolete junk.

23 years agoA small cleanup by Vladimir
Eric Andersen [Sun, 18 Feb 2001 20:12:25 +0000 (20:12 -0000)]
A small cleanup by Vladimir

23 years agoRemove leftover junk
Eric Andersen [Sun, 18 Feb 2001 20:11:38 +0000 (20:11 -0000)]
Remove leftover junk

23 years agoGet rid of long stale usage message code.
Eric Andersen [Sat, 17 Feb 2001 16:52:35 +0000 (16:52 -0000)]
Get rid of long stale usage message code.
 -Erik

23 years agoA bunch of usage clenups from kent robotti <robotti@metconnect.com>
Eric Andersen [Sat, 17 Feb 2001 16:49:00 +0000 (16:49 -0000)]
A bunch of usage clenups from kent robotti <robotti@metconnect.com>
 -Erik

23 years agoMore updates from Larry Doolittle. Don't use basedir, Don't assume
Eric Andersen [Sat, 17 Feb 2001 15:56:52 +0000 (15:56 -0000)]
More updates from Larry Doolittle.  Don't use basedir, Don't assume
random makefiles are going to work with busybox.

23 years agoMore updates.
Eric Andersen [Sat, 17 Feb 2001 15:55:15 +0000 (15:55 -0000)]
More updates.

23 years agoIgnore applet_source_list
Eric Andersen [Sat, 17 Feb 2001 03:08:32 +0000 (03:08 -0000)]
Ignore applet_source_list

23 years agoUpdate the build system for pristine source directory builds. This
Eric Andersen [Sat, 17 Feb 2001 00:42:47 +0000 (00:42 -0000)]
Update the build system for pristine source directory builds.  This
update is primarily work done by Larry Doolittle, but I did some
touchups of my own to make it work for me,
 -Erik

23 years agoUpdate the debian build stuff
Eric Andersen [Sat, 17 Feb 2001 00:41:05 +0000 (00:41 -0000)]
Update the debian build stuff
 -Erik

23 years agoThrow out the obsolete INIT_CHROOT junk
Eric Andersen [Sat, 17 Feb 2001 00:40:32 +0000 (00:40 -0000)]
Throw out the obsolete INIT_CHROOT junk

23 years agoSeveral features were hard coded on. Stop that. List tab completion
Eric Andersen [Fri, 16 Feb 2001 20:26:50 +0000 (20:26 -0000)]
Several features were hard coded on.  Stop that.  List tab completion
as working (thanks Vladimir!) and taking 4k.
 -Erik

23 years agoCommit Vladimir's latest cmdedit. I modified it slightly to ensure
Eric Andersen [Fri, 16 Feb 2001 20:09:17 +0000 (20:09 -0000)]
Commit Vladimir's latest cmdedit.  I modified it slightly to ensure
parse_prompt() would be called before cmdedit_init(), since cmdedit_init()
calls cmdedit_setwidth() which uses cmdedit_prmt_len, which is set by
parse_prompt().  Also, added a mod, so very narrow terminals should now wrap
properly...  This is working very nicely for me -- Vladimir has done some
very good work.

23 years agoRevert multibuild.pl change.
Eric Andersen [Fri, 16 Feb 2001 19:07:21 +0000 (19:07 -0000)]
Revert multibuild.pl change.

23 years agoRegression testing bugfixes from Larry Doolittle. As an aside,
Eric Andersen [Fri, 16 Feb 2001 18:43:54 +0000 (18:43 -0000)]
Regression testing bugfixes from Larry Doolittle.  As an aside,
can I just say how much I am looking forward to having 0.50
released, so we can address this #define stupidness properly
by building a static libbusybox, and then letting the linker
sort out the dependancies....  Ahh, that will be much nicer.
 -Erik

23 years agoDo usage messages the same way all other apps fo them.
Eric Andersen [Fri, 16 Feb 2001 18:41:12 +0000 (18:41 -0000)]
Do usage messages the same way all other apps fo them.
Skip printing of available options (can't do this easily).
Based on a patch by Larry Doolittle.
 -Erik

23 years agoPatch from Larry Doolittle to cross things in multibuild.pl
Eric Andersen [Fri, 16 Feb 2001 18:37:00 +0000 (18:37 -0000)]
Patch from Larry Doolittle to cross things in multibuild.pl

23 years agoMake ar be crossed.
Eric Andersen [Fri, 16 Feb 2001 18:36:04 +0000 (18:36 -0000)]
Make ar be crossed.

23 years agoMake dpkg require dpkg-deb
Eric Andersen [Fri, 16 Feb 2001 18:35:06 +0000 (18:35 -0000)]
Make dpkg require dpkg-deb

23 years agoFix warning for implicit declaration of time()
Glenn L McGrath [Fri, 16 Feb 2001 10:33:30 +0000 (10:33 -0000)]
Fix warning for implicit declaration of time()

23 years agoFix compile error, sync() always returns 0 anyway.
Glenn L McGrath [Fri, 16 Feb 2001 10:21:35 +0000 (10:21 -0000)]
Fix compile error, sync() always returns 0 anyway.

23 years agoAnother small formatting change from Larry Doolittle.
Mark Whitley [Thu, 15 Feb 2001 23:31:40 +0000 (23:31 -0000)]
Another small formatting change from Larry Doolittle.

23 years agoApplied patch from Larry Doolittle that does the following:
Mark Whitley [Thu, 15 Feb 2001 23:00:48 +0000 (23:00 -0000)]
Applied patch from Larry Doolittle that does the following:
 - style changes
 - It actually returns the code computed by INET_setroute (wasn't being done
   properly before)
 - The displayroute() format string now matches net-tools

23 years agoAcknowledge Kenneth Chalmers ln fix.
Eric Andersen [Thu, 15 Feb 2001 20:13:59 +0000 (20:13 -0000)]
Acknowledge Kenneth Chalmers ln fix.

23 years agouse perror_msg instead of perror to print the applet name.
Eric Andersen [Thu, 15 Feb 2001 20:12:05 +0000 (20:12 -0000)]
use perror_msg instead of perror to print the applet name.
 -Erik

23 years agofix a few mallocs to be xmallocs.
Eric Andersen [Thu, 15 Feb 2001 19:50:11 +0000 (19:50 -0000)]
fix a few mallocs to be xmallocs.
 -Erik

23 years agoPatch from Matt Kraai to fix bug #1103. I've tested it,
Eric Andersen [Thu, 15 Feb 2001 19:07:43 +0000 (19:07 -0000)]
Patch from Matt Kraai to fix bug #1103.  I've tested it,
and it indeed seems to fix things.
 -Erik

23 years agoFixed 'ls -s' so it actually displays block sizes again.
Eric Andersen [Thu, 15 Feb 2001 18:59:02 +0000 (18:59 -0000)]
Fixed 'ls -s' so it actually displays block sizes again.
 -Erik

23 years agoMake usage.c depend on usage.h
Eric Andersen [Wed, 14 Feb 2001 21:52:18 +0000 (21:52 -0000)]
Make usage.c depend on usage.h
 -Erik

23 years agoFins find message.
Eric Andersen [Wed, 14 Feb 2001 21:51:54 +0000 (21:51 -0000)]
Fins find message.

23 years agoI forgot to add usage.h, so here it is, with a few extra cleanups.
Eric Andersen [Wed, 14 Feb 2001 21:46:30 +0000 (21:46 -0000)]
I forgot to add usage.h, so here it is, with a few extra cleanups.
Also update show_usage to handle the updated usage.h.  Again,
nearly all the work to get usage.h into shape was done by
Manuel Novoa III.
 -Erik

23 years agoThis patch, put together by Manuel Novoa III, is a merge of work
Eric Andersen [Wed, 14 Feb 2001 21:23:06 +0000 (21:23 -0000)]
This patch, put together by Manuel Novoa III, is a merge of work
done by Evin Robertson (bug#1105) and work from Manuel to make
usage messages occupy less space and simplify how usage messages
are displayed.

23 years agoimplemented displayroute() based on a patch from Vladimir N. Oleynik,
Eric Andersen [Wed, 14 Feb 2001 19:26:39 +0000 (19:26 -0000)]
implemented displayroute() based on a patch from Vladimir N. Oleynik,
so now route behaves as expected w/o any arguments.

23 years agoCommit Vladimir's latest version of stty.c. Nice work.
Eric Andersen [Wed, 14 Feb 2001 18:47:33 +0000 (18:47 -0000)]
Commit Vladimir's latest version of stty.c.  Nice work.
 -Erik

23 years agoAdd in ifconfig and route
Eric Andersen [Wed, 14 Feb 2001 08:11:27 +0000 (08:11 -0000)]
Add in ifconfig and route

23 years agoBump rev to 0.50pre.
Eric Andersen [Wed, 14 Feb 2001 07:55:19 +0000 (07:55 -0000)]
Bump rev to 0.50pre.

23 years agoSeveral cleanups from Manuel Novoa III.
Eric Andersen [Wed, 14 Feb 2001 07:15:30 +0000 (07:15 -0000)]
Several cleanups from Manuel Novoa III.

get_kernel_revision --  size reduction
        NOTE: may want to combine with get_kernel_version in insmod???

parse_mode -- size reduction, multiple settings with "," now work correctly,
        sticky-bit setting now implemented

process_escape_sequence -- size reduction, octal code to big for char bug fixed

format -- size reduction, val > LONG_MAX and hr = 1 printing bug fixed (was %ld),

23 years agoApply a patch from Evin Robertson -- new pivot_root applet.
Eric Andersen [Tue, 13 Feb 2001 20:04:30 +0000 (20:04 -0000)]
Apply a patch from Evin Robertson -- new pivot_root applet.
 -Erik

23 years agoCloser integration with dpkg-deb and other busybox functions.
Glenn L McGrath [Mon, 12 Feb 2001 11:33:09 +0000 (11:33 -0000)]
Closer integration with dpkg-deb and other busybox functions.
Hopefully simplified some code (works for me).

23 years agoNew dpkg-deb option, warning about dpkg usage
Glenn L McGrath [Mon, 12 Feb 2001 11:27:45 +0000 (11:27 -0000)]
New dpkg-deb option, warning about dpkg usage

23 years agoNew option 'list' produces output that can be used for the packages .list file.
Glenn L McGrath [Mon, 12 Feb 2001 11:16:26 +0000 (11:16 -0000)]
New option 'list' produces output that can be used for the packages .list file.
Will be used be bb dpkg

23 years agoNew function, deb-extract to be used by dpkg, code cleanups. saves some bytes
Glenn L McGrath [Sun, 11 Feb 2001 03:32:41 +0000 (03:32 -0000)]
New function, deb-extract to be used by dpkg, code cleanups. saves some bytes

23 years agoConsmetic changes
Glenn L McGrath [Sun, 11 Feb 2001 03:15:57 +0000 (03:15 -0000)]
Consmetic changes

23 years agoMore style changes
Glenn L McGrath [Sun, 11 Feb 2001 01:40:23 +0000 (01:40 -0000)]
More style changes

23 years agoStyle changes; use get_line_from_file from utilities
Glenn L McGrath [Sun, 11 Feb 2001 00:17:22 +0000 (00:17 -0000)]
Style changes; use get_line_from_file from utilities

23 years agoBB_DPKG uses copy_file
Glenn L McGrath [Sat, 10 Feb 2001 14:53:44 +0000 (14:53 -0000)]
BB_DPKG uses copy_file

23 years agoUse copy_file from utilty.c, remove some char defines
Glenn L McGrath [Sat, 10 Feb 2001 14:53:08 +0000 (14:53 -0000)]
Use copy_file from utilty.c, remove some char defines

23 years agoBug fix, rename status file, cleanups
Glenn L McGrath [Sat, 10 Feb 2001 14:26:48 +0000 (14:26 -0000)]
Bug fix, rename status file, cleanups

23 years agoReplace status defines with const int to conform to sytle guide, adds 32 bytes
Glenn L McGrath [Sat, 10 Feb 2001 03:19:51 +0000 (03:19 -0000)]
Replace status defines with const int to conform to sytle guide, adds 32 bytes

23 years agoInitial import
Glenn L McGrath [Sat, 10 Feb 2001 02:05:24 +0000 (02:05 -0000)]
Initial import

23 years agoNew applet: dpkg
Glenn L McGrath [Sat, 10 Feb 2001 02:04:40 +0000 (02:04 -0000)]
New applet: dpkg

23 years agoFix typo.
Matt Kraai [Fri, 9 Feb 2001 18:10:53 +0000 (18:10 -0000)]
Fix typo.

23 years agoImplemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.
Mark Whitley [Fri, 9 Feb 2001 00:41:10 +0000 (00:41 -0000)]
Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.

23 years agoMinor cleanups and clarifications.
Mark Whitley [Fri, 9 Feb 2001 00:28:59 +0000 (00:28 -0000)]
Minor cleanups and clarifications.

23 years agoAdd listening support.
Matt Kraai [Wed, 7 Feb 2001 04:09:23 +0000 (04:09 -0000)]
Add listening support.

23 years agoAdded documentation for new find options.
Matt Kraai [Wed, 7 Feb 2001 04:05:35 +0000 (04:05 -0000)]
Added documentation for new find options.

23 years agoReworked find with David Douthitt to support -type, -perm, -mtime, and
Matt Kraai [Wed, 7 Feb 2001 03:52:38 +0000 (03:52 -0000)]
Reworked find with David Douthitt to support -type, -perm, -mtime, and
other improvements.

23 years agoMake suffix_mult structures const. Thanks to Vladimir N. Oleynik.
Matt Kraai [Mon, 5 Feb 2001 17:50:03 +0000 (17:50 -0000)]
Make suffix_mult structures const.  Thanks to Vladimir N. Oleynik.