From owner-freebsd-emulation Tue May 26 03:13:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA29843 for freebsd-emulation-outgoing; Tue, 26 May 1998 03:13:08 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from mail.visint.co.uk (wakko.visint.co.uk [194.207.134.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA29837 for ; Tue, 26 May 1998 03:13:06 -0700 (PDT) (envelope-from steve@visint.co.uk) Received: from wakko.visint.co.uk (bagpuss.visint.co.uk [194.207.134.1]) by mail.visint.co.uk (8.8.8/8.8.5) with SMTP id LAA20378; Tue, 26 May 1998 11:13:09 +0100 (BST) Date: Tue, 26 May 1998 11:13:09 +0100 (BST) From: Stephen Roome To: Chris Fanning cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Linux uname(3) and licensed apps In-Reply-To: <199805251901.TAA26490@jingoro.prevmed.sunysb.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 25 May 1998, Chris Fanning wrote: > Evangelism aside, I have an application that requires uname() to return > Linux. I've spoken with them and they have no intention of providing a > workaround until September earliest. > What do I have to do to get this running? This isn't elegant.. You can easily change the emulation layer to report Linux instead of FreeBSD, check about line 730 in /sys/i386/linux_misc.c, it looks like there isn't much there to change. Other than that, you could just get a hexeditor and change the string "Linux 2.0" that the program tries to find to "FreeBSD\0\0" or something.. it'd be very easy to try and it might work. (I'm going to get so slated for that though aren't I?!) Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message