> > 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,  \\  [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime.             \\  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to