Lines Matching refs:SIZE_T

58 DECLARE_REAL(SIZE_T, strlen, const char *s)
59 DECLARE_REAL(SIZE_T, strnlen, const char *s, SIZE_T maxlen)
123 INTERCEPTOR(SIZE_T, fread_unlocked, void *ptr, SIZE_T size, SIZE_T nmemb, in INTERCEPTOR() argument
126 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); in INTERCEPTOR()
137 INTERCEPTOR(void *, mempcpy, void *dest, const void *src, SIZE_T n) { in INTERCEPTOR()
145 INTERCEPTOR(void *, memccpy, void *dest, const void *src, int c, SIZE_T n) { in INTERCEPTOR()
149 SIZE_T sz = res ? (char *)res - (char *)dest : n; in INTERCEPTOR()
155 INTERCEPTOR(void *, bcopy, const void *src, void *dest, SIZE_T n) { in INTERCEPTOR()
159 INTERCEPTOR(int, posix_memalign, void **memptr, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR()
169 INTERCEPTOR(void *, memalign, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR()
178 INTERCEPTOR(void *, aligned_alloc, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR()
184 INTERCEPTOR(void *, __libc_memalign, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR()
196 INTERCEPTOR(void *, valloc, SIZE_T size) { in INTERCEPTOR()
202 INTERCEPTOR(void *, pvalloc, SIZE_T size) { in INTERCEPTOR()
284 SIZE_T n = internal_strlen(src); in INTERCEPTOR()
291 INTERCEPTOR(char *, strncpy, char *dest, const char *src, SIZE_T n) { in INTERCEPTOR()
294 SIZE_T copy_size = internal_strnlen(src, n); in INTERCEPTOR()
307 SIZE_T n = internal_strlen(src); in INTERCEPTOR()
323 SIZE_T n = internal_strlen(src); in INTERCEPTOR()
334 SIZE_T n = internal_strlen(src); in INTERCEPTOR()
346 INTERCEPTOR(char *, gcvt, double number, SIZE_T ndigit, char *buf) { in INTERCEPTOR()
349 SIZE_T n = internal_strlen(buf); in INTERCEPTOR()
361 SIZE_T src_size = internal_strlen(src); in INTERCEPTOR()
362 SIZE_T dest_size = internal_strlen(dest); in INTERCEPTOR()
370 INTERCEPTOR(char *, strncat, char *dest, const char *src, SIZE_T n) { in INTERCEPTOR()
373 SIZE_T dest_size = internal_strlen(dest); in INTERCEPTOR()
374 SIZE_T copy_size = internal_strnlen(src, n); in INTERCEPTOR()
492 INTERCEPTOR(SIZE_T, strftime, char *s, SIZE_T max, const char *format, in INTERCEPTOR() argument
494 INTERCEPTOR_STRFTIME_BODY(char, SIZE_T, strftime, s, max, format, tm); in INTERCEPTOR()
497 INTERCEPTOR(SIZE_T, strftime_l, char *s, SIZE_T max, const char *format, in INTERCEPTOR() argument
499 INTERCEPTOR_STRFTIME_BODY(char, SIZE_T, strftime_l, s, max, format, tm, loc); in INTERCEPTOR()
503 INTERCEPTOR(SIZE_T, __strftime_l, char *s, SIZE_T max, const char *format, in INTERCEPTOR() argument
505 INTERCEPTOR_STRFTIME_BODY(char, SIZE_T, __strftime_l, s, max, format, tm, in INTERCEPTOR()
513 INTERCEPTOR(SIZE_T, wcsftime, wchar_t *s, SIZE_T max, const wchar_t *format, in INTERCEPTOR() argument
515 INTERCEPTOR_STRFTIME_BODY(wchar_t, SIZE_T, wcsftime, s, max, format, tm); in INTERCEPTOR()
518 INTERCEPTOR(SIZE_T, wcsftime_l, wchar_t *s, SIZE_T max, const wchar_t *format, in INTERCEPTOR() argument
520 INTERCEPTOR_STRFTIME_BODY(wchar_t, SIZE_T, wcsftime_l, s, max, format, tm, in INTERCEPTOR()
525 INTERCEPTOR(SIZE_T, __wcsftime_l, wchar_t *s, SIZE_T max, const wchar_t *format, in INTERCEPTOR() argument
527 INTERCEPTOR_STRFTIME_BODY(wchar_t, SIZE_T, __wcsftime_l, s, max, format, tm, in INTERCEPTOR()
535 INTERCEPTOR(int, mbtowc, wchar_t *dest, const char *src, SIZE_T n) { in INTERCEPTOR()
542 INTERCEPTOR(SIZE_T, mbrtowc, wchar_t *dest, const char *src, SIZE_T n, in INTERCEPTOR() argument
545 SIZE_T res = REAL(mbrtowc)(dest, src, n, ps); in INTERCEPTOR()
546 if (res != (SIZE_T)-1 && dest) __msan_unpoison(dest, sizeof(wchar_t)); in INTERCEPTOR()
551 INTERCEPTOR(wchar_t *, wmemcpy, wchar_t *dest, const wchar_t *src, SIZE_T n) { in INTERCEPTOR()
560 INTERCEPTOR(wchar_t *, wmempcpy, wchar_t *dest, const wchar_t *src, SIZE_T n) { in INTERCEPTOR()
572 INTERCEPTOR(wchar_t *, wmemset, wchar_t *s, wchar_t c, SIZE_T n) { in INTERCEPTOR()
580 INTERCEPTOR(wchar_t *, wmemmove, wchar_t *dest, const wchar_t *src, SIZE_T n) { in INTERCEPTOR()
858 INTERCEPTOR(int, gethostname, char *name, SIZE_T len) { in INTERCEPTOR()
862 SIZE_T real_len = internal_strnlen(name, len); in INTERCEPTOR()
900 INTERCEPTOR(void *, calloc, SIZE_T nmemb, SIZE_T size) { in INTERCEPTOR()
907 INTERCEPTOR(void *, realloc, void *ptr, SIZE_T size) { in INTERCEPTOR()
914 INTERCEPTOR(void *, reallocarray, void *ptr, SIZE_T nmemb, SIZE_T size) { in INTERCEPTOR()
919 INTERCEPTOR(void *, malloc, SIZE_T size) { in INTERCEPTOR()
948 static void *mmap_interceptor(Mmap real_mmap, void *addr, SIZE_T length, in mmap_interceptor()
950 SIZE_T rounded_length = RoundUpTo(length, GetPageSize()); in mmap_interceptor()
1505 typedef int (*dl_iterate_phdr_cb)(__sanitizer_dl_phdr_info *info, SIZE_T size,
1512 static int msan_dl_iterate_phdr_cb(__sanitizer_dl_phdr_info *info, SIZE_T size, in msan_dl_iterate_phdr_cb()
1566 INTERCEPTOR(wchar_t *, wcsncpy, wchar_t *dest, const wchar_t *src, SIZE_T n) { in INTERCEPTOR()
1569 SIZE_T copy_size = internal_wcsnlen(src, n); in INTERCEPTOR()
1601 void *__msan_memcpy(void *dest, const void *src, SIZE_T n) { in __msan_memcpy()
1612 void *__msan_memset(void *s, int c, SIZE_T n) { in __msan_memset()
1621 void *__msan_memmove(void *dest, const void *src, SIZE_T n) { in __msan_memmove()