Dmitry V. Levin
c9a199278b
* utimes.c (decode_utimes): Change to return void. Update for RVAL_DECODED. (sys_utimes, sys_futimesat, sys_utimensat, sys_osf_utimes): Update callers. Update for RVAL_DECODED.
57 lines
979 B
C
57 lines
979 B
C
#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 */
|