@@ -325,37 +325,6 @@ INTERCEPTOR(FILE *, fmemopen, void *buf, size_t size, const char *mode) {
325
325
#define RTSAN_MAYBE_INTERCEPT_FMEMOPEN
326
326
#endif
327
327
328
- #if SANITIZER_INTERCEPT_SETVBUF
329
- INTERCEPTOR (void , setbuf, FILE *stream, char *buf) {
330
- __rtsan_notify_intercepted_call (" setbuf" );
331
- return REAL (setbuf )(stream, buf);
332
- }
333
-
334
- INTERCEPTOR (void , setbuffer, FILE *stream, char *buf, size_t size) {
335
- __rtsan_notify_intercepted_call (" setbuffer" );
336
- return REAL (setbuffer )(stream, buf, size);
337
- }
338
-
339
- INTERCEPTOR (void , setlinebuf, FILE *stream) {
340
- __rtsan_notify_intercepted_call (" setlinebuf" );
341
- return REAL (setlinebuf )(stream);
342
- }
343
-
344
- INTERCEPTOR (int , setvbuf, FILE *stream, char *buf, int mode, size_t size) {
345
- __rtsan_notify_intercepted_call (" setvbuf" );
346
- return REAL (setvbuf )(stream, buf, mode, size);
347
- }
348
- #define RTSAN_MAYBE_INTERCEPT_SETBUF INTERCEPT_FUNCTION (setbuf)
349
- #define RTSAN_MAYBE_INTERCEPT_SETBUFFER INTERCEPT_FUNCTION (setbuffer)
350
- #define RTSAN_MAYBE_INTERCEPT_SETLINEBUF INTERCEPT_FUNCTION (setlinebuf)
351
- #define RTSAN_MAYBE_INTERCEPT_SETVBUF INTERCEPT_FUNCTION (setvbuf)
352
- #else
353
- #define RTSAN_MAYBE_INTERCEPT_SETBUF
354
- #define RTSAN_MAYBE_INTERCEPT_SETBUFFER
355
- #define RTSAN_MAYBE_INTERCEPT_SETLINEBUF
356
- #define RTSAN_MAYBE_INTERCEPT_SETVBUF
357
- #endif
358
-
359
328
INTERCEPTOR (int , puts, const char *s) {
360
329
__rtsan_notify_intercepted_call (" puts" );
361
330
return REAL (puts )(s);
@@ -1017,10 +986,6 @@ void __rtsan::InitializeInterceptors() {
1017
986
RTSAN_MAYBE_INTERCEPT_FOPENCOOKIE;
1018
987
RTSAN_MAYBE_INTERCEPT_OPEN_MEMSTREAM;
1019
988
RTSAN_MAYBE_INTERCEPT_FMEMOPEN;
1020
- RTSAN_MAYBE_INTERCEPT_SETBUF;
1021
- RTSAN_MAYBE_INTERCEPT_SETBUFFER;
1022
- RTSAN_MAYBE_INTERCEPT_SETLINEBUF;
1023
- RTSAN_MAYBE_INTERCEPT_SETVBUF;
1024
989
INTERCEPT_FUNCTION (lseek );
1025
990
RTSAN_MAYBE_INTERCEPT_LSEEK64;
1026
991
INTERCEPT_FUNCTION (dup );
0 commit comments