Dmitry V. Levin | fb470f3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
2 | |||||
Elvira Khabirova | 6b6a55c | 2015-08-04 02:16:20 +0300 | [diff] [blame] | 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 | |||||
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 11 | SYS_FUNC(utime) |
Dmitry V. Levin | fb470f3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 12 | { |
Elvira Khabirova | 6b6a55c | 2015-08-04 02:16:20 +0300 | [diff] [blame] | 13 | utimbuf_t u; |
Dmitry V. Levin | fb470f3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 14 | |
Dmitry V. Levin | 8d51f43 | 2015-07-15 08:29:56 +0000 | [diff] [blame] | 15 | printpath(tcp, tcp->u_arg[0]); |
16 | tprints(", "); | ||||
Elvira Khabirova | 6b6a55c | 2015-08-04 02:16:20 +0300 | [diff] [blame] | 17 | if (!umove_or_printaddr(tcp, tcp->u_arg[1], &u)) { |
18 | tprintf("[%s,", sprinttime(u.actime)); | ||||
19 | tprintf(" %s]", sprinttime(u.modtime)); | ||||
Dmitry V. Levin | fb470f3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 20 | } |
Dmitry V. Levin | 8d51f43 | 2015-07-15 08:29:56 +0000 | [diff] [blame] | 21 | |
22 | return RVAL_DECODED; | ||||
Dmitry V. Levin | fb470f3 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 23 | } |