Lines Matching refs:REAL
109 SIZE_T res = REAL(fread)(ptr, size, nmemb, file); in INTERCEPTOR()
119 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR()
132 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR()
148 void *res = REAL(memccpy)(dest, src, c, n); in INTERCEPTOR()
260 REAL(memset)(sret, 0, sizeof(*sret)); in INTERCEPTOR()
289 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
291 char *res = REAL(strcpy)(dest, src); // NOLINT in INTERCEPTOR()
299 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
302 char *res = REAL(strncpy)(dest, src, n); // NOLINT in INTERCEPTOR()
311 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
313 char *res = REAL(stpcpy)(dest, src); // NOLINT in INTERCEPTOR()
323 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
325 char *res = REAL(strdup)(src); in INTERCEPTOR()
334 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
336 char *res = REAL(__strdup)(src); in INTERCEPTOR()
350 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
351 char *res = REAL(strndup)(src, n); in INTERCEPTOR()
361 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
362 char *res = REAL(__strndup)(src, n); in INTERCEPTOR()
374 char *res = REAL(gcvt)(number, ndigit, buf); in INTERCEPTOR()
375 SIZE_T n = REAL(strlen)(buf); in INTERCEPTOR()
383 SIZE_T src_size = REAL(strlen)(src); in INTERCEPTOR()
384 SIZE_T dest_size = REAL(strlen)(dest); in INTERCEPTOR()
387 char *res = REAL(strcat)(dest, src); // NOLINT in INTERCEPTOR()
395 SIZE_T dest_size = REAL(strlen)(dest); in INTERCEPTOR()
396 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
398 char *res = REAL(strncat)(dest, src, n); // NOLINT in INTERCEPTOR()
408 ret_type res = REAL(func)(__VA_ARGS__); \
473 int res = REAL(vswprintf)(str, size, format, ap);
491 CHECK_UNPOISONED(src, REAL(strlen)(src) + 1); in INTERCEPTOR()
492 SIZE_T res = REAL(strxfrm)(dest, src, n); in INTERCEPTOR()
500 CHECK_UNPOISONED(src, REAL(strlen)(src) + 1); in INTERCEPTOR()
501 SIZE_T res = REAL(strxfrm_l)(dest, src, n, loc); in INTERCEPTOR()
508 ret_type res = REAL(func)(s, __VA_ARGS__); \
557 int res = REAL(mbtowc)(dest, src, n); in INTERCEPTOR()
564 SIZE_T res = REAL(mbrtowc)(dest, src, n, ps); in INTERCEPTOR()
571 SIZE_T res = REAL(wcslen)(s); in INTERCEPTOR()
579 wchar_t *res = REAL(wcschr)(s, wc, ps); in INTERCEPTOR()
587 wchar_t *res = REAL(wcscpy)(dest, src); in INTERCEPTOR()
588 CopyShadowAndOrigin(dest, src, sizeof(wchar_t) * (REAL(wcslen)(src) + 1), in INTERCEPTOR()
597 wchar_t *res = REAL(wmemcpy)(dest, src, n); in INTERCEPTOR()
605 wchar_t *res = REAL(wmempcpy)(dest, src, n); in INTERCEPTOR()
613 wchar_t *res = REAL(wmemset)(s, c, n); in INTERCEPTOR()
621 wchar_t *res = REAL(wmemmove)(dest, src, n); in INTERCEPTOR()
628 int res = REAL(wcscmp)(s1, s2); in INTERCEPTOR()
634 int res = REAL(gettimeofday)(tv, tz); in INTERCEPTOR()
644 char *res = REAL(fcvt)(x, a, b, c); in INTERCEPTOR()
647 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
653 return REAL(getenv)(name); in INTERCEPTOR()
655 char *res = REAL(getenv)(name); in INTERCEPTOR()
656 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
666 __msan_unpoison(*envp, REAL(strlen)(*envp) + 1); in UnpoisonEnviron()
675 int res = REAL(setenv)(name, value, overwrite); in INTERCEPTOR()
682 int res = REAL(putenv)(string); in INTERCEPTOR()
690 int res = REAL(__fxstat)(magic, fd, buf); in INTERCEPTOR()
703 int res = REAL(__fxstat64)(magic, fd, buf); in INTERCEPTOR()
716 int res = REAL(fstatat)(fd, pathname, buf, flags); in INTERCEPTOR()
725 int res = REAL(__fxstatat)(magic, fd, pathname, buf, flags); in INTERCEPTOR()
736 int res = REAL(__fxstatat64)(magic, fd, pathname, buf, flags); in INTERCEPTOR()
747 return REAL(pipe)(pipefd); in INTERCEPTOR()
749 int res = REAL(pipe)(pipefd); in INTERCEPTOR()
757 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR()
765 int res = REAL(socketpair)(domain, type, protocol, sv); in INTERCEPTOR()
773 char *res = REAL(fgets)(s, size, stream); in INTERCEPTOR()
775 __msan_unpoison(s, REAL(strlen)(s) + 1); in INTERCEPTOR()
782 char *res = REAL(fgets_unlocked)(s, size, stream); in INTERCEPTOR()
784 __msan_unpoison(s, REAL(strlen)(s) + 1); in INTERCEPTOR()
794 return REAL(getrlimit)(resource, rlim); in INTERCEPTOR()
796 int res = REAL(getrlimit)(resource, rlim); in INTERCEPTOR()
804 if (msan_init_is_running) return REAL(getrlimit64)(resource, rlim); in INTERCEPTOR()
806 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR()
814 return REAL(prlimit)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
817 int res = REAL(prlimit)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
825 return REAL(prlimit64)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
828 int res = REAL(prlimit64)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
849 int res = REAL(__xuname)(size, utsname); in INTERCEPTOR()
858 int res = REAL(uname)(utsname); in INTERCEPTOR()
868 int res = REAL(gethostname)(name, len); in INTERCEPTOR()
870 SIZE_T real_len = REAL(strnlen)(name, len); in INTERCEPTOR()
882 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR()
897 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
958 return REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
968 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
986 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset); in INTERCEPTOR()
998 int res = REAL(getrusage)(who, usage); in INTERCEPTOR()
1061 REAL(memcpy)(pnew_act, act, sizeof(__sanitizer_sigaction)); in INTERCEPTOR()
1071 res = REAL(sigaction)(signo, pnew_act, oldact); in INTERCEPTOR()
1079 res = REAL(sigaction)(signo, act, oldact); in INTERCEPTOR()
1097 return REAL(signal)(signo, cb); in INTERCEPTOR()
1099 return REAL(signal)(signo, cb); in INTERCEPTOR()
1125 int res = REAL(pthread_create)(th, attr, MsanThreadStartFunc, t); in INTERCEPTOR()
1137 if (msan_init_is_running) return REAL(pthread_key_create)(key, dtor); in INTERCEPTOR()
1139 int res = REAL(pthread_key_create)(key, dtor); in INTERCEPTOR()
1147 int res = REAL(pthread_join)(th, retval); in INTERCEPTOR()
1157 REAL(tzset)(fake); in INTERCEPTOR()
1159 __msan_unpoison(tzname[0], REAL(strlen)(tzname[0]) + 1); in INTERCEPTOR()
1161 __msan_unpoison(tzname[1], REAL(strlen)(tzname[1]) + 1); in INTERCEPTOR()
1180 if (msan_init_is_running) return REAL(__cxa_atexit)(func, arg, dso_handle); in INTERCEPTOR()
1186 return REAL(__cxa_atexit)(MSanAtExitWrapper, r, dso_handle); in INTERCEPTOR()
1193 void *p = REAL(shmat)(shmid, shmaddr, shmflg); in DECLARE_REAL()
1196 int res = REAL(shmctl)(shmid, shmctl_ipc_stat, &ds); in DECLARE_REAL()
1217 int pid = REAL(fork)(); in INTERCEPTOR()
1226 int res = REAL(openpty)(amaster, aslave, name, termp, winp); in INTERCEPTOR()
1238 int res = REAL(forkpty)(amaster, name, termp, winp); in INTERCEPTOR()
1267 if ((!INTERCEPT_FUNCTION(name) || !REAL(name))) \
1273 if ((!INTERCEPT_FUNCTION_VER(name, ver) || !REAL(name))) \
1290 if (msan_init_is_running) return REAL(func)(__VA_ARGS__); \
1315 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
1359 int res = REAL(dladdr)(addr, info); in INTERCEPTOR()
1363 __msan_unpoison(info->dli_fname, REAL(strlen)(info->dli_fname) + 1); in INTERCEPTOR()
1365 __msan_unpoison(info->dli_sname, REAL(strlen)(info->dli_sname) + 1); in INTERCEPTOR()
1373 char *res = REAL(dlerror)(fake); in INTERCEPTOR()
1374 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
1392 __msan_unpoison(info->dlpi_name, REAL(strlen)(info->dlpi_name) + 1); in msan_dl_iterate_phdr_cb()
1405 int res = REAL(dl_iterate_phdr)(msan_dl_iterate_phdr_cb, (void *)&cbdata); in INTERCEPTOR()
1427 REAL(memset)(a, 0, size); in __msan_clear_and_unpoison()
1434 return REAL(memcpy)(dest, src, n); in __msan_memcpy()
1437 void *res = REAL(memcpy)(dest, src, n); in __msan_memcpy()
1444 if (msan_init_is_running) return REAL(memset)(s, c, n); in __msan_memset()
1446 void *res = REAL(memset)(s, c, n); in __msan_memset()
1453 if (msan_init_is_running) return REAL(memmove)(dest, src, n); in __msan_memmove()
1456 void *res = REAL(memmove)(dest, src, n); in __msan_memmove()
1463 __msan_unpoison(s, REAL(strlen)(s) + 1); in __msan_unpoison_string()