Home
last modified time | relevance | path

Searched refs:pPager (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/lib/libsqlite/src/
H A Dpager.c43 #define TRACE1(X) if( pPager==mainPager ) fprintf(stderr,X)
44 #define TRACE2(X,Y) if( pPager==mainPager ) fprintf(stderr,X,Y)
45 #define TRACE3(X,Y,Z) if( pPager==mainPager ) fprintf(stderr,X,Y,Z)
110 Pager *pPager; /* The pager to which this page belongs */ member
381 static int pager_errcode(Pager *pPager){ in pager_errcode() argument
383 if( pPager->errMask & PAGER_ERR_LOCK ) rc = SQLITE_PROTOCOL; in pager_errcode()
384 if( pPager->errMask & PAGER_ERR_DISK ) rc = SQLITE_IOERR; in pager_errcode()
385 if( pPager->errMask & PAGER_ERR_FULL ) rc = SQLITE_FULL; in pager_errcode()
386 if( pPager->errMask & PAGER_ERR_MEM ) rc = SQLITE_NOMEM; in pager_errcode()
387 if( pPager->errMask & PAGER_ERR_CORRUPT ) rc = SQLITE_CORRUPT; in pager_errcode()
[all …]
H A Dtest2.c72 Pager *pPager; in pager_open() local
82 rc = sqlitepager_open(&pPager, argv[1], nPage, 0, 1); in pager_open()
87 sprintf(zBuf,"0x%x",(int)pPager); in pager_open()
103 Pager *pPager; in pager_close() local
110 if( Tcl_GetInt(interp, argv[1], (int*)&pPager) ) return TCL_ERROR; in pager_close()
111 rc = sqlitepager_close(pPager); in pager_close()
130 Pager *pPager; in pager_rollback() local
137 if( Tcl_GetInt(interp, argv[1], (int*)&pPager) ) return TCL_ERROR; in pager_rollback()
138 rc = sqlitepager_rollback(pPager); in pager_rollback()
157 Pager *pPager; in pager_commit() local
[all …]
H A Dpager.h80 int sqlitepager_close(Pager *pPager);
81 int sqlitepager_get(Pager *pPager, Pgno pgno, void **ppPage);
82 void *sqlitepager_lookup(Pager *pPager, Pgno pgno);
88 int sqlitepager_overwrite(Pager *pPager, Pgno pgno, void*);
H A Dbtree.c355 Pager *pPager; /* The page cache */ member
718 rc = sqlitepager_open(&pBt->pPager, zFilename, nCache, EXTRA_SIZE, in sqliteBtreeOpen()
721 if( pBt->pPager ) sqlitepager_close(pBt->pPager); in sqliteBtreeOpen()
726 sqlitepager_set_destructor(pBt->pPager, pageDestructor); in sqliteBtreeOpen()
729 pBt->readOnly = sqlitepager_isreadonly(pBt->pPager); in sqliteBtreeOpen()
742 sqlitepager_close(pBt->pPager); in fileBtreeClose()
763 sqlitepager_set_cachesize(pBt->pPager, mxPage); in fileBtreeSetCacheSize()
776 sqlitepager_set_safety_level(pBt->pPager, level); in fileBtreeSetSafetyLevel()
793 rc = sqlitepager_get(pBt->pPager, 1, (void**)&pBt->page1); in lockBtree()
799 if( sqlitepager_pagecount(pBt->pPager)>0 ){ in lockBtree()
[all …]