summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-10-23 08:40:19 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-10-23 08:40:19 +0000
commit25bc73829ba3cf017aa9ff12987efad1017e2bc7 (patch)
treecdf5bb4c8d65cb42b87d9c8c0c82fc05098ca3f3
parentb1907c71402e01deb6fa3909a75dbc674bfd907b (diff)
downloadcompiler-rt-25bc73829ba3cf017aa9ff12987efad1017e2bc7.tar.gz
compiler-rt-25bc73829ba3cf017aa9ff12987efad1017e2bc7.tar.bz2
compiler-rt-25bc73829ba3cf017aa9ff12987efad1017e2bc7.tar.xz
tsan: fix linux syscall hooks
the file references non-existent arguments and breaks build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193234 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/sanitizer/linux_syscall_hooks.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sanitizer/linux_syscall_hooks.h b/include/sanitizer/linux_syscall_hooks.h
index 9a38070a..89867c15 100644
--- a/include/sanitizer/linux_syscall_hooks.h
+++ b/include/sanitizer/linux_syscall_hooks.h
@@ -987,10 +987,11 @@
#else
#define __sanitizer_syscall_pre_pread64(fd, buf, count, pos0, pos1) \
__sanitizer_syscall_pre_impl_pread64((long)(fd), (long)(buf), (long)(count), \
- (long)(pos))
+ (long)(pos0), (long)(pos1))
#define __sanitizer_syscall_post_pread64(res, fd, buf, count, pos0, pos1) \
__sanitizer_syscall_post_impl_pread64(res, (long)(fd), (long)(buf), \
- (long)(count), (long)(pos))
+ (long)(count), (long)(pos0), \
+ (long)(pos1))
#define __sanitizer_syscall_pre_pwrite64(fd, buf, count, pos0, pos1) \
__sanitizer_syscall_pre_impl_pwrite64( \
(long)(fd), (long)(buf), (long)(count), (long)(pos0), (long)(pos1))