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

12

/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.c3 int *ptr = malloc(sizeof(int) * 10); // expected-warning{{implicitly declaring library function 'malloc' with type}} \
4 // expected-note{{please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'}} \
5 // expected-note{{'malloc' is a builtin with type 'void *}}
14 void g(int malloc) { // okay: these aren't functions argument
19 int malloc(int); // expected-warning{{incompatible redeclaration of library function 'malloc'}}
/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/lib/asan/lit_tests/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/lib/tsan/lit_tests/
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/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/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cc12 // Linux-specific malloc interception.
13 // We simply define functions like malloc, free, realloc, etc.
26 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size)
33 void* (*malloc)(uptr bytes); member in struct:MallocDebug
41 WRAP(malloc), WRAP(free), WRAP(calloc), WRAP(realloc), WRAP(memalign)
73 INTERCEPTOR(void*, malloc, uptr size) {
112 // We avoid including malloc.h for portability reasons.
H A Dasan_malloc_win.cc12 // Windows-specific malloc interception.
48 void *malloc(size_t size) { function
54 return malloc(size);
112 // set on malloc/free etc (e.g. dllimport), so declare a few things manually:
124 if (GetRealFunctionAddress("malloc", (void**)&crt_malloc)) {
125 // Replace malloc in the CRT dll with a jump to our malloc.
130 ptrdiff_t jmp_offset = (char*)malloc - (char*)crt_malloc - 5;
/external/chromium/base/allocator/
H A Dgeneric_allocators.cc6 // low-level functions malloc() and free(). This way, including a new
16 ptr = malloc(size);
52 // If flag is 0 (default), calls to malloc will behave normally.
53 // If flag is 1, calls to malloc will behave like calls to new,
71 void* result = malloc(size);
90 // Generally, calls to malloc() have padding. So a request
91 // to malloc N bytes actually malloc's N+x bytes. Later, if
105 #undef malloc macro
122 return malloc(siz
[all...]
/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);
52 // If flag is 0 (default), calls to malloc will behave normally.
53 // If flag is 1, calls to malloc will behave like calls to new,
71 void* result = malloc(size);
90 // Generally, calls to malloc() have padding. So a request
91 // to malloc N bytes actually malloc's N+x bytes. Later, if
105 #undef malloc macro
149 return malloc(siz
[all...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_testlib.cc73 void *malloc(size_t size) { function
155 void *operator new(size_t size) ALIAS("malloc");
156 void *operator new[](size_t size) ALIAS("malloc");
157 void *operator new(size_t size, std::nothrow_t const&) ALIAS("malloc");
158 void *operator new[](size_t size, std::nothrow_t const&) ALIAS("malloc");
/external/libvpx/libvpx/vpx_mem/
H A Dvpx_mem.h109 # define malloc vpx_malloc macro
/external/valgrind/main/coregrind/m_gdbserver/
H A Dserver.h154 #define malloc(sz) VG_(arena_malloc) (VG_AR_CORE, "gdbsrv", sz) macro
/external/bison/darwin-lib/
H A Dstdlib.h593 rely on GNU or POSIX semantics for malloc and realloc (for example,
594 by never specifying a zero size), so it does not need malloc or
600 # undef malloc
601 # define malloc rpl_malloc
603 _GL_FUNCDECL_RPL (malloc, void *, (size_t size));
604 _GL_CXXALIAS_RPL (malloc, void *, (size_t size));
606 _GL_CXXALIAS_SYS (malloc, void *, (size_t size));
608 _GL_CXXALIASWARN (malloc); variable
610 # undef malloc macro
611 /* Assume malloc i
[all...]
/external/bison/linux-lib/
H A Dstdlib.h593 rely on GNU or POSIX semantics for malloc and realloc (for example,
594 by never specifying a zero size), so it does not need malloc or
600 # undef malloc
601 # define malloc rpl_malloc
603 _GL_FUNCDECL_RPL (malloc, void *, (size_t size));
604 _GL_CXXALIAS_RPL (malloc, void *, (size_t size));
606 _GL_CXXALIAS_SYS (malloc, void *, (size_t size));
608 _GL_CXXALIASWARN (malloc); variable
610 # undef malloc macro
611 /* Assume malloc i
[all...]
/external/qemu/distrib/sdl-1.2.15/src/stdlib/
H A DSDL_qsort.c57 #ifdef malloc
58 #undef malloc macro
60 #define malloc SDL_malloc macro
326 char *pivot=malloc(size);
357 char *pivot=malloc(size);
388 char *pivot=malloc(WORD_BYTES);
/external/valgrind/main/callgrind/
H A Ddebug.c438 void* CLG_(malloc)(HChar* cc, UWord s, char* f) function
441 return VG_(malloc)(cc,s);

Completed in 3575 milliseconds

12