From: Elvira Khabirova Date: Mon, 3 Aug 2015 03:27:48 +0000 (+0300) Subject: Mpersify parser of sysinfo syscall X-Git-Tag: v4.11~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ec7e211558bd83899148b4e1428566798fd4226;p=strace Mpersify parser of sysinfo syscall Fix multiple personalities support in parser of sysinfo syscall by mpersifying struct sysinfo. * sysinfo.c (sysinfo_t): New typedef. Mpersify it. (sys_sysinfo): Use it instead of struct sysinfo. --- diff --git a/sysinfo.c b/sysinfo.c index 4d9e30c6..46f4ed20 100644 --- a/sysinfo.c +++ b/sysinfo.c @@ -1,9 +1,12 @@ #include "defs.h" +#include DEF_MPERS_TYPE(sysinfo_t) #include +typedef struct sysinfo sysinfo_t; +#include MPERS_DEFS SYS_FUNC(sysinfo) { - struct sysinfo si; + sysinfo_t si; if (entering(tcp)) return 0;