oweals/busybox.git
24 years agoLatest and greatest
Erik Andersen [Sat, 8 Apr 2000 03:08:21 +0000 (03:08 -0000)]
Latest and greatest
 -Erik

24 years agoOops. Left in some debug noise.
Erik Andersen [Fri, 7 Apr 2000 16:19:30 +0000 (16:19 -0000)]
Oops.  Left in some debug noise.
 -Erik

24 years agoSlightly better fringe case handling and GNU tar like error messages.
Erik Andersen [Fri, 7 Apr 2000 06:55:38 +0000 (06:55 -0000)]
Slightly better fringe case handling and GNU tar like error messages.
 -Erik

24 years agoPatch to make killall actually kill all PIDs with the specified name,
Erik Andersen [Fri, 7 Apr 2000 06:00:07 +0000 (06:00 -0000)]
Patch to make killall actually kill all PIDs with the specified name,
rather then busylooping trying to kill the first one until it dies.
Should be more efficient now, and will only send one signal to each
specified process.
 -Erik

24 years agoSome more minor updates to better use some gcc attributes.
Erik Andersen [Thu, 6 Apr 2000 08:06:36 +0000 (08:06 -0000)]
Some more minor updates to better use some gcc attributes.
 -Erik

24 years agoFix sed regexp replacement, which I had hosed (thanks to
Erik Andersen [Thu, 6 Apr 2000 07:37:35 +0000 (07:37 -0000)]
Fix sed regexp replacement, which I had hosed (thanks to
Jim Gleason for finding and fixing the problem)
 -Erik

24 years agoFix time stamp style
Erik Andersen [Thu, 6 Apr 2000 07:25:44 +0000 (07:25 -0000)]
Fix time stamp style
 -Erik

24 years agoTurn off static linking. Duh.
Erik Andersen [Thu, 6 Apr 2000 07:24:45 +0000 (07:24 -0000)]
Turn off static linking.  Duh.
 -Erik

24 years agoUse gcc -E instead of cpp to enhance portability for brain
Erik Andersen [Thu, 6 Apr 2000 00:10:39 +0000 (00:10 -0000)]
Use gcc -E instead of cpp to enhance portability for brain
damaged platforms (i.e. OpenLinux) that do not have cpp in
the default path but instead hide it under /usr/lib/...
 -Erik

24 years agoMinor noise removal
Erik Andersen [Wed, 5 Apr 2000 05:19:03 +0000 (05:19 -0000)]
Minor noise removal
 -Erik

24 years agoTar now works perfectly. It behaves much better now then it
Erik Andersen [Wed, 5 Apr 2000 01:00:52 +0000 (01:00 -0000)]
Tar now works perfectly.  It behaves much better now then it
used to.  Only thing left to do is add in exclude (-X) option.
 -Erik

24 years agoOops. Forgot the usleep.c file.
Erik Andersen [Tue, 4 Apr 2000 18:52:02 +0000 (18:52 -0000)]
Oops.  Forgot the usleep.c file.
/me dons a paper bag.
 -Erik

24 years agousleep contributed by Nicolas Pitre <nico@cam.org>
Erik Andersen [Tue, 4 Apr 2000 18:49:18 +0000 (18:49 -0000)]
usleep contributed by Nicolas Pitre <nico@cam.org>
 -Erik

24 years agoUpdate tar so creation of tarballs is much closer to working...
Erik Andersen [Tue, 4 Apr 2000 18:39:50 +0000 (18:39 -0000)]
Update tar so creation of tarballs is much closer to working...
 -Erik

24 years agoMinor structural change to allow core dumping(or not) from init
Erik Andersen [Tue, 4 Apr 2000 18:36:37 +0000 (18:36 -0000)]
Minor structural change to allow core dumping(or not) from init
 -Erik

24 years agominor changes to mount/umount to support-by-ignoring the "-v" flag.
Erik Andersen [Tue, 4 Apr 2000 18:14:25 +0000 (18:14 -0000)]
minor changes to mount/umount to support-by-ignoring the "-v" flag.
Added optional core dumping as a feature for init, and include a rewrite
of syslogd so that it now supports multiple concurrent connections.
 -Erik

24 years agoYet another installment in the ongoing tar saga
Erik Andersen [Tue, 28 Mar 2000 00:58:14 +0000 (00:58 -0000)]
Yet another installment in the ongoing tar saga
 -Erik

24 years agoFirst stages of (re-)writing busybox's tar creation support.
Erik Andersen [Sun, 26 Mar 2000 14:03:20 +0000 (14:03 -0000)]
First stages of (re-)writing busybox's tar creation support.
 -Erik

24 years agoLatest and greatest
Erik Andersen [Sat, 25 Mar 2000 23:09:29 +0000 (23:09 -0000)]
Latest and greatest
 -Erik

24 years agoThe new tar for busybox is now done, and works just fine
Erik Andersen [Fri, 24 Mar 2000 00:54:46 +0000 (00:54 -0000)]
The new tar for busybox is now done, and works just fine
for extracting files.  Creation of tarballs is next...
 -Erik

24 years agoMore changes that are broken. It doesn't compile
Erik Andersen [Thu, 23 Mar 2000 04:27:58 +0000 (04:27 -0000)]
More changes that are broken.  It doesn't compile
yet, but is closer.
 -Erik

24 years agoMy latest ramblings.
Erik Andersen [Thu, 23 Mar 2000 01:09:18 +0000 (01:09 -0000)]
My latest ramblings.
 -Erik

24 years agoUse the nice new find_real_root_device function to find the
Erik Andersen [Wed, 22 Mar 2000 07:12:05 +0000 (07:12 -0000)]
Use the nice new find_real_root_device function to find the
name of the root device, instead of having libc read whatever
lies happen to be in /etc/mtab.
 -Erik

24 years agoAdd in a nifty function for mount to use.
Erik Andersen [Wed, 22 Mar 2000 00:58:54 +0000 (00:58 -0000)]
Add in a nifty function for mount to use.
 -Erik

24 years ago* all mallocs now use xmalloc (and so are OOM error safe), and
Erik Andersen [Tue, 21 Mar 2000 22:32:57 +0000 (22:32 -0000)]
* all mallocs now use xmalloc (and so are OOM error safe), and
the common error handling saves a few bytes.  Thanks to
Bob Tinsley <bob@earthrise.demon.co.uk> for the patch.
 -Erik

24 years agoHmm. Missed this change
Erik Andersen [Tue, 21 Mar 2000 01:31:24 +0000 (01:31 -0000)]
Hmm.  Missed this change

24 years agoFix bug in memory total checking.
Erik Andersen [Mon, 20 Mar 2000 21:34:52 +0000 (21:34 -0000)]
Fix bug in memory total checking.
 -Erik

24 years agomore minor fixes
Erik Andersen [Sun, 19 Mar 2000 10:46:06 +0000 (10:46 -0000)]
more minor fixes
 -Erik

24 years agoSome more stuff.
Erik Andersen [Sun, 19 Mar 2000 05:28:55 +0000 (05:28 -0000)]
Some more stuff.
 -Erik

24 years agoAdjust the termio settings, and don't use octal since it
Erik Andersen [Sun, 19 Mar 2000 05:13:49 +0000 (05:13 -0000)]
Adjust the termio settings, and don't use octal since it
is impossible to read by mere mortals.
 -Erik

24 years agoMinor update
Erik Andersen [Fri, 17 Mar 2000 20:49:55 +0000 (20:49 -0000)]
Minor update

24 years agoSeveral fixes.
Erik Andersen [Fri, 17 Mar 2000 01:12:41 +0000 (01:12 -0000)]
Several fixes.
 -Erik

24 years agoFix fg bug
Erik Andersen [Thu, 16 Mar 2000 08:12:48 +0000 (08:12 -0000)]
Fix fg bug
 -Erik

24 years agoForgot these files...
Erik Andersen [Thu, 16 Mar 2000 08:09:57 +0000 (08:09 -0000)]
Forgot these files...
 -Erik

24 years agoMajor build system updates...
Erik Andersen [Thu, 16 Mar 2000 08:09:09 +0000 (08:09 -0000)]
Major build system updates...
 -Erik

24 years agoBug fix
Erik Andersen [Tue, 14 Mar 2000 16:34:49 +0000 (16:34 -0000)]
Bug fix
 -Erik

24 years agoSome bug fixes I forgot to check-in the other day.
Erik Andersen [Mon, 13 Mar 2000 04:07:02 +0000 (04:07 -0000)]
Some bug fixes I forgot to check-in the other day.
Mounting loop devices w/o specifying the filesystem
type choked if it didn't guess right the first time.
 -Erik

24 years agoFirst pass at writing a shell for busybox.
Erik Andersen [Sun, 12 Mar 2000 23:49:18 +0000 (23:49 -0000)]
First pass at writing a shell for busybox.
Works fine, full job control support, etc.
No syntax yet (if, then, while, etc).  Handles
pipes and & processes fine.

TODO: add command editing, add syntax suport.

 -Erik

24 years agoChange BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simpler 0_43pre1
Erik Andersen [Wed, 8 Mar 2000 14:50:47 +0000 (14:50 -0000)]
Change BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simpler
BB_FEATURE_USE_DEVPS_PATCH.
 -Erik

24 years agoFirst edition of my Busybox kernel patch. implements devps, devmtab, and
Erik Andersen [Wed, 8 Mar 2000 06:52:04 +0000 (06:52 -0000)]
First edition of my Busybox kernel patch.  implements devps, devmtab, and
devmodules.  With this patch, you can enable BB_FEATURE_USE_DEVPS_N_DEVMTAB and
have a completely full featured busybox without having to even compile /proc
into the kernel.  I'm pretty proud of this patch.  It has a few loose ends that
should be filled in sometime, but arn't used by busybox (so they arn't very
important).

 -Erik

