Lines Matching refs:REAL
264 if (REAL(func) == 0) { \
269 return REAL(func)(__VA_ARGS__); \
287 #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name))
382 int res = REAL(__cxa_atexit)(at_exit_wrapper, ctx, dso); in setup_at_exit_wrapper()
407 int res = REAL(on_exit)(on_exit_wrapper, ctx); in TSAN_INTERCEPTOR()
523 REAL(longjmp)(env, val); in DEFINE_REAL()
531 REAL(siglongjmp)(env, val); in TSAN_INTERCEPTOR()
712 return REAL(memmove)(dst, src, n); in TSAN_INTERCEPTOR()
717 char *res = REAL(strchr)(s, c); in TSAN_INTERCEPTOR()
726 char *res = REAL(strchrnul)(s, c); in TSAN_INTERCEPTOR()
735 return REAL(strrchr)(s, c); in TSAN_INTERCEPTOR()
743 return REAL(strcpy)(dst, src); // NOLINT in TSAN_INTERCEPTOR()
751 return REAL(strncpy)(dst, src, n); in TSAN_INTERCEPTOR()
756 const char *res = REAL(strstr)(s1, s2); in TSAN_INTERCEPTOR()
767 return REAL(strdup)(str); in TSAN_INTERCEPTOR()
789 void *res = REAL(mmap)(addr, sz, prot, flags, fd, off); in TSAN_INTERCEPTOR()
804 void *res = REAL(mmap64)(addr, sz, prot, flags, fd, off); in TSAN_INTERCEPTOR()
824 int res = REAL(munmap)(addr, sz); in TSAN_INTERCEPTOR()
969 REAL(pthread_attr_getdetachstate)(attr, &detached); in TSAN_INTERCEPTOR()
981 res = REAL(pthread_create)(th, attr, __tsan_thread_start_func, &p); in TSAN_INTERCEPTOR()
1013 int res = REAL(pthread_detach)(th); in TSAN_INTERCEPTOR()
1084 return REAL(pthread_cond_init)(cond, a); in INTERCEPTOR()
1100 (int(*)(void *c, void *m, void *abstime))REAL(pthread_cond_wait), in INTERCEPTOR()
1121 REAL(pthread_cond_timedwait), cond, m, abstime, in INTERCEPTOR()
1134 return REAL(pthread_cond_signal)(cond); in INTERCEPTOR()
1141 return REAL(pthread_cond_broadcast)(cond); in INTERCEPTOR()
1148 int res = REAL(pthread_cond_destroy)(cond); in INTERCEPTOR()
1159 int res = REAL(pthread_mutex_init)(m, a); in TSAN_INTERCEPTOR()
1164 if (REAL(pthread_mutexattr_gettype)(a, &type) == 0) in TSAN_INTERCEPTOR()
1175 int res = REAL(pthread_mutex_destroy)(m); in TSAN_INTERCEPTOR()
1184 int res = REAL(pthread_mutex_trylock)(m); in TSAN_INTERCEPTOR()
1194 int res = REAL(pthread_mutex_timedlock)(m, abstime); in TSAN_INTERCEPTOR()
1203 int res = REAL(pthread_spin_init)(m, pshared); in TSAN_INTERCEPTOR()
1212 int res = REAL(pthread_spin_destroy)(m); in TSAN_INTERCEPTOR()
1221 int res = REAL(pthread_spin_lock)(m); in TSAN_INTERCEPTOR()
1230 int res = REAL(pthread_spin_trylock)(m); in TSAN_INTERCEPTOR()
1240 int res = REAL(pthread_spin_unlock)(m); in TSAN_INTERCEPTOR()
1246 int res = REAL(pthread_rwlock_init)(m, a); in TSAN_INTERCEPTOR()
1255 int res = REAL(pthread_rwlock_destroy)(m); in TSAN_INTERCEPTOR()
1264 int res = REAL(pthread_rwlock_rdlock)(m); in TSAN_INTERCEPTOR()
1273 int res = REAL(pthread_rwlock_tryrdlock)(m); in TSAN_INTERCEPTOR()
1282 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in TSAN_INTERCEPTOR()
1291 int res = REAL(pthread_rwlock_wrlock)(m); in TSAN_INTERCEPTOR()
1300 int res = REAL(pthread_rwlock_trywrlock)(m); in TSAN_INTERCEPTOR()
1309 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime); in TSAN_INTERCEPTOR()
1319 int res = REAL(pthread_rwlock_unlock)(m); in TSAN_INTERCEPTOR()
1326 int res = REAL(pthread_barrier_init)(b, a, count); in TSAN_INTERCEPTOR()
1333 int res = REAL(pthread_barrier_destroy)(b); in TSAN_INTERCEPTOR()
1341 int res = REAL(pthread_barrier_wait)(b); in TSAN_INTERCEPTOR()
1374 int res = REAL(sem_init)(s, pshared, value); in TSAN_INTERCEPTOR()
1380 int res = REAL(sem_destroy)(s); in TSAN_INTERCEPTOR()
1414 int res = REAL(sem_post)(s); in TSAN_INTERCEPTOR()
1420 int res = REAL(sem_getvalue)(s, sval); in TSAN_INTERCEPTOR()
1431 return REAL(__xstat)(version, path, buf); in TSAN_INTERCEPTOR()
1442 return REAL(stat)(path, buf); in TSAN_INTERCEPTOR()
1446 return REAL(__xstat)(0, path, buf); in TSAN_INTERCEPTOR()
1454 return REAL(__xstat64)(version, path, buf); in TSAN_INTERCEPTOR()
1465 return REAL(__xstat64)(0, path, buf); in TSAN_INTERCEPTOR()
1476 return REAL(__lxstat)(version, path, buf); in TSAN_INTERCEPTOR()
1487 return REAL(lstat)(path, buf); in TSAN_INTERCEPTOR()
1491 return REAL(__lxstat)(0, path, buf); in TSAN_INTERCEPTOR()
1499 return REAL(__lxstat64)(version, path, buf); in TSAN_INTERCEPTOR()
1510 return REAL(__lxstat64)(0, path, buf); in TSAN_INTERCEPTOR()
1522 return REAL(__fxstat)(version, fd, buf); in TSAN_INTERCEPTOR()
1534 return REAL(fstat)(fd, buf); in TSAN_INTERCEPTOR()
1539 return REAL(__fxstat)(0, fd, buf); in TSAN_INTERCEPTOR()
1548 return REAL(__fxstat64)(version, fd, buf); in TSAN_INTERCEPTOR()
1560 return REAL(__fxstat64)(0, fd, buf); in TSAN_INTERCEPTOR()
1570 int fd = REAL(open)(name, flags, mode); in TSAN_INTERCEPTOR()
1580 int fd = REAL(open64)(name, flags, mode); in TSAN_INTERCEPTOR()
1593 int fd = REAL(creat)(name, mode); in TSAN_INTERCEPTOR()
1603 int fd = REAL(creat64)(name, mode); in TSAN_INTERCEPTOR()
1615 int newfd = REAL(dup)(oldfd); in TSAN_INTERCEPTOR()
1623 int newfd2 = REAL(dup2)(oldfd, newfd); in TSAN_INTERCEPTOR()
1631 int newfd2 = REAL(dup3)(oldfd, newfd, flags); in TSAN_INTERCEPTOR()
1640 int fd = REAL(eventfd)(initval, flags); in TSAN_INTERCEPTOR()
1655 fd = REAL(signalfd)(fd, mask, flags); in TSAN_INTERCEPTOR()
1668 int fd = REAL(inotify_init)(fake); in TSAN_INTERCEPTOR()
1681 int fd = REAL(inotify_init1)(flags); in TSAN_INTERCEPTOR()
1693 int fd = REAL(socket)(domain, type, protocol); in TSAN_INTERCEPTOR()
1701 int res = REAL(socketpair)(domain, type, protocol, fd); in TSAN_INTERCEPTOR()
1710 int res = REAL(connect)(fd, addr, addrlen); in TSAN_INTERCEPTOR()
1718 int res = REAL(bind)(fd, addr, addrlen); in TSAN_INTERCEPTOR()
1726 int res = REAL(listen)(fd, backlog); in TSAN_INTERCEPTOR()
1735 int fd = REAL(epoll_create)(size); in TSAN_INTERCEPTOR()
1748 int fd = REAL(epoll_create1)(flags); in TSAN_INTERCEPTOR()
1762 return REAL(close)(fd); in TSAN_INTERCEPTOR()
1770 return REAL(__close)(fd); in TSAN_INTERCEPTOR()
1787 REAL(__res_iclose)(state, free_addr); in TSAN_INTERCEPTOR()
1796 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR()
1804 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR()
1816 int res = REAL(send)(fd, buf, len, flags); in TSAN_INTERCEPTOR()
1826 int res = REAL(sendmsg)(fd, msg, flags); in TSAN_INTERCEPTOR()
1834 int res = REAL(recv)(fd, buf, len, flags); in TSAN_INTERCEPTOR()
1844 int res = REAL(unlink)(path); in TSAN_INTERCEPTOR()
1850 void *res = REAL(tmpfile)(fake); in TSAN_INTERCEPTOR()
1862 void *res = REAL(tmpfile64)(fake); in TSAN_INTERCEPTOR()
1881 return REAL(fread)(ptr, size, nmemb, f); in TSAN_INTERCEPTOR()
1890 return REAL(fwrite)(p, size, nmemb, f); in TSAN_INTERCEPTOR()
1896 REAL(fflush)(stdout); in FlushStreams()
1897 REAL(fflush)(stderr); in FlushStreams()
1903 REAL(abort)(fake); in TSAN_INTERCEPTOR()
1909 return REAL(puts)(s); in TSAN_INTERCEPTOR()
1915 int res = REAL(rmdir)(path); in TSAN_INTERCEPTOR()
1923 return REAL(closedir)(dirp); in TSAN_INTERCEPTOR()
1935 int res = REAL(epoll_ctl)(epfd, op, fd, ev); in TSAN_INTERCEPTOR()
2010 CHECK_EQ(0, REAL(sigfillset)(&emptyset)); in ProcessPendingSignals()
2114 REAL(sigfillset)(&newact.sa_mask); in TSAN_INTERCEPTOR()
2122 int res = REAL(sigaction)(sig, &newact, 0); in TSAN_INTERCEPTOR()
2129 REAL(memset)(&act.sa_mask, -1, sizeof(act.sa_mask)); in TSAN_INTERCEPTOR()
2140 return REAL(sigsuspend)(mask); in TSAN_INTERCEPTOR()
2149 int res = REAL(raise)(sig); in TSAN_INTERCEPTOR()
2163 int res = REAL(kill)(pid, sig); in TSAN_INTERCEPTOR()
2179 int res = REAL(pthread_kill)(tid, sig); in TSAN_INTERCEPTOR()
2190 return REAL(gettimeofday)(tv, tz); in TSAN_INTERCEPTOR()
2200 int res = REAL(getaddrinfo)(node, service, hints, rv); in TSAN_INTERCEPTOR()
2207 return REAL(fork)(fake); in TSAN_INTERCEPTOR()
2210 int pid = REAL(fork)(fake); in TSAN_INTERCEPTOR()
2495 REAL(_exit)(status); in finalize()
2505 REAL(memset) = internal_memset; in InitializeInterceptors()
2506 REAL(memcpy) = internal_memcpy; in InitializeInterceptors()
2507 REAL(memcmp) = internal_memcmp; in InitializeInterceptors()
2520 GetRealFunctionAddress("setjmp", (uptr*)&REAL(setjmp), 0, 0); in InitializeInterceptors()
2521 GetRealFunctionAddress("_setjmp", (uptr*)&REAL(_setjmp), 0, 0); in InitializeInterceptors()
2522 GetRealFunctionAddress("sigsetjmp", (uptr*)&REAL(sigsetjmp), 0, 0); in InitializeInterceptors()
2523 GetRealFunctionAddress("__sigsetjmp", (uptr*)&REAL(__sigsetjmp), 0, 0); in InitializeInterceptors()
2674 REAL(atexit) = (int(*)(void(*)()))unreachable; in InitializeInterceptors()
2675 if (REAL(__cxa_atexit)(&finalize, 0, 0)) { in InitializeInterceptors()