Searched defs:key (Results 1 - 25 of 31) sorted by relevance

12

/bionic/libc/malloc_debug/tests/
H A Dproperty_fake.cpp34 extern "C" int property_get(const char* key, char* value, const char* default_value) { argument
35 if (g_properties.count(key) == 0) {
41 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1);
47 extern "C" int __system_property_get(const char* key, char* value) { argument
48 if (g_properties.count(key) == 0) {
51 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1);
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
H A Dbsearch.c62 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, argument
70 _DIAGASSERT(key != NULL);
76 cmp = (*compar)(key, p);
79 if (cmp > 0) { /* key > p: move right */
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dtfind.c18 char *key; member in struct:node_t
27 char *key = (char *)vkey; local
34 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */
35 return (*rootp); /* key found */
H A Dlsearch.c44 lsearch(const void *key, void *base, size_t *nelp, size_t width, argument
48 return(linear_base(key, base, nelp, width, compar, 1));
52 lfind(const void *key, const void *base, size_t *nelp, size_t width, argument
55 return(linear_base(key, base, nelp, width, compar, 0));
59 linear_base(const void *key, const void *base, size_t *nelp, size_t width, argument
66 if (!compar(key, element)) /* key found */
69 if (!add_flag) /* key not found */
82 memcpy((void *)end, key, width);
H A Dtsearch.c19 char *key; member in struct:node_t
29 char *key = (char *)vkey; local
37 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */
43 q = (node *) malloc(sizeof(node)); /* T5: key not found */
46 q->key = key; /* initialize new node */
52 /* delete node with given key */
58 char *key = (char *)vkey; local
66 while ((cmp = (*compar)(key, (*root
[all...]
/bionic/libc/include/
H A Dsearch.h24 char* key; member in struct:node
/bionic/libc/kernel/uapi/asm-generic/
H A Dipcbuf.h22 __kernel_key_t key; member in struct:ipc64_perm
/bionic/libc/upstream-netbsd/lib/libc/resolv/
H A Dmtctxres.c15 static pthread_key_t key; variable
30 * Initialize the TSD key. By doing this at library load time, we're
38 pthread_keycreate_ret = pthread_key_create(&key, __res_destroy_ctx);
67 if (pthread_getspecific(key) != 0) {
79 if ((ret = pthread_setspecific(key, mt)) != 0) {
122 if (((mt = pthread_getspecific(key)) != 0) ||
124 (mt = pthread_getspecific(key)) != 0)) {
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dnf_conntrack_tuple_common.h50 __be16 key; member in struct:nf_conntrack_man_proto::__anon577
/bionic/benchmarks/
H A Dpthread_benchmark.cpp32 pthread_key_t key; local
33 pthread_key_create(&key, NULL);
36 pthread_getspecific(key);
39 pthread_key_delete(key);
44 pthread_key_t key; local
45 pthread_key_create(&key, NULL);
48 pthread_setspecific(key, NULL);
51 pthread_key_delete(key);
173 pthread_key_t key; local
174 pthread_key_create(&key, NUL
186 pthread_key_t key; local
[all...]
/bionic/libc/kernel/uapi/linux/
H A Dpr.h32 __u64 key; member in struct:pr_reservation
54 __u64 key; member in struct:pr_clear
H A Dipc.h25 __kernel_key_t key; member in struct:ipc_perm
H A Dagpgart.h81 int key; member in struct:_agp_allocate
89 int key; member in struct:_agp_bind
94 int key; member in struct:_agp_unbind
H A Dedd.h69 __u16 key; member in struct:edd_device_params
H A Dbpf.h116 __aligned_u64 key; member in struct:bpf_attr::__anon235
H A Dfirewire-cdev.h217 __u32 key; member in struct:fw_cdev_add_descriptor
H A Dhyperv.h182 __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; member in struct:hv_kvp_exchg_msg_value
206 __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; member in struct:hv_kvp_msg_delete
/bionic/libc/dns/resolv/
H A Dres_data.c239 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, argument
247 return (res_nsendsigned(&_nres, buf, buflen, key, ans, anssiz));
H A Dres_cache.c1133 * data in the query (key) */
1143 /* initialize an Entry as a search key, this also checks the input query packet
1277 /* Return 0 if no pending request is found matching the key.
1281 _cache_check_pending_request_locked( struct resolv_cache** cache, Entry* key, unsigned netid ) argument
1286 if (*cache && key) {
1290 if (ri->hash == key->hash) {
1301 ri->hash = key->hash;
1319 * matching the key has been added to the cache */
1321 _cache_notify_waiting_tid_locked( struct resolv_cache* cache, Entry* key )
1325 if (cache && key) {
1352 Entry key[1]; local
1625 Entry key[1]; local
1714 Entry key[1]; local
[all...]
/bionic/libc/kernel/uapi/sound/
H A Dasound_fm.h100 char key[4]; member in struct:sbi_patch
H A Dcompress_offload.h81 __u32 key; member in struct:snd_compr_metadata
H A Dsfnt_info.h30 unsigned short key; member in struct:soundfont_patch_info
/bionic/libc/bionic/
H A Dlibc_logging.cpp494 static void refresh_cache(struct cache *cache, const char *key) argument
497 cache->pinfo = __system_property_find(key);
H A Dsystem_properties.cpp1146 int __system_property_set(const char *key, const char *value) argument
1148 if (key == 0) return -1;
1150 if (strlen(key) >= PROP_NAME_MAX) return -1;
1156 strlcpy(msg.name, key, sizeof msg.name);
/bionic/tests/
H A Dpthread_test.cpp43 pthread_key_t key; local
44 ASSERT_EQ(0, pthread_key_create(&key, NULL));
45 ASSERT_EQ(0, pthread_key_delete(key));
46 // Can't delete a key that's already been deleted.
47 ASSERT_EQ(EINVAL, pthread_key_delete(key));
67 for (const auto& key : keys) {
68 EXPECT_EQ(0, pthread_key_delete(key));
73 pthread_key_t key; local
75 ASSERT_EQ(0, pthread_key_create(&key, NULL)) << i << " of " << nkeys;
76 keys.push_back(key);
82 pthread_key_t key = keys.back(); local
95 pthread_key_t key; local
117 pthread_key_t key; local
130 pthread_key_t key; local
150 DirtyKeyFn(void* key) argument
155 pthread_key_t key; local
182 static pthread_key_t key; local
[all...]

Completed in 1467 milliseconds

12