Lines Matching refs:data
161 DBT key, data;
193 memset(&data, 0, sizeof(DBT));
194 F_SET(&data, DB_DBT_MALLOC);
195 key.data = &pgno;
199 vdp->thread_info, NULL, &key, &data, 0)) == 0) {
201 DB_ASSERT(env, data.size == sizeof(VRFY_PAGEINFO));
202 pip = data.data;
233 DBT key, data;
242 memset(&data, 0, sizeof(DBT));
244 key.data = &pip->pgno;
246 data.data = pip;
247 data.size = sizeof(VRFY_PAGEINFO);
250 vdp->thread_info, NULL, &key, &data, 0)) != 0)
315 DBT key, data;
319 memset(&data, 0, sizeof(DBT));
321 key.data = &pgno;
323 data.data = &val;
324 data.ulen = sizeof(int);
325 F_SET(&data, DB_DBT_USERMEM);
327 if ((ret = __db_get(dbp, ip, NULL, &key, &data, 0)) == 0) {
328 DB_ASSERT(dbp->env, data.size == sizeof(int));
350 DBT key, data;
355 memset(&data, 0, sizeof(DBT));
359 key.data = &pgno;
361 data.data = &val;
362 data.ulen = sizeof(int);
363 F_SET(&data, DB_DBT_USERMEM);
365 if ((ret = __db_get(dbp, ip, NULL, &key, &data, 0)) == 0) {
366 DB_ASSERT(dbp->env, data.size == sizeof(int));
370 data.size = sizeof(int);
373 return (__db_put(dbp, ip, NULL, &key, &data, 0));
388 DBT key, data;
393 memset(&data, 0, sizeof(DBT));
394 /* We don't care about the data, just the keys. */
395 F_SET(&data, DB_DBT_USERMEM | DB_DBT_PARTIAL);
397 key.data = &pgno;
400 if ((ret = __dbc_get(dbc, &key, &data, DB_NEXT)) != 0)
448 DBT key, data;
454 memset(&data, 0, sizeof(DBT));
456 key.data = &pgno;
496 data.data = cip;
497 data.size = sizeof(VRFY_CHILDINFO);
499 return (__db_put(cdbp, vdp->thread_info, NULL, &key, &data, 0));
513 DBT key, data;
516 memset(&data, 0, sizeof(DBT));
519 data.data = cip;
520 data.size = sizeof(VRFY_CHILDINFO);
522 return (__dbc_put(dbc, &key, &data, DB_CURRENT));
538 DBT key, data;
542 memset(&data, 0, sizeof(DBT));
544 key.data = &pgno;
547 if ((ret = __dbc_get(dbc, &key, &data, DB_SET)) != 0)
550 DB_ASSERT(dbc->env, data.size == sizeof(VRFY_CHILDINFO));
551 *cipp = (VRFY_CHILDINFO *)data.data;
569 DBT key, data;
573 memset(&data, 0, sizeof(DBT));
575 if ((ret = __dbc_get(dbc, &key, &data, DB_NEXT_DUP)) != 0)
578 DB_ASSERT(dbc->env, data.size == sizeof(VRFY_CHILDINFO));
579 *cipp = (VRFY_CHILDINFO *)data.data;
690 DBT key, data;
697 memset(&data, 0, sizeof(DBT));
703 while ((ret = __dbc_get(*dbcp, &key, &data, DB_NEXT)) == 0) {
704 DB_ASSERT(dbp->env, data.size == sizeof(u_int32_t));
705 memcpy(&pgtype, data.data, sizeof(pgtype));
714 DB_ASSERT(dbp->env, data.size == sizeof(u_int32_t));
716 *pgnop = *(db_pgno_t *)key.data;
717 *pgtypep = *(u_int32_t *)data.data;
741 DBT key, data;
748 memset(&data, 0, sizeof(DBT));
751 data.data = &currtype;
752 data.ulen = sizeof(u_int32_t);
753 data.flags = DB_DBT_USERMEM;
755 key.data = &pgno;
759 * Put an entry for this page, with pgno as key and type as data,
765 vdp->thread_info, NULL, &key, &data, 0)) == 0) {
794 DBT key, data;
802 memset(&data, 0, sizeof(DBT));
805 data.data = &currtype;
806 data.ulen = sizeof(u_int32_t);
807 data.flags = DB_DBT_USERMEM;
809 key.data = &pgno;
813 * Put an entry for this page, with pgno as key and type as data,
828 data.size = sizeof(u_int32_t);
829 data.data = &pgtype;
831 return (__db_put(dbp, vdp->thread_info, NULL, &key, &data, 0));
849 DBT key, data;
855 memset(&data, 0, sizeof(DBT));
857 key.data = &pgno;
860 data.data = &pgtype;
861 data.size = sizeof(u_int32_t);
864 * Put an entry for this page, with pgno as key and type as data,
869 vdp->thread_info, NULL, &key, &data, DB_NOOVERWRITE);
875 * Print out a DBT data element from a verification routine.
893 * "fake" subdatabase used for key/data pairs we can't