Home
last modified time | relevance | path

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

12

/bionic/tests/
Dmalloc_test.cpp46 char *ptr = (char *)calloc(1, alloc_len); in TEST()
57 ASSERT_EQ(NULL, calloc(-1, 100)); in TEST()
63 ASSERT_EQ(NULL, calloc(1, SIZE_MAX)); in TEST()
66 ASSERT_EQ(NULL, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
69 ASSERT_EQ(NULL, calloc(2, SIZE_MAX)); in TEST()
72 ASSERT_EQ(NULL, calloc(SIZE_MAX, 2)); in TEST()
211 char *ptr = (char *)calloc(1, 100); in TEST()
226 char *ptr = (char *)calloc(1, 200); in TEST()
241 char *ptr = (char *)calloc(1, 200); in TEST()
375 uint8_t* zero_mem = reinterpret_cast<uint8_t*>(calloc(1, size)); in TEST()
[all …]
Dfortify_compilation_test.cpp284 void *buf = calloc(atoi("5"), 1); in test_pwrite64_too_big_malloc()
/bionic/linker/
Dlinker_memory.cpp74 void* calloc(size_t item_count, size_t item_size) { in calloc() function
/bionic/libc/private/
Dbionic_malloc_dispatch.h56 MallocCalloc calloc; member
/bionic/libc/include/
Dmalloc.h34 void* calloc(size_t item_count, size_t item_size) __mallocfunc __BIONIC_ALLOC_SIZE(1,2) __wur;
/bionic/libc/bionic/
Dmalloc_common.cpp54 Malloc(calloc),
80 extern "C" void* calloc(size_t n_elements, size_t elem_size) { in calloc() function
81 auto _calloc = __libc_globals->malloc_dispatch.calloc; in calloc()
85 return Malloc(calloc)(n_elements, elem_size); in calloc()
247 if (!InitMallocFunction<MallocCalloc>(malloc_impl_handler, &table->calloc, in InitMalloc()
Dfts.c90 if ((sp = calloc(1, sizeof(FTS))) == NULL) in fts_open()
923 if ((p = calloc(1, len)) == NULL) in fts_alloc()
/bionic/libc/dns/resolv/
Dres_state.c61 _res_thread* rt = calloc(1, sizeof(*rt)); in _res_thread_alloc()
Dres_cache.c1161 e = calloc(size, 1); in entry_alloc()
1291 ri = calloc(1, sizeof(struct pending_req_info)); in _cache_check_pending_request_locked()
1411 cache = calloc(sizeof(*cache), 1); in _resolv_cache_create()
1414 cache->entries = calloc(sizeof(*cache->entries), cache->max_entries); in _resolv_cache_create()
1888 cache_info = calloc(sizeof(*cache_info), 1); in _create_cache_info()
/bionic/libc/malloc_debug/
DTrackData.cpp116 *info = reinterpret_cast<uint8_t*>(g_dispatch->calloc(*info_size, total_backtrace_allocs_)); in GetInfo()
DREADME_marshmallow_and_earlier.md24 * `calloc`
67 pattern (0xeb). This does not happen for the calloc calls.
DREADME.md22 * `calloc`
127 Any allocation routine, other than calloc, will result in the allocation being
276 pointer = calloc(nmemb, size)
278 **THREAD\_ID**: calloc pointer nmemb size
282 186: calloc 0xb609f080 32 4
Dmalloc_debug.cpp592 return g_dispatch->calloc(nmemb, bytes); in debug_calloc()
631 pointer = g_dispatch->calloc(1, real_size); in debug_calloc()
/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()
Dvfwprintf.c207 convbuf = calloc(insize + 1, sizeof(*convbuf)); in __mbsconv()
/bionic/libc/tools/
Dposix-2013.txt67 calloc
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c269 p->strip = calloc(p->ssize, sizeof(sop)); in regcomp()
/bionic/libc/
Dlibc.mips64.map186 calloc;
Dlibc.x86_64.map186 calloc;
Dlibc.arm64.map186 calloc;
Dlibc.mips.map251 calloc;
Dlibc.x86.map249 calloc;
/bionic/libc/dns/net/
Dgetaddrinfo.c471 struct addrinfo* ai = calloc(1, sizeof(struct addrinfo) + sizeof(struct sockaddr_storage)); in android_getaddrinfo_proxy()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp115 calloc,

12