summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_syscalls.inc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-10-15 12:57:59 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-10-15 12:57:59 +0000
commit5f4984db88b7b67539f62d7653b928aeadf91b16 (patch)
tree991081670aab09f01f85c0cd2b117f2bb10a59cc /lib/sanitizer_common/sanitizer_common_syscalls.inc
parent62a04e3c8f500495501e1a5e394d81e7f95fa205 (diff)
tsan: move kernel struct definition from sanitizer_linux.h to sanitizer_platform_limits_posix.h
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_syscalls.inc')
-rw-r--r--lib/sanitizer_common/sanitizer_common_syscalls.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_syscalls.inc b/lib/sanitizer_common/sanitizer_common_syscalls.inc
index eef79864f..942ffc4c9 100644
--- a/lib/sanitizer_common/sanitizer_common_syscalls.inc
+++ b/lib/sanitizer_common/sanitizer_common_syscalls.inc
@@ -37,7 +37,6 @@
#if SANITIZER_LINUX
#include "sanitizer_libc.h"
-#include "sanitizer_linux.h"
#define PRE_SYSCALL(name) \
SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_syscall_pre_impl_##name
@@ -104,6 +103,10 @@ struct sanitizer_kernel_sockaddr {
char sa_data[14];
};
+// Real sigset size is always passed as a syscall argument.
+// Declare it "void" to catch sizeof(kernel_sigset_t).
+typedef void kernel_sigset_t;
+
static void kernel_write_iovec(const __sanitizer_iovec *iovec,
SIZE_T iovlen, SIZE_T maxlen) {
for (SIZE_T i = 0; i < iovlen && maxlen; ++i) {