/bionic/libc/bionic/ |
D | pthread_key.cpp | 66 static inline bool IsValidUserKey(pthread_key_t key) { in IsValidUserKey() argument 67 return (key >= TLS_SLOT_FIRST_USER_SLOT && key < BIONIC_TLS_SLOTS); in IsValidUserKey() 93 for (pthread_key_t key = 0; key < TLS_SLOT_FIRST_USER_SLOT; ++key) { in ScopedTlsMapAccess() local 94 SetInUse(key, NULL); in ScopedTlsMapAccess() 106 for (int key = 0; key < BIONIC_TLS_SLOTS; ++key) { in CreateKey() local 107 if (!IsInUse(key)) { in CreateKey() 108 SetInUse(key, key_destructor); in CreateKey() 109 *result = key; in CreateKey() 118 void DeleteKey(pthread_key_t key) { in DeleteKey() argument 119 TLSMAP_WORD(s_tls_map_, key) &= ~TLSMAP_MASK(key); in DeleteKey() [all …]
|
D | tdestroy.cpp | 34 (*destroy_func)(root_node->key); in tdestroy()
|
D | system_properties.cpp | 633 int __system_property_set(const char *key, const char *value) in __system_property_set() argument 635 if (key == 0) return -1; in __system_property_set() 637 if (strlen(key) >= PROP_NAME_MAX) return -1; in __system_property_set() 643 strlcpy(msg.name, key, sizeof msg.name); in __system_property_set()
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | lsearch.c | 44 lsearch(const void *key, void *base, size_t *nelp, size_t width, in lsearch() argument 48 return(linear_base(key, base, nelp, width, compar, 1)); in lsearch() 52 lfind(const void *key, const void *base, size_t *nelp, size_t width, in lfind() argument 55 return(linear_base(key, base, nelp, width, compar, 0)); in lfind() 59 linear_base(const void *key, const void *base, size_t *nelp, size_t width, in linear_base() argument 66 if (!compar(key, element)) /* key found */ in linear_base() 82 memcpy((void *)end, key, width); in linear_base()
|
D | tfind.c | 18 char *key; member 27 char *key = (char *)vkey; in tfind() local 34 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tfind()
|
D | tsearch.c | 19 char *key; member 29 char *key = (char *)vkey; in tsearch() local 37 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tsearch() 46 q->key = key; /* initialize new node */ in tsearch() 58 char *key = (char *)vkey; in tdelete() local 66 while ((cmp = (*compar)(key, (*rootp)->key)) != 0) { in tdelete()
|
/bionic/libc/upstream-netbsd/lib/libc/resolv/ |
D | mtctxres.c | 15 static pthread_key_t key; variable 38 pthread_keycreate_ret = pthread_key_create(&key, __res_destroy_ctx); in _mtctxres_init() 67 if (pthread_getspecific(key) != 0) { in __res_init_ctx() 79 if ((ret = pthread_setspecific(key, mt)) != 0) { in __res_init_ctx() 122 if (((mt = pthread_getspecific(key)) != 0) || in ___mtctxres() 124 (mt = pthread_getspecific(key)) != 0)) { in ___mtctxres()
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
D | bsearch.c | 62 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, in bsearch() argument 70 _DIAGASSERT(key != NULL); in bsearch() 76 cmp = (*compar)(key, p); in bsearch()
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 37 pthread_key_t key; in BM_pthread_getspecific() local 38 pthread_key_create(&key, NULL); in BM_pthread_getspecific() 42 pthread_getspecific(key); in BM_pthread_getspecific() 46 pthread_key_delete(key); in BM_pthread_getspecific()
|
/bionic/libc/kernel/uapi/linux/ |
D | agpgart.h | 81 int key; member 89 int key; member 94 int key; member
|
D | ipc.h | 26 __kernel_key_t key; member
|
D | bcache.h | 50 #define BKEY_PADDED(key) union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; } argument
|
D | edd.h | 69 __u16 key; member
|
D | soundcard.h | 179 unsigned short key; member 236 short key; member 325 unsigned short key; member 835 #define SEQ_ECHO_BACK(key) _TIMER_EVENT(TMR_ECHO, key) argument
|
/bionic/tests/ |
D | pthread_test.cpp | 34 pthread_key_t key; in TEST() local 35 ASSERT_EQ(0, pthread_key_create(&key, NULL)); in TEST() 36 ASSERT_EQ(0, pthread_key_delete(key)); in TEST() 38 ASSERT_EQ(EINVAL, pthread_key_delete(key)); in TEST() 55 pthread_key_t key; in TEST() local 57 ASSERT_EQ(0, pthread_key_create(&key, NULL)) << i << " of " << sysconf_max; in TEST() 58 keys.push_back(key); in TEST() 62 pthread_key_t key; in TEST() local 63 ASSERT_EQ(EAGAIN, pthread_key_create(&key, NULL)); in TEST() 76 pthread_key_t key; in TEST() local [all …]
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | ipcbuf.h | 22 __kernel_key_t key; member
|
/bionic/libc/include/sys/ |
D | system_properties.h | 51 int __system_property_set(const char *key, const char *value);
|
/bionic/libc/include/ |
D | search.h | 24 char* key; member
|
D | stdlib.h | 93 extern void * bsearch(const void *key, const void *base0,
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | nf_conntrack_tuple_common.h | 50 __be16 key; member
|
/bionic/libc/dns/resolv/ |
D | res_cache.c | 1271 _cache_check_pending_request_locked( struct resolv_cache** cache, Entry* key, unsigned netid ) in _cache_check_pending_request_locked() argument 1276 if (*cache && key) { in _cache_check_pending_request_locked() 1280 if (ri->hash == key->hash) { in _cache_check_pending_request_locked() 1291 ri->hash = key->hash; in _cache_check_pending_request_locked() 1311 _cache_notify_waiting_tid_locked( struct resolv_cache* cache, Entry* key ) in _cache_notify_waiting_tid_locked() argument 1315 if (cache && key) { in _cache_notify_waiting_tid_locked() 1319 if (ri->hash == key->hash) { in _cache_notify_waiting_tid_locked() 1342 Entry key[1]; in _resolv_cache_query_failed() local 1345 if (!entry_init_key(key, query, querylen)) in _resolv_cache_query_failed() 1353 _cache_notify_waiting_tid_locked(cache, key); in _resolv_cache_query_failed() [all …]
|
D | res_data.c | 239 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, in res_sendsigned() argument 247 return (res_nsendsigned(&_nres, buf, buflen, key, ans, anssiz)); in res_sendsigned()
|
/bionic/libc/kernel/uapi/sound/ |
D | asound_fm.h | 100 char key[4]; member
|
D | compress_offload.h | 81 __u32 key; member
|
D | sfnt_info.h | 30 unsigned short key; member
|