/fuchsia/zircon/third_party/ulib/musl/pthread/ |
H A D | pthread_attr_get.c | 7 int pthread_attr_getguardsize(const pthread_attr_t* restrict a, size_t* restrict size) { argument 8 *size = a->_a_guardsize; 19 size_t* restrict size) { 23 *size = a->_a_stacksize; 27 int pthread_attr_getstacksize(const pthread_attr_t* restrict a, size_t* restrict size) { argument 28 *size = a->_a_stacksize; 18 pthread_attr_getstack(const pthread_attr_t* restrict a, void** restrict addr, size_t* restrict size) argument
|
/fuchsia/zircon/third_party/ulib/musl/src/passwd/ |
H A D | getgrent.c | 17 size_t size = 0, nmem = 0; local 22 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); 28 size_t size = 0, nmem = 0; local 29 __getgr_a(0, gid, &gr, &line, &size, &mem, &nmem, &res); 35 size_t size = 0, nmem = 0; local 36 __getgr_a(name, 0, &gr, &line, &size, &mem, &nmem, &res);
|
H A D | getpwent.c | 6 static size_t size; variable 22 __getpwent_a(f, &pw, &line, &size, &res); 28 __getpw_a(0, uid, &pw, &line, &size, &res); 34 __getpw_a(name, 0, &pw, &line, &size, &res);
|
H A D | fgetgrent.c | 8 size_t size = 0, nmem = 0; local 9 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res);
|
H A D | pwf.h | 10 int __getpwent_a(FILE* f, struct passwd* pw, char** line, size_t* size, struct passwd** res); 11 int __getpw_a(const char* name, uid_t uid, struct passwd* pw, char** buf, size_t* size, 13 int __getgrent_a(FILE* f, struct group* gr, char** line, size_t* size, char*** mem, size_t* nmem, 15 int __getgr_a(const char* name, gid_t gid, struct group* gr, char** buf, size_t* size, char*** mem,
|
/fuchsia/zircon/system/utest/vmo/ |
H A D | bench.cpp | 56 const size_t size = 32*1024*1024; local 62 zx_vmo_create(size, 0, &vmo); 66 printf("\ttook %" PRIu64 " nsecs to create %zu vmos of size %zu\n", t, fbl::count_of(vmos), size); 73 printf("\ttook %" PRIu64 " nsecs to delete %zu vmos of size %zu\n", t, fbl::count_of(vmos), size); 77 zx_vmo_create(size, 0, &vmo); 79 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local 82 for (size_t i = 0; i < size; i += PAGE_SIZE) { 86 printf("\ttook %" PRIu64 " nsecs to read fault in vmo of size 116 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local 125 zx_vmar_unmap(zx_vmar_root_self(), ptr, size); local 128 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local 137 zx_vmar_unmap(zx_vmar_root_self(), ptr, size); local 148 zx_vmar_map(zx_vmar_root_self(), ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 0, vmo, 0, size, &ptr); local [all...] |
/fuchsia/zircon/system/ulib/fbl/include/fbl/ |
H A D | alloc_checker.h | 26 void arm(size_t size, bool result); 35 void* operator new(size_t size, fbl::AllocChecker* ac) noexcept; 36 void* operator new[](size_t size, fbl::AllocChecker* ac) noexcept;
|
/fuchsia/zircon/third_party/ulib/musl/src/network/ |
H A D | gethostbyaddr.c | 9 size_t size = 63; local 14 h = malloc(size += size + 1); 19 err = gethostbyaddr_r(a, l, af, h, (void*)(h + 1), size - sizeof *h, &res, &h_errno);
|
H A D | gethostbyname2.c | 10 size_t size = 63; local 15 h = malloc(size += size + 1); 20 err = gethostbyname2_r(name, af, h, (void*)(h + 1), size - sizeof *h, &res, &h_errno);
|
/fuchsia/zircon/third_party/ulib/musl/sanitizers/ |
H A D | asan-stubs.c | 32 __WEAK void __asan_set_shadow_##xx(uintptr_t addr, uintptr_t size) { \ 33 __unsanitized_memset((void*)addr, 0x##xx, size); \ 54 #define ASAN_REPORT_ERROR(type, is_write, size) \ 55 TRAP_STUB(void __asan_report_##type##size(uintptr_t addr)) \ 56 TRAP_STUB(void __asan_report_exp_##type##size(uintptr_t addr, \ 58 TRAP_STUB(void __asan_report_##type##size##_noabort(uintptr_t addr)) 71 TRAP_STUB(void __asan_report_load_n(uintptr_t addr, size_t size)) 72 TRAP_STUB(void __asan_report_load_n_noabort(uintptr_t addr, size_t size)) 73 TRAP_STUB(void __asan_report_exp_load_n(uintptr_t addr, size_t size, 76 TRAP_STUB(void __asan_report_store_n(uintptr_t addr, size_t size)) [all...] |
/fuchsia/zircon/third_party/ulib/jemalloc/src/ |
H A D | pages.c | 48 // round up to page size 96 static zx_status_t fuchsia_pages_free(void* addr, size_t size) { argument 98 return _zx_vmar_unmap(pages_vmar, ptr, size); 101 static void* fuchsia_pages_trim(void* ret, void* addr, size_t size, argument 103 size_t trailsize = alloc_size - leadsize - size; 108 pages_unmap((void *)((uintptr_t)ret + size), trailsize); 115 pages_map(void *addr, size_t size, bool *commit) argument 119 assert(size != 0); 129 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0), 132 ret = fuchsia_pages_map(addr, size); 161 pages_unmap(void *addr, size_t size) argument 194 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, bool *commit) argument 228 pages_commit_impl(void *addr, size_t size, bool commit) argument 259 pages_commit(void *addr, size_t size) argument 265 pages_decommit(void *addr, size_t size) argument 271 pages_purge_lazy(void *addr, size_t size) argument 287 pages_purge_forced(void *addr, size_t size) argument 300 pages_huge(void *addr, size_t size) argument 313 pages_nohuge(void *addr, size_t size) argument [all...] |
/fuchsia/zircon/kernel/platform/ |
H A D | init.cpp | 32 __WEAK void* platform_get_ramdisk(size_t* size) { argument 33 *size = 0;
|
/fuchsia/zircon/scripts/ |
H A D | shlib-symbols | 62 local read name type addr size 63 while read name type addr size; do 67 if [ -z "$size" ]; then 68 size="0x0" 70 size="0x$size" 105 FUNCTION|WEAK_FUNCTION) size="0x0" ;; 109 echo "${type}(${name}${address_item}, ${size})"
|
/fuchsia/zircon/system/private/zircon/ |
H A D | stack.h | 11 // Given the base and size of the stack block, compute the appropriate 15 size_t size) { 17 uintptr_t sp = base + size; 14 compute_initial_stack_pointer(uintptr_t base, size_t size) argument
|
/fuchsia/zircon/system/ulib/zx/ |
H A D | vmo.cpp | 11 zx_status_t vmo::create(uint64_t size, uint32_t options, vmo* result) { argument 12 return zx_vmo_create(size, options, result->reset_and_get_address());
|
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/ |
H A D | extent_mmap_externs.h | 6 void *extent_alloc_mmap(void *new_addr, size_t size, size_t alignment, 8 bool extent_dalloc_mmap(void *addr, size_t size);
|
/fuchsia/zircon/third_party/ulib/jemalloc/test/integration/ |
H A D | thread_arena.c | 11 size_t size; local 18 size = sizeof(arena_ind); 19 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, 27 size = sizeof(arena_ind); 28 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, NULL, 45 size_t size; local 53 size = sizeof(arena_ind); 54 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, NULL,
|
/fuchsia/zircon/third_party/ulib/musl/src/locale/ |
H A D | __mo_lookup.c | 8 const char* __mo_lookup(const void* p, size_t size, const char* s) { argument 14 if (n >= size / 4 || o >= size - 4 * n || t >= size - 4 * n || ((o | t) % 4)) 21 if (os >= size || ol >= size - os || ((char*)p)[os + ol]) 27 if (ts >= size || tl >= size - ts || ((char*)p)[ts + tl])
|
/fuchsia/zircon/third_party/ulib/musl/src/sched/ |
H A D | sched_cpucount.c | 4 int __sched_cpucount(size_t size, const cpu_set_t* set) { argument 7 for (i = 0; i < size; i++)
|
/fuchsia/zircon/third_party/ulib/musl/src/unistd/ |
H A D | getlogin_r.c | 5 int getlogin_r(char* name, size_t size) { argument 9 if (strlen(logname) >= size)
|
/fuchsia/zircon/system/ulib/crypto/ |
H A D | bytes.cpp | 40 zx_status_t Bytes::Resize(size_t size, uint8_t fill) { argument 41 // Early exit if truncating to zero or if size is unchanged 42 if (size == 0) { 47 if (size == len_) { 53 fbl::unique_ptr<uint8_t[]> tmp(new (&ac) uint8_t[size]); 55 xprintf("allocation failed: %zu bytes\n", size); 61 memset(tmp.get(), fill, size); 62 } else if (len_ < size) { 64 memset(tmp.get() + len_, fill, size - len_); 66 memcpy(tmp.get(), buf_.get(), size); 84 size_t size; local [all...] |
/fuchsia/zircon/kernel/lib/heap/cmpctmalloc/ |
H A D | cmpctmalloc.c | 30 // and the header size is two words with eager coalescing on free. 40 // free_t memory_area -- Marked as free, with appropriate size, 43 // header_t right_sentinel -- Marked as allocated, size zero 60 // followed by the area's usable memory. header_t.size includes the size of 84 // Allocations are always rounded up to the nearest bucket size. This would 87 // Consider two buckets with size 512 and 576 (512 + 64). Perhaps the program 141 // 120 bytes. After that we round up to the nearest size that can be written 143 // entries in a given bucket have at least the given size, plus the header 144 // size 163 size_t size; member in struct:header_struct 174 size_t size; member in struct:heap 254 size_to_index_helper( size_t size, size_t* rounded_up_out, int adjust, int increment) argument 296 size_to_index_allocating(size_t size, size_t* rounded_up_out) argument 302 size_to_index_freeing(size_t size) argument 354 create_free_area(void* address, void* left, size_t size) argument 380 free_to_os(void* ptr, size_t size) argument 410 free_memory(void* address, void* left, size_t size) argument 451 create_allocation_header( void* address, size_t offset, size_t size, void* left) argument 465 check_free_fill(void* ptr, size_t size) argument 680 cmpct_test_get_back_newly_freed_helper(size_t size) argument 900 cmpct_alloc(size_t size) argument 962 cmpct_memalign(size_t size, size_t alignment) argument 1004 size_t size = header->size; local 1037 cmpct_realloc(void* payload, size_t size) argument 1054 add_to_heap(void* new_area, size_t size) argument 1074 heap_grow(size_t size) argument 1090 "0x%zx bytes @%p", size, ptr); local 1092 "0x%zx bytes @%p", size, ptr); local [all...] |
/fuchsia/zircon/kernel/lib/heap/ |
H A D | heap_wrapper.cpp | 43 // keep a list of unique caller:size sites in a list 50 size_t size; member in struct:__anon74::alloc_stat 62 void add_stat(void* caller, size_t size) { argument 72 if (s->caller == caller && s->size == size) { 86 s->size = size; 103 // reinsert all of the entries, sorted by size 107 if (stats[i].size >= s->size) { 139 malloc(size_t size) argument 144 add_stat(__GET_CALLER(), size); local 158 malloc_debug_caller_(size_t size, void* caller) argument 177 memalign(size_t boundary, size_t size) argument 182 add_stat(__GET_CALLER(), size); local 196 calloc(size_t count, size_t size) argument 201 add_stat(__GET_CALLER(), size); local 215 realloc(void* ptr, size_t size) argument 220 add_stat(__GET_CALLER(), size); local [all...] |
/fuchsia/zircon/system/utest/region-alloc/ |
H A D | common.h | 26 { .base = 0x10000000, .size = 256 << 10 }, 27 { .base = 0x20000000 - 1 * (256 << 10), .size = 256 << 10 }, 28 { .base = 0x20000000 + 3 * (256 << 10), .size = 256 << 10 }, 29 { .base = 0x20000000, .size = 256 << 10 }, // Merges with before (ndx 1) 30 { .base = 0x20000000 + 2 * (256 << 10), .size = 256 << 10 }, // Merges with after (ndx 2) 31 { .base = 0x20000000 + 1 * (256 << 10), .size = 256 << 10 }, // Merges with before/after 32 { .base = 0x1000000000000000, .size = 256 << 10 }, 33 { .base = 0x2000000000000000, .size = 256 << 10 }, 37 { .base = 0x10000000 - (256 << 10) + 1, .size = 256 << 10 }, 38 { .base = 0x10000000 - 1, .size 83 uint64_t size; member in struct:__anon1452 [all...] |
/fuchsia/zircon/third_party/ulib/jemalloc/test/include/test/ |
H A D | extent_hooks.h | 7 size_t size, size_t alignment, bool *zero, bool *commit, 10 size_t size, bool committed, unsigned arena_ind); 12 size_t size, size_t offset, size_t length, unsigned arena_ind); 14 size_t size, size_t offset, size_t length, unsigned arena_ind); 16 size_t size, size_t offset, size_t length, unsigned arena_ind); 18 void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind); 20 size_t size, size_t size_a, size_t size_b, bool committed, 75 extent_alloc_hook(extent_hooks_t *extent_hooks, void *new_addr, size_t size, argument 80 TRACE_HOOK("%s(extent_hooks=%p, new_addr=%p, size=%zu, alignment=%zu, " 82 new_addr, size, alignmen 98 extent_dalloc_hook(extent_hooks_t *extent_hooks, void *addr, size_t size, bool committed, unsigned arena_ind) argument 119 extent_commit_hook(extent_hooks_t *extent_hooks, void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind) argument 141 extent_decommit_hook(extent_hooks_t *extent_hooks, void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind) argument 163 extent_purge_lazy_hook(extent_hooks_t *extent_hooks, void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind) argument 186 extent_purge_forced_hook(extent_hooks_t *extent_hooks, void *addr, size_t size, size_t offset, size_t length, unsigned arena_ind) argument 209 extent_split_hook(extent_hooks_t *extent_hooks, void *addr, size_t size, size_t size_a, size_t size_b, bool committed, unsigned arena_ind) argument [all...] |