24 years agoFixed up lsmod so it works with my devmodules kernel driver,
Erik Andersen [Wed, 8 Mar 2000 06:42:34 +0000 (06:42 -0000)]
Fixed up lsmod so it works with my devmodules kernel driver,
and with /proc.
 -Erik

24 years ago+ changed a static array (FileList) into a dynamically allocated one
John Beppu [Wed, 8 Mar 2000 00:14:35 +0000 (00:14 -0000)]
+ changed a static array (FileList) into a dynamically allocated one
  in an attempt to make the .bss section smaller.

24 years agoFix bugs related to finding PIDs.
Erik Andersen [Tue, 7 Mar 2000 23:32:17 +0000 (23:32 -0000)]
Fix bugs related to finding PIDs.
 -Erik

24 years agoFix up some #define stuff to ensure the Right Thing(tm)
Erik Andersen [Tue, 7 Mar 2000 07:58:57 +0000 (07:58 -0000)]
Fix up some #define stuff to ensure the Right Thing(tm)
happens with all combinations of BB_KILL and BB_KILLALL
being defined.
 -Erik

24 years agoAdd some description
Erik Andersen [Tue, 7 Mar 2000 07:48:53 +0000 (07:48 -0000)]
Add some description
 -Erik

24 years agoAdd a #define to make init extra quiet on boot.
Erik Andersen [Tue, 7 Mar 2000 07:47:10 +0000 (07:47 -0000)]
Add a #define to make init extra quiet on boot.
 -Erik

