/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | hcreate_r.c | 48 hsearch->entries = calloc(16, sizeof(ENTRY)); in hcreate_r()
|
D | hsearch_r.c | 117 new_entries = calloc(new_count, sizeof(ENTRY)); in hsearch_r()
|
/bionic/libc/bionic/ |
D | malloc_common.cpp | 66 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),
|
D | spawn.cpp | 179 *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()
|
D | malloc_limit.cpp | 123 return IncrementLimit(dispatch_table->calloc(n_elements, elem_size)); in LimitCalloc() 125 return IncrementLimit(Malloc(calloc)(n_elements, elem_size)); in LimitCalloc()
|
D | gwp_asan_wrappers.cpp | 119 return prev_dispatch->calloc(n_elements, elem_size); in gwp_asan_calloc()
|
/bionic/tests/ |
D | malloc_test.cpp | 82 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/ |
D | fmemopen.cpp | 120 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/ |
D | bionic_malloc_dispatch.h | 59 MallocCalloc calloc; member
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_150.S | 24 CALL(calloc)
|
D | liblinker_reloc_bench_121.S | 60 CALL(calloc)
|
D | liblinker_reloc_bench_160.S | 118 CALL(calloc)
|
D | liblinker_reloc_bench_023.S | 212 CALL(calloc)
|
/bionic/linker/ |
D | linker_memory.cpp | 75 void* calloc(size_t item_count, size_t item_size) { in calloc() function
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | recallocarray.c | 37 return calloc(newnmemb, size); in recallocarray()
|
/bionic/libc/malloc_hooks/ |
D | README.md | 16 * `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.
|
D | malloc_hooks.cpp | 168 return g_dispatch->calloc(nmemb, bytes); in hooks_calloc()
|
/bionic/libc/include/ |
D | malloc.h | 52 void* calloc(size_t __item_count, size_t __item_size) __mallocfunc __BIONIC_ALLOC_SIZE(1,2) __wur;
|
/bionic/benchmarks/ |
D | malloc_sql_benchmark.cpp | 65 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
|
/bionic/libc/dns/resolv/ |
D | res_state.c | 61 _res_thread* rt = calloc(1, sizeof(*rt)); in _res_thread_alloc()
|
D | res_cache.c | 1225 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/ |
D | open_memstream.c | 133 if ((st->string = calloc(1, st->size)) == NULL) { in open_memstream()
|
D | open_wmemstream.c | 143 if ((st->string = calloc(1, st->size)) == NULL) { in open_wmemstream()
|
/bionic/tests/headers/posix/ |
D | stdlib_h.c | 82 FUNCTION(calloc, void* (*f)(size_t, size_t)); in stdlib_h()
|
/bionic/libc/malloc_debug/ |
D | README_marshmallow_and_earlier.md | 24 * `calloc` 67 pattern (0xeb). This does not happen for the calloc calls.
|