[llvm-commits] [compiler-rt] r153187 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc

Alexey Samsonov samsonov at google.com
Wed Mar 21 07:33:15 PDT 2012


Author: samsonov
Date: Wed Mar 21 09:33:15 2012
New Revision: 153187

URL: http://llvm.org/viewvc/llvm-project?rev=153187&view=rev
Log:
[asan] add missing declarations from string.h and remove this header

Modified:
    compiler-rt/trunk/lib/asan/asan_interceptors.cc

Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=153187&r1=153186&r2=153187&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Wed Mar 21 09:33:15 2012
@@ -28,7 +28,6 @@
 // FIXME(samsonov): Gradually replace system headers with declarations of
 // intercepted functions.
 #include <pthread.h>
-#include <string.h>
 #endif  // __APPLE__
 
 // Use extern declarations of intercepted functions on Mac and Windows
@@ -56,6 +55,7 @@
 void* memset(void *block, int c, size_t size);
 # if defined(__APPLE__)
 char* strchr(const char *str, int c);
+char* index(const char *string, int c);
 # elif defined(_WIN32)
 char* strchr(const char *s, char c);
 # endif
@@ -64,6 +64,12 @@
 char* strncpy(char *to, const char* from, size_t size);
 int strcmp(const char *s1, const char* s2);
 int strncmp(const char *s1, const char* s2, size_t size);
+# if !defined(_WIN32)
+int strcasecmp(const char *s1, const char *s2);
+int strncasecmp(const char *s1, const char *s2, size_t n);
+char* strdup(const char *s);
+# endif
+size_t strlen(const char *s);
 # if !defined(__APPLE__)
 size_t strnlen(const char *s, size_t maxlen);
 # endif





More information about the llvm-commits mailing list