[compiler-rt] [compiler-rt][rtsan] intercept fflush. (PR #121643)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 05:48:24 PST 2025
================
@@ -292,6 +292,11 @@ INTERCEPTOR(int, fputs, const char *s, FILE *stream) {
return REAL(fputs)(s, stream);
}
+INTERCEPTOR(int, fflush, FILE *stream) {
----------------
davidtrevelyan wrote:
Do you plan to add `fpurge` as well? `man fflush` on Darwin also contains details for `fpurge` - it might be nice to do them both at the same time
https://github.com/llvm/llvm-project/pull/121643
More information about the llvm-commits
mailing list