24 years agoWrote killall.
Erik Andersen [Tue, 7 Mar 2000 07:41:42 +0000 (07:41 -0000)]
Wrote killall.

Adjusted mount, ps, utility.c, etc to handle my nifty new kernel
patches the allow busybox to run perfectly without /proc.
 -Erik

24 years agoFixed a bug where "sed 's/foo/bar/g'" (i.e. a script w/o a -e)
Erik Andersen [Mon, 6 Mar 2000 19:20:35 +0000 (19:20 -0000)]
Fixed a bug where "sed 's/foo/bar/g'" (i.e. a script w/o a -e)
would go into an infinite loop.
 -Erik

24 years agoOops. I left debugging turned on...
Erik Andersen [Mon, 6 Mar 2000 18:34:48 +0000 (18:34 -0000)]
Oops.  I left debugging turned on...
 -Erik

24 years agoOops. Forgot to add in uptime when I added uptime.
Erik Andersen [Sun, 5 Mar 2000 08:16:03 +0000 (08:16 -0000)]
Oops.  Forgot to add in uptime when I added uptime.
Here it is in all its /proc free glory.
 -Erik

24 years agoAdd in tr and dirname
Erik Andersen [Sun, 5 Mar 2000 08:07:00 +0000 (08:07 -0000)]
Add in tr and dirname
 -Erik

