Home
last modified time | relevance | path

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

/picolibc-latest/newlib/libc/search/
Dhash_func.c68 const u_char *key;
72 for (key = keyarg, h = 0; len--;)
73 h = h * PRIME1 ^ (*key++ - ' ');
90 const u_char *e, *key;
94 key = keyarg;
95 e = key + len;
96 for (h = 0; key != e;) {
97 c = *key++;
98 if (!c && key > e)
121 const u_char *key;
[all …]
Dndbm.c95 dbm_fetch(DBM *db, datum key) in dbm_fetch() argument
101 dbtkey.data = key.dptr; in dbm_fetch()
102 dbtkey.size = key.dsize; in dbm_fetch()
159 dbm_delete(DBM *db, datum key) in dbm_delete() argument
164 dbtkey.data = key.dptr; in dbm_delete()
165 dbtkey.size = key.dsize; in dbm_delete()
180 dbm_store(DBM *db, datum key, datum data, int flags) in dbm_store() argument
184 dbtkey.data = key.dptr; in dbm_store()
185 dbtkey.size = key.dsize; in dbm_store()
Dhcreate_r.c143 free(ie->ent.key); in hdestroy_r()
160 len = strlen(item.key); in hsearch_r()
161 hashval = __default_hash(item.key, len); in hsearch_r()
166 if (strcmp(ie->ent.key, item.key) == 0) in hsearch_r()
188 ie->ent.key = item.key; in hsearch_r()
Dhash_page.c89 putpair(char *p, const DBT *key, const DBT *val) in putpair() argument
98 off = OFFSET(bp) - key->size; in putpair()
99 memmove(p + off, key->data, key->size); in putpair()
178 DBT key, val; in __split_page() local
209 key.data = (u_char *)op + ino[n]; in __split_page()
210 key.size = off - ino[n]; in __split_page()
212 if (__call_hash(hashp, key.data, key.size) == obucket) { in __split_page()
228 putpair(np, &key, &val); in __split_page()
280 DBT key, val; in ugly_split() local
340 key.data = (u_char *)cino + ino[n]; in ugly_split()
[all …]
Dbsearch.c87 bsearch (const void *key, in bsearch() argument
107 result = compar (key, current); in bsearch()
Dtsearch.c67 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */ in tsearch()
79 q->key = (void *)vkey; /* initialize new node */ in tsearch()
Dhash_bigkey.c88 const DBT *key, in __big_insert() argument
100 key_data = (char *)key->data; in __big_insert()
101 key_size = key->size; in __big_insert()
268 char *key, in __find_bigpair() argument
280 kkey = key; in __find_bigpair()
506 DBT *key, in __big_keydata() argument
510 key->size = collect_key(hashp, bufp, 0, val, set); in __big_keydata()
511 if (key->size == (size_t) -1) in __big_keydata()
513 key->data = (u_char *)hashp->tmp_key; in __big_keydata()
578 DBT key, val; in __big_split() local
[all …]
Dhash.c558 const DBT *key, argument
569 return (hash_access(hashp, HASH_GET, (DBT *)key, data));
574 DBT *key, argument
591 HASH_PUTNEW : HASH_PUT, (DBT *)key, (DBT *)data));
596 const DBT *key, argument
610 return (hash_access(hashp, HASH_DELETE, (DBT *)key, NULL));
619 DBT *key, argument
634 size = key->size;
635 kp = (char *)key->data;
698 if (__addel(hashp, rbufp, key, val)) {
[all …]
Dtfind.c66 if ((r = (*compar)(vkey, (*rootp)->key)) == 0) /* T2: */ in tfind()
Dtdestroy.c63 (*free_action) ((void *) root->key); in trecurse()
Dtdelete.c66 while ((cmp = (*compar)(vkey, (*rootp)->key)) != 0) { in tdelete()
/picolibc-latest/newlib/testsuite/newlib.search/
Dhsearchtest.c69 e.key = strdup(ch); /* ptr to provided key is kept! */ in main()
70 TEST(e.key != NULL); in main()
74 TEST(strcmp(ep->key, ch) == 0); in main()
79 e.key = ch; in main()
86 TEST(strcmp(ep->key, ch) == 0); in main()
95 TEST(strcmp(ep->key, ch) == 0); in main()
109 TEST(strcmp(ep->key, "a") == 0 && (uintptr_t)ep->data == 0); in main()
111 TEST(strcmp(ep2->key, "b") == 0 && (uintptr_t)ep2->data == 1); in main()
/picolibc-latest/newlib/libc/include/
Dsearch.h45 char *key; member
62 char *key; member
/picolibc-latest/.github/workflows/
Dsteps-head11key: ${{ env.IMAGE_FILE }}-${{ hashFiles( env.DOCKERFILE, env.PACKAGES_FILE, env.EXTRA_FILE ) }}
35key: compilation-${{ runner.os }}-${{ github.job }}-${{ matrix.meson_flags }}-${{ env.CCACHE_SIZE …
Dhead41key: ${{ env.IMAGE_FILE }}-${{ hashFiles( env.DOCKERFILE, env.PACKAGES_FILE, env.EXTRA_FILE ) }}
Dhead-zephyr42key: ${{ env.IMAGE_FILE }}-${{ hashFiles( env.DOCKERFILE, env.PACKAGES_FILE, env.EXTRA_FILE ) }}
/picolibc-latest/.github/
DDockerfile10 …wget -O /etc/apt/trusted.gpg.d/altusmetrum.gpg https://maps.altusmetrum.org/archive/archive-key.gp…
/picolibc-latest/newlib/doc/
Dmakedocbook.py269 refentry[:] = sorted(refentry, key=lambda x: x.tag if isinstance(x.tag, str) else '')
285 refnamediv[:] = sorted(refnamediv, key=lambda x: x.tag)
/picolibc-latest/newlib/
DChangeLog-20158625 * libc/sys/linux/net/key-lookup.c: Ditto.
23065 comparison which accesses invalid memory when the key is
24607 * libc/sys/win32/key.c: include "include/wincon.h".
24611 * libc/sys/win32/{key, stubs}.c: New.
26333 (_start): key off edata rather than _start_bss.