Home
last modified time | relevance | path

Searched refs:REAL (Results 1 – 25 of 85) sorted by relevance

1234

/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/
H A Drtsan_interceptors.cpp80 const int result = REAL(open)(path, oflag, mode); in INTERCEPTOR()
94 const int result = REAL(openat)(fd, path, oflag, mode); in INTERCEPTOR()
102 const int result = REAL(creat)(path, mode); in INTERCEPTOR()
120 int result = REAL(fcntl)(filedes, cmd, arg); in INTERCEPTOR()
129 return REAL(close)(filedes); in INTERCEPTOR()
134 return REAL(fopen)(path, mode); in INTERCEPTOR()
140 return REAL(fread)(ptr, size, nitems, stream); in INTERCEPTOR()
146 return REAL(fwrite)(ptr, size, nitems, stream); in INTERCEPTOR()
151 return REAL(fclose)(stream); in INTERCEPTOR()
156 return REAL(fputs)(s, stream); in INTERCEPTOR()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_interceptors.cpp61 if (REAL(strnlen)) { in MaybeRealStrnlen()
62 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen()
104 return REAL(func)(__VA_ARGS__); \
107 return REAL(func)(__VA_ARGS__); \
130 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
138 REAL(dlopen)(filename, flag); \
185 return mmap_interceptor(REAL(mmap), addr, sz, prot, flags, fd, off); \
191 return munmap_interceptor(REAL(munmap), addr, sz); \
253 return attr && !REAL(pthread_attr_getdetachstate)(attr, &d) && in INTERCEPTOR()
277 result = REAL(pthread_create)(thread, attr, asan_thread_start, t); in INTERCEPTOR()
[all …]
H A Dasan_win.cpp81 CHECK(REAL(SetUnhandledExceptionFilter)); in INTERCEPTOR_WINAPI()
83 return REAL(SetUnhandledExceptionFilter)(ExceptionFilter); in INTERCEPTOR_WINAPI()
91 CHECK(REAL(RtlRaiseException)); in INTERCEPTOR_WINAPI()
96 REAL(RtlRaiseException)(ExceptionRecord); in INTERCEPTOR_WINAPI()
100 CHECK(REAL(RaiseException)); in INTERCEPTOR_WINAPI()
102 REAL(RaiseException)(a, b, c, d); in INTERCEPTOR_WINAPI()
110 CHECK(REAL(__C_specific_handler)); in INTERCEPTOR_WINAPI()
112 return REAL(__C_specific_handler)(a, b, c, d); in INTERCEPTOR_WINAPI()
118 CHECK(REAL(_except_handler3)); in INTERCEPTOR()
120 return REAL(_except_handler3)(a, b, c, d); in INTERCEPTOR()
[all …]
H A Dasan_mac.cpp208 return REAL(dispatch_x_f)(dq, (void*)asan_ctxt, \
225 return REAL(dispatch_after_f)(when, dq, (void*)asan_ctxt, in INTERCEPT_DISPATCH_X_F_3()
239 REAL(dispatch_group_async_f)(group, dq, (void*)asan_ctxt, in INTERCEPTOR()
270 REAL(dispatch_async)(dq, asan_block);
277 REAL(dispatch_group_async)(dg, dq, asan_block);
284 REAL(dispatch_after)(when, queue, asan_block);
290 REAL(dispatch_source_set_cancel_handler)(ds, work);
295 REAL(dispatch_source_set_cancel_handler)(ds, asan_block);
302 REAL(dispatch_source_set_event_handler)(ds, asan_block);
308 return REAL(dispatch_mach_create)( in INTERCEPTOR()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_interceptors.cpp33 if (!nsan_initialized && REAL(memset) == nullptr) in INTERCEPTOR()
36 void *res = REAL(memset)(dst, v, size); in INTERCEPTOR()
42 wchar_t *res = REAL(wmemset)(dst, v, size); in INTERCEPTOR()
50 if (!nsan_initialized && REAL(memmove) == nullptr) in INTERCEPTOR()
53 void *res = REAL(memmove)(dst, src, size); in INTERCEPTOR()
60 wchar_t *res = REAL(wmemmove)(dst, src, size); in INTERCEPTOR()
68 if (!nsan_initialized && REAL(memcpy) == nullptr) { in INTERCEPTOR()
74 void *res = REAL(memcpy)(dst, src, size); in INTERCEPTOR()
81 wchar_t *res = REAL(wmemcpy)(dst, src, size); in INTERCEPTOR()
88 char *res = REAL(strfry)(s); in INTERCEPTOR()
[all …]
H A Dnsan_malloc_linux.cpp31 void *res = REAL(aligned_alloc)(align, size); in INTERCEPTOR()
41 void *res = REAL(calloc)(nmemb, size); in INTERCEPTOR()
50 REAL(free)(ptr); in INTERCEPTOR()
56 void *res = REAL(malloc)(size); in INTERCEPTOR()
65 void *res = REAL(realloc)(ptr, size); in INTERCEPTOR()
75 void *res = REAL(reallocarray)(ptr, nmemb, size); in INTERCEPTOR()
83 int res = REAL(posix_memalign)(memptr, align, size); in INTERCEPTOR()
92 void *const res = REAL(memalign)(align, size); in INTERCEPTOR()
99 void *const res = REAL(__libc_memalign)(align, size); in INTERCEPTOR()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_interceptors.cpp46 return REAL(pthread_mutex_destroy)(m); in INTERCEPTOR()
52 int res = REAL(pthread_mutex_lock)(m); in INTERCEPTOR()
59 int res = REAL(pthread_mutex_trylock)(m); in INTERCEPTOR()
68 return REAL(pthread_mutex_unlock)(m); in INTERCEPTOR()
73 int res = REAL(pthread_spin_destroy)(m); in INTERCEPTOR()
81 int res = REAL(pthread_spin_lock)(m); in INTERCEPTOR()
88 int res = REAL(pthread_spin_trylock)(m); in INTERCEPTOR()
97 return REAL(pthread_spin_unlock)(m); in INTERCEPTOR()
103 return REAL(pthread_rwlock_destroy)(m); in INTERCEPTOR()
109 int res = REAL(pthread_rwlock_rdlock)(m); in INTERCEPTOR()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_mac.cpp158 REAL(OSAtomicEnqueue)(list, item, offset);
163 void *item = REAL(OSAtomicDequeue)(list, offset); in TSAN_INTERCEPTOR()
175 REAL(OSAtomicFifoEnqueue)(list, item, offset); in TSAN_INTERCEPTOR()
181 void *item = REAL(OSAtomicFifoDequeue)(list, offset); in TSAN_INTERCEPTOR()
191 return REAL(OSSpinLockLock)(lock); in TSAN_INTERCEPTOR()
194 REAL(OSSpinLockLock)(lock); in TSAN_INTERCEPTOR()
201 return REAL(OSSpinLockTry)(lock); in TSAN_INTERCEPTOR()
204 bool result = REAL(OSSpinLockTry)(lock); in TSAN_INTERCEPTOR()
213 return REAL(OSSpinLockUnlock)(lock); in TSAN_INTERCEPTOR()
217 REAL(OSSpinLockUnlock)(lock); in TSAN_INTERCEPTOR()
[all …]
H A Dtsan_interceptors_posix.cpp361 #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name))
484 res = REAL(__cxa_atexit)((void (*)(void *a))at_exit_callback_installed_at, in setup_at_exit_wrapper()
491 res = REAL(__cxa_atexit)(cxa_at_exit_callback_installed_at, ctx, dso); in setup_at_exit_wrapper()
520 int res = REAL(on_exit)(on_exit_callback_installed_at, ctx); in TSAN_INTERCEPTOR()
613 InterceptFunction(SANITIZER_STRINGIFY(setjmp_symname), (uptr*)&REAL(setjmp_symname), 0, 0); in DEFINE_REAL()
614 InterceptFunction("_setjmp", (uptr*)&REAL(_setjmp), 0, 0); in DEFINE_REAL()
615 InterceptFunction(SANITIZER_STRINGIFY(sigsetjmp_symname), (uptr*)&REAL(sigsetjmp_symname), 0, in DEFINE_REAL()
618 InterceptFunction("__sigsetjmp", (uptr*)&REAL(__sigsetjmp), 0, 0); in DEFINE_REAL()
639 REAL(longjmp_symname)(env, val); in TSAN_INTERCEPTOR()
647 REAL(siglongjmp_symname)(env, val); in TSAN_INTERCEPTOR()
[all …]
H A Dtsan_interceptors_libdispatch.cpp170 REAL(name##_f)(q, new_context, dispatch_callback_wrap); \
182 REAL(name##_f)(q, &new_context, dispatch_callback_wrap); \
196 REAL(name)(q, new_context, dispatch_callback_wrap); \
208 REAL(name)(q, &new_context, dispatch_callback_wrap); \
263 REAL(dispatch_after_f)(when, queue, new_context, dispatch_callback_wrap); in DISPATCH_INTERCEPT_SYNC_F()
325 return REAL(dispatch_semaphore_signal)(dsema); in TSAN_INTERCEPTOR()
331 long_t result = REAL(dispatch_semaphore_wait)(dsema, timeout); in TSAN_INTERCEPTOR()
339 long_t result = REAL(dispatch_group_wait)(group, timeout); in TSAN_INTERCEPTOR()
351 REAL(dispatch_group_leave)(group); in TSAN_INTERCEPTOR()
407 REAL(dispatch_group_notify_f)(group, q, new_context, dispatch_callback_wrap); in DECLARE_REAL()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp19 #define REAL(x) __interception::PTR_TO_REAL(x) macro
154 int result = REAL(bcmp)(s1, s2, n); in DEFINE_REAL()
162 int result = REAL(memcmp)(s1, s2, n); in memcmp()
170 int result = REAL(strncmp)(s1, s2, n); in strncmp()
178 int result = REAL(strcmp)(s1, s2); in strcmp()
185 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp()
192 int result = REAL(strcasecmp)(s1, s2); in strcasecmp()
200 char *result = REAL(strstr)(s1, s2); in strstr()
207 char *result = REAL(strcasestr)(s1, s2); in strcasestr()
215 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interceptors.cpp29 if (REAL(strnlen)) { in MaybeRealStrnlen()
30 return REAL(strnlen)(s, maxlen); in MaybeRealStrnlen()
67 return REAL(func)(__VA_ARGS__); \
90 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
140 REAL(pthread_attr_getdetachstate)(attr, &detached); in INTERCEPTOR()
150 result = REAL(pthread_create)(thread, attr, memprof_thread_start, &param); in INTERCEPTOR()
166 return REAL(pthread_join)(t, arg); in INTERCEPTOR()
185 return REAL(strcat)(to, from); in INTERCEPTOR()
198 return REAL(strncat)(to, from, size); in INTERCEPTOR()
205 return REAL(strcpy)(to, from); in INTERCEPTOR()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_interceptors.cpp128 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR()
149 void *res = REAL(memccpy)(dest, src, c, n); in INTERCEPTOR()
302 char *res = REAL(strcpy)(dest, src); in INTERCEPTOR()
313 char *res = REAL(strncpy)(dest, src, n); in INTERCEPTOR()
325 char *res = REAL(stpcpy)(dest, src); in INTERCEPTOR()
334 char *res = REAL(stpncpy)(dest, src, n); in INTERCEPTOR()
353 char *res = REAL(strdup)(src); in INTERCEPTOR()
364 char *res = REAL(__strdup)(src); in INTERCEPTOR()
376 char *res = REAL(gcvt)(number, ndigit, buf); in INTERCEPTOR()
393 char *res = REAL(strcat)(dest, src); in INTERCEPTOR()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_mac.cpp113 return REAL(dispatch_x_f)(dq, (void *)lsan_ctxt, \
124 return REAL(dispatch_after_f)(when, dq, (void *)lsan_ctxt, in INTERCEPT_DISPATCH_X_F_3()
131 REAL(dispatch_group_async_f) in INTERCEPTOR()
158 REAL(dispatch_async)(dq, lsan_block);
164 REAL(dispatch_group_async)(dg, dq, lsan_block);
170 REAL(dispatch_after)(when, queue, lsan_block);
176 REAL(dispatch_source_set_cancel_handler)(ds, work);
180 REAL(dispatch_source_set_cancel_handler)(ds, lsan_block);
186 REAL(dispatch_source_set_event_handler)(ds, lsan_block);
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc247 ({ CheckNoDeepBind(filename, flag); REAL(dlopen)(filename, flag); })
298 { return REAL(mmap)(addr, sz, prot, flags, fd, off); }
303 { return REAL(munmap)(addr, sz); }
382 // in which case the REAL(strlen) typically used in
389 SIZE_T result = REAL(strlen)(s);
403 SIZE_T length = REAL(strnlen)(s, maxlen);
438 char *domain = REAL(textdomain)(domainname);
599 char *r = REAL(strstr)(s1, s2);
620 char *r = REAL(strcasestr)(s1, s2);
639 return REAL(strtok)(str, delimiters);
[all …]
H A Dsanitizer_signal_interceptors.inc28 { return REAL(func)(signum, handler); }
34 if (!REAL(sigaction_symname)) { \
36 "Warning: REAL(sigaction_symname) == nullptr. This may happen " \
40 return REAL(sigaction_symname)(signum, act, oldact); \
77 return REAL(sigaction_symname)(signum, (const __sanitizer_sigaction *)act,
84 // We need to have defined REAL(sigaction) on other systems.
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_interceptors.cpp157 return REAL(memset)(dst, v, size); \
236 return mmap_interceptor(REAL(mmap), addr, sz, prot, flags, fd, off); \
242 return munmap_interceptor(REAL(munmap), addr, sz); \
285 result = REAL(pthread_create)(thread, attr, &HwasanThreadStartFunc, A); in INTERCEPTOR()
296 result = REAL(pthread_join)(thread, retval); in INTERCEPTOR()
305 result = REAL(pthread_detach)(thread); in INTERCEPTOR()
313 REAL(pthread_exit)(retval); in INTERCEPTOR()
320 result = REAL(pthread_tryjoin_np)(thread, ret); in INTERCEPTOR()
330 result = REAL(pthread_timedjoin_np)(thread, ret, abstime); in INTERCEPTOR()
471 return REAL(siglongjmp)(env, val); in INTERCEPTOR()
[all …]
/freebsd/contrib/byacc/test/btyacc/
H A Dbtyacc_destroy1.output9 5 type : REAL
22 REAL shift 3
44 type : REAL . (5)
64 REAL shift 3
184 REAL shift 3
194 REAL shift 3
236 4 259 REAL
H A Dbtyacc_destroy3.output9 5 type : REAL
22 REAL shift 3
44 type : REAL . (5)
64 REAL shift 3
184 REAL shift 3
194 REAL shift 3
236 4 259 REAL
H A Dbtyacc_destroy2.output9 5 type : REAL
22 REAL shift 3
44 type : REAL . (5)
64 REAL shift 3
184 REAL shift 3
194 REAL shift 3
236 4 259 REAL
H A Dinherit0.output9 5 type : REAL
26 REAL shift 3
48 type : REAL . (5)
68 REAL shift 3
155 4 259 REAL
H A Dinherit1.output9 5 type : REAL
26 REAL shift 3
48 type : REAL . (5)
68 REAL shift 3
155 4 259 REAL
H A Dinherit2.output13 7 type : REAL
28 REAL shift 3
50 type : REAL . (7)
70 REAL shift 3
175 4 259 REAL
H A Derr_inherit4.output13 7 type : REAL
26 REAL shift 3
48 type : REAL . (7)
68 REAL shift 3
155 4 259 REAL
/freebsd/contrib/llvm-project/compiler-rt/lib/interception/
H A Dinterception_linux.h36 #func, (::__interception::uptr *)&REAL(func), \
37 (::__interception::uptr)(decltype(REAL(func)))&(func), \
45 (::__interception::uptr *)&REAL(func), \
46 (::__interception::uptr)(decltype(REAL(func)))&(func), \

1234