[PATCH] D56209: [Sanitizer] Enable fun open on FreeBSD

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 2 10:58:42 PST 2019


devnexen created this revision.
devnexen added a reviewer: krytarowski.
devnexen created this object with visibility "All Users".
Herald added subscribers: Sanitizers, llvm-commits, fedor.sergeev, kubamracek.

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D56209

Files:
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  test/sanitizer_common/TestCases/NetBSD/funopen.cc
  test/sanitizer_common/TestCases/Posix/funopen.cc


Index: test/sanitizer_common/TestCases/Posix/funopen.cc
===================================================================
--- test/sanitizer_common/TestCases/Posix/funopen.cc
+++ test/sanitizer_common/TestCases/Posix/funopen.cc
@@ -10,6 +10,8 @@
 // CHECK-NEXT: SEEK CALLED; off=100, whence=0
 // CHECK-NEXT: READ CALLED; len={{[0-9]*}}
 // CHECK-NEXT: READ: test
+//
+// UNSUPPORTED: linux. darwin, solaris
 
 #include <assert.h>
 #include <stdio.h>
Index: lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -551,7 +551,7 @@
 #define SANITIZER_INTERCEPT_POPEN SI_POSIX
 #define SANITIZER_INTERCEPT_POPENVE SI_NETBSD
 #define SANITIZER_INTERCEPT_PCLOSE SI_POSIX
-#define SANITIZER_INTERCEPT_FUNOPEN SI_NETBSD
+#define SANITIZER_INTERCEPT_FUNOPEN (SI_NETBSD || SI_FREEBSD)
 #define SANITIZER_INTERCEPT_FUNOPEN2 SI_NETBSD
 
 #endif  // #ifndef SANITIZER_PLATFORM_INTERCEPTORS_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56209.179892.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190102/b0c77700/attachment.bin>


More information about the llvm-commits mailing list