Lines Matching refs:func

396 #define INTERCEPTOR_STRTO_BODY(ret_type, func, ...) \
398 ret_type res = REAL(func)(__VA_ARGS__); \
402 #define INTERCEPTOR_STRTO(ret_type, func, char_type) \
403 INTERCEPTOR(ret_type, func, const char_type *nptr, char_type **endptr) { \
404 INTERCEPTOR_STRTO_BODY(ret_type, func, nptr, endptr); \
407 #define INTERCEPTOR_STRTO_BASE(ret_type, func, char_type) \
408 INTERCEPTOR(ret_type, func, const char_type *nptr, char_type **endptr, \
410 INTERCEPTOR_STRTO_BODY(ret_type, func, nptr, endptr, base); \
413 #define INTERCEPTOR_STRTO_LOC(ret_type, func, char_type) \
414 INTERCEPTOR(ret_type, func, const char_type *nptr, char_type **endptr, \
416 INTERCEPTOR_STRTO_BODY(ret_type, func, nptr, endptr, loc); \
419 #define INTERCEPTOR_STRTO_BASE_LOC(ret_type, func, char_type) \
420 INTERCEPTOR(ret_type, func, const char_type *nptr, char_type **endptr, \
422 INTERCEPTOR_STRTO_BODY(ret_type, func, nptr, endptr, base, loc); \
426 #define INTERCEPTORS_STRTO(ret_type, func, char_type) \
427 INTERCEPTOR_STRTO(ret_type, func, char_type) \
428 INTERCEPTOR_STRTO_LOC(ret_type, func##_l, char_type)
430 #define INTERCEPTORS_STRTO_BASE(ret_type, func, char_type) \
431 INTERCEPTOR_STRTO_BASE(ret_type, func, char_type) \
432 INTERCEPTOR_STRTO_BASE_LOC(ret_type, func##_l, char_type)
435 #define INTERCEPTORS_STRTO(ret_type, func, char_type) \
436 INTERCEPTOR_STRTO(ret_type, func, char_type) \
437 INTERCEPTOR_STRTO_LOC(ret_type, func##_l, char_type) \
438 INTERCEPTOR_STRTO_LOC(ret_type, __##func##_l, char_type) \
439 INTERCEPTOR_STRTO_LOC(ret_type, __##func##_internal, char_type)
441 #define INTERCEPTORS_STRTO_BASE(ret_type, func, char_type) \
442 INTERCEPTOR_STRTO_BASE(ret_type, func, char_type) \
443 INTERCEPTOR_STRTO_BASE_LOC(ret_type, func##_l, char_type) \
444 INTERCEPTOR_STRTO_BASE_LOC(ret_type, __##func##_l, char_type) \
445 INTERCEPTOR_STRTO_BASE_LOC(ret_type, __##func##_internal, char_type)
466 #define INTERCEPT_STRTO(func) \
467 INTERCEPT_FUNCTION(func); \
468 INTERCEPT_FUNCTION(func##_l);
470 #define INTERCEPT_STRTO(func) \
471 INTERCEPT_FUNCTION(func); \
472 INTERCEPT_FUNCTION(func##_l); \
473 INTERCEPT_FUNCTION(__##func##_l); \
474 INTERCEPT_FUNCTION(__##func##_internal);
497 #define INTERCEPTOR_STRFTIME_BODY(char_type, ret_type, func, s, ...) \
500 ret_type res = REAL(func)(s, __VA_ARGS__); \
811 #define INTERCEPTOR_GETRLIMIT_BODY(func, resource, rlim) \
815 int res = REAL(func)(resource, rlim); \
1140 void (*func)(void *arg);
1169 ((void(*)())r->func)();
1178 if (!r->func)
1180 r->func(r->arg);
1181 r->func = nullptr;
1187 INTERCEPTOR(int, __cxa_atexit, void (*func)(void *), void *arg,
1189 if (msan_init_is_running) return REAL(__cxa_atexit)(func, arg, dso_handle);
1190 return setup_at_exit_wrapper((void(*)())func, arg, dso_handle);
1194 INTERCEPTOR(int, atexit, void (*func)()) {
1197 return REAL(__cxa_atexit)((void (*)(void *a))func, 0, 0);
1198 return setup_at_exit_wrapper((void(*)())func, 0, 0);
1205 r->func = (void(*)(void *a))f;
1331 #define COMMON_INTERCEPTOR_ENTER(ctx, func, ...) \
1333 return REAL(func)(__VA_ARGS__); \
1416 #define SIGNAL_INTERCEPTOR_SIGNAL_IMPL(func, signo, handler) \
1420 return REAL(func)(signo, handler); \