[compiler-rt] r258874 - [sanitizers] execve & waitpid on mac.

Mike Aizatsky via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 14:53:53 PST 2016


Author: aizatsky
Date: Tue Jan 26 16:53:52 2016
New Revision: 258874

URL: http://llvm.org/viewvc/llvm-project?rev=258874&view=rev
Log:
[sanitizers] execve & waitpid on mac.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=258874&r1=258873&r2=258874&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Tue Jan 26 16:53:52 2016
@@ -68,6 +68,7 @@ extern "C" {
 #include <sys/stat.h>
 #include <sys/sysctl.h>
 #include <sys/types.h>
+#include <sys/wait.h>
 #include <unistd.h>
 #include <util.h>
 
@@ -199,6 +200,15 @@ uptr internal_ftruncate(fd_t fd, uptr si
   return ftruncate(fd, size);
 }
 
+uptr internal_execve(const char *filename, char *const argv[],
+                     char *const envp[]) {
+  return execve(filename, argv, envp);
+}
+
+uptr internal_waitpid(int pid, int *status, int options) {
+  return waitpid(pid, status, options);
+}
+
 // ----------------- sanitizer_common.h
 bool FileExists(const char *filename) {
   struct stat st;




More information about the llvm-commits mailing list