We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
34 lines
623 B
C
34 lines
623 B
C
/*
|
|
* Copyright (c) 2014-2018 The strace developers.
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
*/
|
|
|
|
#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;
|
|
}
|