blob: 4f8f40a1e6cc07d4ab1be2af1e34cb332406d069 [file] [log] [blame]
Dmitry V. Levinfb470f32014-12-06 03:53:16 +00001#include "defs.h"
2
Elvira Khabirova6b6a55c2015-08-04 02:16:20 +03003#include DEF_MPERS_TYPE(utimbuf_t)
4
5#include <utime.h>
6
7typedef struct utimbuf utimbuf_t;
8
9#include MPERS_DEFS
10
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000011SYS_FUNC(utime)
Dmitry V. Levinfb470f32014-12-06 03:53:16 +000012{
Elvira Khabirova6b6a55c2015-08-04 02:16:20 +030013 utimbuf_t u;
Dmitry V. Levinfb470f32014-12-06 03:53:16 +000014
Dmitry V. Levin8d51f432015-07-15 08:29:56 +000015 printpath(tcp, tcp->u_arg[0]);
16 tprints(", ");
Elvira Khabirova6b6a55c2015-08-04 02:16:20 +030017 if (!umove_or_printaddr(tcp, tcp->u_arg[1], &u)) {
18 tprintf("[%s,", sprinttime(u.actime));
19 tprintf(" %s]", sprinttime(u.modtime));
Dmitry V. Levinfb470f32014-12-06 03:53:16 +000020 }
Dmitry V. Levin8d51f432015-07-15 08:29:56 +000021
22 return RVAL_DECODED;
Dmitry V. Levinfb470f32014-12-06 03:53:16 +000023}