[Bug 2140] New: lnx_video.c unnecessarily defining ioperm() and iopl()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 23 11:37:58 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://bugs.freedesktop.org/show_bug.cgi?id=2140        
   
           Summary: lnx_video.c unnecessarily defining ioperm() and iopl()
           Product: xorg
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Server/general
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: mharris at www.linux.org.uk


xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_video.c contains the
following:

/*
 * Due to conflicts with "compiler.h", don't rely on <sys/io.h> to declare
 * these.
 */
extern int ioperm(unsigned long __from, unsigned long __num, int __turn_on);
extern int iopl(int __level);



sys/io.h will always define these.  I see no reason for this to be in
the lnx_video.c file, it seems like an ugly hack for something.

Can someone explain why this is needed at all?        
   
   
--         
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list