]> granicus.if.org Git - strace/commitdiff
Mpersify parser of times syscall
authorElvira Khabirova <lineprinter0@gmail.com>
Mon, 3 Aug 2015 04:26:53 +0000 (07:26 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 28 Aug 2015 08:46:23 +0000 (08:46 +0000)
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.

times.c

diff --git a/times.c b/times.c
index 64729cfa30942bf81b6a11e93218a1a581c33885..23a77473d07bbe0d418c8424212b2f36eee33f53 100644 (file)
--- a/times.c
+++ b/times.c
@@ -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;