Eric Andersen
a57ba4db64
Argh. More cross libc cleanup. Should be ok now...
...
-Erik
2000-07-08 19:20:49 +00:00
Eric Andersen
bd22ed8067
Update files to reduce dependance on kernel version...
...
-Erik
2000-07-08 18:55:24 +00:00
Eric Andersen
f86aee74ce
setkeycodes needs get_console_fd(), so if you disable chvt and deallocvt, but
...
leave setkeycodes active, busybox will not link. Also fix a trivial
use-before-initialize warning. Both fixes from Jon McClintock
<jonm@bluemug.com>.
-Erik
2000-07-06 17:20:46 +00:00
Eric Andersen
89bc256c94
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
...
will be removing this stuff from /proc/mounts real soon now I am assured.
-Erik
2000-07-05 19:29:59 +00:00
Eric Andersen
f7cf2f7ef9
* Fix to tr so it recognizes standard escape sequences. Merged common
...
escape seq. code from tr and echo into utility.c. Fix thanks to
Matt Kraai <kraai@alumni.carnegiemellon.edu>.
* This should close Bug #1015 . Please test.
-Erik
2000-07-05 17:26:35 +00:00
Mark Whitley
1ca41775bb
Yanked out the cstring_alloc() and cstring_lineFromFile() functions from
...
utility.c and replaced them with get_line_from_file() from the new grep.c.
Also changed declaration in internal.h and replaced instances of
cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested
them and they worked fine.
2000-06-28 22:15:26 +00:00
Eric Andersen
a44790f539
Better cross libc support.
...
-Erik
2000-06-28 20:11:28 +00:00
Eric Andersen
10dc9d4d17
Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries in
...
/proc/mounts, added a hack to make sysinfo work with both old and new kernels).
-Erik
2000-06-26 10:45:52 +00:00
John Beppu
c7ccfc99fc
+ utility.c
...
CSTRING_BUFFER_LENGTH = 1024 /* so it recurses less often */
+ grep.c
uses cstring_lineFromFile(), and doesn't ever say
Line is too long, anymore
2000-06-12 23:39:04 +00:00
Eric Andersen
9f16d61408
Added a slightly modified version of Ron Alder's insmod patch.
...
Very cool stuff.
-Erik
2000-06-12 23:11:16 +00:00
Eric Andersen
3199bda52e
Fix /etc/passwd misspelling.
...
-Erik
2000-06-02 17:38:18 +00:00
Eric Andersen
86ab8a32bd
A number of additional fixed from Pavel Roskin, note some more bugs in the
...
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox,
which is now included.
-Erik
2000-06-02 03:21:42 +00:00
Erik Andersen
330fd2b576
More libc portability updates, add in the website (which has not been
...
archived previously). Wrote 'which' during the meeting today.
-Erik
2000-05-19 05:35:19 +00:00
Erik Andersen
5b46d792f1
Some more portability updates
...
-Erik
2000-05-17 05:24:24 +00:00
Erik Andersen
23dea9b712
So much for my evil optimization. Doesn't seem to work. Will test
...
more on it later.
-Erik
2000-05-13 00:28:25 +00:00
Erik Andersen
7ab9c7ee52
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
...
which lets you compile out most of the "--help" output, saving
up to 17k.
Renamed mnc to nc.
-Erik
2000-05-12 19:41:47 +00:00
Erik Andersen
59b9e87024
* cp -fa now works as expected for symlinks (it didn't before)
...
* zcat works again (wasn't working since option parsing was broken)
* more doc updates/more support for BB_FEATURE_SIMPLE_HELP
-Erik
2000-05-10 05:05:45 +00:00
Erik Andersen
691f49d3c1
Fix umount dependency on find_real_root_device_name
...
-Erik
2000-05-08 17:56:25 +00:00
Erik Andersen
5afc864422
More stuff
...
-Erik
2000-05-02 00:07:56 +00:00
Erik Andersen
94f5e0ba7c
Some accrued fixes/updates.
...
* cp/mv now accepts (and ignores) the -f flag, since it always
does force anyway
* tail can now accept -<num> commands (e.g. -10) for better
compatibility with the standard tail command
* added a simple id implementation; doesn't support supp. groups yet
2000-05-01 19:10:52 +00:00
Erik Andersen
4f3f757d56
Latest and greatest. Some effort at libc5 (aiming towards newlib)
...
compatability.
-Erik
2000-04-28 00:18:56 +00:00
Erik Andersen
9a8195cc03
Fix creation of /linuxrc
...
-Erik
2000-04-18 23:32:10 +00:00
Erik Andersen
b9167cb67f
Really fix the killall segfault this time.
...
-Erik
2000-04-18 22:41:30 +00:00
Erik Andersen
632bb57135
Fix symlink following bug in chmod -R and friends. Allow SYSV style
...
'chown foo:bar' in addition to 'chown foo.bar', and fix a bug in the
busybox globbing routine such that 'find /dir -name [i]' no longer
segfaults.
-Erik
2000-04-18 22:09:06 +00:00
Erik Andersen
c366050a23
Fix stupid bug (wrong variable)
...
-Erik
2000-04-18 21:18:57 +00:00
Erik Andersen
0a64de9b4f
More little stuff.
...
-Erik
2000-04-18 20:00:03 +00:00
Erik Andersen
229dd2b905
Fix killall
...
-Erik
2000-04-18 18:38:29 +00:00
Erik Andersen
a6c752201e
Updates
...
-Erik
2000-04-18 00:00:52 +00:00
John Beppu
5a728cfdfe
+ in the interest of robustness, I added
...
utility.c :: cstring_alloc()
utility.c :: cstring_lineFromFile() /* they're at the bottom */
so that I could read in lines of arbitrary length from FILE*s
(instead of using fgets(huge_ass_buffer,...)).
+ I tested it out on sort, and it seems to be fine.
2000-04-17 04:22:09 +00:00
Erik Andersen
825aead68b
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
2000-04-07 06:00:07 +00:00
Erik Andersen
5661fe078e
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
2000-04-05 01:00:52 +00:00
Erik Andersen
3364d78b18
Yet another installment in the ongoing tar saga
...
-Erik
2000-03-28 00:58:14 +00:00
Erik Andersen
1ad302ac90
The new tar for busybox is now done, and works just fine
...
for extracting files. Creation of tarballs is next...
-Erik
2000-03-24 00:54:46 +00:00
Erik Andersen
298854f029
My latest ramblings.
...
-Erik
2000-03-23 01:09:18 +00:00
Erik Andersen
ec5bd90916
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
2000-03-22 07:12:05 +00:00
Erik Andersen
016ffe9307
Add in a nifty function for mount to use.
...
-Erik
2000-03-22 00:58:54 +00:00
Erik Andersen
0d068a2067
* 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
2000-03-21 22:32:57 +00:00
Erik Andersen
6273f655c8
Several fixes.
...
-Erik
2000-03-17 01:12:41 +00:00
Erik Andersen
d75af99529
Major build system updates...
...
-Erik
2000-03-16 08:09:09 +00:00
Erik Andersen
3522eb1ab3
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
2000-03-12 23:49:18 +00:00
Erik Andersen
269bba2514
Change BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simpler
...
BB_FEATURE_USE_DEVPS_PATCH.
-Erik
2000-03-08 14:50:47 +00:00
Erik Andersen
2ac2fae728
Fix bugs related to finding PIDs.
...
-Erik
2000-03-07 23:32:17 +00:00
Erik Andersen
cbd0d625c7
Fix up some #define stuff to ensure the Right Thing(tm)
...
happens with all combinations of BB_KILL and BB_KILLALL
being defined.
-Erik
2000-03-07 07:58:57 +00:00
Erik Andersen
246cc6dddd
Wrote killall.
...
Adjusted mount, ps, utility.c, etc to handle my nifty new kernel
patches the allow busybox to run perfectly without /proc.
-Erik
2000-03-07 07:41:42 +00:00
Erik Andersen
6437170cb3
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
2000-03-04 22:23:27 +00:00
Erik Andersen
029011b9ee
A few updates (including the cp fix the Craig has been looking for)
...
-Erik
2000-03-04 21:19:32 +00:00
Erik Andersen
5b911ddd57
Fixed rebooting when init runs as /linuxrc
...
-Erik
2000-02-23 22:49:58 +00:00
Erik Andersen
d07ee46919
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
2000-02-21 21:26:32 +00:00
Erik Andersen
9ffdaa647e
Updates
...
-Erik
2000-02-11 21:55:04 +00:00
Erik Andersen
e132f4b09e
Fixed the init problem where it wouldn't unmount filesystems
...
on reboot. Also fixed swapoff -a so it works.
-Erik
2000-02-09 04:16:43 +00:00
Erik Andersen
e49d5ecbbe
Some formatting updates (ran the code through indent)
...
-Erik
2000-02-08 19:58:47 +00:00
Erik Andersen
c0bf817bbc
mkdir -p had gotten broken. Fixed now.
...
-Erik
2000-02-08 06:19:29 +00:00
Erik Andersen
31cf8e0056
device_open is common code -- moved into utility.c
...
-Erik
2000-02-07 20:31:19 +00:00
Erik Andersen
fac10d7c59
A few minor updates. ;-)
...
Seriously though, read the Changelog for busybox 0.42,
which this is about to become...
-Erik
2000-02-07 05:29:42 +00:00
Erik Andersen
8e759aa31f
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
2000-01-29 05:52:40 +00:00
Erik Andersen
d7a44c76fe
Forgot some debugging noise.
...
-Erik
2000-01-27 23:00:01 +00:00
Erik Andersen
ce5b466bcc
copyFile could call chmod on a symlink, changing the perms
...
of the pointed to file. Minor fix to tar for directory handling.
-Erik
2000-01-27 19:50:47 +00:00
Erik Andersen
de7965ca7e
Shuffle location of generic code into utility.c
...
-Erik
2000-01-26 23:49:21 +00:00
Erik Andersen
5cbdd712f5
mount and umount could leak loop device allocations causing the system to
...
quickly run out. Also disable init's SIGHUP handler during shutdown.
-Erik
2000-01-26 20:06:48 +00:00
Erik Andersen
3fe39dce5d
Some busybox updates. See the changelog for details if you care.
...
-Erik
2000-01-25 18:13:53 +00:00
Erik Andersen
06936df164
Fix a bug where tar could change perms and ownership of dirs pointed
...
to by symlink within a tarball.
-Erik
2000-01-23 02:14:20 +00:00
Erik Andersen
3163821967
Sync up busybox with the latest and greatest. This is not stuff for
...
the Embedix release.
-Erik
2000-01-15 22:28:50 +00:00
Erik Andersen
05df239ed9
Bug fixes.
...
-Erik
2000-01-13 04:43:48 +00:00
Erik Andersen
0881de706e
The latest and greatest. init basically works, though needs
...
a minor inittab design change to accomodate specifying the device
to run each process on.
-Erik
2000-01-05 09:34:26 +00:00
Erik Andersen
7dc160721e
Bunches of fixes. Typos, bugs, etc.
...
Added 'gunzip -t'. inittab support _almost_ works (but it isn't
ready for prime time useage yet).
-Erik
2000-01-04 01:10:25 +00:00
Erik Andersen
a89910829c
Add the beginings of some regression testing. Add in the recently
...
contributed loadacm utility (for dealing with unicode fonts)
-Erik
1999-12-29 03:34:00 +00:00
Erik Andersen
2fe08c7afb
Fixed cp so it works as God intended it to.
...
-Erik
1999-12-29 02:10:35 +00:00
Erik Andersen
d387d01f11
Sync to my local tree
1999-12-21 02:55:11 +00:00
Erik Andersen
4d1d0113fd
Reworked the source so it will compile and run under glibc 2.0.7
...
and linux kernel 2.0.36 (though the dubious reasons why someone
would want to do that defy imagination ;)
-Erik
1999-12-17 18:44:15 +00:00
Eric Andersen
6805d5d69e
Adjustments for Johns init stuff,
...
-Erik
1999-12-09 22:39:55 +00:00
John Beppu
f95ca97d1b
findInitPid() has been implemented and it seems to work.
...
reboot has been changed to take advantage of findInitPid();
1999-12-09 22:10:18 +00:00
Eric Andersen
1792f8c489
Tail now works (costs 6k). Several other updates.
...
-Erik
1999-12-09 06:11:36 +00:00
Eric Andersen
48091fb3d3
* my_getid was leaking file descriptors, causing 'ls -l' on long
...
directories to fail
-Erik
1999-12-09 01:15:52 +00:00
Eric Andersen
abc0f4f8f9
Latest and greatest
1999-12-08 23:19:36 +00:00
Eric Andersen
0ecb54a0f3
Stuf
1999-12-05 23:24:55 +00:00
Eric Andersen
14ec6cf3c2
syslogd and klogd work now.
...
-Erik
1999-12-05 22:17:02 +00:00
Eric Andersen
b186d980d6
Stuf
1999-12-03 09:19:54 +00:00
Eric Andersen
cb41c2e83b
Bug fixes
1999-11-22 07:41:00 +00:00
Eric Andersen
08b1034f4f
Stuf
1999-11-19 02:38:58 +00:00
Eric Andersen
b6a44b8d39
updates for the day
1999-11-13 04:47:09 +00:00
Eric Andersen
d73dc5b073
Updates to usage, and made tar work.
...
-Erik
1999-11-10 23:13:02 +00:00
Eric Andersen
3d8dbe1ca0
Stuf
1999-11-09 01:51:02 +00:00
Eric Andersen
50d6360771
Stuff
1999-11-09 01:47:36 +00:00
Eric Andersen
29d2e362de
Fixed ln, df, and removed redundant stuff from mtab.
1999-11-06 06:07:27 +00:00
Eric Andersen
cf8c9cf7b9
More stuff -- ready for release.
...
-Erik
1999-11-05 00:31:46 +00:00
Eric Andersen
d0246fb72b
More stuff.
1999-11-04 21:18:07 +00:00
Eric Andersen
2f6c04f63c
Ha! Got init working.
...
-Erik
1999-11-01 23:59:44 +00:00
Eric Andersen
7f1acfdb89
More stuf. sed works.
1999-10-29 23:09:13 +00:00
Eric Andersen
24d8e7d787
Stuf
1999-10-29 06:50:17 +00:00
Eric Andersen
c1525e84dd
Stuff
1999-10-29 00:07:31 +00:00
Eric Andersen
0460ff2e5d
Stuf
1999-10-25 23:32:44 +00:00
Eric Andersen
a07f0b0408
More stuff.
1999-10-22 19:49:09 +00:00
Eric Andersen
fa0540fb09
Make mkdir -m work
1999-10-22 18:18:31 +00:00
Eric Andersen
63a0e530bd
Cosmetic adjustments.
1999-10-22 05:12:14 +00:00
Eric Andersen
aa0765e11b
Added regexp support, fixed Changelog.
1999-10-22 04:30:20 +00:00
Eric Andersen
c49960189a
Fixed up copyright notices and such
1999-10-20 22:08:37 +00:00
Eric Andersen
d23f9ba0f6
Made ps work. Fixed some stuff.
1999-10-20 19:18:15 +00:00
Eric Andersen
ce8f3b9933
Fixed chmod and friends.
1999-10-20 07:03:36 +00:00
Eric Andersen
b7a1a75261
*** empty log message ***
1999-10-19 23:37:14 +00:00
Eric Andersen
e674eb78e4
Made em work.
1999-10-19 20:52:57 +00:00
Eric Andersen
b0e9a709ba
More stuff.
...
-Erik
1999-10-18 22:28:26 +00:00
Eric Andersen
bed30e9700
More fixes
1999-10-18 19:02:32 +00:00
Eric Andersen
9b58718889
Some fixes and such
1999-10-17 05:43:39 +00:00
Eric Andersen
3c163822d8
Fixed cp -[aR] and some other stuf.
1999-10-14 22:16:57 +00:00
Eric Andersen
f6be944a6a
More stuff
1999-10-13 21:12:06 +00:00
Eric Andersen
c6cb79dedf
More stuff
1999-10-13 18:01:10 +00:00
Eric Andersen
f811e07b07
More stuff.
1999-10-09 00:25:00 +00:00
Eric Andersen
17d49efd8c
More stuff.
1999-10-06 20:25:32 +00:00
Eric Andersen
9d3aba7b37
more stuff
1999-10-06 09:04:55 +00:00
Eric Andersen
2b69c40e80
More stuff works.
...
-Erik
1999-10-05 22:58:32 +00:00
Eric Andersen
cc8ed39b24
Initial revision
1999-10-05 16:24:54 +00:00