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.
Pavel Roskin [Thu, 28 Sep 2000 20:52:55 +0000 (20:52 -0000)]
Fixes to allow compilation on systems with glibc 2.1.92
John Beppu [Thu, 28 Sep 2000 17:49:59 +0000 (17:49 -0000)]
+ shortened main() a little, and a few aesthetic cleanups here & there.
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.
Matt Kraai [Wed, 27 Sep 2000 03:01:40 +0000 (03:01 -0000)]
Continue concatenating files even if we can't open one.
Matt Kraai [Wed, 27 Sep 2000 02:43:35 +0000 (02:43 -0000)]
Consolidate handling of some fopen failures.
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.
Eric Andersen [Tue, 26 Sep 2000 22:20:06 +0000 (22:20 -0000)]
Fix up the docs
Eric Andersen [Tue, 26 Sep 2000 06:15:12 +0000 (06:15 -0000)]
update the docs
Eric Andersen [Tue, 26 Sep 2000 05:08:04 +0000 (05:08 -0000)]
Log the devps patch update
Eric Andersen [Tue, 26 Sep 2000 05:02:50 +0000 (05:02 -0000)]
Final touchups for the release...
-Erik
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
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
Eric Andersen [Tue, 26 Sep 2000 00:52:05 +0000 (00:52 -0000)]
Remove all reference to the now obsolete /dev/modules
-Erik
Eric Andersen [Tue, 26 Sep 2000 00:20:28 +0000 (00:20 -0000)]
Update my devps patch for the latest 2.2 kernel.
-Erik
Eric Andersen [Mon, 25 Sep 2000 22:53:33 +0000 (22:53 -0000)]
Fix name
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
Eric Andersen [Mon, 25 Sep 2000 21:45:58 +0000 (21:45 -0000)]
Renamed "internal.h" to the more sensible "busybox.h".
-Erik
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
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
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
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...
Eric Andersen [Mon, 25 Sep 2000 16:58:39 +0000 (16:58 -0000)]
Remove a now unneeded check
Eric Andersen [Sun, 24 Sep 2000 03:44:29 +0000 (03:44 -0000)]
modified by Bryan Rittmeyer <bryan@ixiacom.com> to support SH4
Eric Andersen [Sun, 24 Sep 2000 02:42:48 +0000 (02:42 -0000)]
Update newdoc dependancy
Eric Andersen [Sun, 24 Sep 2000 02:42:18 +0000 (02:42 -0000)]
Update a few entries for 0.47...
Eric Andersen [Sun, 24 Sep 2000 02:41:44 +0000 (02:41 -0000)]
Doc update
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
Eric Andersen [Sun, 24 Sep 2000 01:12:54 +0000 (01:12 -0000)]
Fix xargs option parsing
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
Eric Andersen [Sat, 23 Sep 2000 22:36:24 +0000 (22:36 -0000)]
Fix an obscure option parsing bug.
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
Eric Andersen [Sat, 23 Sep 2000 19:56:46 +0000 (19:56 -0000)]
Fix potential memory overrun...
Eric Andersen [Sat, 23 Sep 2000 19:55:59 +0000 (19:55 -0000)]
Fix the bandaid.
Eric Andersen [Sat, 23 Sep 2000 19:53:31 +0000 (19:53 -0000)]
Fix memory problems, and make behavior correct.
Eric Andersen [Sat, 23 Sep 2000 06:12:34 +0000 (06:12 -0000)]
update docs for xargs
Eric Andersen [Sat, 23 Sep 2000 06:11:03 +0000 (06:11 -0000)]
update usage for xargs
Eric Andersen [Sat, 23 Sep 2000 06:10:14 +0000 (06:10 -0000)]
rewrite, so it should be firly clean now
Eric Andersen [Fri, 22 Sep 2000 20:22:28 +0000 (20:22 -0000)]
Use minix xargs instead, and update docs accordingly
-Erik
Eric Andersen [Fri, 22 Sep 2000 20:02:34 +0000 (20:02 -0000)]
Comment on xargs choice.
Eric Andersen [Fri, 22 Sep 2000 20:01:23 +0000 (20:01 -0000)]
Add in xargs
Matt Kraai [Fri, 22 Sep 2000 03:45:34 +0000 (03:45 -0000)]
Start the great EXIT_{SUCCESS,FAILURE} migration.
Matt Kraai [Fri, 22 Sep 2000 03:36:27 +0000 (03:36 -0000)]
Clean up error messages.
Matt Kraai [Fri, 22 Sep 2000 03:11:47 +0000 (03:11 -0000)]
Add support for the -L option to ls.
Matt Kraai [Fri, 22 Sep 2000 02:33:29 +0000 (02:33 -0000)]
Fix loop.h dependencies.
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
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
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
Eric Andersen [Thu, 21 Sep 2000 22:26:02 +0000 (22:26 -0000)]
Decouple DODEBUG and DOSTATIC
Eric Andersen [Thu, 21 Sep 2000 04:09:58 +0000 (04:09 -0000)]
Remove all the kernel headers so it will compile under libc5
-Erik
Eric Andersen [Thu, 21 Sep 2000 04:05:38 +0000 (04:05 -0000)]
Fix a potential warning
Eric Andersen [Thu, 21 Sep 2000 02:48:07 +0000 (02:48 -0000)]
Add in exec support (patch from Torbj?rn Axelsson <torax@cendio.se>)
and disable backticks (since they are still wierdly broken in some
cases.
Eric Andersen [Thu, 21 Sep 2000 02:39:50 +0000 (02:39 -0000)]
Handle 'cat -'
Eric Andersen [Thu, 21 Sep 2000 02:32:11 +0000 (02:32 -0000)]
Hard code the name of init.
Eric Andersen [Thu, 21 Sep 2000 02:23:30 +0000 (02:23 -0000)]
Large file >2Gib support.
Eric Andersen [Thu, 21 Sep 2000 02:06:35 +0000 (02:06 -0000)]
Typo fix.
Eric Andersen [Thu, 21 Sep 2000 02:05:43 +0000 (02:05 -0000)]
Ignore loop.h
Eric Andersen [Thu, 21 Sep 2000 02:04:51 +0000 (02:04 -0000)]
More portable handling of loop header files, as done in util-linux
Eric Andersen [Thu, 21 Sep 2000 01:33:05 +0000 (01:33 -0000)]
Remove a warning. Patch from Bryan Rittmeyer <bryan@ixiacom.com>
Matt Kraai [Wed, 20 Sep 2000 23:10:21 +0000 (23:10 -0000)]
Only remove directories when removing recursively.
Eric Andersen [Wed, 20 Sep 2000 19:22:26 +0000 (19:22 -0000)]
Added dos2unix, unix2dos, and unrpm.c thanks to robotti@metconnect.com.
-Erik
Eric Andersen [Wed, 20 Sep 2000 06:23:36 +0000 (06:23 -0000)]
When mounting a ro fs rw, print warning and then mount it ro. Patch
from Dave Cinege.
-Erik
Matt Kraai [Wed, 20 Sep 2000 04:33:30 +0000 (04:33 -0000)]
Return failure if ping gets no response.
Eric Andersen [Tue, 19 Sep 2000 21:35:14 +0000 (21:35 -0000)]
Reverted my conversion of tar to getopt to ensure tar can
handle traditional semantics (i.e. 'tar -xvf -' or 'tar xvf'
now both work).
-Erik
Eric Andersen [Tue, 19 Sep 2000 21:13:55 +0000 (21:13 -0000)]
Both of these commands were subtly broken. Fortunately when used together the
damage was only ugly fscks. Reverted to the static inline code so they work
correctly again,
-Erik
Eric Andersen [Tue, 19 Sep 2000 07:16:39 +0000 (07:16 -0000)]
I think these featires are fairly safe...
-Erik
Matt Kraai [Tue, 19 Sep 2000 06:46:44 +0000 (06:46 -0000)]
Avoid segfaults by not using snprintf to copy strings.
Matt Kraai [Tue, 19 Sep 2000 05:25:12 +0000 (05:25 -0000)]
Clean up output.
Glenn L McGrath [Tue, 19 Sep 2000 02:25:36 +0000 (02:25 -0000)]
Only defines functions that will compile and are usefull under the
Eric Andersen [Tue, 19 Sep 2000 01:21:13 +0000 (01:21 -0000)]
Apply a patch from Chip Rosenthal <chip@unicom.com> to fix NFS mounting,
which had been inadvertantly broken...
-Erik
Glenn L McGrath [Mon, 18 Sep 2000 10:20:16 +0000 (10:20 -0000)]
Remove definition of basename.
It was defined out so that it would never be seen, and if it was ever seen it wasnt used for anything. It also stops gunzip compiling under the Hurd.
Glenn L McGrath [Mon, 18 Sep 2000 09:52:03 +0000 (09:52 -0000)]
Path count was out by one, fixed it
Glenn L McGrath [Mon, 18 Sep 2000 09:37:40 +0000 (09:37 -0000)]
Simplify and remove dependence on PATH_MAX
buf[PATH_MAX] now defined using strlen to the exact size to be used.
removed output that was displayed if which didnt find the command, this makes itmatch the behaviour of GNU's which.
These modifications result in a slight size decrease.
Matt Kraai [Fri, 15 Sep 2000 22:47:34 +0000 (22:47 -0000)]
Updated stdin/stdout treatment to match that of gnu tar.
Matt Kraai [Fri, 15 Sep 2000 22:23:41 +0000 (22:23 -0000)]
Reorganize listing code.
Matt Kraai [Fri, 15 Sep 2000 21:18:43 +0000 (21:18 -0000)]
Allow non-verbose listing to work.
Pavel Roskin [Fri, 15 Sep 2000 17:24:13 +0000 (17:24 -0000)]
Updated to be in sync with the current sample inittab
Pavel Roskin [Fri, 15 Sep 2000 17:16:40 +0000 (17:16 -0000)]
Fixed compliance with the DTD
John Beppu [Fri, 15 Sep 2000 08:04:42 +0000 (08:04 -0000)]
+ credit markw@lineo.com for his contributions
Pavel Roskin [Fri, 15 Sep 2000 01:34:17 +0000 (01:34 -0000)]
Don't suppress output of umount and swapoff - it is both unwise
and incompatible with lash that doesn't support >&1 yet.
Pavel Roskin [Fri, 15 Sep 2000 01:02:50 +0000 (01:02 -0000)]
Don't suppress output of umount and swapoff - it is both unwise
and incompatible with lash that doesn't support >&1 yet.
Pavel Roskin [Fri, 15 Sep 2000 00:46:51 +0000 (00:46 -0000)]
"exit NUMBER" should exit, not return
Pavel Roskin [Thu, 14 Sep 2000 22:47:29 +0000 (22:47 -0000)]
For "askfirst" don't just read one char from stdin,
read the whole line using getc(), so that everything before Enter
gets discarded.
Eric Andersen [Thu, 14 Sep 2000 22:01:31 +0000 (22:01 -0000)]
Add in a patch from robotti@metconnect.com and Chip Rosenthal to make
init do login shell stuff.
-Erik
Eric Andersen [Thu, 14 Sep 2000 21:56:18 +0000 (21:56 -0000)]
Note the syslogd bug fix
Eric Andersen [Thu, 14 Sep 2000 21:46:30 +0000 (21:46 -0000)]
Bug fix for wget, and proper attribution of Chip Rosenthal and
Covad Communications for the contribution of wget.
-Erik
Eric Andersen [Thu, 14 Sep 2000 21:12:20 +0000 (21:12 -0000)]
Fix the halt/reboot/poweroff segfault when used from within an initrd...
-Erik
Matt Kraai [Thu, 14 Sep 2000 00:43:20 +0000 (00:43 -0000)]
Backslashes shouldn't be treated as backticks.
Matt Kraai [Thu, 14 Sep 2000 00:26:50 +0000 (00:26 -0000)]
Copy the string terminator.
Glenn L McGrath [Wed, 13 Sep 2000 23:08:07 +0000 (23:08 -0000)]
Fix looping bug, use fullRead
Eric Andersen [Wed, 13 Sep 2000 23:06:41 +0000 (23:06 -0000)]
Add in BasicLinux by request
Pavel Roskin [Wed, 13 Sep 2000 16:52:32 +0000 (16:52 -0000)]
Added _install
Eric Andersen [Wed, 13 Sep 2000 16:15:29 +0000 (16:15 -0000)]
Ensure forked processes always are on a controlling tty, so the
^C can be properly sent to /dev/console.
-Erik
Pavel Roskin [Wed, 13 Sep 2000 14:14:29 +0000 (14:14 -0000)]
Make syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC.
Also ignore SIGCHLD - it must have been meant.
Pavel Roskin [Wed, 13 Sep 2000 14:03:48 +0000 (14:03 -0000)]
List of signals updated from util-linux-2.10o
Architecture names are no longer used - should now compile on SPARC
Matt Kraai [Wed, 13 Sep 2000 03:43:36 +0000 (03:43 -0000)]
Don't fork for the . (source) command so that environment settings are
preserved.
Matt Kraai [Wed, 13 Sep 2000 02:46:14 +0000 (02:46 -0000)]
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
segfaulting or handling errors the same way themselves.
Matt Kraai [Wed, 13 Sep 2000 02:08:21 +0000 (02:08 -0000)]
Fix unchecked calls to {m,c,re}alloc so that they print an error and
exit rather than segfaulting (what an improvement).
Pavel Roskin [Tue, 12 Sep 2000 22:05:17 +0000 (22:05 -0000)]
Typo fix: resolv -> resolve
Eric Andersen [Tue, 12 Sep 2000 16:20:49 +0000 (16:20 -0000)]
Formatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.
-Erik