6b6a55c2b4
Fix multiple personalities support in parser of utime syscall by using mpersified utimbuf_t typedef. * utime.c (utimbuf_t): New typedef. Mpersify it. (sys_utime): Use it instead of a locally defined union.
24 lines
375 B
C
24 lines
375 B
C
#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("[%s,", sprinttime(u.actime));
|
|
tprintf(" %s]", sprinttime(u.modtime));
|
|
}
|
|
|
|
return RVAL_DECODED;
|
|
}
|