utime.c: make use of RVAL_DECODED
* utime.c (sys_utime): Update for RVAL_DECODED.
This commit is contained in:
parent
cec41dd2b3
commit
8d51f43946
35
utime.c
35
utime.c
@ -9,24 +9,23 @@ SYS_FUNC(utime)
|
||||
} u;
|
||||
unsigned wordsize;
|
||||
|
||||
if (entering(tcp)) {
|
||||
printpath(tcp, tcp->u_arg[0]);
|
||||
tprints(", ");
|
||||
printpath(tcp, tcp->u_arg[0]);
|
||||
tprints(", ");
|
||||
|
||||
wordsize = current_wordsize;
|
||||
if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u))
|
||||
;
|
||||
else if (wordsize == sizeof u.utl[0]) {
|
||||
tprintf("[%s,", sprinttime(u.utl[0]));
|
||||
tprintf(" %s]", sprinttime(u.utl[1]));
|
||||
}
|
||||
else if (wordsize == sizeof u.uti[0]) {
|
||||
tprintf("[%s,", sprinttime(u.uti[0]));
|
||||
tprintf(" %s]", sprinttime(u.uti[1]));
|
||||
}
|
||||
else
|
||||
tprintf("<decode error: unsupported wordsize %d>",
|
||||
wordsize);
|
||||
wordsize = current_wordsize;
|
||||
if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u))
|
||||
;
|
||||
else if (wordsize == sizeof u.utl[0]) {
|
||||
tprintf("[%s,", sprinttime(u.utl[0]));
|
||||
tprintf(" %s]", sprinttime(u.utl[1]));
|
||||
}
|
||||
return 0;
|
||||
else if (wordsize == sizeof u.uti[0]) {
|
||||
tprintf("[%s,", sprinttime(u.uti[0]));
|
||||
tprintf(" %s]", sprinttime(u.uti[1]));
|
||||
}
|
||||
else
|
||||
tprintf("<decode error: unsupported wordsize %d>",
|
||||
wordsize);
|
||||
|
||||
return RVAL_DECODED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user