[compiler-rt] r201070 - [sanitizer] Disable 3 more syscall hooks on Android.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Feb 10 00:35:59 PST 2014


Author: eugenis
Date: Mon Feb 10 02:35:58 2014
New Revision: 201070

URL: http://llvm.org/viewvc/llvm-project?rev=201070&view=rev
Log:
[sanitizer] Disable 3 more syscall hooks on Android.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc?rev=201070&r1=201069&r2=201070&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc Mon Feb 10 02:35:58 2014
@@ -234,6 +234,7 @@ POST_SYSCALL(settimeofday)(long res, voi
   }
 }
 
+#if !SANITIZER_ANDROID
 PRE_SYSCALL(adjtimex)(void *txc_p) {}
 
 POST_SYSCALL(adjtimex)(long res, void *txc_p) {
@@ -241,6 +242,7 @@ POST_SYSCALL(adjtimex)(long res, void *t
     if (txc_p) POST_WRITE(txc_p, struct_timex_sz);
   }
 }
+#endif
 
 PRE_SYSCALL(times)(void *tbuf) {}
 
@@ -496,6 +498,7 @@ POST_SYSCALL(clock_gettime)(long res, lo
   }
 }
 
+#if !SANITIZER_ANDROID
 PRE_SYSCALL(clock_adjtime)(long which_clock, void *tx) {}
 
 POST_SYSCALL(clock_adjtime)(long res, long which_clock, void *tx) {
@@ -503,6 +506,7 @@ POST_SYSCALL(clock_adjtime)(long res, lo
     if (tx) POST_WRITE(tx, struct_timex_sz);
   }
 }
+#endif
 
 PRE_SYSCALL(clock_getres)(long which_clock, void *tp) {}
 
@@ -2084,6 +2088,7 @@ POST_SYSCALL(msgrcv)(long res, long msqi
   }
 }
 
+#if !SANITIZER_ANDROID
 PRE_SYSCALL(msgctl)(long msqid, long cmd, void *buf) {}
 
 POST_SYSCALL(msgctl)(long res, long msqid, long cmd, void *buf) {
@@ -2091,6 +2096,7 @@ POST_SYSCALL(msgctl)(long res, long msqi
     if (buf) POST_WRITE(buf, struct_msqid_ds_sz);
   }
 }
+#endif
 
 PRE_SYSCALL(semget)(long key, long nsems, long semflg) {}
 





More information about the llvm-commits mailing list