Searched defs:ptr (Results 1 - 25 of 39) sorted by relevance

12

/bionic/libc/arch-x86_64/bionic/
H A D__set_tls.c35 __LIBC_HIDDEN__ int __set_tls(void* ptr) { argument
36 return __arch_prctl(ARCH_SET_FS, (uintptr_t) ptr);
/bionic/tests/libs/
H A Ddlopen_nodelete_dt_flags_1.cpp22 extern "C" void dlopen_nodelete_dt_flags_1_set_unload_flag_ptr(bool* ptr) { argument
23 unload_flag_ptr = ptr;
H A Ddlopen_nodelete_1.cpp23 extern "C" void dlopen_nodelete_1_set_unload_flag_ptr(bool* ptr) { argument
24 unload_flag_ptr = ptr;
H A Ddlopen_nodelete_2.cpp23 extern "C" void dlopen_nodelete_2_set_unload_flag_ptr(bool* ptr) { argument
24 unload_flag_ptr = ptr;
/bionic/libc/bionic/
H A D__cmsg_nxthdr.cpp32 cmsghdr* ptr; local
33 ptr = reinterpret_cast<cmsghdr*>(reinterpret_cast<char*>(cmsg) + CMSG_ALIGN(cmsg->cmsg_len));
34 size_t len = reinterpret_cast<char*>(ptr+1) - reinterpret_cast<char*>(msg->msg_control);
38 return ptr;
H A Dnew.cpp41 void operator delete(void* ptr) throw() { argument
42 free(ptr);
45 void operator delete[](void* ptr) throw() { argument
46 free(ptr);
57 void operator delete(void* ptr, const std::nothrow_t&) throw() { argument
58 free(ptr);
61 void operator delete[](void* ptr, const std::nothrow_t&) throw() { argument
62 free(ptr);
H A Dnet_if.cpp156 struct if_nameindex* ptr = array; local
157 while (ptr->if_index != 0 || ptr->if_name != nullptr) {
158 free(ptr->if_name);
159 ++ptr;
/bionic/libc/arch-arm/bionic/
H A Datomics_arm.c61 __atomic_cmpxchg(int old, int _new, volatile int *ptr) argument
64 return __sync_val_compare_and_swap(ptr, old, _new) != old;
68 __atomic_swap(int _new, volatile int *ptr) argument
72 prev = *ptr;
73 } while (__sync_val_compare_and_swap(ptr, prev, _new) != prev);
78 __atomic_dec(volatile int *ptr) argument
80 return __sync_fetch_and_sub (ptr, 1);
84 __atomic_inc(volatile int *ptr) argument
86 return __sync_fetch_and_add (ptr, 1);
/bionic/libc/include/android/
H A Dlegacy_sys_atomics_inlines.h49 __ATOMIC_INLINE__ int __atomic_cmpxchg(int old, int _new, volatile int *ptr) { argument
51 return __sync_val_compare_and_swap(ptr, old, _new) != old;
54 __ATOMIC_INLINE__ int __atomic_swap(int _new, volatile int *ptr) { argument
57 prev = *ptr;
58 } while (__sync_val_compare_and_swap(ptr, prev, _new) != prev);
62 __ATOMIC_INLINE__ int __atomic_dec(volatile int *ptr) { argument
63 return __sync_fetch_and_sub(ptr, 1);
66 __ATOMIC_INLINE__ int __atomic_inc(volatile int *ptr) { argument
67 return __sync_fetch_and_add(ptr, 1);
/bionic/linker/
H A Dlinker_memory.cpp35 void free(void* ptr) { argument
36 g_linker_allocator.free(ptr);
H A Dlinker_allocator.h78 void* ptr = mmap(const_cast<T*>(hint), size, local
80 if (ptr == MAP_FAILED) {
86 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ptr, size, "linker_alloc_vector");
88 return reinterpret_cast<T*>(ptr);
91 void deallocate(T* ptr, size_t n) { argument
92 munmap(ptr, n * sizeof(T));
106 void free(void* ptr);
112 linker_vector_t::iterator find_page_record(void* ptr);
131 void* realloc(void* ptr, size_t size);
132 void free(void* ptr);
[all...]
H A Dlinker_allocator.cpp131 void LinkerSmallObjectAllocator::free(void* ptr) { argument
132 auto page_record = find_page_record(ptr);
134 ssize_t offset = reinterpret_cast<uintptr_t>(ptr) - sizeof(page_info);
137 __libc_fatal("invalid pointer: %p (block_size=%zd)", ptr, block_size_);
140 memset(ptr, 0, block_size_);
141 small_object_block_record* block_record = reinterpret_cast<small_object_block_record*>(ptr);
164 linker_vector_t::iterator LinkerSmallObjectAllocator::find_page_record(void* ptr) { argument
165 void* addr = reinterpret_cast<void*>(PAGE_START(reinterpret_cast<uintptr_t>(ptr)));
173 __libc_fatal("page record for %p was not found (block_size=%zd)", ptr, block_size_);
268 page_info* LinkerMemoryAllocator::get_page_info(void* ptr) { argument
277 realloc(void* ptr, size_t size) argument
312 free(void* ptr) argument
[all...]
/bionic/libc/arch-x86/bionic/
H A D__set_tls.c60 __LIBC_HIDDEN__ int __set_tls(void* ptr) { argument
62 __init_user_desc(&tls_descriptor, true, ptr);
/bionic/libc/kernel/uapi/linux/
H A Dion_test.h25 __u64 ptr; member in struct:ion_test_rw_data
/bionic/libc/kernel/uapi/drm/
H A Darmada_drm.h44 uint64_t ptr; member in struct:drm_armada_gem_pwrite
/bionic/linker/tests/
H A Dlinker_memory_allocator_test.cpp54 void* ptr = allocator.alloc(0); local
55 ASSERT_TRUE(ptr != nullptr);
56 allocator.free(ptr);
/bionic/libc/dns/nameser/
H A Dns_parse.c80 ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count) { argument
81 const u_char *optr = ptr;
86 b = dn_skipname(ptr, eom);
89 ptr += b/*Name*/ + NS_INT16SZ/*Type*/ + NS_INT16SZ/*Class*/;
91 if (ptr + NS_INT32SZ + NS_INT16SZ > eom)
93 ptr += NS_INT32SZ/*TTL*/;
94 NS_GET16(rdlength, ptr);
95 ptr += rdlength/*RData*/;
98 if (ptr > eom)
100 _DIAGASSERT(__type_fit(int, ptr
[all...]
/bionic/libc/dns/net/
H A Dsethostent.c131 char *buf, *ptr; local
147 if ((ptr = buf = malloc(len = info->buflen)) == NULL) {
183 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len);
188 ptr, len);
190 ptr = (void *)ALIGN(ptr);
191 if ((size_t)(ptr - buf) >= info->buflen)
197 HENT_COPY(addr_ptrs[num], hp->h_addr_list[0], hp->h_length, ptr,
210 ptr = info->buf;
216 HENT_ARRAY(hp->h_aliases, anum, ptr, le
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_hashlimit.h54 void * ptr; member in union:xt_hashlimit_info::__anon603
/bionic/tests/
H A Dmalloc_test.cpp31 void *ptr = malloc(100); local
32 ASSERT_TRUE(ptr != NULL);
33 ASSERT_LE(100U, malloc_usable_size(ptr));
34 free(ptr);
46 char *ptr = (char *)calloc(1, alloc_len); local
47 ASSERT_TRUE(ptr != NULL);
48 ASSERT_LE(alloc_len, malloc_usable_size(ptr));
50 ASSERT_EQ(0, ptr[i]);
52 free(ptr);
80 char *ptr local
95 void* ptr; local
104 void* ptr; local
109 void* ptr; local
116 char *ptr = (char*)memalign(alignment, 100); local
151 char *ptr = (char *)malloc(100); local
167 char *ptr = (char *)malloc(200); local
183 char *ptr = (char *)malloc(200); local
221 char *ptr = (char *)calloc(1, 100); local
236 char *ptr = (char *)calloc(1, 200); local
251 char *ptr = (char *)calloc(1, 200); local
290 void* ptr = malloc(100); local
304 void* ptr = pvalloc(100); local
317 void* ptr = pvalloc(100); local
[all...]
H A Dbuffer_tests.cpp196 uint64_t ptr = reinterpret_cast<uint64_t>(orig_ptr); local
201 ptr += alignment - (ptr & (alignment - 1));
202 ptr |= alignment | or_mask;
205 return reinterpret_cast<void*>(ptr);
H A Ddlfcn_test.cpp84 int* ptr = lookup_dlsym_symbol_using_RTLD_DEFAULT(); local
85 ASSERT_TRUE(ptr != nullptr) << dlerror();
86 ASSERT_EQ(42, *ptr);
92 ptr = lookup_dlsym_symbol2_using_RTLD_DEFAULT();
93 ASSERT_TRUE(ptr != nullptr) << dlerror();
94 ASSERT_EQ(44, *ptr);
100 ptr = lookup_dlsym_symbol_using_RTLD_NEXT();
101 ASSERT_TRUE(ptr != nullptr) << dlerror();
102 ASSERT_EQ(43, *ptr);
124 int* ptr local
[all...]
H A Dthread_local_test.cpp181 void* ptr; member in union:gcc_emutls_object::__anon1090
/bionic/libc/dns/resolv/
H A Dres_comp.c132 dn_skipname(const u_char *ptr, const u_char *eom) { argument
133 const u_char *saveptr = ptr;
135 if (ns_name_skip(&ptr, eom) == -1)
137 return (ptr - saveptr);
/bionic/libc/include/sys/
H A Depoll.h61 void* ptr; member in union:epoll_data

Completed in 463 milliseconds

12