windows-nt/Source/XPSP1/NT/net/jet500/jet/dae/inc/stint.h

43 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//============== 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[];