Lines Matching refs:REAL
136 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR()
157 void *res = REAL(memccpy)(dest, src, c, n); in INTERCEPTOR()
259 REAL(memset)(sret, 0, sizeof(*sret)); in INTERCEPTOR()
288 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
290 char *res = REAL(strcpy)(dest, src); in INTERCEPTOR()
298 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
301 char *res = REAL(strncpy)(dest, src, n); in INTERCEPTOR()
311 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
313 char *res = REAL(stpcpy)(dest, src); in INTERCEPTOR()
327 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
329 char *res = REAL(strdup)(src); in INTERCEPTOR()
338 SIZE_T n = REAL(strlen)(src); in INTERCEPTOR()
340 char *res = REAL(__strdup)(src); in INTERCEPTOR()
352 char *res = REAL(gcvt)(number, ndigit, buf); in INTERCEPTOR()
353 SIZE_T n = REAL(strlen)(buf); in INTERCEPTOR()
365 SIZE_T src_size = REAL(strlen)(src); in INTERCEPTOR()
366 SIZE_T dest_size = REAL(strlen)(dest); in INTERCEPTOR()
369 char *res = REAL(strcat)(dest, src); in INTERCEPTOR()
377 SIZE_T dest_size = REAL(strlen)(dest); in INTERCEPTOR()
378 SIZE_T copy_size = REAL(strnlen)(src, n); in INTERCEPTOR()
380 char *res = REAL(strncat)(dest, src, n); in INTERCEPTOR()
390 ret_type res = REAL(func)(__VA_ARGS__); \
473 int res = REAL(vswprintf)(str, size, format, ap);
492 ret_type res = REAL(func)(s, __VA_ARGS__); \
541 int res = REAL(mbtowc)(dest, src, n); in INTERCEPTOR()
549 SIZE_T res = REAL(mbrtowc)(dest, src, n, ps); in INTERCEPTOR()
558 wchar_t *res = REAL(wmemcpy)(dest, src, n); in INTERCEPTOR()
567 wchar_t *res = REAL(wmempcpy)(dest, src, n); in INTERCEPTOR()
579 wchar_t *res = REAL(wmemset)(s, c, n); in INTERCEPTOR()
587 wchar_t *res = REAL(wmemmove)(dest, src, n); in INTERCEPTOR()
594 int res = REAL(wcscmp)(s1, s2); in INTERCEPTOR()
600 int res = REAL(gettimeofday)(tv, tz); in INTERCEPTOR()
611 char *res = REAL(fcvt)(x, a, b, c); in INTERCEPTOR()
614 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
624 return REAL(getenv)(name); in INTERCEPTOR()
626 char *res = REAL(getenv)(name); in INTERCEPTOR()
627 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
637 __msan_unpoison(*envp, REAL(strlen)(*envp) + 1); in UnpoisonEnviron()
646 int res = REAL(setenv)(name, value, overwrite); in INTERCEPTOR()
653 int res = REAL(putenv)(string); in INTERCEPTOR()
661 int res = REAL(fstat)(fd, buf); in INTERCEPTOR()
674 int res = REAL(__fxstat)(magic, fd, buf); in INTERCEPTOR()
687 int res = REAL(__fxstat64)(magic, fd, buf); in INTERCEPTOR()
700 int res = REAL(fstatat)(fd, pathname, buf, flags); in INTERCEPTOR()
709 int res = REAL(__fxstatat)(magic, fd, pathname, buf, flags); in INTERCEPTOR()
720 int res = REAL(__fxstatat64)(magic, fd, pathname, buf, flags); in INTERCEPTOR()
731 return REAL(pipe)(pipefd); in INTERCEPTOR()
733 int res = REAL(pipe)(pipefd); in INTERCEPTOR()
741 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR()
749 int res = REAL(socketpair)(domain, type, protocol, sv); in INTERCEPTOR()
758 char *res = REAL(fgets_unlocked)(s, size, stream); in INTERCEPTOR()
760 __msan_unpoison(s, REAL(strlen)(s) + 1); in INTERCEPTOR()
770 return REAL(getrlimit)(resource, rlim); \
772 int res = REAL(func)(resource, rlim); \
787 if (msan_init_is_running) return REAL(getrlimit64)(resource, rlim); in INTERCEPTOR()
789 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR()
797 return REAL(prlimit)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
800 int res = REAL(prlimit)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
808 return REAL(prlimit64)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
811 int res = REAL(prlimit64)(pid, resource, new_rlimit, old_rlimit); in INTERCEPTOR()
829 int res = REAL(gethostname)(name, len); in INTERCEPTOR()
831 SIZE_T real_len = REAL(strnlen)(name, len); in INTERCEPTOR()
843 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR()
858 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
960 int res = REAL(getrusage)(who, usage); in INTERCEPTOR()
1041 int res = REAL(pthread_create)(th, attr, MsanThreadStartFunc, t); in INTERCEPTOR()
1053 if (msan_init_is_running) return REAL(pthread_key_create)(key, dtor); in INTERCEPTOR()
1055 int res = REAL(pthread_key_create)(key, dtor); in INTERCEPTOR()
1069 int res = REAL(pthread_join)(th, retval); in INTERCEPTOR()
1080 REAL(tzset)(fake); in INTERCEPTOR()
1082 __msan_unpoison(tzname[0], REAL(strlen)(tzname[0]) + 1); in INTERCEPTOR()
1084 __msan_unpoison(tzname[1], REAL(strlen)(tzname[1]) + 1); in INTERCEPTOR()
1138 if (msan_init_is_running) return REAL(__cxa_atexit)(func, arg, dso_handle); in INTERCEPTOR()
1146 return REAL(__cxa_atexit)((void (*)(void *a))func, 0, 0); in INTERCEPTOR()
1163 res = REAL(__cxa_atexit)((void (*)(void *a))MSanAtExitWrapper, 0, 0); in setup_at_exit_wrapper()
1168 res = REAL(__cxa_atexit)(MSanCxaAtExitWrapper, r, dso); in setup_at_exit_wrapper()
1186 int pid = REAL(fork)(); in INTERCEPTOR()
1198 int res = REAL(openpty)(aparent, aworker, name, termp, winp); in INTERCEPTOR()
1217 int res = REAL(forkpty)(aparent, name, termp, winp); in INTERCEPTOR()
1273 if (msan_init_is_running) return REAL(func)(__VA_ARGS__); \
1298 #define COMMON_INTERCEPTOR_BLOCK_REAL(name) REAL(name)
1343 return mmap_interceptor(REAL(mmap), addr, sz, prot, flags, fd, off); \
1360 return REAL(func)(signo, handler); \
1377 REAL(memcpy)(pnew_act, act, sizeof(__sanitizer_sigaction)); in sigaction_impl()
1387 res = REAL(SIGACTION_SYMNAME)(signo, pnew_act, oldact); in sigaction_impl()
1395 res = REAL(SIGACTION_SYMNAME)(signo, act, oldact); in sigaction_impl()
1438 int res = REAL(dladdr)(addr, info); in INTERCEPTOR()
1442 __msan_unpoison(info->dli_fname, REAL(strlen)(info->dli_fname) + 1); in INTERCEPTOR()
1444 __msan_unpoison(info->dli_sname, REAL(strlen)(info->dli_sname) + 1); in INTERCEPTOR()
1452 char *res = REAL(dlerror)(fake); in INTERCEPTOR()
1453 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
1471 __msan_unpoison(info->dlpi_name, REAL(strlen)(info->dlpi_name) + 1); in msan_dl_iterate_phdr_cb()
1480 void *p = REAL(shmat)(shmid, shmaddr, shmflg); in INTERCEPTOR()
1483 int res = REAL(shmctl)(shmid, shmctl_ipc_stat, &ds); in INTERCEPTOR()
1497 int res = REAL(dl_iterate_phdr)(msan_dl_iterate_phdr_cb, (void *)&cbdata); in INTERCEPTOR()
1504 wchar_t *res = REAL(wcschr)(s, wc, ps); in INTERCEPTOR()
1512 wchar_t *res = REAL(wcscpy)(dest, src); in INTERCEPTOR()
1513 CopyShadowAndOrigin(dest, src, sizeof(wchar_t) * (REAL(wcslen)(src) + 1), in INTERCEPTOR()
1521 SIZE_T copy_size = REAL(wcsnlen)(src, n); in INTERCEPTOR()
1523 wchar_t *res = REAL(wcsncpy)(dest, src, n); in INTERCEPTOR()
1549 REAL(memset)(a, 0, size); in __msan_clear_and_unpoison()
1556 return REAL(memcpy)(dest, src, n); in __msan_memcpy()
1559 void *res = REAL(memcpy)(dest, src, n); in __msan_memcpy()
1566 if (msan_init_is_running) return REAL(memset)(s, c, n); in __msan_memset()
1568 void *res = REAL(memset)(s, c, n); in __msan_memset()
1575 if (msan_init_is_running) return REAL(memmove)(dest, src, n); in __msan_memmove()
1578 void *res = REAL(memmove)(dest, src, n); in __msan_memmove()
1585 __msan_unpoison(s, REAL(strlen)(s) + 1); in __msan_unpoison_string()