]> granicus.if.org Git - strace/commitdiff
Remove parser of unimplemented timerfd syscall
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Apr 2016 17:15:05 +0000 (17:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Apr 2016 17:15:05 +0000 (17:15 +0000)
timerfd syscall was introduced in v2.6.22-rc1, but in v2.6.25-rc1
it was replaced by timerfd_* syscall family.

* linux/avr32/syscallent.h (timerfd): Fix nargs.
* linux/dummy.h (sys_timerfd): Add stub alias.
* time.c (SYS_FUNC(timerfd)): Remove.

linux/avr32/syscallent.h
linux/dummy.h
time.c

index de90634ce79f2bd10ffedbfa06357552e14a074f..0b4ceac3de584dc2a35b081bc9eea173e73f72cb 100644 (file)
 [277] = { 3,   TI,             SEN(shmctl),                    "shmctl"                },
 [278] = { 4,   TD|TF,          SEN(utimensat),                 "utimensat"             },
 [279] = { 3,   TD|TS,          SEN(signalfd),                  "signalfd"              },
-[280] = { 2,   TD,             SEN(timerfd),                   "timerfd"               },
+[280] = { 4,   TD,             SEN(timerfd),                   "timerfd"               },
 [281] = { 1,   TD,             SEN(eventfd),                   "eventfd"               },
 [282] = { },
 [283] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 984b290cbe0a4be0bab9b56832b443efe427688a..bb23f5dd7031cab76b9a6615d285021b70d80a35 100644 (file)
 #define        sys_query_module        printargs
 #define        sys_security            printargs
 #define        sys_stty                printargs
+#define        sys_timerfd             printargs
 #define        sys_tuxcall             printargs
 #define        sys_ulimit              printargs
 #define        sys_ustat               printargs
diff --git a/time.c b/time.c
index c98862d8cf2453df0c97eda4f8fc0161f5a22e77..4c218936ac665fb7686aa4f678b9cecadc48d501 100644 (file)
--- a/time.c
+++ b/time.c
@@ -303,18 +303,6 @@ SYS_FUNC(timer_gettime)
 
 #include "xlat/timerfdflags.h"
 
-SYS_FUNC(timerfd)
-{
-       tprintf("%ld, ", tcp->u_arg[0]);
-       printclockname(tcp->u_arg[0]);
-       tprints(", ");
-       printflags(timerfdflags, tcp->u_arg[2], "TFD_???");
-       tprints(", ");
-       print_itimerspec(tcp, tcp->u_arg[3]);
-
-       return RVAL_DECODED | RVAL_FD;
-}
-
 SYS_FUNC(timerfd_create)
 {
        printclockname(tcp->u_arg[0]);