From owner-freebsd-hackers Thu Dec 23 21: 7:39 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (castles558.castles.com [208.214.165.122]) by hub.freebsd.org (Postfix) with ESMTP id 4326614E50 for ; Thu, 23 Dec 1999 21:07:37 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id VAA00684; Thu, 23 Dec 1999 21:11:50 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199912240511.VAA00684@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Jordan K. Hubbard" 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 19:57:25 PST." <89201.946007845@zippy.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Dec 1999 21:11:50 -0800 From: Mike Smith 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. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message