]> granicus.if.org Git - strace/blob - utime.c
xlat: update resources
[strace] / utime.c
1 #include "defs.h"
2
3 #include DEF_MPERS_TYPE(utimbuf_t)
4
5 #include <utime.h>
6
7 typedef struct utimbuf utimbuf_t;
8
9 #include MPERS_DEFS
10
11 SYS_FUNC(utime)
12 {
13         utimbuf_t u;
14
15         printpath(tcp, tcp->u_arg[0]);
16         tprints(", ");
17         if (!umove_or_printaddr(tcp, tcp->u_arg[1], &u)) {
18                 tprintf("{actime=%lld", (long long) u.actime);
19                 tprints_comment(sprinttime(u.actime));
20                 tprintf(", modtime=%lld", (long long) u.modtime);
21                 tprints_comment(sprinttime(u.modtime));
22                 tprints("}");
23         }
24
25         return RVAL_DECODED;
26 }