open.c: make use of RVAL_DECODED

* open.c (decode_open, sys_creat): Update for RVAL_DECODED.
This commit is contained in:
2015-07-17 22:03:29 +00:00
parent ada84324ae
commit d62d8fd671

10
open.c
View File

@ -84,7 +84,6 @@ tprint_open_modes(int flags)
static int static int
decode_open(struct tcb *tcp, int offset) decode_open(struct tcb *tcp, int offset)
{ {
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[offset]); printpath(tcp, tcp->u_arg[offset]);
tprints(", "); tprints(", ");
/* flags */ /* flags */
@ -93,8 +92,8 @@ decode_open(struct tcb *tcp, int offset)
/* mode */ /* mode */
tprintf(", %#lo", tcp->u_arg[offset + 2]); tprintf(", %#lo", tcp->u_arg[offset + 2]);
} }
}
return RVAL_FD; return RVAL_DECODED | RVAL_FD;
} }
SYS_FUNC(open) SYS_FUNC(open)
@ -111,9 +110,8 @@ SYS_FUNC(openat)
SYS_FUNC(creat) SYS_FUNC(creat)
{ {
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]); printpath(tcp, tcp->u_arg[0]);
tprintf(", %#lo", tcp->u_arg[1]); tprintf(", %#lo", tcp->u_arg[1]);
}
return RVAL_FD; return RVAL_DECODED | RVAL_FD;
} }