strace/utimes.c
Dmitry V. Levin f1e3a32045 Convert parser of struct timeval to new mpers infrastructure
* defs.h (printtv, printtv_special): Remove.
[ALPHA] (print_timeval32, print_timeval32_pair): New prototypes.
* print_time.c (print_timeval): New mpers printer.
[ALPHA] (print_timeval32, print_timeval32_pair): New functions.
* time.c (sys_gettimeofday, sys_settimeofday): Use print_timeval
instead of printtv.
[ALPHA] (sys_osf_gettimeofday, sys_osf_settimeofday):
Use print_timeval32 instead of printtv_bitness.
* utimes.c [ALPHA] (sys_osf_utimes): Use print_timeval32_pair
instead of printtv_bitness.
2015-09-19 04:04:49 +03:00

44 lines
737 B
C

#include "defs.h"
SYS_FUNC(utimes)
{
printpath(tcp, tcp->u_arg[0]);
tprints(", ");
print_timeval_pair(tcp, tcp->u_arg[1]);
return RVAL_DECODED;
}
SYS_FUNC(futimesat)
{
print_dirfd(tcp, tcp->u_arg[0]);
printpath(tcp, tcp->u_arg[1]);
tprints(", ");
print_timeval_pair(tcp, tcp->u_arg[2]);
return RVAL_DECODED;
}
SYS_FUNC(utimensat)
{
print_dirfd(tcp, tcp->u_arg[0]);
printpath(tcp, tcp->u_arg[1]);
tprints(", ");
print_timespec_utime_pair(tcp, tcp->u_arg[2]);
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(", ");
print_timeval32_pair(tcp, tcp->u_arg[1]);
return RVAL_DECODED;
}
#endif /* ALPHA */