/external/clang/test/Sema/ |
alloc_size.c | 3 void* my_malloc(unsigned char) __attribute__((alloc_size(1))); 4 void* my_calloc(unsigned char, short) __attribute__((alloc_size(1,2))); 5 void* my_realloc(void*, unsigned) __attribute__((alloc_size(2))); 8 void* fn1(int) __attribute__((alloc_size("xpto"))); // expected-error{{attribute requires integer constant}} 10 void* fn2(void*) __attribute__((alloc_size(1))); // expected-error{{attribute requires integer constant}} 12 void* fn3(unsigned) __attribute__((alloc_size(0))); // expected-error{{attribute parameter 1 is out of bounds}} 13 void* fn4(unsigned) __attribute__((alloc_size(2))); // expected-error{{attribute parameter 1 is out of bounds}} 15 void fn5(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions that return a pointer}} 16 char fn6(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions that return a pointer}} 18 void* fn7(unsigned) __attribute__((alloc_size)); // expected-error {{attribute takes at least 1 argument} [all...] |
/external/oprofile/libutil/ |
op_libiberty.c | 30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size) 32 void * output = xcalloc(1, alloc_size);
|
/external/compiler-rt/lib/asan/tests/ |
asan_oob_test.cc | 79 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) { 81 void *p = malloc(alloc_size); 82 // allocated: [p, p + alloc_size) 85 if (offset + access_size <= alloc_size) { 88 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0;
|
/external/clang/test/Misc/ |
ast-dump-attr.cpp | 91 void *TestVariadicUnsigned1(int) __attribute__((alloc_size(1))); 95 void *TestVariadicUnsigned2(int, int) __attribute__((alloc_size(1,2)));
|
/frameworks/rs/driver/linkloader/include/impl/ |
ELFSectionProgBits.hxx | 42 size_t alloc_size = section_size; local 62 alloc_size += stub_table_size; 66 if (!result->chunk.allocate(alloc_size)) {
|
/external/clang/test/SemaCXX/ |
cxx11-gnu-attrs.cpp | 21 [[gnu::malloc, gnu::alloc_size(1,2)]] void *alloc_size(int a, int b);
|
/external/compiler-rt/lib/asan/ |
asan_fake_stack.cc | 40 inline uptr FakeStack::ComputeSizeClass(uptr alloc_size) { 41 uptr rounded_size = RoundUpToPowerOfTwo(alloc_size); 43 CHECK(alloc_size <= (1UL << log)); 44 if (!(alloc_size > (1UL << (log-1)))) { 45 Printf("alloc_size %zu log %zu\n", alloc_size, log); 47 CHECK(alloc_size > (1UL << (log-1)));
|
/bionic/libc/kernel/common/linux/ |
relay.h | 64 size_t alloc_size; member in struct:rchan
|
/development/ndk/platforms/android-3/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/external/chromium/chrome/common/ |
service_process_util.cc | 234 uint32 alloc_size = sizeof(ServiceProcessSharedData); 236 true, alloc_size)) 239 if (!shared_mem_service_data->Map(alloc_size)) 242 memset(shared_mem_service_data->memory(), 0, alloc_size);
|
/external/libxml2/include/libxml/ |
xmlversion.h | 426 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/6/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/6/platforms/android-3/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/7/platforms/android-3/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/7/platforms/android-3/arch-x86/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|
/prebuilts/ndk/7/platforms/android-4/arch-arm/usr/include/linux/ |
relay.h | 53 size_t alloc_size; member in struct:rchan
|