Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 61) sorted by relevance

123

/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dhsearch_r.c46 size_t index, i; in hsearch_lookup_free() local
48 for (index = hash, i = 0;; index += ++i) { in hsearch_lookup_free()
49 ENTRY *entry = &hsearch->entries[index & hsearch->index_mask]; in hsearch_lookup_free()
80 size_t hash, index, i, old_hash, old_count, new_count; in hsearch_r() local
89 for (index = hash, i = 0;; index += ++i) { in hsearch_r()
90 entry = &hsearch->entries[index & hsearch->index_mask]; in hsearch_r()
/bionic/tests/
Dnet_if_test.cpp25 unsigned index; in TEST() local
26 index = if_nametoindex("lo"); in TEST()
27 ASSERT_NE(index, 0U); in TEST()
30 char* name = if_indextoname(index, buf); in TEST()
35 unsigned index = if_nametoindex("this-interface-does-not-exist"); in TEST() local
36 ASSERT_EQ(0U, index); in TEST()
Dthread_local_test.cpp182 uintptr_t index; member
224 ASSERT_TRUE(tls_var[n].object.index != 0); in TEST()
229 ASSERT_TRUE(prev_index + 1 == tls_var[n].object.index || in TEST()
233 prev_index = tls_var[n].object.index; in TEST()
Dfdtrack_test.cpp48 void DumpEvent(std::vector<android_fdtrack_event>* events, size_t index) { in DumpEvent() argument
49 auto& event = (*events)[index]; in DumpEvent()
51 fprintf(stderr, " event %zu: fd %d created by %s\n", index, event.fd, in DumpEvent()
54 fprintf(stderr, " event %zu: fd %d closed\n", index, event.fd); in DumpEvent()
/bionic/libc/kernel/uapi/xen/
Dgntalloc.h27 __u64 index; member
33 __u64 index; member
38 __u64 index; member
Dgntdev.h30 __u64 index; member
35 __u64 index; member
52 __u64 index; member
/bionic/tools/
Dgenerate-version-script.py20 index = line.find("#")
21 if index != -1:
22 tags = line[index+1:].split()
/bionic/libc/include/sys/
Dcdefs.h314 #define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \ argument
316 (__builtin_constant_p(index) && bos_val op index && (cond)))
318 #define __bos_dynamic_check_impl(bos_val, op, index) \ argument
319 __bos_dynamic_check_impl_and(bos_val, op, index, 1)
321 #define __bos_trivially_ge(bos_val, index) __bos_dynamic_check_impl((bos_val), >=, (index)) argument
322 #define __bos_trivially_gt(bos_val, index) __bos_dynamic_check_impl((bos_val), >, (index)) argument
/bionic/libc/system_properties/
Dcontexts_serialized.cpp130 uint32_t index; in GetPropAreaForName() local
131 property_info_area_file_->GetPropertyInfoIndexes(name, &index, nullptr); in GetPropAreaForName()
132 if (index == ~0u || index >= num_context_nodes_) { in GetPropAreaForName()
137 auto* context_node = &context_nodes_[index]; in GetPropAreaForName()
/bionic/libc/kernel/uapi/linux/
Dvhost_types.h26 unsigned int index; member
30 unsigned int index; member
34 unsigned int index; member
Dptp_clock.h52 unsigned int index; member
62 unsigned int index; member
94 unsigned int index; member
120 unsigned int index; member
Dv4l2-subdev.h48 __u32 index; member
55 __u32 index; member
71 __u32 index; member
Dhiddev.h37 __u32 index; member
44 __s32 index; member
Derspan.h39 __be32 index; member
/bionic/libc/tzcode/
Dbionic.cpp156 char* index = reinterpret_cast<char*>(malloc(index_size)); in __bionic_open_tzdata_path() local
157 if (index == nullptr) { in __bionic_open_tzdata_path()
162 if (TEMP_FAILURE_RETRY(read(fd, index, index_size)) != static_cast<ssize_t>(index_size)) { in __bionic_open_tzdata_path()
165 free(index); in __bionic_open_tzdata_path()
172 index_entry_t* entry = reinterpret_cast<index_entry_t*>(index); in __bionic_open_tzdata_path()
186 free(index); in __bionic_open_tzdata_path()
/bionic/libc/kernel/uapi/linux/dvb/
Dca.h47 unsigned int index; member
53 unsigned int index; member
Ddmx.h96 __u32 index; member
108 __u32 index; member
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_set.h27 ip_set_id_t index; member
45 ip_set_id_t index; member
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c262 if (heap_element(ctx->timers, del->index) != del) in evClearTimer()
265 if (heap_delete(ctx->timers, del->index) < 0) in evClearTimer()
289 if (heap_element(ctx->timers, timer->index) != timer) in evConfigTimer()
315 if (heap_element(ctx->timers, timer->index) != timer) in evResetTimer()
344 result = heap_increased(ctx->timers, timer->index); in evResetTimer()
350 result = heap_decreased(ctx->timers, timer->index); in evResetTimer()
464 timer->index = idx; in set_index()
/bionic/libc/include/bits/fortify/
Dunistd.h68 #define __bos_trivially_ge_no_overflow(bos_val, index) \ argument
69 ((__bos_dynamic_check_impl_and((bos_val), >=, (index), (bos_val) <= SSIZE_MAX) && \
70 __builtin_constant_p(index) && (index) <= SSIZE_MAX))
/bionic/linker/
Dlinker_tls.h60 TlsIndex index; member
Dlinker_relocate.cpp84 const char* get_string(ElfW(Word) index) { in get_string() argument
85 if (__predict_false(index >= si_strtab_size)) { in get_string()
87 si->get_realpath(), si_strtab_size, index); in get_string()
89 return si_strtab + index; in get_string()
451 .index.module_id = module_id, in process_relocation_impl()
452 .index.offset = sym_addr + addend, in process_relocation_impl()
461 rel_target, desc_arg.generation, desc_arg.index.module_id, in process_relocation_impl()
462 desc_arg.index.offset, sym_name); in process_relocation_impl()
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Dheap.h30 heap_index_func index; member
/bionic/libc/kernel/uapi/scsi/
Dscsi_bsg_ufs.h33 __u8 index; member
/bionic/libc/kernel/uapi/sound/
Dfirewire.h63 unsigned int index; member

123