return RVAL_DECODED | RVAL_FD;
}
-SYS_FUNC(timerfd_settime)
+static int
+do_timerfd_settime(struct tcb *const tcp, const print_obj_by_addr_fn print_its)
{
if (entering(tcp)) {
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
printflags(timerfdflags, tcp->u_arg[1], "TFD_???");
tprints(", ");
- print_itimerspec(tcp, tcp->u_arg[2]);
+ print_its(tcp, tcp->u_arg[2]);
tprints(", ");
} else {
- print_itimerspec(tcp, tcp->u_arg[3]);
+ print_its(tcp, tcp->u_arg[3]);
}
return 0;
}
-SYS_FUNC(timerfd_gettime)
+SYS_FUNC(timerfd_settime)
+{
+ return do_timerfd_settime(tcp, print_itimerspec);
+}
+
+static int
+do_timerfd_gettime(struct tcb *const tcp, const print_obj_by_addr_fn print_its)
{
if (entering(tcp)) {
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
} else {
- print_itimerspec(tcp, tcp->u_arg[1]);
+ print_its(tcp, tcp->u_arg[1]);
}
return 0;
}
+
+SYS_FUNC(timerfd_gettime)
+{
+ return do_timerfd_gettime(tcp, print_itimerspec);
+}