Subject: Re: shell scripts in an emulation environment
To: Jukka Marin , Matthias Scheler <firstname.lastname@example.org>
From: Todd Vierling <tv@NetBSD.ORG>
Date: 01/29/1998 07:13:38
On Thu, 29 Jan 1998, Jukka Marin wrote:
: > I've always thought that returning "NetBSD" in an emulated uname() call
: > was highly bogus. Your emulating another system for chrissakes, so
: > you should make the application believe that it is running on
: > such a system in every possible way.
: I agree.
On 29 Jan 1998, Matthias Scheler wrote:
: > Why don't we make it a sysctl hierarchy:
: > and leave the decision to the system administrator?
: Good idea, I second that.
This is all fine and good (and very good that you're considering making this
*optional*--web browsrs and servers are NOT the only reasons for it to
return NetBSD). However, take this into consideration:
* uname(2) returns a release number of the oprating system too. What it
returns may not be valid for all setups because it may depend on the
contents of /emul/<os>. We'll ned a sysctl to set that value.
* Some systems (SunOS, for one) differentiate between machines in the same
group (sun4, sun4c, sun4m). While this seems trivial, it can change
the use of binaries, such as in the case of `sun4m', Solaris/SunOS emul,
and Wabi. (There are V8 and V9+ SPARC Wabi binaries that are
significantly faster than the V7 version.)
Please take these into consideration as you plan this method of attack.
===== Todd Vierling (Personal email@example.com) =====
== "There's a myth that there is a scarcity of justice to go around, so
== that if we extend justice to 'those people,' it will somehow erode the
== quality of justice everyone else receives." -- Maria Price