diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-18 11:14:16 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-18 11:14:16 +0000 |
commit | 5cee73e486aaa617a9627bb69a6447d3369b62cc (patch) | |
tree | 5c8c1975418d3a9c0c7bf87a1eb3d4527cce7251 /lib/msan/msan_interceptors.cc | |
parent | 00dc24362d11540c39d57d27de846ce5823110cd (diff) | |
download | compiler-rt-5cee73e486aaa617a9627bb69a6447d3369b62cc.tar.gz compiler-rt-5cee73e486aaa617a9627bb69a6447d3369b62cc.tar.bz2 compiler-rt-5cee73e486aaa617a9627bb69a6447d3369b62cc.tar.xz |
[sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_interceptors.cc')
-rw-r--r-- | lib/msan/msan_interceptors.cc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/msan/msan_interceptors.cc b/lib/msan/msan_interceptors.cc index 700d7cfe..46f5dd2a 100644 --- a/lib/msan/msan_interceptors.cc +++ b/lib/msan/msan_interceptors.cc @@ -751,38 +751,6 @@ INTERCEPTOR(int, getrlimit64, int resource, void *rlim) { return res; } -INTERCEPTOR(int, statfs, const char *s, void *buf) { - ENSURE_MSAN_INITED(); - int res = REAL(statfs)(s, buf); - if (!res) - __msan_unpoison(buf, __sanitizer::struct_statfs_sz); - return res; -} - -INTERCEPTOR(int, fstatfs, int fd, void *buf) { - ENSURE_MSAN_INITED(); - int res = REAL(fstatfs)(fd, buf); - if (!res) - __msan_unpoison(buf, __sanitizer::struct_statfs_sz); - return res; -} - -INTERCEPTOR(int, statfs64, const char *s, void *buf) { - ENSURE_MSAN_INITED(); - int res = REAL(statfs64)(s, buf); - if (!res) - __msan_unpoison(buf, __sanitizer::struct_statfs64_sz); - return res; -} - -INTERCEPTOR(int, fstatfs64, int fd, void *buf) { - ENSURE_MSAN_INITED(); - int res = REAL(fstatfs64)(fd, buf); - if (!res) - __msan_unpoison(buf, __sanitizer::struct_statfs64_sz); - return res; -} - INTERCEPTOR(int, uname, void *utsname) { ENSURE_MSAN_INITED(); int res = REAL(uname)(utsname); @@ -1402,10 +1370,6 @@ void InitializeInterceptors() { INTERCEPT_FUNCTION(fgets_unlocked); INTERCEPT_FUNCTION(getrlimit); INTERCEPT_FUNCTION(getrlimit64); - INTERCEPT_FUNCTION(statfs); - INTERCEPT_FUNCTION(fstatfs); - INTERCEPT_FUNCTION(statfs64); - INTERCEPT_FUNCTION(fstatfs64); INTERCEPT_FUNCTION(uname); INTERCEPT_FUNCTION(gethostname); INTERCEPT_FUNCTION(epoll_wait); |