Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 50) 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/libc/bionic/
Dmalloc_common.cpp66 extern "C" void* calloc(size_t n_elements, size_t elem_size) { in calloc() function
69 return MaybeTagPointer(dispatch_table->calloc(n_elements, elem_size)); in calloc()
71 void* result = Malloc(calloc)(n_elements, elem_size); in calloc()
344 Malloc(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()
Dgwp_asan_wrappers.cpp119 return prev_dispatch->calloc(n_elements, elem_size); in gwp_asan_calloc()
/bionic/tests/
Dmalloc_test.cpp82 char *ptr = (char *)calloc(1, alloc_len); in TEST()
98 char *ptr = reinterpret_cast<char*>(calloc(1, alloc_len)); in TEST()
112 ASSERT_EQ(nullptr, calloc(-1, 100)); in TEST()
119 ASSERT_EQ(nullptr, calloc(1, SIZE_MAX)); in TEST()
122 ASSERT_EQ(nullptr, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
125 ASSERT_EQ(nullptr, calloc(2, SIZE_MAX)); in TEST()
128 ASSERT_EQ(nullptr, calloc(SIZE_MAX, 2)); in TEST()
270 char *ptr = (char *)calloc(1, 100); in TEST()
285 char *ptr = (char *)calloc(1, 200); in TEST()
300 char *ptr = (char *)calloc(1, 200); in TEST()
[all …]
/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/private/
Dbionic_malloc_dispatch.h59 MallocCalloc calloc; member
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_150.S24 CALL(calloc)
Dliblinker_reloc_bench_121.S60 CALL(calloc)
Dliblinker_reloc_bench_160.S118 CALL(calloc)
Dliblinker_reloc_bench_023.S212 CALL(calloc)
/bionic/linker/
Dlinker_memory.cpp75 void* calloc(size_t item_count, size_t item_size) { in calloc() function
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Drecallocarray.c37 return calloc(newnmemb, size); in recallocarray()
/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/libc/include/
Dmalloc.h52 void* calloc(size_t __item_count, size_t __item_size) __mallocfunc __BIONIC_ALLOC_SIZE(1,2) __wur;
/bionic/benchmarks/
Dmalloc_sql_benchmark.cpp65 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
/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.

12