Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 36) sorted by relevance

12

/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dhcreate_r.c48 hsearch->entries = calloc(16, sizeof(ENTRY)); in hcreate_r()
Dhsearch_r.c117 new_entries = calloc(new_count, sizeof(ENTRY)); in hsearch_r()
/bionic/tests/
Dmalloc_test.cpp64 char *ptr = (char *)calloc(1, alloc_len); in TEST()
76 ASSERT_EQ(nullptr, calloc(-1, 100)); in TEST()
83 ASSERT_EQ(nullptr, calloc(1, SIZE_MAX)); in TEST()
86 ASSERT_EQ(nullptr, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
89 ASSERT_EQ(nullptr, calloc(2, SIZE_MAX)); in TEST()
92 ASSERT_EQ(nullptr, calloc(SIZE_MAX, 2)); in TEST()
234 char *ptr = (char *)calloc(1, 100); in TEST()
249 char *ptr = (char *)calloc(1, 200); in TEST()
264 char *ptr = (char *)calloc(1, 200); in TEST()
461 uint8_t* zero_mem = reinterpret_cast<uint8_t*>(calloc(1, size)); in TEST()
[all …]
Dfortify_filecheck_diagnostics_test.cpp273 void *buf = calloc(atoi("5"), 1); in test_pwrite64_too_big_malloc()
/bionic/libc/private/
Dbionic_malloc_dispatch.h59 MallocCalloc calloc; member
/bionic/linker/
Dlinker_memory.cpp75 void* calloc(size_t item_count, size_t item_size) { in calloc() function
/bionic/libc/stdio/
Dfmemopen.cpp120 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(calloc(sizeof(fmemopen_cookie), 1)); in fmemopen()
126 if (ck->buf == nullptr) ck->buf = ck->allocation = static_cast<char*>(calloc(capacity, 1)); in fmemopen()
/bionic/libc/bionic/
Dmalloc_common.cpp61 extern "C" void* calloc(size_t n_elements, size_t elem_size) { in calloc() function
64 return dispatch_table->calloc(n_elements, elem_size); in calloc()
66 void* result = Malloc(calloc)(n_elements, elem_size); in calloc()
Dspawn.cpp179 *attr = reinterpret_cast<__posix_spawnattr*>(calloc(1, sizeof(__posix_spawnattr))); in posix_spawnattr_init()
275 *actions = reinterpret_cast<__posix_spawn_file_actions*>(calloc(1, sizeof(**actions))); in posix_spawn_file_actions_init()
Dmalloc_limit.cpp123 return IncrementLimit(dispatch_table->calloc(n_elements, elem_size)); in LimitCalloc()
125 return IncrementLimit(Malloc(calloc)(n_elements, elem_size)); in LimitCalloc()
Dmalloc_common_dynamic.cpp84 Malloc(calloc),
153 if (!InitMallocFunction<MallocCalloc>(impl_handler, &table->calloc, prefix, "calloc")) { in InitMallocFunctions()
Dmalloc_heapprofd.cpp93 Malloc(calloc),
/bionic/libc/include/
Dmalloc.h52 void* calloc(size_t __item_count, size_t __item_size) __mallocfunc __BIONIC_ALLOC_SIZE(1,2) __wur;
/bionic/libc/malloc_hooks/
DREADME.md16 * `calloc`
53 For calloc, if \_\_malloc\_hook has been set, then the hook function is
75 Below is a simple implementation intercepting only malloc/calloc calls.
Dmalloc_hooks.cpp168 return g_dispatch->calloc(nmemb, bytes); in hooks_calloc()
/bionic/benchmarks/
Dmalloc_benchmark.cpp64 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
/bionic/libc/bionic/scudo/
Dscudo.cpp76 return calloc(item_count, item_size);
/bionic/libc/dns/resolv/
Dres_state.c61 _res_thread* rt = calloc(1, sizeof(*rt)); in _res_thread_alloc()
Dres_cache.c1225 e = calloc(size, 1); in entry_alloc()
1355 ri = calloc(1, sizeof(struct pending_req_info)); in _cache_check_pending_request_locked()
1475 cache = calloc(sizeof(*cache), 1); in _resolv_cache_create()
1478 cache->entries = calloc(sizeof(*cache->entries), cache->max_entries); in _resolv_cache_create()
1952 cache_info = calloc(sizeof(*cache_info), 1); in _create_cache_info()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c133 if ((st->string = calloc(1, st->size)) == NULL) { in open_memstream()
Dopen_wmemstream.c143 if ((st->string = calloc(1, st->size)) == NULL) { in open_wmemstream()
/bionic/tests/headers/posix/
Dstdlib_h.c82 FUNCTION(calloc, void* (*f)(size_t, size_t)); in stdlib_h()
/bionic/libc/malloc_debug/
DREADME_marshmallow_and_earlier.md24 * `calloc`
67 pattern (0xeb). This does not happen for the calloc calls.
Dmalloc_debug.cpp717 return g_dispatch->calloc(nmemb, bytes); in debug_calloc()
756 pointer = g_dispatch->calloc(1, real_size); in debug_calloc()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp232 void* ptr = calloc(1, 1123); in Calloc()

12