Lines Matching refs:ofst

42790   int ofst,              /* First byte of the locking range */
42802 assert( (ofst==UNIX_SHM_DMS && n==1)
42803 || (ofst>=UNIX_SHM_BASE && ofst+n<=(UNIX_SHM_BASE+SQLITE_SHM_NLOCK))
42805 if( ofst==UNIX_SHM_DMS ){
42811 for(ii=ofst-UNIX_SHM_BASE; ii<ofst-UNIX_SHM_BASE+n; ii++){
42825 assert( ofst>=UNIX_SHM_BASE && ofst<=(UNIX_SHM_DMS+SQLITE_SHM_NLOCK) );
42832 f.l_start = ofst;
42849 OSTRACE(("unlock %d..%d ok\n", ofst, ofst+n-1));
42851 OSTRACE(("read-lock %d..%d ok\n", ofst, ofst+n-1));
42854 OSTRACE(("write-lock %d..%d ok\n", ofst, ofst+n-1));
42858 OSTRACE(("unlock %d..%d failed\n", ofst, ofst+n-1));
42860 OSTRACE(("read-lock %d..%d failed\n", ofst, ofst+n-1));
42863 OSTRACE(("write-lock %d..%d failed\n", ofst, ofst+n-1));
43369 int ofst, /* First lock to acquire or release */
43377 u16 mask = (1<<(ofst+n)) - (1<<ofst); /* Mask of locks to take or release */
43388 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
43415 (ofst!=2) /* not RECOVER */
43416 && (ofst!=1 || lockMask==0 || lockMask==2)
43417 && (ofst!=0 || lockMask<3)
43418 && (ofst<3 || lockMask<(1<<ofst))
43457 for(iMutex=ofst; iMutex<ofst+n; iMutex++){
43483 assert( aLock[ofst]>=1 );
43484 if( aLock[ofst]>1 ){
43486 aLock[ofst]--;
43492 rc = unixShmSystemLock(pDbFd, F_UNLCK, ofst+UNIX_SHM_BASE, n);
43494 memset(&aLock[ofst], 0, sizeof(int)*n);
43502 if( aLock[ofst]<0 ){
43505 }else if( aLock[ofst]==0 ){
43506 rc = unixShmSystemLock(pDbFd, F_RDLCK, ofst+UNIX_SHM_BASE, n);
43512 aLock[ofst]++;
43524 for(ii=ofst; ii<ofst+n; ii++){
43534 rc = unixShmSystemLock(pDbFd, F_WRLCK, ofst+UNIX_SHM_BASE, n);
43537 for(ii=ofst; ii<ofst+n; ii++){
43549 for(iMutex--; iMutex>=ofst; iMutex--){
50447 int ofst, /* Offset to first byte to be locked/unlocked */
50456 pFile->hFile.h, lockType, ofst, nByte));
50460 rc = winUnlockFile(&pFile->hFile.h, ofst, 0, nByte, 0);
50465 rc = winLockFile(&pFile->hFile.h, dwFlags, ofst, 0, nByte, 0);
50724 int ofst, /* First lock to acquire or release */
50739 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
50747 mask = (u16)((1U<<(ofst+n)) - (1U<<ofst));
50748 assert( n>1 || mask==(1<<ofst) );
50762 rc = winShmSystemLock(pShmNode, WINSHM_UNLCK, ofst+WIN_SHM_BASE, n);
50790 rc = winShmSystemLock(pShmNode, WINSHM_RDLCK, ofst+WIN_SHM_BASE, n);
50815 rc = winShmSystemLock(pShmNode, WINSHM_WRLCK, ofst+WIN_SHM_BASE, n);
59520 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
59530 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst);
218707 unsigned int cnt, ofst;
218712 ofst = rbuDeltaGetInt(&zDelta, &lenDelta);
218723 if( (int)(ofst+cnt) > lenSrc ){
218727 memcpy(zOut, &zSrc[ofst], cnt);
223041 static int rbuVfsShmLock(sqlite3_file *pFile, int ofst, int n, int flags){
223059 if( ofst==WAL_LOCK_CKPT && n==1 ) rc = SQLITE_BUSY;
223066 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
223068 pRbu->mLock |= ((1<<n) - 1) << ofst;