24 years agoWrote uptime. Doesn't use /proc. :)
Erik Andersen [Sun, 5 Mar 2000 07:52:05 +0000 (07:52 -0000)]
Wrote uptime.  Doesn't use /proc. :)
 -Erik

24 years agoAdd in freeramdisk.c, which (duh) frees ramdisks. If you have any
Erik Andersen [Sat, 4 Mar 2000 22:23:27 +0000 (22:23 -0000)]
Add in freeramdisk.c, which (duh) frees ramdisks.  If you have any
ramdisks lying about and want to free up the memory they have used,
this baby is the answar you have been waiting for.
 -Erik

24 years agoA few updates (including the cp fix the Craig has been looking for)
Erik Andersen [Sat, 4 Mar 2000 21:19:32 +0000 (21:19 -0000)]
A few updates (including the cp fix the Craig has been looking for)
 -Erik

24 years agoMinor makefile and todo updates
Erik Andersen [Tue, 29 Feb 2000 21:49:22 +0000 (21:49 -0000)]
Minor makefile and todo updates
 -Erik

24 years agoMinor tweak to argv[0] handling for linuxrc
Erik Andersen [Thu, 24 Feb 2000 18:09:58 +0000 (18:09 -0000)]
Minor tweak to argv[0] handling for linuxrc
 -Erik

24 years agoFixed rebooting when init runs as /linuxrc
Erik Andersen [Wed, 23 Feb 2000 22:49:58 +0000 (22:49 -0000)]
Fixed rebooting when init runs as /linuxrc
 -Erik

24 years ago+ this is a small script for helping TargetWizard auto-generate
John Beppu [Wed, 23 Feb 2000 18:17:35 +0000 (18:17 -0000)]
+ this is a small script for helping TargetWizard auto-generate
  busybox.defs.h

