Lines Matching defs:magic
79 #define TDB_DEAD(r) ((r)->magic == TDB_DEAD_MAGIC)
80 #define TDB_BAD_MAGIC(r) ((r)->magic != TDB_MAGIC && !TDB_DEAD(r))
174 u32 magic; /* try to catch errors */
458 TDB_LOG((tdb, 0,"rec_read bad magic 0x%x at offset=%d\n", rec->magic, offset));
475 if (rec->magic == TDB_MAGIC) {
478 TDB_LOG((tdb, 0,"rec_free_read non-free magic at offset=%d - fixing\n",
479 rec->magic, off));
480 rec->magic = TDB_FREE_MAGIC;
485 if (rec->magic != TDB_FREE_MAGIC) {
488 TDB_LOG((tdb, 0,"rec_free_read bad magic 0x%x at offset=%d\n",
489 rec->magic, off));
519 printf(" rec: offset=%u next=%d rec_len=%d key_len=%d data_len=%d full_hash=0x%x magic=0x%x\n",
520 offset, rec.next, rec.rec_len, rec.key_len, rec.data_len, rec.full_hash, rec.magic);
592 if (rec.magic != TDB_FREE_MAGIC) {
593 printf("bad magic 0x%08x in free list\n", rec.magic);
656 if (r.magic == TDB_FREE_MAGIC) {
686 if (l.magic == TDB_FREE_MAGIC) {
704 rec->magic = TDB_FREE_MAGIC;
893 rec->magic = TDB_MAGIC;
960 /* Don't endian-convert the magic food! */
1190 rec->magic = TDB_DEAD_MAGIC;
1501 rec.magic = TDB_MAGIC;
1626 rec.magic = TDB_MAGIC;