add ioperm/iopl syscalls
[musl] / src / linux / ioperm.c
diff --git a/src/linux/ioperm.c b/src/linux/ioperm.c
new file mode 100644 (file)
index 0000000..6d7c37d
--- /dev/null
@@ -0,0 +1,9 @@
+#include <sys/io.h>
+#include "syscall.h"
+
+#ifdef SYS_ioperm
+int ioperm(unsigned long from, unsigned long num, int turn_on)
+{
+       return syscall(SYS_ioperm, from, num, turn_on);
+}
+#endif