liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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;
}