/bionic/libc/bionic/ |
D | pthread_key.cpp | 66 static inline bool KeyInValidRange(pthread_key_t key) { in KeyInValidRange() argument 69 return (key < (KEY_VALID_FLAG | BIONIC_PTHREAD_KEY_COUNT)); in KeyInValidRange() 124 int pthread_key_create(pthread_key_t* key, void (*key_destructor)(void*)) { in pthread_key_create() argument 130 *key = i | KEY_VALID_FLAG; in pthread_key_create() 143 int pthread_key_delete(pthread_key_t key) { in pthread_key_delete() argument 144 if (__predict_false(!KeyInValidRange(key))) { in pthread_key_delete() 147 key &= ~KEY_VALID_FLAG; in pthread_key_delete() 149 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_key_delete() 151 if (atomic_compare_exchange_strong(&key_map[key].seq, &seq, seq + SEQ_INCREMENT_STEP)) { in pthread_key_delete() 159 void* pthread_getspecific(pthread_key_t key) { in pthread_getspecific() argument [all …]
|
D | system_property_set.cpp | 254 int __system_property_set(const char* key, const char* value) { in __system_property_set() argument 255 if (key == nullptr) return -1; in __system_property_set() 264 if (strlen(key) >= PROP_NAME_MAX) return -1; in __system_property_set() 270 strlcpy(msg.name, key, sizeof msg.name); in __system_property_set() 276 if (strlen(value) >= PROP_VALUE_MAX && strncmp(key, "ro.", 3) != 0) return -1; in __system_property_set() 283 "Unable to set property \"%s\" to \"%s\": connection failed; errno=%d (%s)", key, value, in __system_property_set() 289 if (!writer.WriteUint32(PROP_MSG_SETPROP2).WriteString(key).WriteString(value).Send()) { in __system_property_set() 293 key, value, errno, strerror(errno)); in __system_property_set() 302 key, value, errno, strerror(errno)); in __system_property_set() 308 "Unable to set property \"%s\" to \"%s\": error code: 0x%x", key, value, in __system_property_set()
|
D | sys_shm.cpp | 68 int shmget(key_t key, size_t size, int flags) { in shmget() argument 70 return syscall(SYS_shmget, key, size, flags); in shmget() 72 return syscall(SYS_ipc, SHMGET, key, size, flags, 0, 0); in shmget()
|
D | tdestroy.cpp | 21 char* key; member 39 (*destroy_func)(root_node->key); in tdestroy()
|
D | sys_msg.cpp | 47 int msgget(key_t key, int flags) { in msgget() argument 49 return syscall(SYS_msgget, key, flags); in msgget() 51 return syscall(SYS_ipc, MSGGET, key, flags, 0, 0, 0); in msgget()
|
D | sys_sem.cpp | 52 int semget(key_t key, int n, int flags) { in semget() argument 54 return syscall(SYS_semget, key, n, flags); in semget() 56 return syscall(SYS_ipc, SEMGET, key, n, flags, 0, 0); in semget()
|
/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 | 17 char *key; member 26 char *key = (char *)vkey; in tfind() local 33 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tfind()
|
D | tsearch.c | 18 char *key; member 28 char *key = (char *)vkey; in tsearch() local 36 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tsearch() 45 q->key = key; /* initialize new node */ in tsearch() 57 char *key = (char *)vkey; in tdelete() local 65 while ((cmp = (*compar)(key, (*rootp)->key)) != 0) { in tdelete()
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 33 pthread_key_t key; in BM_pthread_getspecific() local 34 pthread_key_create(&key, nullptr); in BM_pthread_getspecific() 37 pthread_getspecific(key); in BM_pthread_getspecific() 40 pthread_key_delete(key); in BM_pthread_getspecific() 45 pthread_key_t key; in BM_pthread_setspecific() local 46 pthread_key_create(&key, nullptr); in BM_pthread_setspecific() 49 pthread_setspecific(key, nullptr); in BM_pthread_setspecific() 52 pthread_key_delete(key); in BM_pthread_setspecific() 217 pthread_key_t key; in BM_pthread_key_create() local 218 pthread_key_create(&key, nullptr); in BM_pthread_key_create() [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | hsearch_r.c | 50 if (entry->key == NULL) in hsearch_lookup_free() 83 hash = hsearch_hash(hsearch->offset_basis, item.key); in hsearch_r() 91 if (entry->key == NULL) in hsearch_r() 93 if (strcmp(entry->key, item.key) == 0) { in hsearch_r() 126 if (entry->key != NULL) { in hsearch_r() 128 entry->key); in hsearch_r()
|
/bionic/libc/kernel/uapi/rdma/ |
D | cxgb3-abi.h | 27 __aligned_u64 key; member 32 __aligned_u64 key; member 39 __aligned_u64 key; member
|
/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/tests/ |
D | search_test.cpp | 214 ASSERT_STREQ(expected_key, reinterpret_cast<char*>(e->key)); in AssertEntry() 223 e = hsearch(ENTRY{.key = const_cast<char*>("a"), .data = const_cast<char*>("A")}, ENTER); in TEST() 225 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = const_cast<char*>("B")}, ENTER); in TEST() 227 e = hsearch(ENTRY{.key = const_cast<char*>("aaa"), .data = const_cast<char*>("C")}, ENTER); in TEST() 231 e = hsearch(ENTRY{.key = const_cast<char*>("aaaa"), .data = nullptr}, FIND); in TEST() 235 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = nullptr}, FIND); in TEST() 239 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = const_cast<char*>("X")}, ENTER); in TEST() 244 e = hsearch(ENTRY{.key = const_cast<char*>("aa"), .data = nullptr}, FIND); in TEST() 247 e = hsearch(ENTRY{.key = const_cast<char*>("a"), .data = nullptr}, FIND); in TEST() 249 e = hsearch(ENTRY{.key = const_cast<char*>("aaa"), .data = nullptr}, FIND); in TEST() [all …]
|
D | sys_shm_test.cpp | 42 key_t key = ftok(dir.path, 1); in TEST() local 43 int id = shmget(key, 1234, IPC_CREAT|0666); in TEST()
|
D | sys_msg_test.cpp | 43 key_t key = ftok(dir.path, 1); in TEST() local 44 int id = msgget(key, IPC_CREAT|0666); in TEST()
|
/bionic/libc/kernel/uapi/linux/ |
D | agpgart.h | 70 int key; member 76 int key; member 80 int key; member
|
D | sed-opal.h | 49 __u8 key[OPAL_KEY_MAX]; member 52 struct opal_key key; member 80 struct opal_key key; member
|
D | pr.h | 31 __u64 key; member 48 __u64 key; member
|
D | tls.h | 45 unsigned char key[TLS_CIPHER_AES_GCM_128_KEY_SIZE]; member
|
/bionic/libc/malloc_debug/ |
D | PointerData.h | 70 std::size_t operator()(const FrameKeyType& key) const { 71 std::size_t cur_hash = key.frames[0]; 73 size_t max_frames = (key.num_frames > 5) ? 5 : key.num_frames; 75 cur_hash ^= key.frames[i];
|
/bionic/libc/include/sys/ |
D | ipc.h | 41 #define __key key
|
/bionic/libc/arch-arm/bionic/ |
D | exidx_static.c | 39 uint32_t key; member
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | ipcbuf.h | 22 __kernel_key_t key; member
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | nf_conntrack_tuple_common.h | 47 __be16 key; member
|