clone.c: make use of RVAL_DECODED

* clone.c (sys_setns, sys_unshare, sys_fork): Update for RVAL_DECODED.
This commit is contained in:
Дмитрий Левин 2015-07-20 17:16:56 +00:00
parent cbabaf9141
commit 10e407dfb3

20
clone.c
View File

@ -102,24 +102,20 @@ SYS_FUNC(clone)
SYS_FUNC(setns) SYS_FUNC(setns)
{ {
if (entering(tcp)) { printfd(tcp, tcp->u_arg[0]);
printfd(tcp, tcp->u_arg[0]); tprints(", ");
tprints(", "); printflags(clone_flags, tcp->u_arg[1], "CLONE_???");
printflags(clone_flags, tcp->u_arg[1], "CLONE_???");
} return RVAL_DECODED;
return 0;
} }
SYS_FUNC(unshare) SYS_FUNC(unshare)
{ {
if (entering(tcp)) printflags(clone_flags, tcp->u_arg[0], "CLONE_???");
printflags(clone_flags, tcp->u_arg[0], "CLONE_???"); return RVAL_DECODED;
return 0;
} }
SYS_FUNC(fork) SYS_FUNC(fork)
{ {
if (exiting(tcp)) return RVAL_DECODED | RVAL_UDECIMAL;
return RVAL_UDECIMAL;
return 0;
} }