Lines Matching refs:res
83 SIZE_T res = REAL(fread)(ptr, size, nmemb, file); in INTERCEPTOR() local
84 if (res > 0) in INTERCEPTOR()
85 __msan_unpoison(ptr, res *size); in INTERCEPTOR()
86 return res; in INTERCEPTOR()
92 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR() local
93 if (res > 0) in INTERCEPTOR()
94 __msan_unpoison(ptr, res *size); in INTERCEPTOR()
95 return res; in INTERCEPTOR()
100 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR() local
101 if (res > 0) in INTERCEPTOR()
102 __msan_unpoison(buf, res); in INTERCEPTOR()
103 return res; in INTERCEPTOR()
144 SIZE_T res = REAL(strlen)(s); in INTERCEPTOR() local
145 CHECK_UNPOISONED(s, res + 1); in INTERCEPTOR()
146 return res; in INTERCEPTOR()
151 SIZE_T res = REAL(strnlen)(s, n); in INTERCEPTOR() local
152 SIZE_T scan_size = (res == n) ? res : res + 1; in INTERCEPTOR()
154 return res; in INTERCEPTOR()
163 char *res = REAL(strcpy)(dest, src); // NOLINT in INTERCEPTOR() local
165 return res; in INTERCEPTOR()
173 char *res = REAL(strncpy)(dest, src, n); // NOLINT in INTERCEPTOR() local
175 return res; in INTERCEPTOR()
181 char *res = REAL(stpcpy)(dest, src); // NOLINT in INTERCEPTOR() local
183 return res; in INTERCEPTOR()
189 char *res = REAL(strdup)(src); in INTERCEPTOR() local
190 __msan_copy_poison(res, src, n + 1); in INTERCEPTOR()
191 return res; in INTERCEPTOR()
197 char *res = REAL(__strdup)(src); in INTERCEPTOR() local
198 __msan_copy_poison(res, src, n + 1); in INTERCEPTOR()
199 return res; in INTERCEPTOR()
205 char *res = REAL(strndup)(src, n); in INTERCEPTOR() local
206 __msan_copy_poison(res, src, copy_size); in INTERCEPTOR()
207 __msan_unpoison(res + copy_size, 1); // \0 in INTERCEPTOR()
208 return res; in INTERCEPTOR()
214 char *res = REAL(__strndup)(src, n); in INTERCEPTOR() local
215 __msan_copy_poison(res, src, copy_size); in INTERCEPTOR()
216 __msan_unpoison(res + copy_size, 1); // \0 in INTERCEPTOR()
217 return res; in INTERCEPTOR()
222 char *res = REAL(gcvt)(number, ndigit, buf); in INTERCEPTOR() local
228 return res; in INTERCEPTOR()
235 char *res = REAL(strcat)(dest, src); // NOLINT in INTERCEPTOR() local
237 return res; in INTERCEPTOR()
246 char *res = REAL(strncat)(dest, src, n); // NOLINT in INTERCEPTOR() local
248 return res; in INTERCEPTOR()
254 long res = REAL(strtol)(nptr, endptr, base); // NOLINT in INTERCEPTOR() local
258 return res; in INTERCEPTOR()
264 long res = REAL(strtoll)(nptr, endptr, base); //NOLINT in INTERCEPTOR() local
268 return res; in INTERCEPTOR()
274 unsigned long res = REAL(strtoul)(nptr, endptr, base); // NOLINT in INTERCEPTOR() local
278 return res; in INTERCEPTOR()
284 unsigned long res = REAL(strtoull)(nptr, endptr, base); // NOLINT in INTERCEPTOR() local
288 return res; in INTERCEPTOR()
293 double res = REAL(strtod)(nptr, endptr); // NOLINT in INTERCEPTOR() local
297 return res; in INTERCEPTOR()
302 float res = REAL(strtof)(nptr, endptr); // NOLINT in INTERCEPTOR() local
306 return res; in INTERCEPTOR()
311 long double res = REAL(strtold)(nptr, endptr); // NOLINT in INTERCEPTOR() local
315 return res; in INTERCEPTOR()
320 int res = REAL(vasprintf)(strp, format, ap); in INTERCEPTOR() local
321 if (res >= 0 && !__msan_has_dynamic_component()) { in INTERCEPTOR()
323 __msan_unpoison(*strp, res + 1); in INTERCEPTOR()
325 return res; in INTERCEPTOR()
332 int res = vasprintf(strp, format, ap); // NOLINT in INTERCEPTOR() local
334 return res; in INTERCEPTOR()
340 int res = REAL(vsnprintf)(str, size, format, ap); in INTERCEPTOR() local
341 if (res >= 0 && !__msan_has_dynamic_component()) { in INTERCEPTOR()
342 __msan_unpoison(str, res + 1); in INTERCEPTOR()
344 return res; in INTERCEPTOR()
349 int res = REAL(vsprintf)(str, format, ap); in INTERCEPTOR() local
350 if (res >= 0 && !__msan_has_dynamic_component()) { in INTERCEPTOR()
351 __msan_unpoison(str, res + 1); in INTERCEPTOR()
353 return res; in INTERCEPTOR()
358 int res = REAL(vswprintf)(str, size, format, ap); in INTERCEPTOR() local
359 if (res >= 0 && !__msan_has_dynamic_component()) { in INTERCEPTOR()
360 __msan_unpoison(str, 4 * (res + 1)); in INTERCEPTOR()
362 return res; in INTERCEPTOR()
369 int res = vsprintf(str, format, ap); // NOLINT in INTERCEPTOR() local
371 return res; in INTERCEPTOR()
378 int res = vsnprintf(str, size, format, ap); in INTERCEPTOR() local
380 return res; in INTERCEPTOR()
387 int res = vswprintf(str, size, format, ap); in INTERCEPTOR() local
389 return res; in INTERCEPTOR()
396 SIZE_T res = REAL(strftime)(s, max, format, tm); in INTERCEPTOR() local
397 if (res) __msan_unpoison(s, res + 1); in INTERCEPTOR()
398 return res; in INTERCEPTOR()
403 int res = REAL(mbtowc)(dest, src, n); in INTERCEPTOR() local
404 if (res != -1 && dest) __msan_unpoison(dest, sizeof(wchar_t)); in INTERCEPTOR()
405 return res; in INTERCEPTOR()
410 SIZE_T res = REAL(mbrtowc)(dest, src, n, ps); in INTERCEPTOR() local
411 if (res != (SIZE_T)-1 && dest) __msan_unpoison(dest, sizeof(wchar_t)); in INTERCEPTOR()
412 return res; in INTERCEPTOR()
417 SIZE_T res = REAL(wcslen)(s); in INTERCEPTOR() local
418 CHECK_UNPOISONED(s, sizeof(wchar_t) * (res + 1)); in INTERCEPTOR()
419 return res; in INTERCEPTOR()
425 wchar_t *res = REAL(wcschr)(s, wc, ps); in INTERCEPTOR() local
426 return res; in INTERCEPTOR()
432 wchar_t *res = REAL(wcscpy)(dest, src); in INTERCEPTOR() local
434 return res; in INTERCEPTOR()
440 wchar_t *res = REAL(wmemcpy)(dest, src, n); in INTERCEPTOR() local
442 return res; in INTERCEPTOR()
447 wchar_t *res = REAL(wmempcpy)(dest, src, n); in INTERCEPTOR() local
449 return res; in INTERCEPTOR()
455 wchar_t *res = (wchar_t *)fast_memset(s, c, n * sizeof(wchar_t)); in INTERCEPTOR() local
457 return res; in INTERCEPTOR()
462 wchar_t *res = REAL(wmemmove)(dest, src, n); in INTERCEPTOR() local
464 return res; in INTERCEPTOR()
469 int res = REAL(wcscmp)(s1, s2); in INTERCEPTOR() local
470 return res; in INTERCEPTOR()
475 double res = REAL(wcstod)(nptr, endptr); in INTERCEPTOR() local
477 return res; in INTERCEPTOR()
504 int res = REAL(gettimeofday)(tv, tz); in INTERCEPTOR() local
509 return res; in INTERCEPTOR()
514 char *res = REAL(fcvt)(x, a, b, c); in INTERCEPTOR() local
519 return res; in INTERCEPTOR()
524 char *res = REAL(getenv)(name); in INTERCEPTOR() local
526 if (res) in INTERCEPTOR()
527 __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
529 return res; in INTERCEPTOR()
546 int res = REAL(setenv)(name, value, overwrite); in INTERCEPTOR() local
547 if (!res) UnpoisonEnviron(); in INTERCEPTOR()
548 return res; in INTERCEPTOR()
553 int res = REAL(putenv)(string); in INTERCEPTOR() local
554 if (!res) UnpoisonEnviron(); in INTERCEPTOR()
555 return res; in INTERCEPTOR()
560 int res = REAL(__fxstat)(magic, fd, buf); in INTERCEPTOR() local
561 if (!res) in INTERCEPTOR()
563 return res; in INTERCEPTOR()
568 int res = REAL(__fxstat64)(magic, fd, buf); in INTERCEPTOR() local
569 if (!res) in INTERCEPTOR()
571 return res; in INTERCEPTOR()
576 int res = REAL(__xstat)(magic, path, buf); in INTERCEPTOR() local
577 if (!res) in INTERCEPTOR()
579 return res; in INTERCEPTOR()
584 int res = REAL(__xstat64)(magic, path, buf); in INTERCEPTOR() local
585 if (!res) in INTERCEPTOR()
587 return res; in INTERCEPTOR()
592 int res = REAL(__lxstat)(magic, path, buf); in INTERCEPTOR() local
593 if (!res) in INTERCEPTOR()
595 return res; in INTERCEPTOR()
600 int res = REAL(__lxstat64)(magic, path, buf); in INTERCEPTOR() local
601 if (!res) in INTERCEPTOR()
603 return res; in INTERCEPTOR()
610 int res = REAL(pipe)(pipefd); in INTERCEPTOR() local
611 if (!res) in INTERCEPTOR()
613 return res; in INTERCEPTOR()
618 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR() local
619 if (!res) in INTERCEPTOR()
621 return res; in INTERCEPTOR()
626 int res = REAL(socketpair)(domain, type, protocol, sv); in INTERCEPTOR() local
627 if (!res) in INTERCEPTOR()
629 return res; in INTERCEPTOR()
634 char *res = REAL(fgets)(s, size, stream); in INTERCEPTOR() local
635 if (res) in INTERCEPTOR()
637 return res; in INTERCEPTOR()
642 char *res = REAL(fgets_unlocked)(s, size, stream); in INTERCEPTOR() local
643 if (res) in INTERCEPTOR()
645 return res; in INTERCEPTOR()
652 int res = REAL(getrlimit)(resource, rlim); in INTERCEPTOR() local
653 if (!res) in INTERCEPTOR()
655 return res; in INTERCEPTOR()
662 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR() local
663 if (!res) in INTERCEPTOR()
665 return res; in INTERCEPTOR()
670 int res = REAL(statfs)(s, buf); in INTERCEPTOR() local
671 if (!res) in INTERCEPTOR()
673 return res; in INTERCEPTOR()
678 int res = REAL(fstatfs)(fd, buf); in INTERCEPTOR() local
679 if (!res) in INTERCEPTOR()
681 return res; in INTERCEPTOR()
686 int res = REAL(statfs64)(s, buf); in INTERCEPTOR() local
687 if (!res) in INTERCEPTOR()
689 return res; in INTERCEPTOR()
694 int res = REAL(fstatfs64)(fd, buf); in INTERCEPTOR() local
695 if (!res) in INTERCEPTOR()
697 return res; in INTERCEPTOR()
702 int res = REAL(uname)(utsname); in INTERCEPTOR() local
703 if (!res) { in INTERCEPTOR()
706 return res; in INTERCEPTOR()
711 int res = REAL(gethostname)(name, len); in INTERCEPTOR() local
712 if (!res) { in INTERCEPTOR()
718 return res; in INTERCEPTOR()
724 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR() local
725 if (res > 0) { in INTERCEPTOR()
726 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res); in INTERCEPTOR()
728 return res; in INTERCEPTOR()
734 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR() local
735 if (res > 0) { in INTERCEPTOR()
736 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res); in INTERCEPTOR()
738 return res; in INTERCEPTOR()
743 SSIZE_T res = REAL(recv)(fd, buf, len, flags); in INTERCEPTOR() local
744 if (res > 0) in INTERCEPTOR()
745 __msan_unpoison(buf, res); in INTERCEPTOR()
746 return res; in INTERCEPTOR()
754 SSIZE_T res = REAL(recvfrom)(fd, buf, len, flags, srcaddr, addrlen); in INTERCEPTOR() local
755 if (res > 0) { in INTERCEPTOR()
756 __msan_unpoison(buf, res); in INTERCEPTOR()
762 return res; in INTERCEPTOR()
807 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() local
808 if (res != (void*)-1) in INTERCEPTOR()
809 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
810 return res; in INTERCEPTOR()
816 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() local
817 if (res != (void*)-1) in INTERCEPTOR()
818 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
819 return res; in INTERCEPTOR()
831 int res = REAL(dladdr)(addr, info); in INTERCEPTOR() local
832 if (res != 0) { in INTERCEPTOR()
839 return res; in INTERCEPTOR()
886 int res = REAL(dl_iterate_phdr)(msan_dl_iterate_phdr_cb, (void *)&cbdata); in INTERCEPTOR() local
888 return res; in INTERCEPTOR()
893 int res = REAL(getrusage)(who, usage); in INTERCEPTOR() local
894 if (res == 0) { in INTERCEPTOR()
897 return res; in INTERCEPTOR()
925 int res; in INTERCEPTOR() local
943 res = REAL(sigaction)(signo, pnew_act, oldact); in INTERCEPTOR()
944 if (res == 0 && oldact) { in INTERCEPTOR()
951 res = REAL(sigaction)(signo, act, oldact); in INTERCEPTOR()
954 if (res == 0 && oldact) { in INTERCEPTOR()
957 return res; in INTERCEPTOR()
991 int res = REAL(pthread_create)(th, attr, callback, param); in INTERCEPTOR() local
994 if (!res) { in INTERCEPTOR()
997 return res; in INTERCEPTOR()
1003 int res = REAL(pthread_key_create)(key, dtor); in INTERCEPTOR() local
1004 if (!res && key) in INTERCEPTOR()
1006 return res; in INTERCEPTOR()
1011 int res = REAL(pthread_join)(th, retval); in INTERCEPTOR() local
1012 if (!res && retval) in INTERCEPTOR()
1014 return res; in INTERCEPTOR()
1147 void *res = fast_memcpy(dest, src, n); in __msan_memcpy() local
1149 return res; in __msan_memcpy()
1154 void *res = fast_memset(s, c, n); in __msan_memset() local
1156 return res; in __msan_memset()
1161 void *res = REAL(memmove)(dest, src, n); in __msan_memmove() local
1163 return res; in __msan_memmove()