/bionic/libc/bionic/ |
H A D | jemalloc_wrapper.cpp | 23 void* je_pvalloc(size_t bytes) { argument 25 size_t size = BIONIC_ALIGN(bytes, pagesize); 26 if (size < bytes) {
|
H A D | malloc_debug_leak.cpp | 217 extern "C" void* fill_malloc(size_t bytes) { argument 218 void* buffer = g_malloc_dispatch->malloc(bytes); 220 memset(buffer, CHK_SENTINEL_VALUE, bytes); 226 size_t bytes = g_malloc_dispatch->malloc_usable_size(mem); local 227 memset(mem, CHK_FILL_FREE, bytes); 231 extern "C" void* fill_realloc(void* mem, size_t bytes) { argument 233 void* newMem = g_malloc_dispatch->realloc(mem, bytes); 244 extern "C" void* fill_memalign(size_t alignment, size_t bytes) { argument 245 void* buffer = g_malloc_dispatch->memalign(alignment, bytes); 247 memset(buffer, CHK_SENTINEL_VALUE, bytes); 273 fill_pvalloc(size_t bytes) argument 293 leak_malloc(size_t bytes) argument 418 leak_realloc(void* oldMem, size_t bytes) argument 450 leak_memalign(size_t alignment, size_t bytes) argument 514 leak_pvalloc(size_t bytes) argument [all...] |
H A D | malloc_debug_common.cpp | 258 extern "C" void* malloc(size_t bytes) { argument 259 return __libc_malloc_dispatch->malloc(bytes); 266 extern "C" void* memalign(size_t alignment, size_t bytes) { argument 267 return __libc_malloc_dispatch->memalign(alignment, bytes); 275 extern "C" void* pvalloc(size_t bytes) { argument 276 return __libc_malloc_dispatch->pvalloc(bytes); 280 extern "C" void* realloc(void* oldMem, size_t bytes) { argument 281 return __libc_malloc_dispatch->realloc(oldMem, bytes); 285 extern "C" void* valloc(size_t bytes) { argument 286 return __libc_malloc_dispatch->valloc(bytes); [all...] |
H A D | malloc_debug_check.cpp | 338 extern "C" void* chk_malloc(size_t bytes) { argument 341 return g_malloc_dispatch->malloc(bytes); 344 size_t size = sizeof(hdr_t) + bytes + sizeof(ftr_t); 345 if (size < bytes) { // Overflow 353 add(hdr, bytes); 359 extern "C" void* chk_memalign(size_t alignment, size_t bytes) { argument 361 return g_malloc_dispatch->memalign(alignment, bytes); 365 return chk_malloc(bytes); 373 // here, alignment is at least MALLOC_ALIGNMENT<<1 bytes 374 // we will align by at least MALLOC_ALIGNMENT bytes 442 chk_realloc(void* ptr, size_t bytes) argument 524 chk_calloc(size_t nmemb, size_t bytes) argument 581 chk_pvalloc(size_t bytes) argument [all...] |
H A D | malloc_debug_qemu.cpp | 91 /* Number of bytes requested by the malloc's caller. */ 683 * bytes (plus prefix, and suffix guards), and report allocation to the 686 extern "C" void* qemu_instrumented_malloc(size_t bytes) { argument 692 desc.requested_bytes = bytes; 695 if (size < bytes) { // Overflow 697 malloc_pid, getpid(), bytes); 704 malloc_pid, getpid(), bytes, size); 720 malloc_pid, getpid(), bytes); 774 // Just let go zero bytes allocation. 797 /* For the suffix we will use whatever bytes remai 854 qemu_instrumented_realloc(void* mem, size_t bytes) argument [all...] |
/bionic/tests/ |
H A D | uchar_test.cpp | 84 char bytes[MB_LEN_MAX]; local 85 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL)); 93 char bytes[MB_LEN_MAX]; local 95 memset(bytes, 0, sizeof(bytes)); 96 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)); 97 EXPECT_EQ('h', bytes[0]); 103 memset(bytes, 0, sizeof(bytes)); 104 EXPECT_EQ(1U, c16rtomb(bytes, 124 char bytes[MB_LEN_MAX]; local 140 char bytes[MB_LEN_MAX]; local 282 char bytes[MB_LEN_MAX]; local [all...] |
H A D | wchar_test.cpp | 31 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local 32 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL)); 33 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL)); 35 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL)); 36 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL)); 46 char bytes[MB_LEN_MAX]; local 49 EXPECT_EQ(1, wctomb(bytes, L'\0')); 50 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL)); 53 memset(bytes, 0, sizeof(bytes)); 117 char bytes[BUFSIZ]; local [all...] |
/bionic/libc/kernel/uapi/linux/ |
H A D | gen_stats.h | 36 __u64 bytes; member in struct:gnet_stats_basic 41 __u64 bytes; member in struct:gnet_stats_basic_packed
|
H A D | blktrace_api.h | 114 __u32 bytes; member in struct:blk_io_trace
|
H A D | rds.h | 139 uint64_t bytes; member in struct:rds_iovec
|
H A D | telephony.h | 187 unsigned int bytes; member in union:telephony_exception
|
H A D | xfrm.h | 80 __u64 bytes; member in struct:xfrm_lifetime_cur
|
H A D | pkt_sched.h | 32 __u64 bytes; member in struct:tc_stats
|
H A D | soundcard.h | 426 int bytes; member in struct:audio_buf_info 451 int bytes; member in struct:count_info
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | xt_set.h | 76 struct ip_set_counter_match bytes; member in struct:xt_set_info_match_v3
|
H A D | xt_sctp.h | 51 #define bytes(type) (sizeof(type) * 8) macro 52 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while (0) 54 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ ((chunkmap)[type / bytes (__u32)] & (1 << (type % bytes (__u32)))) ? 1: 0; })
|
/bionic/linker/ |
H A D | linker_allocator.cpp | 25 uint8_t bytes[PAGE_SIZE-sizeof(LinkerAllocatorPage*)]; member in struct:LinkerAllocatorPage 71 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; 106 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
H A D | ev_streams.c | 49 static void consume(evStream *str, size_t bytes); 233 consume(evStream *str, size_t bytes) { argument 234 while (bytes > 0U) { 235 if (bytes < (size_t)str->iovCur->iov_len) { 236 str->iovCur->iov_len -= bytes; 238 ((u_char *)str->iovCur->iov_base + bytes); 239 str->ioDone += bytes; 240 bytes = 0; 242 bytes -= str->iovCur->iov_len; 268 /* Dribble out some bytes o 272 int bytes; local 295 int bytes; local [all...] |
/bionic/libc/kernel/uapi/drm/ |
H A D | omap_drm.h | 42 uint32_t bytes; member in union:omap_gem_size
|
/bionic/libc/kernel/uapi/mtd/ |
H A D | ubi-user.h | 70 __s64 bytes; member in struct:ubi_mkvol_req 80 __s64 bytes; member in struct:ubi_rsvol_req 99 __s32 bytes; member in struct:ubi_leb_change_req
|
/bionic/libc/upstream-openbsd/lib/libc/crypt/ |
H A D | chacha_private.h | 89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) argument 97 if (!bytes) return; 117 if (bytes < 64) { 118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; 188 /* stopping at 2^70 bytes per nonce is user's responsibility */ 208 if (bytes <= 64) { 209 if (bytes < 64) { 210 for (i = 0;i < bytes;++i) ctarget[i] = c[i]; 216 bytes -= 64;
|
/bionic/libc/kernel/uapi/sound/ |
H A D | asound.h | 907 } bytes; member in union:snd_ctl_elem_value::__anon871
|
/bionic/libc/upstream-dlmalloc/ |
H A D | malloc.c | 36 Supported pointer/size_t representation: 4 or 8 bytes 43 Alignment: 8 bytes (minimum) 46 if necessary (up to 128bytes), at the expense of using more space. 48 Minimum overhead per allocated chunk: 4 or 8 bytes (if 4byte sizes) 49 8 or 16 bytes (if 8byte sizes) 54 Minimum allocated size: 4-byte ptrs: 16 bytes (including overhead) 55 8-byte ptrs: 32 bytes (including overhead) 57 Even a request for zero bytes (i.e., malloc(0)) returns a 59 The maximum overhead wastage (i.e., number of extra bytes 63 32 bytes plu 4566 dlmalloc(size_t bytes) argument 4912 internal_memalign(mstate m, size_t alignment, size_t bytes) argument 5207 dlrealloc(void* oldmem, size_t bytes) argument 5252 dlrealloc_in_place(void* oldmem, size_t bytes) argument 5283 dlmemalign(size_t alignment, size_t bytes) argument 5290 dlposix_memalign(void** pp, size_t alignment, size_t bytes) argument 5313 dlvalloc(size_t bytes) argument 5321 dlpvalloc(size_t bytes) argument 5386 dlmalloc_set_footprint_limit(size_t bytes) argument 5531 mspace_malloc(mspace msp, size_t bytes) argument 5766 mspace_realloc(mspace msp, void* oldmem, size_t bytes) argument 5811 mspace_realloc_in_place(mspace msp, void* oldmem, size_t bytes) argument 5843 mspace_memalign(mspace msp, size_t alignment, size_t bytes) argument 5963 mspace_set_footprint_limit(mspace msp, size_t bytes) argument [all...] |