dbinternal.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tysizefreeword
struct  tyheader
struct  tytrailer
struct  availnodeshadow

Defines

#define dbinternalinclude
#define SMART_DB_OPENING   1
#define dbversionnumber   6
#define dbfirstversionwithcachedshadowavaillist   6
#define dbversionnumberminor   0
#define dbsystemidMac   0
#define dbsystemidWin32   1
#define minblocksize   32L
#define sizeheader   (long)sizeof(tyheader)
#define sizetrailer   (long)sizeof(tytrailer)
#define firstphysicaladdress   (long)sizeof(tydatabaserecord)
#define dbshadow

Typedefs

typedef long tyvariance
typedef tyheaderptrheader
typedef tyheader ** hdlheader
typedef tytrailerptrtrailer
typedef tytrailer ** hdltrailer
typedef availnodeshadow tyavailnodeshadow
typedef availnodeshadow ** hdlavaillistshadow

Enumerations

enum  tydbflagmask { dbdirtymask = 0x0001 }

Functions

boolean dbgeteof (long *)
boolean dbreadtrailer (dbaddress, boolean *, long *)
boolean dbreadheader (dbaddress, boolean *, long *, tyvariance *)
boolean dbreadavailnode (dbaddress, boolean *, long *, dbaddress *)


Define Documentation

#define dbfirstversionwithcachedshadowavaillist   6
 

Definition at line 41 of file dbinternal.h.

#define dbinternalinclude
 

Definition at line 28 of file dbinternal.h.

#define dbshadow
 

Definition at line 91 of file dbinternal.h.

#define dbsystemidMac   0
 

Definition at line 49 of file dbinternal.h.

Referenced by dbnew().

#define dbsystemidWin32   1
 

Definition at line 51 of file dbinternal.h.

Referenced by dbnew().

#define dbversionnumber   6
 

Definition at line 40 of file dbinternal.h.

Referenced by dbnew().

#define dbversionnumberminor   0
 

Definition at line 46 of file dbinternal.h.

Referenced by dbnew().

#define firstphysicaladdress   (long)sizeof(tydatabaserecord)
 

Definition at line 57 of file dbinternal.h.

Referenced by dbmergeleft(), dbmergeright(), dbnew(), and statscompute().

#define minblocksize   32L
 

Definition at line 54 of file dbinternal.h.

Referenced by dballocate(), dbmergeleft(), and dbmergeright().

#define sizeheader   (long)sizeof(tyheader)
 

Definition at line 55 of file dbinternal.h.

Referenced by dballocate(), dbmergeleft(), dbmergeright(), dbmove(), dbreadavailnode(), dbreadheader(), dbreference(), dbrefhandle(), dbrelease(), dbsetavaillink(), dbwriteavailnode(), dbwritedatablock(), dbwriteheader(), dbwriteheaderandtrailer(), and statscompute().

#define sizetrailer   (long)sizeof(tytrailer)
 

Definition at line 56 of file dbinternal.h.

Referenced by dballocate(), dbreadtrailer(), dbwritetrailer(), and statscompute().

#define SMART_DB_OPENING   1
 

Definition at line 31 of file dbinternal.h.


Typedef Documentation

typedef struct availnodeshadow ** hdlavaillistshadow
 

typedef struct tyheader ** hdlheader
 

typedef struct tytrailer ** hdltrailer
 

typedef struct tyheader * ptrheader
 

typedef struct tytrailer * ptrtrailer
 

typedef struct availnodeshadow tyavailnodeshadow
 

typedef long tyvariance
 

Definition at line 65 of file dbinternal.h.


Enumeration Type Documentation

enum tydbflagmask
 

Enumerator:
dbdirtymask 

Definition at line 60 of file dbinternal.h.


Function Documentation

boolean dbgeteof long  ) 
 

Definition at line 362 of file db.c.

References filegeteof().

Referenced by dbmergeleft(), dbmergeright(), dbreadshadowavaillist(), dbrelease(), dbshadowavaillist(), dbwriteshadowavaillist(), and statscompute().

Here is the call graph for this function:

boolean dbreadavailnode dbaddress  ,
boolean ,
long ,
dbaddress
 

Definition at line 524 of file db.c.

References dbreadheader(), dbreadswap(), and sizeheader.

Referenced by dbmergeleft(), dbmergeright(), dbshadowavaillist(), dbwriteshadowavaillist(), and statscompute().

Here is the call graph for this function:

boolean dbreadheader dbaddress  ,
boolean ,
long ,
tyvariance
 

Definition at line 445 of file db.c.

References dbread(), tysizefreeword::size, tyheader::sizefreeword, sizeheader, and tyheader::variance.

Referenced by dbassign(), dbgetsizeandvariance(), dbmergeleft(), dbreadavailnode(), dbreference(), dbrefhandle(), dbrelease(), dbwriteshadowavaillist(), statsblockinuse(), statscompute(), and statscountreleasestack().

Here is the call graph for this function:

boolean dbreadtrailer dbaddress  ,
boolean ,
long
 

Definition at line 465 of file db.c.

References dbread(), tysizefreeword::size, tytrailer::sizefreeword, and sizetrailer.

Referenced by dbmergeleft(), dbmergeright(), dbrelease(), and statscompute().

Here is the call graph for this function:


Generated on Thu Jun 1 05:10:51 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6