Lines Matching refs:ofst

38606   int ofst,              /* First byte of the locking range */
38629 f.l_start = ofst;
38645 mask = ofst>31 ? 0xffff : (1<<(ofst+n)) - (1<<ofst);
38648 OSTRACE(("unlock %d ok", ofst));
38652 OSTRACE(("read-lock %d ok", ofst));
38657 OSTRACE(("write-lock %d ok", ofst));
38663 OSTRACE(("unlock %d failed", ofst));
38668 OSTRACE(("write-lock %d failed", ofst));
39144 int ofst, /* First lock to acquire or release */
39157 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
39182 (ofst!=2) /* not RECOVER */
39183 && (ofst!=1 || (p->exclMask|p->sharedMask)==0)
39184 && (ofst!=0 || (p->exclMask|p->sharedMask)<3)
39185 && (ofst<3 || (p->exclMask|p->sharedMask)<(1<<ofst))
39189 mask = (1<<(ofst+n)) - (1<<ofst);
39190 assert( n>1 || mask==(1<<ofst) );
39198 for(ii=ofst; ii<ofst+n; ii++){
39205 rc = unixShmSystemLock(pDbFd, F_UNLCK, ofst+UNIX_SHM_BASE, n);
39207 memset(&aLock[ofst], 0, sizeof(int)*n);
39209 }else if( ALWAYS(p->sharedMask & (1<<ofst)) ){
39210 assert( n==1 && aLock[ofst]>1 );
39211 aLock[ofst]--;
39222 assert( (p->exclMask & (1<<ofst))==0 );
39224 if( aLock[ofst]<0 ){
39226 }else if( aLock[ofst]==0 ){
39227 rc = unixShmSystemLock(pDbFd, F_RDLCK, ofst+UNIX_SHM_BASE, n);
39233 aLock[ofst]++;
39240 for(ii=ofst; ii<ofst+n; ii++){
39251 rc = unixShmSystemLock(pDbFd, F_WRLCK, ofst+UNIX_SHM_BASE, n);
39255 for(ii=ofst; ii<ofst+n; ii++){
46157 int ofst, /* Offset to first byte to be locked/unlocked */
46166 pFile->hFile.h, lockType, ofst, nByte));
46170 rc = winUnlockFile(&pFile->hFile.h, ofst, 0, nByte, 0);
46175 rc = winLockFile(&pFile->hFile.h, dwFlags, ofst, 0, nByte, 0);
46434 int ofst, /* First lock to acquire or release */
46445 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
46453 mask = (u16)((1U<<(ofst+n)) - (1U<<ofst));
46454 assert( n>1 || mask==(1<<ofst) );
46468 rc = winShmSystemLock(pShmNode, WINSHM_UNLCK, ofst+WIN_SHM_BASE, n);
46496 rc = winShmSystemLock(pShmNode, WINSHM_RDLCK, ofst+WIN_SHM_BASE, n);
46521 rc = winShmSystemLock(pShmNode, WINSHM_WRLCK, ofst+WIN_SHM_BASE, n);
55030 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
55040 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst);
202368 unsigned int cnt, ofst;
202373 ofst = rbuDeltaGetInt(&zDelta, &lenDelta);
202384 if( (int)(ofst+cnt) > lenSrc ){
202388 memcpy(zOut, &zSrc[ofst], cnt);
206657 static int rbuVfsShmLock(sqlite3_file *pFile, int ofst, int n, int flags){
206675 if( ofst==WAL_LOCK_CKPT && n==1 ) rc = SQLITE_BUSY;
206682 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
206684 pRbu->mLock |= ((1<<n) - 1) << ofst;