blob: e3a93392f4df25ccff22d0be7dc431a1de7d22ef [file] [log] [blame]
#include "defs.h"
static void
decode_utimes(struct tcb *tcp, int offset, int special)
{
printpath(tcp, tcp->u_arg[offset]);
tprints(", ");
if (tcp->u_arg[offset + 1] == 0)
tprints("NULL");
else {
tprints("[");
printtv_bitness(tcp, tcp->u_arg[offset + 1],
BITNESS_CURRENT, special);
tprints(", ");
printtv_bitness(tcp, tcp->u_arg[offset + 1]
+ sizeof(struct timeval),
BITNESS_CURRENT, special);
tprints("]");
}
}
SYS_FUNC(utimes)
{
decode_utimes(tcp, 0, 0);
return RVAL_DECODED;
}
SYS_FUNC(futimesat)
{
print_dirfd(tcp, tcp->u_arg[0]);
decode_utimes(tcp, 1, 0);
return RVAL_DECODED;
}
SYS_FUNC(utimensat)
{
print_dirfd(tcp, tcp->u_arg[0]);
decode_utimes(tcp, 1, 1);
tprints(", ");
printflags(at_flags, tcp->u_arg[3], "AT_???");
return RVAL_DECODED;
}
#ifdef ALPHA
SYS_FUNC(osf_utimes)
{
printpath(tcp, tcp->u_arg[0]);
tprints(", ");
printtv_bitness(tcp, tcp->u_arg[1], BITNESS_32, 0);
return RVAL_DECODED;
}
#endif /* ALPHA */