24 years agoSync up a few things. Add in a new telnet implementation (still
Erik Andersen [Tue, 22 Feb 2000 17:17:45 +0000 (17:17 -0000)]
Sync up a few things.  Add in a new telnet implementation (still
not perfect though).
 -Erik

24 years agoAdd in a TODO item,
Erik Andersen [Tue, 22 Feb 2000 17:12:00 +0000 (17:12 -0000)]
Add in a TODO item,
 -Erik

24 years agoUpdate the changelog
Erik Andersen [Mon, 21 Feb 2000 21:35:11 +0000 (21:35 -0000)]
Update the changelog
 -Erik

24 years agoRemoved proc dependancies for init and free (which maintaining exactly
Erik Andersen [Mon, 21 Feb 2000 21:26:32 +0000 (21:26 -0000)]
Removed proc dependancies for init and free (which maintaining exactly
the same functionality).  /proc takes up 90k of kernel space, so it is
nice to avoid using it at all costs.  The only places where it is depended
on is for cetain optional mount/umount features, and for ps and lsmod.
 -Erik

24 years agoMinor update for handling TERM with serial consoles.
Erik Andersen [Mon, 21 Feb 2000 19:25:12 +0000 (19:25 -0000)]
Minor update for handling TERM with serial consoles.
 -Erik

24 years agoForgot to add basename. More fixes to du from
Erik Andersen [Mon, 21 Feb 2000 17:27:17 +0000 (17:27 -0000)]
Forgot to add basename.  More fixes to du from
Friedrich Vedder <fwv@myrtle.lahn.de>.
 -Erik

24 years agoFixed du. Now behaves just like GNU du (only less so).
Erik Andersen [Sat, 19 Feb 2000 18:16:49 +0000 (18:16 -0000)]
Fixed du.  Now behaves just like GNU du (only less so).
 -Erik

24 years agoSome updates for the day,
Erik Andersen [Fri, 18 Feb 2000 21:34:17 +0000 (21:34 -0000)]
Some updates for the day,
 -Erik

24 years agoFormatting fix
Erik Andersen [Mon, 14 Feb 2000 18:44:33 +0000 (18:44 -0000)]
Formatting fix
 -Erik

24 years ago- I suspect the problem has something to do w/ symlinks.
John Beppu [Sun, 13 Feb 2000 04:10:57 +0000 (04:10 -0000)]
- I suspect the problem has something to do w/ symlinks.
- It's not completely in agreement w/ GNU/du, but
+ the answer is much closer than before.
- Some of the right-shifts seem to have mysteriously disappeared.
  I put them back in.

24 years agoAdd this in 0_42
Erik Andersen [Fri, 11 Feb 2000 21:55:41 +0000 (21:55 -0000)]
Add this in
 -Erik

24 years agoUpdates
Erik Andersen [Fri, 11 Feb 2000 21:55:04 +0000 (21:55 -0000)]
Updates
 -Erik

24 years ago+ memory allocation/deallocation is less tolerant of evil.
John Beppu [Fri, 11 Feb 2000 12:52:55 +0000 (12:52 -0000)]
+ memory allocation/deallocation is less tolerant of evil.

24 years agofsck_minix.c lost fat.
John Beppu [Fri, 11 Feb 2000 12:44:07 +0000 (12:44 -0000)]
fsck_minix.c lost fat.

24 years agoreduced .bss size by dynmaically allocating a certain large
John Beppu [Fri, 11 Feb 2000 12:43:20 +0000 (12:43 -0000)]
reduced .bss size by dynmaically allocating a certain large
array instead of letting it be static.

objdump -t busybox     \
| grep .bss     \
| sed 's/^.*\.bss //' \
| grep -v ABS     \
#| perl -e 'while(<>) { @x = split; @y = reverse split(//, $x[0]); for ($i=0; $i<@y; $i++) { $s += $y[$i] * (16 ** $i); if ($y[$i] && $i > 2) { print "> $y[$i] * 16 ** $i $x[1]\n"; } } } print "$s\n";'

24 years agoFixed a bug,
Erik Andersen [Thu, 10 Feb 2000 22:58:40 +0000 (22:58 -0000)]
Fixed a bug,
 -Erik

24 years agoMore minor touchups.
Erik Andersen [Thu, 10 Feb 2000 07:31:15 +0000 (07:31 -0000)]
More minor touchups.
 -Erik

24 years agoFix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
Erik Andersen [Wed, 9 Feb 2000 16:37:08 +0000 (16:37 -0000)]
Fix stupid typos -- thanks to Taketoshi Sano <kgh12351@nifty.ne.jp>
for noticing these bugs.
 -Erik

24 years agoFix a possible /linuxrc crash.
Erik Andersen [Wed, 9 Feb 2000 06:05:01 +0000 (06:05 -0000)]
Fix a possible /linuxrc crash.
 -Erik

24 years agoUpdate the sample inittab to add the "ctrlaltdel" action.
Erik Andersen [Wed, 9 Feb 2000 04:40:25 +0000 (04:40 -0000)]
Update the sample inittab to add the "ctrlaltdel" action.
Note a bug in busybox init that I need to fix.
 -Erik

24 years agoFixed the init problem where it wouldn't unmount filesystems
Erik Andersen [Wed, 9 Feb 2000 04:16:43 +0000 (04:16 -0000)]
Fixed the init problem where it wouldn't unmount filesystems
on reboot.  Also fixed swapoff -a so it works.
 -Erik

24 years agoSome formatting updates (ran the code through indent)
Erik Andersen [Tue, 8 Feb 2000 19:58:47 +0000 (19:58 -0000)]
Some formatting updates (ran the code through indent)
 -Erik

24 years agomkdir -p had gotten broken. Fixed now.
Erik Andersen [Tue, 8 Feb 2000 06:19:29 +0000 (06:19 -0000)]
mkdir -p had gotten broken.  Fixed now.
 -Erik

24 years agoForgot a semicolon.
Erik Andersen [Mon, 7 Feb 2000 20:35:14 +0000 (20:35 -0000)]
Forgot a semicolon.
 -Erik

24 years agodevice_open is common code -- moved into utility.c
Erik Andersen [Mon, 7 Feb 2000 20:31:19 +0000 (20:31 -0000)]
device_open is common code -- moved into utility.c
 -Erik

24 years agoForgot cp and mv are now cp_mv
Erik Andersen [Mon, 7 Feb 2000 05:53:48 +0000 (05:53 -0000)]
Forgot cp and mv are now cp_mv
 -Erik

24 years agoRemove the now obsolete test. Tests now
Erik Andersen [Mon, 7 Feb 2000 05:30:41 +0000 (05:30 -0000)]
Remove the now obsolete test.  Tests now
live in the tests directory.
 -Erik

24 years agoA few minor updates. ;-)
Erik Andersen [Mon, 7 Feb 2000 05:29:42 +0000 (05:29 -0000)]
A few minor updates. ;-)

