Lines Matching defs:rec
46 DBT rec;
84 memset(&rec, 0, sizeof(rec));
86 F_SET(&rec, DB_DBT_MALLOC);
87 if ((ret = log_get(dblp, &stable_lsn, &rec, DB_LAST)) != 0)
90 __os_free(rec.data, rec.size);
186 DBT rec;
199 memset(&rec, 0, sizeof(rec));
201 F_SET(&rec, DB_DBT_MALLOC);
202 for (n = 0, ret = log_get(dblp, &lsn, &rec, DB_FIRST);
203 ret == 0; ret = log_get(dblp, &lsn, &rec, DB_NEXT)) {
204 if (rec.size < sizeof(rectype)) {
210 memcpy(&rectype, rec.data, sizeof(rectype));
213 __os_free(rec.data, rec.size);
214 rec.data = NULL;
218 if ((ret = __log_register_read(rec.data, &argp)) != 0) {
233 lg_free: if (F_ISSET(&rec, DB_DBT_MALLOC) && rec.data != NULL)
234 __os_free(rec.data, rec.size);
242 __os_free(rec.data, rec.size);
243 rec.data = NULL;