From: Dmitry V. Levin Date: Mon, 20 Jul 2015 17:16:56 +0000 (+0000) Subject: clone.c: make use of RVAL_DECODED X-Git-Tag: v4.11~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10e407dfb3e1f0637a7a30483760c39e429e9a9b;p=strace clone.c: make use of RVAL_DECODED * clone.c (sys_setns, sys_unshare, sys_fork): Update for RVAL_DECODED. --- diff --git a/clone.c b/clone.c index beb64b2b..63304c22 100644 --- a/clone.c +++ b/clone.c @@ -102,24 +102,20 @@ SYS_FUNC(clone) SYS_FUNC(setns) { - if (entering(tcp)) { - printfd(tcp, tcp->u_arg[0]); - tprints(", "); - printflags(clone_flags, tcp->u_arg[1], "CLONE_???"); - } - return 0; + printfd(tcp, tcp->u_arg[0]); + tprints(", "); + printflags(clone_flags, tcp->u_arg[1], "CLONE_???"); + + return RVAL_DECODED; } SYS_FUNC(unshare) { - if (entering(tcp)) - printflags(clone_flags, tcp->u_arg[0], "CLONE_???"); - return 0; + printflags(clone_flags, tcp->u_arg[0], "CLONE_???"); + return RVAL_DECODED; } SYS_FUNC(fork) { - if (exiting(tcp)) - return RVAL_UDECIMAL; - return 0; + return RVAL_DECODED | RVAL_UDECIMAL; }