[compiler-rt] [compiler-rt] rtsan pipe2 interception for Linux. (PR #123517)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 19 16:05:33 PST 2025


================
@@ -302,6 +302,15 @@ INTERCEPTOR(int, fpurge, FILE *stream) {
   __rtsan_notify_intercepted_call("fpurge");
   return REAL(fpurge)(stream);
 }
+#define RTSAN_MAYBE_INTERCEPT_FPURGE INTERCEPT_FUNCTION(fpurge)
+#define RTSAN_MAYBE_INTERCEPT_PIPE2
+#else
----------------
cjappl wrote:

I would split this into its own ifdef, I think fpurge and pipe2 are unrelated to one another

https://github.com/llvm/llvm-project/pull/123517


More information about the llvm-commits mailing list