/external/bison/lib/ |
strdup.c | 44 void *new = malloc (len); local 46 if (new == NULL) 49 return (char *) memcpy (new, s, len);
|
strndup.c | 53 char *new = malloc (len + 1); local 55 if (new == NULL) 58 new[len] = '\0'; 59 return memcpy (new, s, len);
|
/external/opencore/oscl/oscl/config/shared/ |
osclconfig_global_placement_new.h | 21 //This file contains a definition of placement new operator 22 //for use in configurations without a native placement new 25 inline void* operator new(size_t, void* ptr)
|
/external/tcpdump/ |
setsignal.c | 77 struct sigaction old, new; local 79 memset(&new, 0, sizeof(new)); 80 new.sa_handler = func; 81 if (sigaction(sig, &new, &old) < 0)
|
/bionic/libstdc++/src/ |
new.cpp | 1 #include "new" 6 void* operator new(std::size_t size) 15 void* operator new[](std::size_t size) 34 void* operator new(std::size_t size, const std::nothrow_t&) 39 void* operator new[](std::size_t size, const std::nothrow_t&)
|
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/ |
unew.h | 8 /// \brief Same as \<new\>, but throws ustl:: exceptions. 25 // - normal single new and delete (no arguments, throw @c bad_alloc on error) 26 // - normal array new and delete (same) 27 // - @c nothrow single new and delete (take a @c nothrow argument, return 29 // - @c nothrow array new and delete (same) 31 // Placement new and delete signatures (take a memory address argument, 34 inline void* operator new (size_t n) throw (ustl::bad_alloc) { return (throwing_malloc (n)); } 35 inline void* operator new[] (size_t n) throw (ustl::bad_alloc) { return (throwing_malloc (n)); } 39 // Default placement versions of operator new. 40 inline void* operator new (size_t, void* p) throw() { return (p); [all...] |
/external/webkit/JavaScriptCore/ |
JavaScriptCorePrefix.h | 29 #define new ("if you use new/delete make sure to include config.h at the top of the file"()) macro 30 #define delete ("if you use new/delete make sure to include config.h at the top of the file"())
|
config.h | 66 #undef new macro
|
/external/webkit/WebCore/bindings/scripts/ |
InFilesParser.pm | 62 sub new subroutine
|
/external/webkit/WebCore/bindings/js/ |
ScriptFunctionCall.h | 80 void* operator new(size_t) { ASSERT_NOT_REACHED(); return reinterpret_cast<void*>(0xbadbeef); } 81 void* operator new[](size_t) { ASSERT_NOT_REACHED(); return reinterpret_cast<void*>(0xbadbeef); }
|
/development/host/windows/usb/legacy/driver/ |
android_usb_new_delete.h | 20 This file consists implementations of our 'new' and 'delete' operators
38 /** @name Operators new and delete
42 Because of that "traditional" operator 'new' that takes only one parameter
45 encouraged). To prevent from mistakes, traditional operator 'new' is also
50 'new' are returning NULL instead of throwing an exception.
54 /** \brief Main operator new
56 This is the main operator new that allocates specified number of bytes from
65 displaying utility, the actual value passed to operator 'new' must be
69 __forceinline void* __cdecl operator new(size_t size,
82 Short operator new that attaches a default tag to the allocated memory. [all...] |
/external/ipsec-tools/src/racoon/ |
throttle.c | 124 * No match, if auth failed, allocate a new throttle entry 144 time_t new; local 147 new = remaining + isakmp_cfg_config.auth_throttle; 149 if (new > THROTTLE_PENALTY_MAX) 150 new = THROTTLE_PENALTY_MAX; 152 te->penalty = now + new;
|
vmbuf.c | 124 vchar_t *new; local 131 if ((new = vmalloc(src->l)) == NULL) 134 memcpy(new->v, src->v, src->l); 136 return new;
|
genlist.c | 44 struct genlist *new = calloc(sizeof(struct genlist), 1); local 45 TAILQ_INIT(new); 46 return new;
|
str2val.c | 55 caddr_t new; local 59 if ((new = racoon_malloc(len)) == 0) return(0); 62 snprintf(&new[j], len - j, "%02x", (u_char)buf[i]); 65 new[j++] = ' '; 66 new[j] = '\0'; 69 new[j] = '\0'; 71 return(new);
|
/external/opencore/oscl/oscl/osclerror/src/ |
oscl_error_allocator.h | 97 //! placement new operator that allocates memory using the user defined methods 98 void* operator new(uint32 size, OsclAny* aPtr)
|
/external/qemu/elff/ |
elf_alloc.cc | 39 /* Allocate new chunk. */
60 void* DwarfAllocBase::operator new(size_t size, const ElfFile* elf) {
|
elff-common.h | 37 /* Main operator new. We overwrite it to redirect memory
39 inline void* operator new(size_t size) {
|
/external/webkit/WebCore/rendering/ |
BidiRun.cpp | 55 void* BidiRun::operator new(size_t sz, RenderArena* renderArena) throw()
|
/external/opencore/oscl/unit_test/src/ |
unit_test_common.h | 25 #include "osclconfig_memory.h" //to get placement "new" 45 * Using this as a base class will allow using new/delete with the 47 * the Oscl global new/delete overload, which relies on Oscl memory manager. 54 static void* operator new(size_t aSize) 59 static void* operator new[](size_t aSize) 64 static void* operator new(size_t , void* aPtr)
|
/external/webkit/WebCore/css/ |
StyleBase.cpp | 71 void* StyleBase::operator new(size_t size) 74 return ::operator new(size); 77 void* StyleBase::operator new[](size_t size) 80 return ::operator new[](size);
|
CSSImportRule.cpp | 171 void* CSSImportRule::operator new(size_t size) 173 return StyleBase::operator new(size); 176 void* CSSImportRule::operator new[](size_t size) 178 return StyleBase::operator new[](size);
|
/external/webkit/JavaScriptCore/wtf/ |
FastAllocBase.h | 32 // Provides customizable overrides of fastMalloc/fastFree and operator new/delete 78 #include <new> 90 // Placement operator new. 91 void* operator new(size_t, void* p) { return p; } 92 void* operator new[](size_t, void* p) { return p; } 94 void* operator new(size_t size) 107 void* operator new[](size_t size) 132 return ::new(p) T; 144 return ::new(p) T(arg1); 156 return ::new(p) T(arg1, arg2) [all...] |
/external/icu4c/test/perf/perldriver/ |
Dataset.pm | 13 # Create a new Dataset with the given data. 14 sub new { subroutine 26 my $stats = Statistics::Descriptive::Full->new(); 69 # Divide two Datasets and return a new one, maintaining the 70 # mean+/-error. The new Dataset has no data points. 80 my $result = Dataset->new(); 87 # subtracts two Datasets and return a new one, maintaining the 88 # mean+/-error. The new Dataset has no data points. 93 my $result = Dataset->new(); 100 # adds two Datasets and return a new one, maintaining th [all...] |
/external/qemu/ |
qemu-malloc.c | 85 char *new; local 91 new = qemu_malloc(size + 1); 92 new[size] = 0; 94 return memcpy(new, str, size);
|