Home
last modified time | relevance | path

Searched refs:key (Results 51 – 75 of 235) sorted by path

12345678910

/original-bsd/lib/libc/db/recno/
H A Drec_close.c86 DBT data, key; local
117 key.size = sizeof(recno_t);
118 key.data = &trec;
120 status = (dbp->seq)(dbp, &key, &data, R_FIRST);
126 status = (dbp->seq)(dbp, &key, &data, R_NEXT);
H A Drec_delete.c38 __rec_delete(dbp, key, flags) in __rec_delete() argument
40 const DBT *key;
57 if ((nrec = *(recno_t *)key->data) == 0)
H A Drec_get.c37 __rec_get(dbp, key, data, flags) in __rec_get() argument
39 const DBT *key;
57 if (flags || (nrec = *(recno_t *)key->data) == 0) {
H A Drec_put.c36 __rec_put(dbp, key, data, flags) in __rec_put() argument
38 DBT *key;
62 if ((nrec = *(recno_t *)key->data) == 0)
66 if ((nrec = *(recno_t *)key->data) == 0) {
73 if ((nrec = *(recno_t *)key->data) == 0)
77 if ((nrec = *(recno_t *)key->data) == 0)
122 return (__rec_ret(t, NULL, nrec, key, NULL));
H A Drec_seq.c35 __rec_seq(dbp, key, data, flags) in __rec_seq() argument
37 DBT *key, *data;
55 if ((nrec = *(recno_t *)key->data) == 0)
99 status = __rec_ret(t, e, nrec, key, data);
H A Drec_utils.c33 __rec_ret(t, e, nrec, key, data) in __rec_ret() argument
37 DBT *key, *data;
74 retkey: if (key == NULL)
85 key->size = sizeof(recno_t);
86 key->data = t->bt_kbuf;
/original-bsd/lib/libc/db/test/
H A DREADME18 associated with the specified key is compared to the specified
37 + set the current key value to the contents of the line.
38 K [file]: key file
39 + set the current key value to the contents of the file
41 + set the current key value to the contents of the line.
H A Ddbtest.c66 DBT data, key, keydata; local
175 seq(dbp, &key);
202 free(key.data);
212 key.data = rfile(p + 1, &key.size);
232 get(dbp, &key);
234 free(key.data);
241 rem(dbp, &key);
243 free(key.data);
247 seq(dbp, &key);
249 free(key.data);
[all …]
/original-bsd/lib/libc/db/test/btree.tests/
H A Dmain.c251 DBT key, data; local
281 DBT data, key; local
321 DBT key; local
356 DBT data, key; local
379 DBT data, key; local
421 DBT key, data; local
451 DBT key, data; local
482 DBT data, key; local
511 DBT data, key; local
539 DBT data, key; local
[all …]
/original-bsd/lib/libc/db/test/hash.tests/
H A Ddriver2.c29 int my_hash(key, len) in my_hash() argument
30 char *key; in my_hash()
40 DBT key, content; local
64 key.data = keybuf;
69 key.size = 128 + (random()&1023);
75 if ((db->put)(db, &key, &content, R_NOOVERWRITE)) {
H A Dtcreat3.c34 DBT item, key; local
56 key.data = wp1;
64 key.size = strlen(wp1);
70 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
H A Dtdel.c35 DBT item, key; local
58 key.data = wp1;
66 key.size = strlen(wp1);
72 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
85 key.size = strlen(wp1);
86 stat = (dbp->del)(dbp, &key, 0);
88 fprintf ( stderr, "Error retrieving %s\n", key.data );
H A Dthash4.c37 DBT item, key, res; local
61 key.data = wp1;
69 key.size = strlen(wp1);
75 if ((dbp->put)(dbp, &key, &item, R_NOOVERWRITE) != NULL) {
90 key.size = strlen(wp1);
91 stat = (dbp->get)(dbp, &key, &res, 0);
93 fprintf ( stderr, "Error retrieving %s\n", key.data );
97 fprintf ( stderr, "%s not found\n", key.data );
H A Dtread2.c38 DBT item, key, res; local
57 key.data = wp1;
65 key.size = strlen(wp1);
68 stat = (dbp->get)(dbp, &key, &res,0);
70 fprintf ( stderr, "Error retrieving %s\n", key.data );
73 fprintf ( stderr, "%s not found\n", key.data );
H A Dtseq.c35 DBT item, key, res; local
H A Dtverify.c38 DBT key, res; local
58 key.data = wp1;
65 key.size = strlen(wp1);
67 stat = (dbp->get)(dbp, &key, &res,0);
69 fprintf ( stderr, "Error retrieving %s\n", key.data );
72 fprintf ( stderr, "%s not found\n", key.data );
76 …fprintf ( stderr, "data for %s is incorrect. Data was %s. Should have been %s\n", key.data, res.…
/original-bsd/lib/libc/gen/
H A Dcrypt.c451 crypt(key, setting) in crypt() argument
452 register const char *key; in crypt()
464 key++;
476 while (*key) {
482 key++;
553 des_setkey(key) in des_setkey() argument
554 register const char *key; in des_setkey()
567 key = (char *)&KS[0];
570 key += sizeof(C_block);
873 setkey(key) in setkey() argument
[all …]
H A Ddevname.c33 DBT data, key; local
51 key.data = &bkey;
52 key.size = sizeof(bkey);
53 return ((db->get)(db, &key, &data, 0) ? NULL : (char *)data.data);
H A Dgetcap.c169 DBT key, data; local
518 DBT key, data; local
522 key.data = name;
523 key.size = strlen(name);
527 switch(capdbp->get(capdbp, &key, &data, 0)) {
538 key.data = (char *)data.data + 1;
539 key.size = data.size - 1;
H A Dgetpwent.c38 DBT key; in getpwent() local
47 key.data = (u_char *)bf; in getpwent()
56 DBT key; local
66 key.data = (u_char *)bf;
67 key.size = len + 1;
68 rval = __hashpw(&key);
81 DBT key; local
91 key.data = (u_char *)bf;
93 rval = __hashpw(&key);
145 __hashpw(key) in __hashpw() argument
[all …]
H A Dgetpwnamuid.c28 fetchpw(key) in fetchpw() argument
29 datum key; in fetchpw()
33 if (key.dptr == 0)
35 key = dbm_fetch(_pw_db, key);
36 if (key.dptr == 0)
38 cp = key.dptr;
61 datum key; local
79 key.dptr = nam;
81 pw = fetchpw(key);
94 datum key; local
[all …]
H A Dttyname.c31 DBT data, key; local
48 key.data = &bkey;
49 key.size = sizeof(bkey);
50 if (!(db->get)(db, &key, &data, 0)) {
/original-bsd/lib/libc/stdlib/
H A Dbsearch.c32 bsearch(key, base0, nmemb, size, compar) in bsearch() argument
33 register const void *key; in bsearch()
46 cmp = (*compar)(key, p);
/original-bsd/lib/libcompat/4.3/
H A Dlsearch.c21 lsearch(key, base, nelp, width, compar) in lsearch() argument
22 char *key, *base; in lsearch()
26 return(linear_base(key, base, nelp, width, compar, 1));
30 lfind(key, base, nelp, width, compar) in lfind() argument
31 char *key, *base; in lfind()
35 return(linear_base(key, base, nelp, width, compar, 0));
39 linear_base(key, base, nelp, width, compar, add_flag) in linear_base() argument
40 char *key, *base; in linear_base()
48 if (!compar(element, key)) /* key found */
64 bcopy(key, end, (int)width);
H A Druserpass.c267 char *str, *key; {
271 strcpy(oldbuf,key);
284 char *cpt,*key; {
288 strcpy(oldbuf,key);
303 char *str, *key; { in nbs8encrypt()
307 enblkclr(keyblk,key);
319 char *crp, *key; { in nbs8decrypt()
323 enblkclr(keyblk,key);
498 nbssetkey(key) in nbssetkey() argument
499 char *key; in nbssetkey()
[all …]

12345678910