Lines Matching refs:res

106   SIZE_T res = REAL(fread)(ptr, size, nmemb, file);  in INTERCEPTOR()  local
107 if (res > 0) in INTERCEPTOR()
108 __msan_unpoison(ptr, res *size); in INTERCEPTOR()
109 return res; in INTERCEPTOR()
116 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR() local
117 if (res > 0) in INTERCEPTOR()
118 __msan_unpoison(ptr, res *size); in INTERCEPTOR()
119 return res; in INTERCEPTOR()
129 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR()
130 if (res > 0) in INTERCEPTOR()
131 __msan_unpoison(buf, res); in INTERCEPTOR()
132 return res; in INTERCEPTOR()
145 void *res = REAL(memccpy)(dest, src, c, n); in INTERCEPTOR() local
146 CHECK(!res || (res >= dest && res <= (char *)dest + n)); in INTERCEPTOR()
147 SIZE_T sz = res ? (char *)res - (char *)dest : n; in INTERCEPTOR()
150 return res; in INTERCEPTOR()
287 SIZE_T res = REAL(strlen)(s); in INTERCEPTOR() local
288 CHECK_UNPOISONED(s, res + 1); in INTERCEPTOR()
289 return res; in INTERCEPTOR()
294 SIZE_T res = REAL(strnlen)(s, n); in INTERCEPTOR() local
295 SIZE_T scan_size = (res == n) ? res : res + 1; in INTERCEPTOR()
297 return res; in INTERCEPTOR()
305 char *res = REAL(strcpy)(dest, src); // NOLINT in INTERCEPTOR() local
307 return res; in INTERCEPTOR()
316 char *res = REAL(strncpy)(dest, src, n); // NOLINT in INTERCEPTOR() local
319 return res; in INTERCEPTOR()
327 char *res = REAL(stpcpy)(dest, src); // NOLINT in INTERCEPTOR() local
329 return res; in INTERCEPTOR()
339 char *res = REAL(strdup)(src); in INTERCEPTOR() local
340 CopyShadowAndOrigin(res, src, n + 1, &stack); in INTERCEPTOR()
341 return res; in INTERCEPTOR()
350 char *res = REAL(__strdup)(src); in INTERCEPTOR() local
351 CopyShadowAndOrigin(res, src, n + 1, &stack); in INTERCEPTOR()
352 return res; in INTERCEPTOR()
365 char *res = REAL(strndup)(src, n); in INTERCEPTOR() local
366 CopyShadowAndOrigin(res, src, copy_size, &stack); in INTERCEPTOR()
367 __msan_unpoison(res + copy_size, 1); // \0 in INTERCEPTOR()
368 return res; in INTERCEPTOR()
376 char *res = REAL(__strndup)(src, n); in INTERCEPTOR() local
377 CopyShadowAndOrigin(res, src, copy_size, &stack); in INTERCEPTOR()
378 __msan_unpoison(res + copy_size, 1); // \0 in INTERCEPTOR()
379 return res; in INTERCEPTOR()
388 char *res = REAL(gcvt)(number, ndigit, buf); in INTERCEPTOR() local
391 return res; in INTERCEPTOR()
401 char *res = REAL(strcat)(dest, src); // NOLINT in INTERCEPTOR() local
403 return res; in INTERCEPTOR()
412 char *res = REAL(strncat)(dest, src, n); // NOLINT in INTERCEPTOR() local
415 return res; in INTERCEPTOR()
422 ret_type res = REAL(func)(__VA_ARGS__); \
424 return res;
487 int res = REAL(vswprintf)(str, size, format, ap); local
488 if (res >= 0) {
489 __msan_unpoison(str, 4 * (res + 1));
491 return res;
498 int res = vswprintf(str, size, format, ap); in INTERCEPTOR() local
500 return res; in INTERCEPTOR()
506 SIZE_T res = REAL(strxfrm)(dest, src, n); in INTERCEPTOR() local
507 if (res < n) __msan_unpoison(dest, res + 1); in INTERCEPTOR()
508 return res; in INTERCEPTOR()
515 SIZE_T res = REAL(strxfrm_l)(dest, src, n, loc); in INTERCEPTOR() local
516 if (res < n) __msan_unpoison(dest, res + 1); in INTERCEPTOR()
517 return res; in INTERCEPTOR()
522 ret_type res = REAL(func)(s, __VA_ARGS__); \
523 if (s) __msan_unpoison(s, sizeof(char_type) * (res + 1)); \
524 return res;
571 int res = REAL(mbtowc)(dest, src, n); in INTERCEPTOR() local
572 if (res != -1 && dest) __msan_unpoison(dest, sizeof(wchar_t)); in INTERCEPTOR()
573 return res; in INTERCEPTOR()
578 SIZE_T res = REAL(mbrtowc)(dest, src, n, ps); in INTERCEPTOR() local
579 if (res != (SIZE_T)-1 && dest) __msan_unpoison(dest, sizeof(wchar_t)); in INTERCEPTOR()
580 return res; in INTERCEPTOR()
585 SIZE_T res = REAL(wcslen)(s); in INTERCEPTOR() local
586 CHECK_UNPOISONED(s, sizeof(wchar_t) * (res + 1)); in INTERCEPTOR()
587 return res; in INTERCEPTOR()
593 wchar_t *res = REAL(wcschr)(s, wc, ps); in INTERCEPTOR() local
594 return res; in INTERCEPTOR()
601 wchar_t *res = REAL(wcscpy)(dest, src); in INTERCEPTOR() local
604 return res; in INTERCEPTOR()
611 wchar_t *res = REAL(wmemcpy)(dest, src, n); in INTERCEPTOR() local
613 return res; in INTERCEPTOR()
619 wchar_t *res = REAL(wmempcpy)(dest, src, n); in INTERCEPTOR() local
621 return res; in INTERCEPTOR()
627 wchar_t *res = REAL(wmemset)(s, c, n); in INTERCEPTOR() local
629 return res; in INTERCEPTOR()
635 wchar_t *res = REAL(wmemmove)(dest, src, n); in INTERCEPTOR() local
637 return res; in INTERCEPTOR()
642 int res = REAL(wcscmp)(s1, s2); in INTERCEPTOR() local
643 return res; in INTERCEPTOR()
648 int res = REAL(gettimeofday)(tv, tz); in INTERCEPTOR() local
653 return res; in INTERCEPTOR()
658 char *res = REAL(fcvt)(x, a, b, c); in INTERCEPTOR() local
661 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
662 return res; in INTERCEPTOR()
669 char *res = REAL(getenv)(name); in INTERCEPTOR() local
670 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
671 return res; in INTERCEPTOR()
689 int res = REAL(setenv)(name, value, overwrite); in INTERCEPTOR()
690 if (!res) UnpoisonEnviron(); in INTERCEPTOR()
691 return res; in INTERCEPTOR()
696 int res = REAL(putenv)(string); in INTERCEPTOR() local
697 if (!res) UnpoisonEnviron(); in INTERCEPTOR()
698 return res; in INTERCEPTOR()
704 int res = REAL(__fxstat)(magic, fd, buf); in INTERCEPTOR() local
705 if (!res) in INTERCEPTOR()
707 return res; in INTERCEPTOR()
717 int res = REAL(__fxstat64)(magic, fd, buf); in INTERCEPTOR() local
718 if (!res) in INTERCEPTOR()
720 return res; in INTERCEPTOR()
730 int res = REAL(fstatat)(fd, pathname, buf, flags); in INTERCEPTOR() local
731 if (!res) __msan_unpoison(buf, __sanitizer::struct_stat_sz); in INTERCEPTOR()
732 return res; in INTERCEPTOR()
739 int res = REAL(__fxstatat)(magic, fd, pathname, buf, flags); in INTERCEPTOR() local
740 if (!res) __msan_unpoison(buf, __sanitizer::struct_stat_sz); in INTERCEPTOR()
741 return res; in INTERCEPTOR()
750 int res = REAL(__fxstatat64)(magic, fd, pathname, buf, flags); in INTERCEPTOR() local
751 if (!res) __msan_unpoison(buf, __sanitizer::struct_stat64_sz); in INTERCEPTOR()
752 return res; in INTERCEPTOR()
762 int res = REAL(stat)(path, buf); in INTERCEPTOR() local
763 if (!res) in INTERCEPTOR()
765 return res; in INTERCEPTOR()
771 int res = REAL(__xstat)(magic, path, buf); in INTERCEPTOR() local
772 if (!res) in INTERCEPTOR()
774 return res; in INTERCEPTOR()
782 int res = REAL(__xstat64)(magic, path, buf); in INTERCEPTOR() local
783 if (!res) in INTERCEPTOR()
785 return res; in INTERCEPTOR()
795 int res = REAL(__lxstat)(magic, path, buf); in INTERCEPTOR() local
796 if (!res) in INTERCEPTOR()
798 return res; in INTERCEPTOR()
808 int res = REAL(__lxstat64)(magic, path, buf); in INTERCEPTOR() local
809 if (!res) in INTERCEPTOR()
811 return res; in INTERCEPTOR()
822 int res = REAL(pipe)(pipefd); in INTERCEPTOR() local
823 if (!res) in INTERCEPTOR()
825 return res; in INTERCEPTOR()
830 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR() local
831 if (!res) in INTERCEPTOR()
833 return res; in INTERCEPTOR()
838 int res = REAL(socketpair)(domain, type, protocol, sv); in INTERCEPTOR() local
839 if (!res) in INTERCEPTOR()
841 return res; in INTERCEPTOR()
846 char *res = REAL(fgets)(s, size, stream); in INTERCEPTOR() local
847 if (res) in INTERCEPTOR()
849 return res; in INTERCEPTOR()
855 char *res = REAL(fgets_unlocked)(s, size, stream); in INTERCEPTOR() local
856 if (res) in INTERCEPTOR()
858 return res; in INTERCEPTOR()
869 int res = REAL(getrlimit)(resource, rlim); in INTERCEPTOR() local
870 if (!res) in INTERCEPTOR()
872 return res; in INTERCEPTOR()
880 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR() local
881 if (!res) in INTERCEPTOR()
883 return res; in INTERCEPTOR()
897 int res = REAL(__xuname)(size, utsname); in INTERCEPTOR() local
898 if (!res) in INTERCEPTOR()
900 return res; in INTERCEPTOR()
906 int res = REAL(uname)(utsname); in INTERCEPTOR() local
907 if (!res) in INTERCEPTOR()
909 return res; in INTERCEPTOR()
916 int res = REAL(gethostname)(name, len); in INTERCEPTOR() local
917 if (!res) { in INTERCEPTOR()
923 return res; in INTERCEPTOR()
930 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR() local
931 if (res > 0) { in INTERCEPTOR()
932 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res); in INTERCEPTOR()
934 return res; in INTERCEPTOR()
945 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR() local
946 if (res > 0) { in INTERCEPTOR()
947 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res); in INTERCEPTOR()
949 return res; in INTERCEPTOR()
958 SSIZE_T res = REAL(recv)(fd, buf, len, flags); in INTERCEPTOR() local
959 if (res > 0) in INTERCEPTOR()
960 __msan_unpoison(buf, res); in INTERCEPTOR()
961 return res; in INTERCEPTOR()
969 SSIZE_T res = REAL(recvfrom)(fd, buf, len, flags, srcaddr, addrlen); in INTERCEPTOR() local
970 if (res > 0) { in INTERCEPTOR()
971 __msan_unpoison(buf, res); in INTERCEPTOR()
977 return res; in INTERCEPTOR()
1040 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() local
1041 if (res != (void*)-1) in INTERCEPTOR()
1042 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
1043 return res; in INTERCEPTOR()
1058 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() local
1059 if (res != (void*)-1) in INTERCEPTOR()
1060 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
1061 return res; in INTERCEPTOR()
1077 int res = REAL(dladdr)(addr, info); in INTERCEPTOR() local
1078 if (res != 0) { in INTERCEPTOR()
1085 return res; in INTERCEPTOR()
1090 char *res = REAL(dlerror)(fake); in INTERCEPTOR() local
1091 if (res) __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
1092 return res; in INTERCEPTOR()
1121 int res = REAL(dl_iterate_phdr)(msan_dl_iterate_phdr_cb, (void *)&cbdata); in INTERCEPTOR() local
1122 return res; in INTERCEPTOR()
1127 int res = REAL(getrusage)(who, usage); in INTERCEPTOR() local
1128 if (res == 0) { in INTERCEPTOR()
1131 return res; in INTERCEPTOR()
1182 int res; in INTERCEPTOR() local
1200 res = REAL(sigaction)(signo, pnew_act, oldact); in INTERCEPTOR()
1201 if (res == 0 && oldact) { in INTERCEPTOR()
1208 res = REAL(sigaction)(signo, act, oldact); in INTERCEPTOR()
1211 if (res == 0 && oldact) { in INTERCEPTOR()
1214 return res; in INTERCEPTOR()
1254 int res = REAL(pthread_create)(th, attr, MsanThreadStartFunc, t); in INTERCEPTOR() local
1258 if (!res) { in INTERCEPTOR()
1261 return res; in INTERCEPTOR()
1268 int res = REAL(pthread_key_create)(key, dtor); in INTERCEPTOR() local
1269 if (!res && key) in INTERCEPTOR()
1271 return res; in INTERCEPTOR()
1276 int res = REAL(pthread_join)(th, retval); in INTERCEPTOR() local
1277 if (!res && retval) in INTERCEPTOR()
1279 return res; in INTERCEPTOR()
1325 int res = REAL(shmctl)(shmid, shmctl_ipc_stat, &ds); in DECLARE_REAL() local
1326 if (!res) { in DECLARE_REAL()
1355 int res = REAL(openpty)(amaster, aslave, name, termp, winp); in INTERCEPTOR() local
1356 if (!res) { in INTERCEPTOR()
1360 return res; in INTERCEPTOR()
1367 int res = REAL(forkpty)(amaster, name, termp, winp); in INTERCEPTOR() local
1368 if (res != -1) in INTERCEPTOR()
1370 return res; in INTERCEPTOR()
1492 void *res = REAL(memcpy)(dest, src, n); in __msan_memcpy() local
1494 return res; in __msan_memcpy()
1501 void *res = REAL(memset)(s, c, n); in __msan_memset() local
1503 return res; in __msan_memset()
1511 void *res = REAL(memmove)(dest, src, n); in __msan_memmove() local
1513 return res; in __msan_memmove()