Lines Matching refs:res
64 SIZE_T res = REAL(fread)(ptr, size, nmemb, file); in INTERCEPTOR() local
65 if (res > 0) in INTERCEPTOR()
66 __msan_unpoison(ptr, res *size); in INTERCEPTOR()
67 return res; in INTERCEPTOR()
73 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR() local
74 if (res > 0) in INTERCEPTOR()
75 __msan_unpoison(ptr, res *size); in INTERCEPTOR()
76 return res; in INTERCEPTOR()
81 SSIZE_T res = REAL(readlink)(path, buf, bufsiz); in INTERCEPTOR() local
82 if (res > 0) in INTERCEPTOR()
83 __msan_unpoison(buf, res); in INTERCEPTOR()
84 return res; in INTERCEPTOR()
89 void *res = REAL(readdir)(a); in INTERCEPTOR() local
90 __msan_unpoison(res, __sanitizer::struct_dirent_sz); in INTERCEPTOR()
91 return res; in INTERCEPTOR()
96 void *res = REAL(readdir)(a); in INTERCEPTOR() local
97 __msan_unpoison(res, __sanitizer::struct_dirent64_sz); in INTERCEPTOR()
98 return res; in INTERCEPTOR()
129 SIZE_T res = REAL(strlen)(s); in INTERCEPTOR() local
130 CHECK_UNPOISONED(s, res + 1); in INTERCEPTOR()
131 return res; in INTERCEPTOR()
136 SIZE_T res = REAL(strnlen)(s, n); in INTERCEPTOR() local
137 SIZE_T scan_size = (res == n) ? res : res + 1; in INTERCEPTOR()
139 return res; in INTERCEPTOR()
148 char *res = REAL(strcpy)(dest, src); // NOLINT in INTERCEPTOR() local
150 return res; in INTERCEPTOR()
158 char *res = REAL(strncpy)(dest, src, n); // NOLINT in INTERCEPTOR() local
160 return res; in INTERCEPTOR()
166 char *res = REAL(strdup)(src); in INTERCEPTOR() local
167 __msan_copy_poison(res, src, n + 1); in INTERCEPTOR()
168 return res; in INTERCEPTOR()
174 char *res = REAL(__strdup)(src); in INTERCEPTOR() local
175 __msan_copy_poison(res, src, n + 1); in INTERCEPTOR()
176 return res; in INTERCEPTOR()
182 char *res = REAL(strndup)(src, n); in INTERCEPTOR() local
183 __msan_copy_poison(res, src, copy_size); in INTERCEPTOR()
184 __msan_unpoison(res + copy_size, 1); // \0 in INTERCEPTOR()
185 return res; in INTERCEPTOR()
191 char *res = REAL(__strndup)(src, n); in INTERCEPTOR() local
192 __msan_copy_poison(res, src, copy_size); in INTERCEPTOR()
193 __msan_unpoison(res + copy_size, 1); // \0 in INTERCEPTOR()
194 return res; in INTERCEPTOR()
199 char *res = REAL(gcvt)(number, ndigit, buf); in INTERCEPTOR() local
205 return res; in INTERCEPTOR()
212 char *res = REAL(strcat)(dest, src); // NOLINT in INTERCEPTOR() local
214 return res; in INTERCEPTOR()
223 char *res = REAL(strncat)(dest, src, n); // NOLINT in INTERCEPTOR() local
225 return res; in INTERCEPTOR()
231 long res = REAL(strtol)(nptr, endptr, base); // NOLINT in INTERCEPTOR() local
235 return res; in INTERCEPTOR()
241 long res = REAL(strtoll)(nptr, endptr, base); //NOLINT in INTERCEPTOR() local
245 return res; in INTERCEPTOR()
251 unsigned long res = REAL(strtoul)(nptr, endptr, base); // NOLINT in INTERCEPTOR() local
255 return res; in INTERCEPTOR()
261 unsigned long res = REAL(strtoull)(nptr, endptr, base); // NOLINT in INTERCEPTOR() local
265 return res; in INTERCEPTOR()
270 double res = REAL(strtod)(nptr, endptr); // NOLINT in INTERCEPTOR() local
274 return res; in INTERCEPTOR()
279 float res = REAL(strtof)(nptr, endptr); // NOLINT in INTERCEPTOR() local
283 return res; in INTERCEPTOR()
288 long double res = REAL(strtold)(nptr, endptr); // NOLINT in INTERCEPTOR() local
292 return res; in INTERCEPTOR()
298 int res = REAL(vsnprintf)(str, size, format, ap); in INTERCEPTOR() local
300 __msan_unpoison(str, res + 1); in INTERCEPTOR()
302 return res; in INTERCEPTOR()
307 int res = REAL(vsprintf)(str, format, ap); in INTERCEPTOR() local
309 __msan_unpoison(str, res + 1); in INTERCEPTOR()
311 return res; in INTERCEPTOR()
316 int res = REAL(vswprintf)(str, size, format, ap); in INTERCEPTOR() local
318 __msan_unpoison(str, 4 * (res + 1)); in INTERCEPTOR()
320 return res; in INTERCEPTOR()
327 int res = vsprintf(str, format, ap); // NOLINT in INTERCEPTOR() local
329 return res; in INTERCEPTOR()
336 int res = vsnprintf(str, size, format, ap); in INTERCEPTOR() local
338 return res; in INTERCEPTOR()
345 int res = vswprintf(str, size, format, ap); in INTERCEPTOR() local
347 return res; in INTERCEPTOR()
354 SIZE_T res = REAL(strftime)(s, max, format, tm); in INTERCEPTOR() local
355 if (res) __msan_unpoison(s, res + 1); in INTERCEPTOR()
356 return res; in INTERCEPTOR()
361 SIZE_T res = REAL(wcstombs)(dest, src, size); in INTERCEPTOR() local
362 if (res != (SIZE_T)-1) __msan_unpoison(dest, res + 1); in INTERCEPTOR()
363 return res; in INTERCEPTOR()
369 SIZE_T res = REAL(mbstowcs)(dest, src, n); in INTERCEPTOR() local
370 if (res != (SIZE_T)-1) __msan_unpoison(dest, (res + 1) * sizeof(wchar_t)); in INTERCEPTOR()
371 return res; in INTERCEPTOR()
376 SIZE_T res = REAL(wcslen)(s); in INTERCEPTOR() local
377 CHECK_UNPOISONED(s, sizeof(wchar_t) * (res + 1)); in INTERCEPTOR()
378 return res; in INTERCEPTOR()
384 wchar_t *res = REAL(wcschr)(s, wc, ps); in INTERCEPTOR() local
385 return res; in INTERCEPTOR()
391 wchar_t *res = REAL(wcscpy)(dest, src); in INTERCEPTOR() local
393 return res; in INTERCEPTOR()
399 wchar_t *res = REAL(wmemcpy)(dest, src, n); in INTERCEPTOR() local
401 return res; in INTERCEPTOR()
407 wchar_t *res = (wchar_t *)fast_memset(s, c, n * sizeof(wchar_t)); in INTERCEPTOR() local
409 return res; in INTERCEPTOR()
414 wchar_t *res = REAL(wmemmove)(dest, src, n); in INTERCEPTOR() local
416 return res; in INTERCEPTOR()
421 int res = REAL(wcscmp)(s1, s2); in INTERCEPTOR() local
422 return res; in INTERCEPTOR()
427 double res = REAL(wcstod)(nptr, endptr); in INTERCEPTOR() local
429 return res; in INTERCEPTOR()
456 int res = REAL(gettimeofday)(tv, tz); in INTERCEPTOR() local
461 return res; in INTERCEPTOR()
466 char *res = REAL(fcvt)(x, a, b, c); in INTERCEPTOR() local
471 return res; in INTERCEPTOR()
476 char *res = REAL(getenv)(name); in INTERCEPTOR() local
478 if (res) in INTERCEPTOR()
479 __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
481 return res; in INTERCEPTOR()
486 int res = REAL(__fxstat)(magic, fd, buf); in INTERCEPTOR() local
487 if (!res) in INTERCEPTOR()
489 return res; in INTERCEPTOR()
494 int res = REAL(__fxstat64)(magic, fd, buf); in INTERCEPTOR() local
495 if (!res) in INTERCEPTOR()
497 return res; in INTERCEPTOR()
502 int res = REAL(__xstat)(magic, path, buf); in INTERCEPTOR() local
503 if (!res) in INTERCEPTOR()
505 return res; in INTERCEPTOR()
510 int res = REAL(__xstat64)(magic, path, buf); in INTERCEPTOR() local
511 if (!res) in INTERCEPTOR()
513 return res; in INTERCEPTOR()
518 int res = REAL(__lxstat)(magic, path, buf); in INTERCEPTOR() local
519 if (!res) in INTERCEPTOR()
521 return res; in INTERCEPTOR()
526 int res = REAL(__lxstat64)(magic, path, buf); in INTERCEPTOR() local
527 if (!res) in INTERCEPTOR()
529 return res; in INTERCEPTOR()
536 int res = REAL(pipe)(pipefd); in INTERCEPTOR() local
537 if (!res) in INTERCEPTOR()
539 return res; in INTERCEPTOR()
544 int res = REAL(wait)(status); in INTERCEPTOR() local
547 return res; in INTERCEPTOR()
554 int res = REAL(waitpid)(pid, status, options); in INTERCEPTOR() local
557 return res; in INTERCEPTOR()
562 char *res = REAL(fgets)(s, size, stream); in INTERCEPTOR() local
563 if (res) in INTERCEPTOR()
565 return res; in INTERCEPTOR()
570 char *res = REAL(fgets_unlocked)(s, size, stream); in INTERCEPTOR() local
571 if (res) in INTERCEPTOR()
573 return res; in INTERCEPTOR()
578 char *res = REAL(getcwd)(buf, size); in INTERCEPTOR() local
579 if (res) in INTERCEPTOR()
580 __msan_unpoison(res, REAL(strlen)(res) + 1); in INTERCEPTOR()
581 return res; in INTERCEPTOR()
586 char *res = REAL(realpath)(path, abspath); in INTERCEPTOR() local
587 if (res) in INTERCEPTOR()
589 return res; in INTERCEPTOR()
596 int res = REAL(getrlimit)(resource, rlim); in INTERCEPTOR() local
597 if (!res) in INTERCEPTOR()
599 return res; in INTERCEPTOR()
606 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR() local
607 if (!res) in INTERCEPTOR()
609 return res; in INTERCEPTOR()
614 int res = REAL(statfs)(s, buf); in INTERCEPTOR() local
615 if (!res) in INTERCEPTOR()
617 return res; in INTERCEPTOR()
622 int res = REAL(fstatfs)(fd, buf); in INTERCEPTOR() local
623 if (!res) in INTERCEPTOR()
625 return res; in INTERCEPTOR()
630 int res = REAL(statfs64)(s, buf); in INTERCEPTOR() local
631 if (!res) in INTERCEPTOR()
633 return res; in INTERCEPTOR()
638 int res = REAL(fstatfs64)(fd, buf); in INTERCEPTOR() local
639 if (!res) in INTERCEPTOR()
641 return res; in INTERCEPTOR()
646 int res = REAL(uname)(utsname); in INTERCEPTOR() local
647 if (!res) { in INTERCEPTOR()
650 return res; in INTERCEPTOR()
655 int res = REAL(gethostname)(name, len); in INTERCEPTOR() local
656 if (!res) { in INTERCEPTOR()
662 return res; in INTERCEPTOR()
668 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); in INTERCEPTOR() local
669 if (res > 0) { in INTERCEPTOR()
670 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res); in INTERCEPTOR()
672 return res; in INTERCEPTOR()
678 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR() local
679 if (res > 0) { in INTERCEPTOR()
680 __msan_unpoison(events, __sanitizer::struct_epoll_event_sz * res); in INTERCEPTOR()
682 return res; in INTERCEPTOR()
687 SSIZE_T res = REAL(recv)(fd, buf, len, flags); in INTERCEPTOR() local
688 if (res > 0) in INTERCEPTOR()
689 __msan_unpoison(buf, res); in INTERCEPTOR()
690 return res; in INTERCEPTOR()
699 SSIZE_T res = REAL(recvfrom)(fd, buf, len, flags, srcaddr, addrlen); in INTERCEPTOR() local
700 if (res > 0) { in INTERCEPTOR()
701 __msan_unpoison(buf, res); in INTERCEPTOR()
707 return res; in INTERCEPTOR()
712 SSIZE_T res = REAL(recvmsg)(fd, msg, flags); in INTERCEPTOR() local
713 if (res > 0) { in INTERCEPTOR()
718 return res; in INTERCEPTOR()
763 void *res = REAL(mmap)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() local
764 if (res != (void*)-1) in INTERCEPTOR()
765 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
766 return res; in INTERCEPTOR()
772 void *res = REAL(mmap64)(addr, length, prot, flags, fd, offset); in INTERCEPTOR() local
773 if (res != (void*)-1) in INTERCEPTOR()
774 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
775 return res; in INTERCEPTOR()
787 int res = REAL(dladdr)(addr, info); in INTERCEPTOR() local
788 if (res != 0) { in INTERCEPTOR()
795 return res; in INTERCEPTOR()
819 int res = REAL(getrusage)(who, usage); in INTERCEPTOR() local
820 if (res == 0) { in INTERCEPTOR()
823 return res; in INTERCEPTOR()
850 int res = REAL(pthread_create)(th, attr, callback, param); in INTERCEPTOR() local
853 return res; in INTERCEPTOR()
957 void *res = fast_memcpy(dest, src, n); in __msan_memcpy() local
959 return res; in __msan_memcpy()
964 void *res = fast_memset(s, c, n); in __msan_memset() local
966 return res; in __msan_memset()
971 void *res = REAL(memmove)(dest, src, n); in __msan_memmove() local
973 return res; in __msan_memmove()