Mpersify parser of times syscall

Fix multiple personalities support in parser of times syscall by
mpersifying struct tms.

* times.c (tms_t): New typedef.  Mpersify it.
(sys_times): Use it instead of struct tms.
This commit is contained in:
Elvira Khabirova 2015-08-03 07:26:53 +03:00 committed by Dmitry V. Levin
parent 22d997e538
commit 6773d6d8a1

View File

@ -1,9 +1,12 @@
#include "defs.h"
#include DEF_MPERS_TYPE(tms_t)
#include <sys/times.h>
typedef struct tms tms_t;
#include MPERS_DEFS
SYS_FUNC(times)
{
struct tms tbuf;
tms_t tbuf;
if (entering(tcp))
return 0;