From owner-freebsd-questions Tue Nov 7 16:27:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 4295C37B4C5 for ; Tue, 7 Nov 2000 16:27:07 -0800 (PST) Received: from hades.hell.gr (ppp5.patr.hellasnet.gr [212.54.197.20]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id WAA02179; Tue, 7 Nov 2000 22:27:04 -0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id eA80Rqf14516; Wed, 8 Nov 2000 02:27:52 +0200 (EET) Date: Wed, 8 Nov 2000 02:27:51 +0200 From: Giorgos Keramidas To: Howard Blue Cc: questions@FreeBSD.ORG Subject: Re: C Programming using FreeBSD Message-ID: <20001108022749.A14429@hades.hell.gr> References: <3A085E29.4BA73D22@oaklandnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <3A085E29.4BA73D22@oaklandnet.com>; from hblue@oaklandnet.com on Tue, Nov 07, 2000 at 11:55:22AM -0800 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 07, 2000 at 11:55:22AM -0800, Howard Blue wrote: > How to use outb( ) and inb( ) with gcc and FreeBSD? [...] > > if (ioperm(BASEPORT, 3, 1) {perror("ioperm"); exit(1);} The ioperm() function is Linux-specific. In FreeBSD you can use: % man -k ioperm i386_get_ioperm(2), i386_set_ioperm(2) - manage per-process access to the i386 I/O port space and start reading the manpages of i386_set_ioperm() for more information on ways to access the i386 hardware I/O ports directly. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message