Home
last modified time | relevance | path

Searched refs:pCur (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dbtree_rb.c135 RbtCursor* pCur,
141 static int memRbtreeNext(RbtCursor* pCur, int *pRes);
142 static int memRbtreeLast(RbtCursor* pCur, int *pRes);
143 static int memRbtreePrevious(RbtCursor* pCur, int *pRes);
160 static int checkReadLocks(RbtCursor *pCur){ in checkReadLocks() argument
162 assert( pCur->wrFlag ); in checkReadLocks()
163 for(p=pCur->pTree->pCursors; p; p=p->pShared){ in checkReadLocks()
164 if( p!=pCur ){ in checkReadLocks()
690 static int memRbtreeKeyCompare(RbtCursor* pCur, const void *pKey, int nKey, in memRbtreeKeyCompare() argument
693 assert(pCur); in memRbtreeKeyCompare()
[all …]
H A Dbtree.h101 #define btCOps(pCur) (*((BtCursorOps **)(pCur))) argument
121 #define sqliteBtreeMoveto(pCur, pKey, nKey, pRes)\ argument
122 (btCOps(pCur)->Moveto(pCur, pKey, nKey, pRes))
123 #define sqliteBtreeDelete(pCur) (btCOps(pCur)->Delete(pCur)) argument
124 #define sqliteBtreeInsert(pCur, pKey, nKey, pData, nData) \ argument
125 (btCOps(pCur)->Insert(pCur, pKey, nKey, pData, nData))
126 #define sqliteBtreeFirst(pCur, pRes) (btCOps(pCur)->First(pCur, pRes)) argument
127 #define sqliteBtreeLast(pCur, pRes) (btCOps(pCur)->Last(pCur, pRes)) argument
128 #define sqliteBtreeNext(pCur, pRes) (btCOps(pCur)->Next(pCur, pRes)) argument
129 #define sqliteBtreePrevious(pCur, pRes) (btCOps(pCur)->Previous(pCur, pRes)) argument
[all …]
H A Dbtree.c390 static int fileBtreeCloseCursor(BtCursor *pCur);
929 BtCursor *pCur; in fileBtreeRollback() local
934 for(pCur=pBt->pCursor; pCur; pCur=pCur->pNext){ in fileBtreeRollback()
935 if( pCur->pPage && pCur->pPage->isInit==0 ){ in fileBtreeRollback()
936 sqlitepager_unref(pCur->pPage); in fileBtreeRollback()
937 pCur->pPage = 0; in fileBtreeRollback()
990 BtCursor *pCur; in fileBtreeRollbackCkpt() local
993 for(pCur=pBt->pCursor; pCur; pCur=pCur->pNext){ in fileBtreeRollbackCkpt()
994 if( pCur->pPage && pCur->pPage->isInit==0 ){ in fileBtreeRollbackCkpt()
995 sqlitepager_unref(pCur->pPage); in fileBtreeRollbackCkpt()
[all …]
H A Dtest3.c517 BtCursor *pCur; in btree_cursor() local
530 rc = sqliteBtreeCursor(pBt, iTable, wrFlag, &pCur); in btree_cursor()
535 sprintf(zBuf,"0x%x", (int)pCur); in btree_cursor()
551 BtCursor *pCur; in btree_close_cursor() local
559 if( Tcl_GetInt(interp, argv[1], (int*)&pCur) ) return TCL_ERROR; in btree_close_cursor()
560 rc = sqliteBtreeCloseCursor(pCur); in btree_close_cursor()
579 BtCursor *pCur; in btree_move_to() local
589 if( Tcl_GetInt(interp, argv[1], (int*)&pCur) ) return TCL_ERROR; in btree_move_to()
590 rc = sqliteBtreeMoveto(pCur, argv[2], strlen(argv[2]), &res); in btree_move_to()
613 BtCursor *pCur; in btree_delete() local
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dapiutil.c357 Session_Struct_t *pCur; in AddToSessionList() local
361 pCur = Anchor->SessListBeg; in AddToSessionList()
363 if (! pCur) { in AddToSessionList()
369 while (pCur->Next != NULL) { in AddToSessionList()
370 pCur = pCur->Next; in AddToSessionList()
372 pCur->Next = pSess; in AddToSessionList()
373 pSess->Previous = pCur; in AddToSessionList()
383 Session_Struct_t *pCur, *pTmp; in RemoveFromSessionList() local
387 pCur = Anchor->SessListBeg; in RemoveFromSessionList()
394 if (pCur) { in RemoveFromSessionList()
[all …]
H A Dapi_interface.c395 Session_Struct_t *pCur, *pPrev; in C_CloseAllSessions() local
413 pCur = (Anchor ? Anchor->SessListBeg : NULL); in C_CloseAllSessions()
414 while (pCur) { in C_CloseAllSessions()
427 if (pCur->SltId == slotID) { in C_CloseAllSessions()
428 pPrev = pCur->Previous; in C_CloseAllSessions()
429 rv = C_CloseSession((CK_SESSION_HANDLE)pCur); in C_CloseAllSessions()
434 pCur = Anchor->SessListBeg; in C_CloseAllSessions()
436 pCur = pPrev->Next; in C_CloseAllSessions()
442 pCur = pCur->Next; in C_CloseAllSessions()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dmemcache.c371 ldapmemcacheld *pCur = NULL; in ldap_memcache_set() local
378 pCur = (c ? c->ldmemc_lds : NULL); in ldap_memcache_set()
379 for (; pCur; pCur = pCur->ldmemcl_next) { in ldap_memcache_set()
380 if (pCur->ldmemcl_ld == ld) in ldap_memcache_set()
382 pPrev = pCur; in ldap_memcache_set()
385 if (pCur) { in ldap_memcache_set()
394 pPrev->ldmemcl_next = pCur->ldmemcl_next; in ldap_memcache_set()
396 c->ldmemc_lds = pCur->ldmemcl_next; in ldap_memcache_set()
397 NSLDAPI_FREE(pCur); in ldap_memcache_set()
398 pCur = NULL; in ldap_memcache_set()
[all …]