Searched defs:malloc (Results 1 - 25 of 57) sorted by relevance

123

/external/clang/test/Sema/
H A Dimplicit-builtin-freestanding.c3 // RUN: %clang_cc1 -fsyntax-only -verify -fno-builtin-malloc %s
6 int malloc(int a) { return a; } function
H A Dimplicit-builtin-redecl.c4 static void* malloc(int);
5 static void* malloc(int size) { function
H A Dimplicit-builtin-decl.c5 int *ptr = malloc(sizeof(int) * 10); // expected-warning{{implicitly declaring library function 'malloc' with type}} \
6 // expected-note{{include the header <stdlib.h> or explicitly provide a declaration for 'malloc'}} \
7 // expected-note{{'malloc' is a builtin with type 'void *}}
16 void g(int malloc) { // okay: these aren't functions argument
21 int malloc(int); // expected-warning{{incompatible redeclaration of library function 'malloc'}}
/external/fec/
H A Dconfigure2237 echo "$as_me:$LINENO: checking for malloc in -lc" >&5
2238 echo $ECHO_N "checking for malloc in -lc... $ECHO_C" >&6
2257 char malloc ();
2261 malloc (); function
/external/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/
H A Dpr5056.cpp4 extern "C" void * malloc(int);
7 void *malloc(int);
11 inline void *A<T>::malloc(int) function in class:A
17 malloc(10);
/external/compiler-rt/test/asan/TestCases/Linux/
H A Dinterception_malloc_test.cc12 extern "C" void *malloc(size_t size) { function
13 write(2, "malloc call\n", sizeof("malloc call\n") - 1);
18 char *x = (char*)malloc(10 * sizeof(char));
21 // CHECK: malloc call
/external/bison/lib/
H A Dmalloc.c0 /* malloc() function that is glibc compatible.
22 /* Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h. */
23 #ifdef malloc
25 # undef malloc macro
26 /* Whereas the gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
48 result = malloc (n);
/external/compiler-rt/test/tsan/Linux/
H A Duser_malloc.cc8 extern "C" void *malloc(unsigned long size) { function
11 fprintf(stderr, "user malloc\n");
20 volatile char *p = (char*)malloc(10);
25 // CHECK: user malloc
/external/valgrind/memcheck/tests/
H A Dstatic_malloc.c5 void* malloc(size_t i) { function
16 p = malloc(10);
17 p = malloc(123);
/external/cmockery/cmockery_0_1_2/src/example/
H A Dallocate_module.c24 #define malloc(size) _test_malloc(size, __FILE__, __LINE__) macro
30 int * const temporary = (int*)malloc(sizeof(int));
35 char * const memory = (char*)malloc(sizeof(int));
41 char * const memory = (char*)malloc(sizeof(int));
/external/curl/lib/
H A Dcurl_memory.h29 * that use memory related functions strdup, malloc, calloc, realloc
41 * clone implementation while using malloc. Extra care needed inside
113 * libcurl's 'memory tracking' system defines strdup, malloc, calloc,
123 #undef malloc macro
124 #define malloc(size) Curl_cmalloc(size) macro
H A Dmemdebug.h83 #define malloc(size) curl_domalloc(size, __LINE__, __FILE__) macro
/external/ipsec-tools/src/racoon/
H A Dgcmalloc.h35 * Debugging malloc glue for Racoon.
46 * malloc(), calloc(), realloc(), and free() entry points in the main
55 malloc(size_t size) function
111 #define racoon_malloc(sz) malloc((sz))
/external/libunwind/tests/
H A DGtest-nomalloc.c38 malloc(size_t s) function
43 func = (void *(*)()) dlsym(RTLD_NEXT, "malloc");
H A DLtest-nocalloc.c66 malloc(size_t s) function
71 func = dlsym(RTLD_NEXT, "malloc");
116 and check that it doesn't call malloc()/calloc(). */
123 * where we are sure that we're not inside malloc */
131 "FAILURE: detected %d error%s (malloc: %d, calloc: %d)\n",
/external/skia/src/core/
H A DSkMipMap.h77 SkMipMap(void* malloc, size_t size) : INHERITED(malloc, size) {} argument
/external/syslinux/dos/
H A Dmalloc.c2 * malloc.c
4 * Very simple linked-list based malloc()/free().
9 #include "malloc.h"
81 void *malloc(size_t size) function
107 p = malloc(size);
/external/vboot_reference/firmware/lib/include/
H A Dutility.h109 #define malloc _do_not_use_standard_malloc macro
/external/boringssl/src/crypto/test/
H A Dmalloc.cc28 // builds and trying to override malloc in a static link doesn't work. It also
30 // ASan's malloc interceptor.
119 void *malloc(size_t size) { function
/external/openssh/openbsd-compat/
H A Dgetrrsetbyname-ldns.c59 #define malloc(x) (xmalloc(x)) macro
136 if ((rrset->rri_name = malloc(len)) == NULL) {
221 rdata->rdi_data = malloc(rdata->rdi_length);
/external/syslinux/core/mem/
H A Dmalloc.c2 * malloc.c
4 * Very simple linked-list based malloc()/free().
15 #include "malloc.h"
100 p = firmware->mem->malloc(size, heap, tag);
107 __export void *malloc(size_t size) function
136 return malloc(size);
229 newptr = malloc(size);
248 ptr = malloc(size);
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_testlib.cc75 void *malloc(size_t size) { function
157 void *operator new(size_t size) ALIAS("malloc");
158 void *operator new[](size_t size) ALIAS("malloc");
159 void *operator new(size_t size, std::nothrow_t const&) ALIAS("malloc");
160 void *operator new[](size_t size, std::nothrow_t const&) ALIAS("malloc");
/external/syslinux/com32/include/syslinux/
H A Dfirmware.h44 void *(*malloc)(size_t, enum heap, size_t); member in struct:mem_ops
/external/syslinux/gpxe/src/core/
H A Dmalloc.c28 #include <gpxe/malloc.h>
58 * @c malloc(0) or @c realloc(ptr,0) will return the special value @c
67 * Code outside of malloc.c do not ever need to refer to the actual
236 * @v old_ptr Memory previously allocated by malloc(), or NULL
302 void * malloc ( size_t size ) { function
309 * @v ptr Memory allocated by malloc(), or NULL
326 * Allocate memory as per malloc(), and zero it.
334 data = malloc ( size );
/external/valgrind/coregrind/m_gdbserver/
H A Dserver.h157 #define malloc(sz) VG_(malloc) ("gdbsrv", sz) macro

Completed in 6505 milliseconds

123