Files
rk35xx-android14/external/strace/utime.c
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

27 lines
492 B
C

#include "defs.h"
#include DEF_MPERS_TYPE(utimbuf_t)
#include <utime.h>
typedef struct utimbuf utimbuf_t;
#include MPERS_DEFS
SYS_FUNC(utime)
{
utimbuf_t u;
printpath(tcp, tcp->u_arg[0]);
tprints(", ");
if (!umove_or_printaddr(tcp, tcp->u_arg[1], &u)) {
tprintf("{actime=%lld", (long long) u.actime);
tprints_comment(sprinttime(u.actime));
tprintf(", modtime=%lld", (long long) u.modtime);
tprints_comment(sprinttime(u.modtime));
tprints("}");
}
return RVAL_DECODED;
}