Date: Sat, 11 Oct 1997 15:41:49 -0700 From: Jonathan Mini <mini@d198-232.uoregon.edu> To: Mike Smith <mike@smith.net.au> Cc: Thomas David Rivers <rivers@dignus.com>, freebsd-emulation@FreeBSD.ORG Subject: Re: LINUX emulation and uname(3). Message-ID: <19971011154149.56660@micron.mini.net> In-Reply-To: <199710100303.MAA00470@word.smith.net.au>; from Mike Smith on Fri, Oct 10, 1997 at 12:33:43PM %2B0930 References: <199710092227.SAA07605@lakes.dignus.com> <199710100303.MAA00470@word.smith.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mike@smith.net.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971011154149.56660>