[Glibc-bsd-commits] r1428 -
trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys
Petr Salinger
ps-guest at costa.debian.org
Mon Apr 10 08:48:32 UTC 2006
Author: ps-guest
Date: 2006-04-10 08:48:28 +0000 (Mon, 10 Apr 2006)
New Revision: 1428
Modified:
trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/io.h
trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/perm.h
Log:
* sync prototype of ioperm() with linux version
it does not matter for i386, but it will be different for amd64
Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/io.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/io.h 2006-04-07 16:55:32 UTC (rev 1427)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/io.h 2006-04-10 08:48:28 UTC (rev 1428)
@@ -29,8 +29,8 @@
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 int __from, unsigned int __num, int __turn_on)
- __THROW;
+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
Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/perm.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/perm.h 2006-04-07 16:55:32 UTC (rev 1427)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/sys/perm.h 2006-04-10 08:48:28 UTC (rev 1428)
@@ -24,8 +24,13 @@
__BEGIN_DECLS
/* Set port input/output permissions. */
-extern int ioperm (unsigned int __from, unsigned int __num, int __turn_on)
- __THROW;
+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 int __from, unsigned int __num,
int __turn_on) __THROW;
More information about the Glibc-bsd-commits
mailing list