From owner-freebsd-ports Sat Feb 17 07:21:52 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA14547 for ports-outgoing; Sat, 17 Feb 1996 07:21:52 -0800 (PST) Received: from xi.dorm.umd.edu (xi.dorm.umd.edu [129.2.152.45]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id HAA14540 for ; Sat, 17 Feb 1996 07:21:48 -0800 (PST) Received: from xi.dorm.umd.edu (localhost [127.0.0.1]) by xi.dorm.umd.edu (8.7.3/8.6.12) with SMTP id KAA07894; Sat, 17 Feb 1996 10:21:26 -0500 (EST) Date: Sat, 17 Feb 1996 10:21:26 -0500 (EST) From: Sujal Patel X-Sender: smpatel@xi.dorm.umd.edu To: MARCOS@eig.unige.ch cc: freebsd-ports@FreeBSD.ORG Subject: Re: QuickCam software port In-Reply-To: <01I18P2BGYDE8WW8Z7@eig.unige.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@FreeBSD.ORG Precedence: bulk On Thu, 15 Feb 1996 MARCOS@eig.unige.ch wrote: > If not, I'm in the process of porting some utilities but I'm stopped by the > Linux proprietary function "ioperm" which grants direct access for applications > to I/O ports. What is the equivalent on FBSD ? To port over all of the QuickCam stuff you need to: Instead of ioperm(), you just want to say: open ("/dev/io", O_RDONLY); Take all of the outb(x,y) and change to: outb(y,x); Remove Linux includes, replace with: #include Also, I would suggest on waiting to make ports for the QuickCam software-- It's in a heavy state of flux right now, and new releases are very frequent. Sujal