Seriously though, read the Changelog for busybox 0.42,
which this is about to become...
 -Erik

24 years agomade more robust and commented my code.
John Beppu [Sun, 30 Jan 2000 09:47:16 +0000 (09:47 -0000)]
made more robust and commented my code.

24 years ago nslookup -- a work in progress...
John Beppu [Sat, 29 Jan 2000 12:59:01 +0000 (12:59 -0000)]
  nslookup -- a work in progress...

24 years agoClear up some ambiguity with old style assignments.
Erik Andersen [Sat, 29 Jan 2000 07:06:24 +0000 (07:06 -0000)]
Clear up some ambiguity with old style assignments.
 -Erik

24 years agoMinor change. init now uses dup2.
Erik Andersen [Sat, 29 Jan 2000 06:29:32 +0000 (06:29 -0000)]
Minor change.  init now uses dup2.
 -Erik

24 years agocopy fixes to simplify link copying and always do the right thing.
Erik Andersen [Sat, 29 Jan 2000 05:52:40 +0000 (05:52 -0000)]
copy fixes to simplify link copying and always do the right thing.
ping could segfault because I'm an idiot, and tried to put a value
in where I hadn't allocated storage.  choke.
 -Erik

24 years agoForgot some debugging noise.
Erik Andersen [Thu, 27 Jan 2000 23:00:01 +0000 (23:00 -0000)]
Forgot some debugging noise.
 -Erik

24 years agocopyFile could call chmod on a symlink, changing the perms
Erik Andersen [Thu, 27 Jan 2000 19:50:47 +0000 (19:50 -0000)]
copyFile could call chmod on a symlink, changing the perms
of the pointed to file.  Minor fix to tar for directory handling.
 -Erik

24 years agoFixed ls formatting for 8 char user names.
Erik Andersen [Thu, 27 Jan 2000 02:40:21 +0000 (02:40 -0000)]
Fixed ls formatting for 8 char user names.
 -Erik

24 years agoShuffle location of generic code into utility.c
Erik Andersen [Wed, 26 Jan 2000 23:49:21 +0000 (23:49 -0000)]
Shuffle location of generic code into utility.c
 -Erik

24 years agomount and umount could leak loop device allocations causing the system to
Erik Andersen [Wed, 26 Jan 2000 20:06:48 +0000 (20:06 -0000)]
mount and umount  could leak loop device allocations causing the system to
quickly run out.  Also disable init's SIGHUP handler during shutdown.
 -Erik

24 years agoSome busybox updates. See the changelog for details if you care.
Erik Andersen [Tue, 25 Jan 2000 18:13:53 +0000 (18:13 -0000)]
Some busybox updates.  See the changelog for details if you care.
 -Erik

24 years agoput #if's around the lchown, because
John Beppu [Mon, 24 Jan 2000 12:06:22 +0000 (12:06 -0000)]
put #if's around the lchown, because
older glibc versions don't have it.

24 years ago* added (and documented) "-n" option for head -
Erik Andersen [Sun, 23 Jan 2000 18:19:02 +0000 (18:19 -0000)]
* added (and documented) "-n" option for head -
    contributed Friedrich Vedder <fwv@myrtle.lahn.de>
* Cleanup for a number of usage messages -- also
    contributed Friedrich Vedder <fwv@myrtle.lahn.de>
 -Erik

24 years ago Making note of my changes
John Beppu [Sun, 23 Jan 2000 13:54:15 +0000 (13:54 -0000)]
Making note of my changes