From owner-freebsd-emulation Fri Oct 10 06:18:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA12774 for emulation-outgoing; Fri, 10 Oct 1997 06:18:53 -0700 (PDT) (envelope-from owner-freebsd-emulation) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA12698; Fri, 10 Oct 1997 06:16:07 -0700 (PDT) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.8.7/8.7.3) id PAA07929; Fri, 10 Oct 1997 15:12:44 +0200 (MEST) From: Søren Schmidt Message-Id: <199710101312.PAA07929@sos.freebsd.dk> Subject: Re: LINUX emulation and uname(3). In-Reply-To: <199710101218.IAA08913@lakes.dignus.com> from Thomas David Rivers at "Oct 10, 97 08:18:06 am" To: rivers@dignus.com (Thomas David Rivers) Date: Fri, 10 Oct 1997 15:12:44 +0200 (MEST) Cc: jlemon@americantv.com, rivers@dignus.com, cracauer@cons.org, freebsd-emulation@freefall.FreeBSD.org, freebsd-hackers@freefall.FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In reply to Thomas David Rivers who wrote: > > On Oct 10, 1997 at 10:49:40PM -0400, Thomas David Rivers wrote: > > > 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... > > > > > > > The Linux uname() call currently reports the FreeBSD info. I suppose > > that this could be made into a sysctl if it really becomes a nuisance? > > (see sys/i386/linux/linux_misc.c:linux_newuname for the implementation) > > -- > > Jonathan > > > > Well - it was a nuisance in this case, as I was unable to run the > particular Linux program I wanted to run... > > And, of course, you are right... I got a small program that simply > calls uname() on Linux and ran it on FreeBSD - it reported the FreeBSD > info... > > However, after reporting what I was doing, the company sent me a new > license key (with the idea that "FreeBSD" would be returned in the utsname > fields), which worked... > > It's just a bother for the various companies, and it means that our claim > of being able to run Linux binaries isn't as complete as we may have wanted. > > Maybe a sysctl, so people could taylor it, is the right thing to do. > In any event, I think a uname() call under Linux emulation should claim > to be "Linux" and not "FreeBSD". So, the default should be "Linux"... NO, I think this is a bad idea. First off it _is_ not a Linux system, second the next thing is you will have to report an os version. Now tell me which of the bezillions Linux's versions are we going to call us then ? And besides some programs uses this to tell other services which platform they are running on, we dont want to advertise ourselves as Linux do we ?? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end ..