From: Auric__ on
On Thu, 01 Apr 2010 00:03:21 GMT, David Given wrote:

> Yes, finally you both get to know why I've been asking all those weird
> questions over the past couple of months!
>
> LBW is a Linux binary loader that runs on Windows (currently only 32-bit
> Windows XP). It translates Linux system calls into Windows ones, using
> Interix to do the heavy lifting. It supports both static and dynamic
> binaries.
>
> While it's very much a work in progress it's good enough to run a Debian
> chroot, downloading and installing packages with apt and dpkg, compiling
> and running programs with gcc, connecting to remote servers with ssh,
> and even running some basic X applications. Performance isn't brilliant,
> but I have ideas why and how to fix it.
>
> The web page, where you can get an installer package and the source
> code, is here:
>
> http://lbw.sourceforge.net/
>
> I'd like to say thanks to the help I got from c.o.m-w.p.win32 and c.u.p;
> it helped considerably!

Have you looked at LINE?
http://sourceforge.net/projects/line/

Not updated in almost 9 years, but pretty much the same thing. Might be able
to reuse some code from there.

--
He's wearing his underwear outside his pants.
I'm pretty sure his resume isn't exactly up to date.
From: David Given on
On 01/04/10 01:41, Auric__ wrote:
[...]
> Have you looked at LINE?
> http://sourceforge.net/projects/line/

I did, actually; it works differently --- using a device driver to hook
the interrupt rather than catching page faults --- and it's nothing like
as complete. It uses Cygwin for the backend, so I expect that it would
run into real trouble once it got as far as trying to implement fork().
Plus I don't think it could handle %gs.

But yeah, LINE and LOW:

http://netevil.org/blog/2004/jan/linux-on-windows/comments

....were the inspirations.

--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────

│ "In the beginning was the word.
│ And the word was: Content-type: text/plain" --- Unknown sage