9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Ugly Q, I admit
Date: Mon, 25 Nov 2002 09:27:46 -0500	[thread overview]
Message-ID: <5b604999e828279a652aed42cd7ca87d@plan9.bell-labs.com> (raw)

> would it be easy/hard/impossible to write a linux emulator for
> Plan9? (however I don't like to spoil plan9 with such things, I
> still have a plethora of linux prgs whose authors don't like to
> release sources... sigh. (windoze deleted 4+ yrs ago, my linux disk
> sleeps silently in my bookshelf... don't like to bring it into life
> more frequently than absolutely necessary))

Writing a program that runs the binaries but
intercepts the system calls and handles them itself
is easy.  I did this a few years ago.  The only wart
in my emulator is that Plan 9's lack of mmap makes
loading programs a little clumsier than it might be.
But I can run hello world, both statically and dynamically
linked.

The real problem is what to do at that point.
Any substantial program depends on other context,
like having an X11 server, or a cursor-addressed
terminal.  Running things like Wine require kernel
support that we just don't have.

In the end, it's not clear to me that it would be much
easier or more convenient than just running a Linux
system.

What kind of programs did you have in mind?

Russ



             reply	other threads:[~2002-11-25 14:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25 14:27 Russ Cox [this message]
2002-11-26  9:50 ` peter a. cejchan
  -- strict thread matches above, loose matches on Subject: below --
2002-11-26 21:00 Russ Cox
2002-11-27  6:14 ` Bruce Ellis
2002-11-27 13:31   ` Lucio De Re
2002-11-26 20:41 Keith Nash
2002-11-26 15:14 Russ Cox
2002-11-25 21:34 Joel Salomon
2002-11-25 19:34 Joel Salomon
2002-11-25 20:45 ` Phil White
2002-11-25  9:39 Petr Cejchan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b604999e828279a652aed42cd7ca87d@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).