From owner-freebsd-emulation Thu Oct 9 20:08:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA18147 for emulation-outgoing; Thu, 9 Oct 1997 20:08:00 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (word.smith.net.au [202.0.75.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA18141 for ; Thu, 9 Oct 1997 20:07:56 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id MAA00470; Fri, 10 Oct 1997 12:33:46 +0930 (CST) Message-Id: <199710100303.MAA00470@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Thomas David Rivers cc: freebsd-emulation@FreeBSD.org Subject: Re: LINUX emulation and uname(3). In-reply-to: Your message of "Thu, 09 Oct 1997 18:27:47 -0400." <199710092227.SAA07605@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 10 Oct 1997 12:33:43 +0930 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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