From owner-freebsd-hackers Thu Dec 23 21:22:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id BEE4215773; Thu, 23 Dec 1999 21:22:21 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) Received: from zippy.cdrom.com (localhost [127.0.0.1]) by zippy.cdrom.com (8.9.3/8.9.3) with ESMTP id VAA89679; Thu, 23 Dec 1999 21:22:13 -0800 (PST) (envelope-from jkh@zippy.cdrom.com) To: Mike Smith Cc: Julian Elischer , Doug Rabson , Theo van Klaveren , freebsd-hackers@FreeBSD.ORG Subject: Re: Question about GLIDE... In-reply-to: Your message of "Thu, 23 Dec 1999 21:11:50 PST." <199912240511.VAA00684@mass.cdrom.com> Date: Thu, 23 Dec 1999 21:22:13 -0800 Message-ID: <89675.946012933@zippy.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Though doug didn't say so, I think the equivalent code in freeBSD is > > > > > > if ((fd = open("/dev/io",O_RDWR,0)) == -1) { > > > ERROR... > > > } > > > > Correct, and I find it a little embarassing. I mean god, what a hack! :-) > > There has just *got* to be a better way of granting (and checking for) > > this privilege. > > It's called i386_set_ioperm(), and it has a manpage too. Tada! Give that man a chocolate chip cookie! :-) - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message