/bionic/libc/malloc_debug/tests/ |
H A D | property_fake.cpp | 34 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 D | bsearch.c | 62 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 D | tfind.c | 18 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 D | lsearch.c | 44 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 D | tsearch.c | 19 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 D | search.h | 24 char* key; member in struct:node
|
/bionic/libc/kernel/uapi/asm-generic/ |
H A D | ipcbuf.h | 22 __kernel_key_t key; member in struct:ipc64_perm
|
/bionic/libc/upstream-netbsd/lib/libc/resolv/ |
H A D | mtctxres.c | 15 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 D | nf_conntrack_tuple_common.h | 50 __be16 key; member in struct:nf_conntrack_man_proto::__anon577
|
/bionic/benchmarks/ |
H A D | pthread_benchmark.cpp | 32 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 D | pr.h | 32 __u64 key; member in struct:pr_reservation 54 __u64 key; member in struct:pr_clear
|
H A D | ipc.h | 25 __kernel_key_t key; member in struct:ipc_perm
|
H A D | agpgart.h | 81 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 D | edd.h | 69 __u16 key; member in struct:edd_device_params
|
H A D | bpf.h | 116 __aligned_u64 key; member in struct:bpf_attr::__anon235
|
H A D | firewire-cdev.h | 217 __u32 key; member in struct:fw_cdev_add_descriptor
|
H A D | hyperv.h | 182 __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 D | res_data.c | 239 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 D | res_cache.c | 1133 * 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 D | asound_fm.h | 100 char key[4]; member in struct:sbi_patch
|
H A D | compress_offload.h | 81 __u32 key; member in struct:snd_compr_metadata
|
H A D | sfnt_info.h | 30 unsigned short key; member in struct:soundfont_patch_info
|
/bionic/libc/bionic/ |
H A D | libc_logging.cpp | 494 static void refresh_cache(struct cache *cache, const char *key) argument 497 cache->pinfo = __system_property_find(key);
|
H A D | system_properties.cpp | 1146 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 D | pthread_test.cpp | 43 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...] |