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

123

/external/clang/test/Sema/
H A Dimplicit-builtin-freestanding.c4 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{{please 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/chromium_org/tools/gyp/test/link-dependency/
H A Dmymalloc.c9 void *malloc(size_t size) { 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/jemalloc/include/jemalloc/
H A Djemalloc_protos.h10 JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc); variable
12 JEMALLOC_ATTR(malloc); variable
16 JEMALLOC_ATTR(malloc); variable
41 JEMALLOC_ATTR(malloc); variable
45 JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc); variable
H A Djemalloc_protos_jet.h10 JEMALLOC_EXPORT void *jet_malloc(size_t size) JEMALLOC_ATTR(malloc); variable
12 JEMALLOC_ATTR(malloc); variable
16 JEMALLOC_ATTR(malloc); variable
41 JEMALLOC_ATTR(malloc); variable
45 JEMALLOC_EXPORT void * jet_valloc(size_t size) JEMALLOC_ATTR(malloc); variable
/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/
H A Duser_malloc.cc8 extern "C" void *malloc(unsigned long size) { function
11 printf("user malloc\n");
20 volatile char *p = (char*)malloc(10);
25 // CHECK: user malloc
/external/valgrind/main/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/chromium_org/third_party/npapi/npspy/extern/nspr/
H A Dprwin16.h105 void * (PR_CALLBACK *malloc)( size_t size ); member in struct:PRMethodCallbackStr
/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/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cc12 // Linux-specific malloc interception.
13 // We simply define functions like malloc, free, realloc, etc.
27 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size)
35 void *(*malloc)(uptr bytes); member in struct:MallocDebug
44 WRAP(malloc), WRAP(free), WRAP(calloc),
78 INTERCEPTOR(void*, malloc, uptr size) {
127 // We avoid including malloc.h for portability reasons.
H A Dasan_malloc_win.cc12 // Windows-specific malloc interception.
51 void *malloc(size_t size) { function
58 return malloc(size);
119 // functions to detect a bit more bugs. Those functions seem to wrap malloc().
139 // set on malloc/free etc (e.g. dllimport), so declare a few things manually:
151 if (GetRealFunctionAddress("malloc", (void**)&crt_malloc)) {
152 // Replace malloc in the CRT dll with a jump to our malloc.
157 ptrdiff_t jmp_offset = (char*)malloc - (char*)crt_malloc - 5;
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
H A Doverride_functions.cc90 #undef malloc macro
106 return malloc(size);
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
H A Doverride_functions.cc90 #undef malloc macro
106 return malloc(size);
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/
H A Dyasm.pyx64 cdef void *malloc(int n) function
101 self.cb = <yasm_assoc_data_callback *>malloc(sizeof(yasm_assoc_data_callback))
/external/srec/portable/include/
H A Dpmemory.h64 #define MALLOC(n, tag) malloc(n)
85 #define malloc #error macro
99 * Portable malloc()
104 * Portable malloc()
162 * Allocates specified number of bytes, similar to malloc but initializes the
/external/chromium_org/base/allocator/
H A Dgeneric_allocators.cc6 // low-level functions malloc() and free(). This way, including a new
16 ptr = malloc(size);
60 // If flag is 0 (default), calls to malloc will behave normally.
61 // If flag is 1, calls to malloc will behave like calls to new,
79 void* result = malloc(size);
98 // Generally, calls to malloc() have padding. So a request
99 // to malloc N bytes actually malloc's N+x bytes. Later, if
113 #undef malloc macro
157 return malloc(siz
[all...]
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DDefaultAllocator.h86 static Return malloc(size_t size) function in class:WTF::DefaultAllocator
98 return malloc<void*, void>(bytes);
177 return Allocator::template malloc<void*, ClassName>(size); \
/external/chromium_org/third_party/libvpx/source/libvpx/vpx_mem/
H A Dvpx_mem.h112 # define malloc vpx_malloc macro

Completed in 934 milliseconds

123