lkml.org 
[lkml]   [1998]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PATCH: Unix98 pty support.
Theodore Y. Ts'o <tytso@MIT.EDU> wrote:
>
> The solution which NetBSD uses for doing emulation (and which I think is
> a good idea), is that when you are running a (for example) Linux binary
> under emulation, file lookups first check to see if the file is in the
> linux directory tree. If the file exists in there, that file is used;
> otherwise, the file lookup uses the normal file.
>
> This allows NetBSD to put the Linux-specific libraries in
> /linux/usr/lib/... without needing to worry about naming conflicts
> between Linux libraries and NetBSD libraries.

The Linux/Sparc code does this and its wonderful. When you SunOS binary
calls something like open("some_file" ...) the kernel first tries
to open /usr/gnemul/sunos/some_file, and if that fails, it tries some_file.

We have a QA system of perl scripts + external excutables we use here at
work. It was written for SunOS. I can't run it under Solaris without
hacking up an enormous amount of stuff. It runs under Linux with out
any problems, and the reason it does is because of the /usr/gnemul/sunos
stuff.

Jim

--
----------------------------------------------------------------------------
Jim Nance Avant! Corporation
(919) 941-6655 Do you have sweet iced tea? jim_nance@avanticorp.com
No, but theres sugar on the table.

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.083 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site