[Glibc-bsd-commits] r2094 - in trunk/glibc-ports/kfreebsd/x86_64: . sys

aurel32 at alioth.debian.org aurel32 at alioth.debian.org
Thu Jan 3 10:28:40 UTC 2008


Author: aurel32
Date: 2008-01-03 10:28:40 +0000 (Thu, 03 Jan 2008)
New Revision: 2094

Modified:
   trunk/glibc-ports/kfreebsd/x86_64/Makefile
   trunk/glibc-ports/kfreebsd/x86_64/sys/io.h
   trunk/glibc-ports/kfreebsd/x86_64/sys/perm.h
Log:
kfreebsd-amd64 does not have ioperm()


Modified: trunk/glibc-ports/kfreebsd/x86_64/Makefile
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/Makefile	2008-01-03 07:16:39 UTC (rev 2093)
+++ trunk/glibc-ports/kfreebsd/x86_64/Makefile	2008-01-03 10:28:40 UTC (rev 2094)
@@ -1,7 +1,17 @@
 32bit-predefine = __i386__
 64bit-predefine = __x86_64__
 
+# Additional header files to be installed in $prefix/include:
+
 ifeq ($(subdir),misc)
+sysdep_headers += \
+ sys/io.h \
+ sys/perm.h
+endif
+
+# Additional functions, and particular system calls:
+
+ifeq ($(subdir),misc)
+# For <sys/io.h> and <sys/perm.h>.
 sysdep_routines += iopl
-sysdep_headers += sys/perm.h sys/io.h
 endif

Modified: trunk/glibc-ports/kfreebsd/x86_64/sys/io.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/sys/io.h	2008-01-03 07:16:39 UTC (rev 2093)
+++ trunk/glibc-ports/kfreebsd/x86_64/sys/io.h	2008-01-03 10:28:40 UTC (rev 2094)
@@ -23,15 +23,6 @@
 
 __BEGIN_DECLS
 
-/* If TURN_ON is TRUE, request for permission to do direct i/o on the
-   port numbers in the range [FROM,FROM+NUM-1].  Otherwise, turn I/O
-   permission off for that range.  This call requires root privileges.
-
-   Portability note: not all kFreeBSD platforms support this call.  Most
-   platforms based on the PC I/O architecture probably will, however. */
-extern int ioperm (unsigned long int __from, unsigned long int __num,
-                   int __turn_on) __THROW;
-
 /* Set the I/O privilege level to LEVEL.  If LEVEL>3, permission to
    access any I/O port is granted.  This call requires root
    privileges. */

Modified: trunk/glibc-ports/kfreebsd/x86_64/sys/perm.h
===================================================================
--- trunk/glibc-ports/kfreebsd/x86_64/sys/perm.h	2008-01-03 07:16:39 UTC (rev 2093)
+++ trunk/glibc-ports/kfreebsd/x86_64/sys/perm.h	2008-01-03 10:28:40 UTC (rev 2094)
@@ -23,21 +23,9 @@
 
 __BEGIN_DECLS
 
-/* Set port input/output permissions.  */
-extern int ioperm (unsigned long int __from, unsigned long int __num,
-		   int __turn_on) __THROW;
-
-
 /* Change I/O privilege level.  */
 extern int iopl (int __level) __THROW;
 
-extern int i386_set_ioperm (unsigned long int __from, unsigned long int __num,
-			    int __turn_on) __THROW;
-
-/* Retrieve a contiguous range of port input/output permissions.  */
-extern int i386_get_ioperm (unsigned long int __from, unsigned long int *__num,
-			    int *__turned_on) __THROW;
-
 __END_DECLS
 
 #endif	/* _SYS_PERM_H */




More information about the Glibc-bsd-commits mailing list