From owner-freebsd-emulation Sat Oct 11 15:42:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA15770 for emulation-outgoing; Sat, 11 Oct 1997 15:42:36 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from d198-232.uoregon.edu (d198-232.uoregon.edu [128.223.198.232]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA15764 for ; Sat, 11 Oct 1997 15:42:33 -0700 (PDT) (envelope-from mini@d198-232.uoregon.edu) Received: (from mini@localhost) by d198-232.uoregon.edu (8.8.5/8.8.5) id PAA05647; Sat, 11 Oct 1997 15:41:50 -0700 (PDT) Message-ID: <19971011154149.56660@micron.mini.net> Date: Sat, 11 Oct 1997 15:41:49 -0700 From: Jonathan Mini To: Mike Smith Cc: Thomas David Rivers , freebsd-emulation@FreeBSD.ORG Subject: Re: LINUX emulation and uname(3). References: <199710092227.SAA07605@lakes.dignus.com> <199710100303.MAA00470@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85e In-Reply-To: <199710100303.MAA00470@word.smith.net.au>; from Mike Smith on Fri, Oct 10, 1997 at 12:33:43PM +0930 X-file: The Truth is Out There Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I have a question : How are these programs using the uname to detect if it's a linux system? are they jsut checkign to see that 'linux' exists in the uname string? If so, it seems to me that returning something like 'Linux-emu (FreeVBSD blah.blah.blah)' would be a good solution. Also, this means that programs like Netscape (linux binary) would properly return the fact that it is running under linux emulation under FreeBSD. Mike Smith stands accused of saying: > > This question should have been posted on the -emulation list, to where > it has been moved. > > > I have a program, written for Linux, that uses the uname() information > > as part of its license check... > > > > Unfortunately, the check fails... the company indicates that the > > failure is due to incorrect uname() information. > > > > So - does the uname() call under Linux emulation claim to be a LINUX > > box? - or - does it claim to be a FreeBSD box... > > Does the application make a uname() call, or does it attempt to run a > 'uname' executable? > > > Which should it do? Seems to me, for accurate Linux emulation, it should > > claim to be Linux... > > Do you see a console message saying: > > linux_emul(%d): olduname() not supported > > ? If not, the Linux uname will return the contents of the kern.ostype > sysctl. > > > - Opinions? - > > I am not sure that I agree that uname() should claim to be Linux when > we're not. Then again, perhaps we should use something more subtle to > indicate that we're a FreeBSD system. > > Why is this product so paranoid? > > mike > -- Jonathan Mini Ingenious Productions Software Development P.O. Box 5693, Eugene, Or. 97405