Subject: Re: linux emulation problem
To: None <port-i386@NetBSD.ORG>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: port-i386
Date: 12/19/1996 12:38:18
-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "Matthias" == Matthias Scheler <tron@lyssa.owl.de> writes:
    Matthias> I suppose that far more people will try to run Linux
    Matthias> than Solaris-x86 binaries. Wouldn't it be better to
    Matthias> modify this detection code to identify binaries as Linux
    Matthias> binaries in such uncertain cases? Or is there a technial
    Matthias> reason for the current method?

  Or, could there be a system call which said: "I'm a Linux binary"
and have this flag inheritted by all children? (Does the exec call
for Linux default to being in Linux emulation?)
  Too bad there isn't any flags to exec(). One heuristic would be to
do:	
	if(strncmp(execpath,"/emul/linux",sizeof("/emul/linux"))==0) {
		/* turn on Linux emulation */
	}

  but this would not be that useful without an additional "runlinux" command.

  The runlinux command would let one put wrappers as appropriate, or
just create one's "Linux" xterm and inherit the property.

   :!mcr!:            |  Network security consulting and 
   Michael Richardson |      contract programming
 WWW: mcr@sandelman.ottawa.on.ca. PGP key available.



-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQBVAwUBMrl9g9TTll4efmtZAQGqDQH+JENj0FmXFe2M6/z+db8hdUGCvqODCHvq
zf2DOaMZubv5iFLFh4Oteh4CgLc2ip6M/BOZ+Jjk4/NnPzcrPLo/0Q==
=C/In
-----END PGP SIGNATURE-----