Lines Matching refs:REAL

47 #define __libc_malloc REAL(malloc)
48 #define __libc_realloc REAL(realloc)
49 #define __libc_calloc REAL(calloc)
50 #define __libc_free REAL(free)
53 #define __libc_malloc REAL(malloc)
54 #define __libc_realloc REAL(realloc)
55 #define __libc_calloc REAL(calloc)
56 #define __libc_free REAL(free)
106 // REAL(sigfillset) defined in common interceptors.
326 #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name))
423 int res = REAL(__cxa_atexit)(at_exit_wrapper, ctx, dso);
449 int res = REAL(on_exit)(on_exit_wrapper, ctx);
578 REAL(longjmp)(env, val);
586 REAL(siglongjmp)(env, val);
693 return REAL(memmove)(dst, src, n);
698 char *res = REAL(strchr)(s, c);
708 char *res = REAL(strchrnul)(s, c);
718 return REAL(strrchr)(s, c);
726 return REAL(strcpy)(dst, src); // NOLINT
734 return REAL(strncpy)(dst, src, n);
740 return REAL(strdup)(str);
762 void *res = REAL(mmap)(addr, sz, prot, flags, fd, off);
777 void *res = REAL(mmap64)(addr, sz, prot, flags, fd, off);
797 int res = REAL(munmap)(addr, sz);
972 REAL(pthread_attr_getdetachstate)(attr, &detached);
984 res = REAL(pthread_create)(th, attr, __tsan_thread_start_func, &p);
1024 int res = REAL(pthread_detach)(th);
1034 // If call new REAL functions for old pthread_cond_t, they will corrupt memory
1036 // If we call old REAL functions for new pthread_cond_t, we will lose some
1049 // any pthread_cond_t object. Always call new REAL functions, but pass
1095 return REAL(pthread_cond_init)(cond, a);
1111 (int(*)(void *c, void *m, void *abstime))REAL(pthread_cond_wait),
1132 REAL(pthread_cond_timedwait), cond, m, abstime,
1145 return REAL(pthread_cond_signal)(cond);
1152 return REAL(pthread_cond_broadcast)(cond);
1159 int res = REAL(pthread_cond_destroy)(cond);
1170 int res = REAL(pthread_mutex_init)(m, a);
1175 if (REAL(pthread_mutexattr_gettype)(a, &type) == 0)
1186 int res = REAL(pthread_mutex_destroy)(m);
1195 int res = REAL(pthread_mutex_trylock)(m);
1206 int res = REAL(pthread_mutex_timedlock)(m, abstime);
1217 int res = REAL(pthread_spin_init)(m, pshared);
1226 int res = REAL(pthread_spin_destroy)(m);
1235 int res = REAL(pthread_spin_lock)(m);
1244 int res = REAL(pthread_spin_trylock)(m);
1254 int res = REAL(pthread_spin_unlock)(m);
1261 int res = REAL(pthread_rwlock_init)(m, a);
1270 int res = REAL(pthread_rwlock_destroy)(m);
1279 int res = REAL(pthread_rwlock_rdlock)(m);
1288 int res = REAL(pthread_rwlock_tryrdlock)(m);
1298 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime);
1308 int res = REAL(pthread_rwlock_wrlock)(m);
1317 int res = REAL(pthread_rwlock_trywrlock)(m);
1327 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime);
1338 int res = REAL(pthread_rwlock_unlock)(m);
1346 int res = REAL(pthread_barrier_init)(b, a, count);
1353 int res = REAL(pthread_barrier_destroy)(b);
1361 int res = REAL(pthread_barrier_wait)(b);
1401 return REAL(__xstat)(version, path, buf);
1412 return REAL(stat)(path, buf);
1416 return REAL(__xstat)(0, path, buf);
1424 return REAL(__xstat64)(version, path, buf);
1435 return REAL(__xstat64)(0, path, buf);
1446 return REAL(__lxstat)(version, path, buf);
1457 return REAL(lstat)(path, buf);
1461 return REAL(__lxstat)(0, path, buf);
1469 return REAL(__lxstat64)(version, path, buf);
1480 return REAL(__lxstat64)(0, path, buf);
1492 return REAL(__fxstat)(version, fd, buf);
1504 return REAL(fstat)(fd, buf);
1509 return REAL(__fxstat)(0, fd, buf);
1518 return REAL(__fxstat64)(version, fd, buf);
1530 return REAL(__fxstat64)(0, fd, buf);
1540 int fd = REAL(open)(name, flags, mode);
1550 int fd = REAL(open64)(name, flags, mode);
1563 int fd = REAL(creat)(name, mode);
1573 int fd = REAL(creat64)(name, mode);
1585 int newfd = REAL(dup)(oldfd);
1593 int newfd2 = REAL(dup2)(oldfd, newfd);
1602 int newfd2 = REAL(dup3)(oldfd, newfd, flags);
1612 int fd = REAL(eventfd)(initval, flags);
1627 fd = REAL(signalfd)(fd, mask, flags);
1640 int fd = REAL(inotify_init)(fake);
1653 int fd = REAL(inotify_init1)(flags);
1665 int fd = REAL(socket)(domain, type, protocol);
1673 int res = REAL(socketpair)(domain, type, protocol, fd);
1682 int res = REAL(connect)(fd, addr, addrlen);
1690 int res = REAL(bind)(fd, addr, addrlen);
1698 int res = REAL(listen)(fd, backlog);
1707 int fd = REAL(epoll_create)(size);
1720 int fd = REAL(epoll_create1)(flags);
1734 return REAL(close)(fd);
1742 return REAL(__close)(fd);
1759 REAL(__res_iclose)(state, free_addr);
1768 int res = REAL(pipe)(pipefd);
1777 int res = REAL(pipe2)(pipefd, flags);
1790 int res = REAL(send)(fd, buf, len, flags);
1800 int res = REAL(sendmsg)(fd, msg, flags);
1808 int res = REAL(recv)(fd, buf, len, flags);
1818 int res = REAL(unlink)(path);
1824 void *res = REAL(tmpfile)(fake);
1836 void *res = REAL(tmpfile64)(fake);
1855 return REAL(fread)(ptr, size, nmemb, f);
1864 return REAL(fwrite)(p, size, nmemb, f);
1870 REAL(fflush)(stdout);
1871 REAL(fflush)(stderr);
1877 REAL(abort)(fake);
1883 return REAL(puts)(s);
1889 int res = REAL(rmdir)(path);
1899 return REAL(closedir)(dirp);
1911 int res = REAL(epoll_ctl)(epfd, op, fd, ev);
1984 CHECK_EQ(0, REAL(sigfillset)(&sctx->emptyset));
2088 REAL(sigfillset)(&newact.sa_mask);
2096 int res = REAL(sigaction)(sig, &newact, 0);
2103 REAL(memset)(&act.sa_mask, -1, sizeof(act.sa_mask));
2114 return REAL(sigsuspend)(mask);
2123 int res = REAL(raise)(sig);
2137 int res = REAL(kill)(pid, sig);
2153 int res = REAL(pthread_kill)(tid, sig);
2164 return REAL(gettimeofday)(tv, tz);
2174 int res = REAL(getaddrinfo)(node, service, hints, rv);
2181 return REAL(fork)(fake);
2184 int pid = REAL(fork)(fake);
2257 int res = REAL(dl_iterate_phdr)(dl_iterate_phdr_cb, &cbdata);
2548 REAL(memset) = internal_memset;
2549 REAL(memcpy) = internal_memcpy;
2564 GetRealFunctionAddress("setjmp", (uptr*)&REAL(setjmp), 0, 0);
2565 GetRealFunctionAddress("_setjmp", (uptr*)&REAL(_setjmp), 0, 0);
2566 GetRealFunctionAddress("sigsetjmp", (uptr*)&REAL(sigsetjmp), 0, 0);
2567 GetRealFunctionAddress("__sigsetjmp", (uptr*)&REAL(__sigsetjmp), 0, 0);
2713 REAL(atexit) = (int(*)(void(*)()))unreachable;
2716 if (REAL(__cxa_atexit)(&finalize, 0, 0)) {
2736 // REAL(pthread_barrier_wait). But pthread_barrier_wait is not supported on