/bionic/libc/bionic/ |
H A D | pthread_key.cpp | 54 * When pthread_key_delete() is called it will erase the key's bitmap bit 55 * and its destructor, and will also clear the key data in the TLS area of 66 static inline bool IsValidUserKey(pthread_key_t key) { argument 67 return (key >= TLS_SLOT_FIRST_USER_SLOT && key < BIONIC_TLS_SLOTS); 93 for (pthread_key_t key = 0; key < TLS_SLOT_FIRST_USER_SLOT; ++key) { 94 SetInUse(key, NULL); 105 // Take the first unallocated key 118 DeleteKey(pthread_key_t key) argument 123 IsInUse(pthread_key_t key) argument 127 SetInUse(pthread_key_t key, void (*key_destructor)(void*)) argument 196 pthread_key_create(pthread_key_t* key, void (*key_destructor)(void*)) argument 205 pthread_key_delete(pthread_key_t key) argument 233 pthread_getspecific(pthread_key_t key) argument 245 pthread_setspecific(pthread_key_t key, const void* ptr) argument [all...] |
H A D | tdestroy.cpp | 34 (*destroy_func)(root_node->key);
|
H A D | system_properties.cpp | 633 int __system_property_set(const char *key, const char *value) argument 635 if (key == 0) return -1; 637 if (strlen(key) >= PROP_NAME_MAX) return -1; 643 strlcpy(msg.name, key, sizeof msg.name);
|
/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/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/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/benchmarks/ |
H A D | pthread_benchmark.cpp | 37 pthread_key_t key; local 38 pthread_key_create(&key, NULL); 42 pthread_getspecific(key); 46 pthread_key_delete(key);
|
/bionic/libc/kernel/uapi/asm-generic/ |
H A D | ipcbuf.h | 22 __kernel_key_t key; member in struct:ipc64_perm
|
/bionic/libc/include/ |
H A D | search.h | 24 char* key; member in struct:node
|
H A D | stdlib.h | 93 extern void * bsearch(const void *key, const void *base0,
|
/bionic/libc/include/sys/ |
H A D | system_properties.h | 51 int __system_property_set(const char *key, const char *value);
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | nf_conntrack_tuple_common.h | 50 __be16 key; member in struct:nf_conntrack_man_proto::__anon507
|
/bionic/libc/kernel/uapi/linux/ |
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 | ipc.h | 26 __kernel_key_t key; member in struct:ipc_perm
|
H A D | bcache.h | 50 #define BKEY_PADDED(key) union { struct bkey key; __u64 key ## _pad[BKEY_PAD]; }
|
H A D | edd.h | 69 __u16 key; member in struct:edd_device_params
|
H A D | soundcard.h | 179 unsigned short key; member in struct:patch_info 236 short key; member in struct:sysex_info 325 unsigned short key; member in struct:sbi_instrument 835 #define SEQ_ECHO_BACK(key) _TIMER_EVENT(TMR_ECHO, key)
|
/bionic/tests/ |
H A D | pthread_test.cpp | 34 pthread_key_t key; local 35 ASSERT_EQ(0, pthread_key_create(&key, NULL)); 36 ASSERT_EQ(0, pthread_key_delete(key)); 37 // Can't delete a key that's already been deleted. 38 ASSERT_EQ(EINVAL, pthread_key_delete(key)); 55 pthread_key_t key; local 57 ASSERT_EQ(0, pthread_key_create(&key, NULL)) << i << " of " << sysconf_max; 58 keys.push_back(key); 62 pthread_key_t key; local 63 ASSERT_EQ(EAGAIN, pthread_key_create(&key, NUL 76 pthread_key_t key; local 89 pthread_key_t key; local 111 DirtyKeyFn(void* key) argument 116 pthread_key_t key; local [all...] |
/bionic/libc/dns/resolv/ |
H A D | res_cache.c | 1127 * data in the query (key) */ 1137 /* initialize an Entry as a search key, this also checks the input query packet 1267 /* Return 0 if no pending request is found matching the key. 1271 _cache_check_pending_request_locked( struct resolv_cache** cache, Entry* key, unsigned netid ) argument 1276 if (*cache && key) { 1280 if (ri->hash == key->hash) { 1291 ri->hash = key->hash; 1309 * matching the key has been added to the cache */ 1311 _cache_notify_waiting_tid_locked( struct resolv_cache* cache, Entry* key ) 1315 if (cache && key) { 1342 Entry key[1]; local 1613 Entry key[1]; local 1702 Entry key[1]; local [all...] |
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));
|
/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
|