Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.3 KiB

//============== DAE: OS/2 Database Access Engine =====================
//============== stint.h: Storage System Internals =====================
#define cbStack 4096 // stack size for each thread
//---- PIB (pib.c) ----------------------------------------------------------
VOID InsProc( PIB *ppib );
VOID DelProc( PIB *ppib );
//---- BUF (buf.c) ----------------------------------------------------------
#define IpbfHashPgno(pn) (INT)( (pn + (pn>>18)) % ipbfMax )
#define PbfFromPPbfNext( ppbf ) \
((BF *)((BYTE *)(ppbf) - (UINT)(ULONG_PTR)&((BF *)0)->pbfNext))
ERR ErrBFInit( VOID );
VOID BFTermProc( VOID );
VOID BFReleaseBF( VOID );
ERR ErrBFWrite( BF *pbf, BOOL fSync );
ERR ErrBFIFindPage( PIB *ppib, PN pn, BF **ppbf );
VOID BFCheckRefCnt( VOID );
VOID DumpBufferGroup( BOOL fDumpFree, BOOL fDumpPage, BOOL fDumpLines );
VOID DumpBF( BF *pbf );
VOID DumpBufHashTable( VOID );
VOID DumpDatabaseBuffers( DBID dbid );
BF * PbfBFISrchHashTable( PN pn );
VOID BFIInsertHashTable( BF *pbf );
VOID BFIDeleteHashTable( BF *pbf );
//------ IO (io.c) ----------------------------------------------------------
ERR ErrIOInit( void );
ERR ErrIOTerm( void );
VOID IOAsync( IOQE *pioqe );
VOID IOWait( IOQE *pioqe );
VOID IOExecute( IOQE *pioqe );
extern PIB * __near ppibAnchor;
extern unsigned int __near rgPageWeight[];