From owner-freebsd-hackers Wed Dec 22 9:19:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from phoenix.student.utwente.nl (cal30b054.student.utwente.nl [130.89.229.25]) by hub.freebsd.org (Postfix) with ESMTP id 80DC414F97 for ; Wed, 22 Dec 1999 09:19:44 -0800 (PST) (envelope-from havoc@Cal30B054.student.utwente.nl) Received: by phoenix.student.utwente.nl (Postfix, from userid 1000) id 97D7C1BA; Wed, 22 Dec 1999 18:19:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by phoenix.student.utwente.nl (Postfix) with ESMTP id 8EE7C18F for ; Wed, 22 Dec 1999 18:19:42 +0100 (CET) Date: Wed, 22 Dec 1999 18:19:42 +0100 (CET) From: Theo van Klaveren X-Sender: havoc@Cal30B054.student.utwente.nl To: freebsd-hackers@freebsd.org Subject: Question about GLIDE... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I am in the process of porting the GLIDE library to FreeBSD/i386 which is making good progress so far. My worst enemy has been the build system itself and the huge amount if `#ifdef __linux__' in the code. I am doing this in the light of the Quake source code release, which I'd like to play natively with 3dFX hardware... :) (for the interested: I have already gotten the server and X11 client to build, but I haven't tested them yet.) My question is about this particular piece of code in swlibs/fxpci/pcilib/fxlinux.c, around line 70: if (iopl(3)<0) { pciErrorCode = PCI_ERR_NO_IO_PERM; return FXFALSE; } Does anyone know what 'iopl(3)' is supposed to do, and what it's equivalent on FreeBSD is (if at all available)? The code this is in is about opening the /dev/3dfx device (which is not available for FreeBSD so it'll fail anyway), so I _could_ just remove it, but I'm not so certain... Also, IANAL, so could anyone tell me if the 3DFX license permits me to publish my patches under a BSD-style license? Theo van Klaveren http://phoenix.student.utwente.nl / ICQ #1353681 - Why, oh why didn't I take the _blue_ pill? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message