]> granicus.if.org Git - strace/commitdiff
Implement ioperm syscall decoding
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 22 Nov 2015 18:18:43 +0000 (18:18 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 22 Nov 2015 23:10:12 +0000 (23:10 +0000)
* ioperm.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* linux/dummy.h (sys_ioperm): Remove stub alias.

Makefile.am
ioperm.c [new file with mode: 0644]
linux/dummy.h

index b74bf455dc50f1adb74a7fe81adc65513d0fc68e..9f3d62ddc456393b52a8655eec28183faf8f5568 100644 (file)
@@ -73,6 +73,7 @@ strace_SOURCES =      \
        inotify.c       \
        io.c            \
        ioctl.c         \
+       ioperm.c        \
        ioprio.c        \
        ipc_defs.h      \
        ipc_msg.c       \
diff --git a/ioperm.c b/ioperm.c
new file mode 100644 (file)
index 0000000..1a92a26
--- /dev/null
+++ b/ioperm.c
@@ -0,0 +1,9 @@
+#include "defs.h"
+
+SYS_FUNC(ioperm)
+{
+       tprintf("%#lx, %#lx, %d",
+               tcp->u_arg[0], tcp->u_arg[1], (int) tcp->u_arg[2]);
+
+       return RVAL_DECODED;
+}
index 356ece2e0c60fb8ebef89d9bdd8dee47bec1de9c..fca11ef134a8f1197bb7499ccc3aed7ef93b642b 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 /* still unfinished */
-#define        sys_ioperm              printargs
 #define        sys_iopl                printargs
 #define        sys_kcmp                printargs
 #define        sys_kexec_file_load     printargs