Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 31) sorted by relevance

12

/bionic/libc/bionic/
Dpthread_key.cpp66 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 …]
Dtdestroy.cpp34 (*destroy_func)(root_node->key); in tdestroy()
Dsystem_properties.cpp633 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/
Dlsearch.c44 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()
Dtfind.c18 char *key; member
27 char *key = (char *)vkey; in tfind() local
34 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tfind()
Dtsearch.c19 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/
Dmtctxres.c15 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/
Dbsearch.c62 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/
Dpthread_benchmark.cpp37 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/
Dagpgart.h81 int key; member
89 int key; member
94 int key; member
Dipc.h26 __kernel_key_t key; member
Dbcache.h50 #define BKEY_PADDED(key) union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; } argument
Dedd.h69 __u16 key; member
Dsoundcard.h179 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/
Dpthread_test.cpp34 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/
Dipcbuf.h22 __kernel_key_t key; member
/bionic/libc/include/sys/
Dsystem_properties.h51 int __system_property_set(const char *key, const char *value);
/bionic/libc/include/
Dsearch.h24 char* key; member
Dstdlib.h93 extern void * bsearch(const void *key, const void *base0,
/bionic/libc/kernel/uapi/linux/netfilter/
Dnf_conntrack_tuple_common.h50 __be16 key; member
/bionic/libc/dns/resolv/
Dres_cache.c1271 _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 …]
Dres_data.c239 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/
Dasound_fm.h100 char key[4]; member
Dcompress_offload.h81 __u32 key; member
Dsfnt_info.h30 unsigned short key; member

12