Lines Matching refs:last_ptr
2291 tdb_off_t last_ptr, i;
2294 last_ptr = FREELIST_TOP;
2295 while (tdb_ofs_read(tdb, last_ptr, &i) != -1 && i != 0) {
2298 return tdb_ofs_write(tdb, last_ptr, &next);
2301 last_ptr = i;
2425 struct list_struct *rec, tdb_off_t last_ptr)
2448 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1) {
2487 tdb_off_t rec_ptr, last_ptr, newrec_ptr;
2489 tdb_off_t rec_ptr, last_ptr;
2500 last_ptr = FREELIST_TOP;
2507 bestfit.last_ptr = 0;
2525 bestfit.last_ptr = last_ptr;
2536 last_ptr = rec_ptr;
2545 newrec_ptr = tdb_allocate_ofs(tdb, length, bestfit.rec_ptr, rec, bestfit.last_ptr);
2583 tdb_off_t rec_ptr, last_ptr;
2599 last_ptr = FREELIST_TOP;
2602 if (seen_insert(mem_tdb, last_ptr) == -1) {
2628 last_ptr = rec_ptr;
3271 tdb_off_t last_ptr, i;
3287 for (last_ptr = 0; i != rec_ptr; last_ptr = i, i = lastrec.next)
3292 if (last_ptr == 0)
3293 last_ptr = TDB_HASH_TOP(rec->full_hash);
3294 if (tdb_ofs_write(tdb, last_ptr, &rec->next) == -1)