260N/A * See the file LICENSE for redistribution information. 260N/A * Copyright (c) 1996, 1997, 1998 260N/A * Sleepycat Software. All rights reserved. 260N/A * PUBLIC: int __bam_stat __P((DB *, void *, void *(*)(size_t), u_int32_t)); 260N/A /* Check for invalid flags. */ 260N/A /* Allocate and clear the structure. */ 260N/A /* If the app just wants the record count, make it fast. */ 260N/A /* Get the meta-data page. */ 260N/A /* Translate the metadata flags. */ 260N/A /* Get the remaining metadata fields. */ 260N/A /* Get the page size from the DB. */ 260N/A /* Walk the free list, counting pages. */ 260N/A /* Discard the meta-data page. */ 260N/A /* Determine the last page of the database. */ 260N/A /* Get the root page. */ 260N/A /* Get the levels from the root page. */ 260N/A /* Walk the page list, counting things. */ 260N/A /* XXX MARGO: sp->bt_dup_pgfree; */ 260N/A /* XXX MARGO: sp->bt_over_pgfree; */