|
From: Marcel T. <te...@us...> - 2002-07-17 20:26:52
|
Update of /cvsroot/openwince/tools/ioperm/include/sys
In directory usw-pr-cvs1:/tmp/cvs-serv8256
Modified Files:
perm.h io.h
Log Message:
Ported to cygwin (removed __THROW, included sys/cdefs.h).
Index: perm.h
===================================================================
RCS file: /cvsroot/openwince/tools/ioperm/include/sys/perm.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- perm.h 17 Jul 2002 20:19:53 -0000 1.1
+++ perm.h 17 Jul 2002 20:26:49 -0000 1.2
@@ -20,16 +20,17 @@
#define _SYS_PERM_H 1
#include <features.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
/* Set port input/output permissions. */
extern int ioperm (unsigned long int __from, unsigned long int __num,
- int __turn_on) __THROW;
+ int __turn_on);
/* Change I/O privilege level. */
-extern int iopl (int __level) __THROW;
+extern int iopl (int __level);
__END_DECLS
Index: io.h
===================================================================
RCS file: /cvsroot/openwince/tools/ioperm/include/sys/io.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- io.h 17 Jul 2002 20:19:53 -0000 1.1
+++ io.h 17 Jul 2002 20:26:49 -0000 1.2
@@ -20,6 +20,7 @@
#define _SYS_IO_H 1
#include <features.h>
+#include <sys/cdefs.h>
__BEGIN_DECLS
@@ -31,12 +32,12 @@
platforms based on the PC I/O architecture probably will, however.
E.g., Linux/Alpha for Alpha PCs supports this. */
extern int ioperm (unsigned long int __from, unsigned long int __num,
- int __turn_on) __THROW;
+ int __turn_on);
/* 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. */
-extern int iopl (int __level) __THROW;
+extern int iopl (int __level);
#if defined __GNUC__ && __GNUC__ >= 2
|