/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | obsolete.c | 299 _nc_oom_calloc(size_t nmemb, size_t size) argument 303 : calloc(nmemb, size)); 304 TR_OOM(("oom #%ld calloc(%ld, %ld) %p", oom_count, nmemb, size, result));
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_interceptors.cpp | 86 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument 88 return DlsymAlloc::Callocate(nmemb, size); 91 return lsan_calloc(nmemb, size, stack); 102 INTERCEPTOR(void*, reallocarray, void *q, uptr nmemb, uptr size) { argument 105 return lsan_reallocarray(q, nmemb, size, stack);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_allocator.cpp | 504 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 505 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) { 508 ReportCallocOverflow(nmemb, size, stack); 510 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC); 514 REAL(memset)(ptr, 0, nmemb * size); 605 void *memprof_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 606 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); 609 void *memprof_reallocarray(void *p, uptr nmemb, uptr size, argument 611 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) { 615 ReportReallocArrayOverflow(nmemb, siz [all...] |
/freebsd-current/usr.bin/sort/ |
H A D | radixsort.c | 669 run_sort(struct sort_list_item **base, size_t nmemb) argument 675 if (nmemb < MT_SORT_THRESHOLD) 697 sl->tosort_num = nmemb; 698 sl->tosort_sz = nmemb; 701 sort_left = nmemb; 718 rxsort(struct sort_list_item **base, size_t nmemb) argument 721 run_sort(base, nmemb);
|
/freebsd-current/lib/libomp/ |
H A D | omp.h | 438 extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size, 440 extern void *__KAI_KMPC_CONVENTION omp_aligned_calloc(size_t align, size_t nmemb, size_t size, 450 extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size, omp_allocator_handle_t a); 451 extern void *__KAI_KMPC_CONVENTION omp_aligned_calloc(size_t align, size_t nmemb, size_t size,
|
/freebsd-current/lib/libunbound/ |
H A D | config.h | 1361 void* reallocarray(void *ptr, size_t nmemb, size_t size); 1441 void *reallocarray(void *ptr, size_t nmemb, size_t size); 1518 void *unbound_stat_calloc(size_t nmemb, size_t size); 1523 void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_allocator.cpp | 773 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 774 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) { 777 ReportCallocOverflow(nmemb, size, stack); 779 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); 783 REAL(memset)(ptr, 0, nmemb * size); 1003 void *asan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 1004 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); 1007 void *asan_reallocarray(void *p, uptr nmemb, uptr size, argument 1009 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) { 1013 ReportReallocArrayOverflow(nmemb, siz [all...] |
H A D | asan_allocator.h | 277 void *asan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack); 279 void *asan_reallocarray(void *p, uptr nmemb, uptr size,
|
/freebsd-current/contrib/ntp/include/ |
H A D | ntp_stdlib.h | 127 extern void * oreallocarrayxz (void *optr, size_t nmemb, size_t size, size_t extra); 142 extern void * oreallocarrayxz (void *optr, size_t nmemb, size_t size,
|
/freebsd-current/include/ |
H A D | stdlib.h | 355 static inline void qsort_r(void *base, size_t nmemb, size_t size, argument 357 __qsort_r_compat(base, nmemb, size, thunk, compar);
|
/freebsd-current/contrib/unbound/util/ |
H A D | alloc.h | 199 void *unbound_stat_calloc_lite(size_t nmemb, size_t size, const char* file,
|
/freebsd-current/sys/contrib/openzfs/contrib/coverity/ |
H A D | model.c | 489 calloc(size_t nmemb, size_t size) argument 491 void *buf = __coverity_alloc__(size * nmemb);
|
/freebsd-current/sys/kern/ |
H A D | kern_malloc.c | 821 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) argument 824 if (WOULD_OVERFLOW(nmemb, size)) 825 panic("mallocarray: %zu * %zu overflowed", nmemb, size); 827 return (malloc(size * nmemb, type, flags)); 831 mallocarray_domainset(size_t nmemb, size_t size, struct malloc_type *type, argument 835 if (WOULD_OVERFLOW(nmemb, size)) 836 panic("mallocarray_domainset: %zu * %zu overflowed", nmemb, size); 838 return (malloc_domainset(size * nmemb, type, ds, flags));
|
/freebsd-current/usr.bin/grep/ |
H A D | util.c | 664 grep_calloc(size_t nmemb, size_t size) argument 668 if (nmemb == 0 || size == 0) 670 if ((ptr = calloc(nmemb, size)) == NULL)
|
/freebsd-current/contrib/libfido2/fuzz/ |
H A D | wrap.c | 57 (size_t nmemb, size_t size), 59 (nmemb, size),
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan.h | 274 void *msan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack); 276 void *msan_reallocarray(void *ptr, uptr nmemb, uptr size,
|
H A D | msan_interceptors.cpp | 125 INTERCEPTOR(SIZE_T, fread_unlocked, void *ptr, SIZE_T size, SIZE_T nmemb, argument 128 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); 999 INTERCEPTOR(void *, calloc, SIZE_T nmemb, SIZE_T size) { argument 1002 return DlsymAlloc::Callocate(nmemb, size); 1003 return msan_calloc(nmemb, size, &stack); 1013 INTERCEPTOR(void *, reallocarray, void *ptr, SIZE_T nmemb, SIZE_T size) { argument 1015 return msan_reallocarray(ptr, nmemb, size, &stack);
|
/freebsd-current/sys/sys/ |
H A D | libkern.h | 307 void qsort(void *base, size_t nmemb, size_t size, 309 void qsort_r(void *base, size_t nmemb, size_t size,
|
/freebsd-current/contrib/wpa/src/utils/ |
H A D | http_curl.c | 161 static size_t curl_cb_write(void *ptr, size_t size, size_t nmemb, argument 166 n = os_realloc(ctx->curl_buf, ctx->curl_buf_len + size * nmemb + 1); 170 os_memcpy(n + ctx->curl_buf_len, ptr, size * nmemb); 171 n[ctx->curl_buf_len + size * nmemb] = '\0'; 172 ctx->curl_buf_len += size * nmemb; 173 return size * nmemb;
|
/freebsd-current/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_alloc.cpp | 1519 void *__kmpc_calloc(int gtid, size_t nmemb, size_t size, 1521 KE_TRACE(25, ("__kmpc_calloc: T#%d (%d, %d, %p)\n", gtid, (int)nmemb, 1523 void *ptr = __kmp_calloc(gtid, 0, nmemb, size, allocator); 1758 void *__kmp_calloc(int gtid, size_t algn, size_t nmemb, size_t size, 1769 if (nmemb == 0 || size == 0) 1772 if ((SIZE_MAX - sizeof(kmp_mem_desc_t)) / size < nmemb) { 1779 ptr = __kmp_alloc(gtid, algn, nmemb * size, allocator); 1782 memset(ptr, 0x00, nmemb * size);
|
H A D | kmp_csupport.cpp | 4442 void *omp_calloc(size_t nmemb, size_t size, omp_allocator_handle_t allocator) { argument 4443 return __kmp_calloc(__kmp_entry_gtid(), 0, nmemb, size, allocator); 4446 void *omp_aligned_calloc(size_t align, size_t nmemb, size_t size, argument 4448 return __kmp_calloc(__kmp_entry_gtid(), align, nmemb, size, allocator);
|
/freebsd-current/sys/netpfil/ipfw/ |
H A D | ip_fw_table_algo.c | 296 static int badd(const void *key, void *item, void *base, size_t nmemb, 298 static int bdel(const void *key, void *base, size_t nmemb, size_t size, 2004 badd(const void *key, void *item, void *base, size_t nmemb, argument 2010 if (nmemb == 0) { 2017 max = nmemb - 1; 2039 if (nmemb > shift) 2040 memmove(paddr + size, paddr, (nmemb - shift) * size); 2053 bdel(const void *key, void *base, size_t nmemb, size_t size, argument 2059 item = (caddr_t)bsearch(key, base, nmemb, size, compar); 2064 sz = (caddr_t)base + nmemb * siz [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors.inc | 988 INTERCEPTOR(SIZE_T, fread, void *ptr, SIZE_T size, SIZE_T nmemb, void *file) { 991 COMMON_INTERCEPTOR_ENTER(ctx, fread, ptr, size, nmemb, file); 995 SIZE_T res = REAL(fread)(ptr, size, nmemb, file); 1105 INTERCEPTOR(SIZE_T, fwrite, const void *p, uptr size, uptr nmemb, void *file) { 1108 COMMON_INTERCEPTOR_ENTER(ctx, fwrite, p, size, nmemb, file); 1109 SIZE_T res = REAL(fwrite)(p, size, nmemb, file); 10015 INTERCEPTOR(void, qsort_r, void *base, SIZE_T nmemb, SIZE_T size, 10018 COMMON_INTERCEPTOR_ENTER(ctx, qsort_r, base, nmemb, size, compar, arg); 10020 if (nmemb > 1) { 10021 for (SIZE_T i = 0; i < nmemb [all...] |
/freebsd-current/contrib/ofed/opensm/opensm/ |
H A D | osm_ucast_ftree.c | 2118 bubble_sort_up(ftree_port_group_t ** p_group_array, uint32_t nmemb) argument 2131 * this way we save a test i < nmemb for each pass through the loop */ 2136 for (j = 1; j < (nmemb - i); j++) { 2155 bubble_sort_siblings(ftree_port_group_t ** p_group_array, uint32_t nmemb) argument 2163 * this way we save a test i < nmemb for each pass through the loop */ 2168 for (j = 1; j < (nmemb - i); j++) { 2195 bubble_sort_down(ftree_port_group_t ** p_group_array, uint32_t nmemb) argument 2203 * this way we save a test i < nmemb for each pass through the loop */ 2208 for (j = 1; j < (nmemb - i); j++) {
|
/freebsd-current/contrib/libucl/src/ |
H A D | ucl_util.c | 763 ucl_curl_write_callback (void* contents, size_t size, size_t nmemb, void* ud) argument 766 size_t realsize = size * nmemb;
|