Home
last modified time | relevance | path

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

12345678910>>...28

/external/bison/m4/
Dcalloc.m41 # 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/
Dmalloc-sizeof.c6 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()
Dmalloc-sizeof.cpp6 void *calloc(size_t nmemb, size_t size);
20 …A *x = static_cast<A*>(calloc(10, sizeof(void*))); // expected-warning {{Result of 'calloc' is con… in bar()
22 A **y = static_cast<A**>(calloc(10, sizeof(void*))); // no-warning in bar()
Dmalloc-annotations.c6 void *calloc(size_t nmemb, size_t size);
241 char *buf = calloc(2,2); in callocNoFree()
247 char *buf = calloc(2,2); in callocZeroesGood()
256 char *buf = calloc(2,2); in callocZeroesBad()
Dunix-fns.c15 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/
Dcalloc.c22 #ifdef calloc
24 # undef calloc
36 #undef calloc
65 result = calloc (n, s); in rpl_calloc()
/external/valgrind/memcheck/tests/
Dpartial_load.c14 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()
Dmalloc3.stdout.exp3 calloc(0,1) = 0x........
4 calloc(0,-1) = 0x........
5 calloc(-1,-1) = 0x........
Dmalloc3.c19 p = calloc(0,1); in main()
23 p = calloc(0,-1); in main()
30 p = calloc(-1,-1); in main()
Dpartial_load_dflt.stderr.exp5 at 0x........: calloc (vg_replace_malloc.c:...)
11 at 0x........: calloc (vg_replace_malloc.c:...)
17 at 0x........: calloc (vg_replace_malloc.c:...)
/external/compiler-rt/lib/asan/
Dasan_malloc_win.cc68 void *calloc(size_t nmemb, size_t size) { in calloc() function
75 return calloc(nmemb, size); in _calloc_dbg()
80 return calloc(nmemb, size); in _calloc_impl()
98 return calloc(n, elem_size); in _recalloc()
149 __interception::OverrideFunction("calloc", (uptr)calloc); in ReplaceSystemMalloc()
150 __interception::OverrideFunction("_calloc_crt", (uptr)calloc); in ReplaceSystemMalloc()
Dasan_malloc_linux.cc44 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() argument
133 void *(*calloc)(uptr n_elements, uptr elem_size); member
140 void *(*calloc)(uptr n_elements, uptr elem_size); member
153 WRAP(malloc), WRAP(free), WRAP(calloc),
157 WRAP(calloc), WRAP(free), WRAP(mallinfo),
/external/clang/test/Sema/
Dextern-redecl.c49 extern float *calloc(); // expected-warning {{incompatible redeclaration of library function}} expe…
53 int *calloc(); // expected-error {{conflicting types}} in test5a()
58 int *calloc(); // expected-error {{conflicting types}} in test5b()
63 float *(*_calloc)() = &calloc; in test5c()
Dimplicit-builtin-redecl.c9 void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of library function 'c…
13 calloc(0, 0, 0); in f1()
/external/google-breakpad/src/third_party/libdisasm/swig/
Dlibdisasm_oop.i180 calloc( sizeof(x86_reg_t), 1 ); in aliased_reg()
210 buf = (char * ) calloc( len + 1, 1 ); in format()
239 x86_op_t *op = (x86_op_t *) calloc( sizeof(x86_op_t), 1 ); in copy()
266 calloc( sizeof(X86_OpList), 1 ); in X86_OpList()
318 calloc( sizeof(X86_OpListNode) , 1 ); in append()
352 ptr = (x86_oplist_t *) calloc( sizeof(x86_oplist_t), 1 ); in x86_oplist_node_copy()
533 calloc( sizeof(x86_insn_t), 1 ); in x86_insn_t()
606 buf = (char * ) calloc( len + 1, 1 ); in format()
620 buf = (char * ) calloc( len, 1 ); in format_mnemonic()
634 calloc( sizeof(x86_insn_t), 1 ); in copy()
[all …]
Dlibdisasm.i105 op = (x86_op_t *) calloc( sizeof(x86_op_t), 1 ); in x86_op_copy()
125 calloc( sizeof(x86_op_list), 1 ); in x86_op_list_new()
179 calloc( sizeof(x86_op_list_node) , 1 ); in x86_op_list_append()
198 ptr = (x86_oplist_t *) calloc( sizeof(x86_oplist_t), 1 ); in x86_op_list_node_copy()
208 calloc( sizeof(x86_insn_t), 1 ); in x86_insn_new()
224 calloc( sizeof(x86_insn_t), 1 ); in x86_insn_copy()
280 calloc( sizeof(x86_insn_list), 1 ); in x86_insn_list_new()
355 calloc( sizeof(x86_insn_list_node) , 1 ); in x86_insn_list_append()
415 calloc( sizeof( x86disasm ), 1 ); in x86disasm_new()
431 x86_insn_t *insn = calloc( sizeof( x86_insn_t ), 1 ); in disasm()
/external/harfbuzz_ng/src/
Dhb-gobject-structs.cc69 hb_feature_t *c = (hb_feature_t *) calloc (1, sizeof (hb_feature_t)); in HB_DEFINE_OBJECT_TYPE()
79 hb_glyph_info_t *c = (hb_glyph_info_t *) calloc (1, sizeof (hb_glyph_info_t)); in HB_DEFINE_BOXED_TYPE()
89 hb_glyph_position_t *c = (hb_glyph_position_t *) calloc (1, sizeof (hb_glyph_position_t)); in HB_DEFINE_BOXED_TYPE()
99 …hb_segment_properties_t *c = (hb_segment_properties_t *) calloc (1, sizeof (hb_segment_properties_… in HB_DEFINE_BOXED_TYPE()
114 hb_language_t *c = (hb_language_t *) calloc (1, sizeof (hb_language_t)); in HB_DEFINE_BOXED_TYPE()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c121 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()
312 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info()
342 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
366 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
388 ifi->ifi_brdaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
407 ifi->ifi_dstaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
[all …]
/external/valgrind/none/tests/ppc64/
Dlsw.c69 a2 = calloc(100,1); in main()
80 a2 = calloc(100,1); in main()
91 a2 = calloc(100,1); in main()
/external/valgrind/none/tests/ppc32/
Dlsw.c69 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/
Dgenlist.c44 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/mesa3d/src/mesa/program/
Dsymbol_table.c189 struct scope_level *const scope = calloc(1, sizeof(*scope)); in _mesa_symbol_table_push_scope()
208 struct _mesa_symbol_table_iterator *iter = calloc(1, sizeof(*iter)); in _mesa_symbol_table_iterator_ctor()
340 hdr = calloc(1, sizeof(*hdr)); in _mesa_symbol_table_add_symbol()
362 sym = calloc(1, sizeof(*sym)); in _mesa_symbol_table_add_symbol()
397 hdr = calloc(1, sizeof(*hdr)); in _mesa_symbol_table_add_global_symbol()
426 sym = calloc(1, sizeof(*sym)); in _mesa_symbol_table_add_global_symbol()
458 struct _mesa_symbol_table *table = calloc(1, sizeof(*table)); in _mesa_symbol_table_ctor()
/external/llvm/test/Transforms/GVN/
Dcalloc-load-removal.ll3 ; Check that loads from calloc are recognized as being zero.
9 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
25 declare noalias i8* @calloc(i64, i64)
/external/llvm/test/CodeGen/Thumb2/
Dthumb2-tbh.ll15 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/cmockery/cmockery_0_1_2/src/example/
Dcalculator.c56 #ifdef calloc
57 #undef calloc
59 #define calloc(num, size) _test_calloc(num, size, __FILE__, __LINE__) macro
187 *intermediate_values = calloc(((number_of_arguments - 1) / 2), in perform_operation()

12345678910>>...28