/external/bison/m4/ |
D | calloc.m4 | 1 # calloc.m4 serial 15 10 # Determine whether calloc (N, S) returns non-NULL when N*S is zero, 12 # If so, define HAVE_CALLOC. Otherwise, define calloc to rpl_calloc 13 # and arrange to use a calloc wrapper function that does work in that case. 17 # If 'calloc (0, 0)' is properly handled, run IF-WORKS, otherwise, IF-NOT. 22 AC_CACHE_CHECK([for GNU libc compatible calloc], 28 if (!calloc (0, 0)) 30 if (calloc ((size_t) -1 / 8 + 1, 8)) 56 # Report whether 'calloc (0, 0)' is properly handled, and replace calloc if 63 [Define to 1 if your system has a GNU libc compatible 'calloc' [all …]
|
/external/clang/test/Analysis/ |
D | malloc-sizeof.c | 6 void *calloc(size_t nmemb, size_t size); 22 struct A *ap1 = calloc(1, sizeof(struct A)); in foo() 23 struct A *ap2 = calloc(2, sizeof(*ap1)); in foo() 24 …struct A *ap3 = calloc(2, sizeof(ap1)); // expected-warning {{Result of 'calloc' is converted to a… in foo() 25 …struct A *ap4 = calloc(3, sizeof(struct A*)); // expected-warning {{Result of 'calloc' is converte… in foo() 26 …struct A *ap5 = calloc(4, sizeof(struct B)); // expected-warning {{Result of 'calloc' is converted… in foo()
|
D | malloc-annotations.c | 6 void *calloc(size_t nmemb, size_t size); 236 char *buf = calloc(2,2); in callocNoFree() 242 char *buf = calloc(2,2); in callocZeroesGood() 251 char *buf = calloc(2,2); in callocZeroesBad()
|
D | unix-fns.c | 13 void *calloc(size_t, size_t); 94 …char *foo = calloc(0, 42); // expected-warning{{Call to 'calloc' has an allocation size of 0 bytes… in test_calloc() 100 …char *foo = calloc(42, 0); // expected-warning{{Call to 'calloc' has an allocation size of 0 bytes… in test_calloc2() 106 char *foo = calloc(nmemb, size); // no-warning in test_calloc_nowarn()
|
/external/bison/lib/ |
D | calloc.c | 22 #ifdef calloc 24 # undef calloc 36 #undef calloc 65 result = calloc (n, s); in rpl_calloc()
|
/external/valgrind/main/memcheck/tests/ |
D | partial_load.c | 14 p = calloc( sizeof(long)-1, 1 ); in main() 20 p = calloc( sizeof(long), 1 ); in main() 28 p = calloc( sizeof(short)-1, 1 ); in main() 34 p = calloc( sizeof(long), 1 ); in main()
|
D | malloc3.stdout.exp | 3 calloc(0,1) = 0x........ 4 calloc(0,-1) = 0x........ 5 calloc(-1,-1) = 0x........
|
D | malloc3.c | 19 p = calloc(0,1); in main() 23 p = calloc(0,-1); in main() 30 p = calloc(-1,-1); in main()
|
D | partial_load_dflt.stderr.exp | 5 at 0x........: calloc (vg_replace_malloc.c:...) 11 at 0x........: calloc (vg_replace_malloc.c:...) 17 at 0x........: calloc (vg_replace_malloc.c:...)
|
D | partial_load_dflt.stderr.expr-s390x-mvc | 5 at 0x........: calloc (vg_replace_malloc.c:...) 11 at 0x........: calloc (vg_replace_malloc.c:...) 17 at 0x........: calloc (vg_replace_malloc.c:...)
|
D | partial_load_dflt.stderr.exp64 | 5 at 0x........: calloc (vg_replace_malloc.c:...) 11 at 0x........: calloc (vg_replace_malloc.c:...) 17 at 0x........: calloc (vg_replace_malloc.c:...)
|
D | wrap6.c | 182 UInt* words = calloc(200, sizeof(UInt)); in fn_0() 208 UInt* words = calloc(200, sizeof(UInt)); in fn_1() 235 UInt* words = calloc(200, sizeof(UInt)); in fn_2() 263 UInt* words = calloc(200, sizeof(UInt)); in fn_3() 292 UInt* words = calloc(200, sizeof(UInt)); in fn_4() 322 UInt* words = calloc(200, sizeof(UInt)); in fn_5() 353 UInt* words = calloc(200, sizeof(UInt)); in fn_6() 386 UInt* words = calloc(200, sizeof(UInt)); in fn_7() 422 UInt* words = calloc(200, sizeof(UInt)); in fn_8() 459 UInt* words = calloc(200, sizeof(UInt)); in fn_9() [all …]
|
/external/chromium/base/allocator/ |
D | generic_allocators.cc | 66 void* calloc(size_t n, size_t elem_size) __THROW { in calloc() function 86 return calloc(n, elem_size); in _recalloc() 101 return calloc(n, size); in _calloc_impl() 107 #undef calloc 130 return calloc(n, size); in _calloc_dbg()
|
/external/compiler-rt/lib/asan/ |
D | asan_malloc_win.cc | 55 void *calloc(size_t nmemb, size_t size) { in calloc() function 61 return calloc(n, size); in _calloc_dbg() 65 return calloc(nmemb, size); in _calloc_impl() 80 return calloc(n, elem_size); in _recalloc()
|
D | asan_malloc_linux.cc | 27 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) 34 void* (*calloc)(uptr n_elements, uptr elem_size); member 40 WRAP(malloc), WRAP(free), WRAP(calloc), WRAP(realloc), WRAP(memalign) 77 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() argument
|
/external/valgrind/main/none/tests/ppc32/ |
D | lsw.c | 69 a2 = calloc(100,1); in main() 80 a2 = calloc(100,1); in main() 91 a2 = calloc(100,1); in main()
|
/external/valgrind/main/none/tests/ppc64/ |
D | lsw.c | 69 a2 = calloc(100,1); in main() 80 a2 = calloc(100,1); in main() 91 a2 = calloc(100,1); in main()
|
/external/ipsec-tools/src/racoon/ |
D | genlist.c | 44 struct genlist *new = calloc(sizeof(struct genlist), 1); in genlist_init() 52 struct genlist_entry *entry = calloc(sizeof(struct genlist_entry), 1); in genlist_insert() 61 struct genlist_entry *entry = calloc(sizeof(struct genlist_entry), 1); in genlist_append() 143 cf = calloc(sizeof(struct conf), 1);
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 121 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info_linuxv6() 143 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 152 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 156 sin6=calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 157 addrptr=calloc(1, sizeof(struct in6_addr)); in get_ifi_info_linuxv6() 305 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info() 335 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 359 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 381 ifi->ifi_brdaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 400 ifi->ifi_dstaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() [all …]
|
/external/llvm/test/CodeGen/Thumb2/ |
D | thumb2-tbh.ll | 15 declare noalias i8* @calloc(i32, i32) nounwind 44 %2 = call noalias i8* @calloc(i32 21, i32 1) nounwind ; <i8*> [#uses=0] 51 %5 = call noalias i8* @calloc(i32 22, i32 1) nounwind ; <i8*> [#uses=0] 55 %6 = call noalias i8* @calloc(i32 20, i32 1) nounwind ; <i8*> [#uses=0] 59 %7 = call noalias i8* @calloc(i32 14, i32 1) nounwind ; <i8*> [#uses=0]
|
/external/clang/test/Sema/ |
D | implicit-builtin-redecl.c | 9 void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of library function 'c… 13 calloc(0, 0, 0); in f1()
|
D | implicit-builtin-decl.c | 10 int *calloc(__SIZE_TYPE__, __SIZE_TYPE__); // expected-warning{{incompatible redeclaration of libra… 15 int calloc = 1; in g() local
|
/external/openssh/openbsd-compat/ |
D | bsd-poll.c | 58 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll() 59 (writefds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll() 60 (exceptfds = calloc(nmemb, sizeof(fd_mask))) == NULL) { in poll()
|
/external/valgrind/main/none/tests/darwin/ |
D | apple-main-arg.c | 14 char *pargv = calloc((PATH_MAX+1), sizeof(char)), in main() 15 *pappl = calloc((PATH_MAX+1), sizeof(char)); in main()
|
/external/linux-tools-perf/ |
D | builtin-kvm.c | 64 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_record() 82 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_report() 100 rec_argv = calloc(rec_argc + 1, sizeof(char *)); in __cmd_buildid_list()
|