This is the mail archive of the
mailing list for the Cygwin project.
Re: ioperm() with ports above 0x3ff
On Friday 22 February 2008 07:46:18 Samuel Thibault wrote:
> Yes: on Linux ioperm doesn't work above 0x400. On Linux, so as to
> access ports above 0x400 you need to use iopl(), that's why ioperm in
> cygwin does this. Now, allowing >= 0x400 would be possible in cygwin's
> ioperm, but then you'd get problems when using the code on Linux... The
> truly proper way is really to use iopl().
On the other hand the iopl() man page specifically says that it shouldn't be
used in processes intended to be portable. ;-D
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html