From owner-freebsd-hackers Thu Oct 9 21:06:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA21070 for hackers-outgoing; Thu, 9 Oct 1997 21:06:19 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA21052 for ; Thu, 9 Oct 1997 21:05:54 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id XAA19054; Thu, 9 Oct 1997 23:05:04 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id XAA17975; Thu, 9 Oct 1997 23:04:33 -0500 Message-ID: <19971009230433.37612@right.PCS> Date: Thu, 9 Oct 1997 23:04:33 -0500 From: Jonathan Lemon To: Thomas David Rivers Cc: cracauer@cons.org, freebsd-hackers@freefall.FreeBSD.org Subject: Re: LINUX emulation and uname(3). References: <199710100249.WAA08040@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <199710100249.WAA08040@lakes.dignus.com>; from Thomas David Rivers on Oct 10, 1997 at 10:49:40PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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