Lines Matching defs:ofst
41252 ** Apply posix advisory locks for all bytes from ofst through ofst+n-1.
41260 int ofst, /* First byte of the locking range */
41283 f.l_start = ofst;
41299 mask = ofst>31 ? 0xffff : (1<<(ofst+n)) - (1<<ofst);
41302 OSTRACE(("unlock %d ok", ofst));
41306 OSTRACE(("read-lock %d ok", ofst));
41311 OSTRACE(("write-lock %d ok", ofst));
41317 OSTRACE(("unlock %d failed", ofst));
41322 OSTRACE(("write-lock %d failed", ofst));
41798 int ofst, /* First lock to acquire or release */
41812 sqlite3_log(SQLITE_IOERR_SHMLOCK, "unixShmLock-pShm, fd[%d], ofst[%d], n[%d], flags[%d]", ofst, n, flags);
41819 sqlite3_log(SQLITE_IOERR_SHMLOCK, "unixShmLock-pShmNode, fd[%d], ofst[%d], n[%d], flags[%d]", ofst, n, flags);
41827 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
41840 ** 1. Checkpointer lock (ofst==1).
41841 ** 2. Write lock (ofst==0).
41842 ** 3. Read locks (ofst>=3 && ofst<SQLITE_SHM_NLOCK).
41852 (ofst!=2) /* not RECOVER */
41853 && (ofst!=1 || (p->exclMask|p->sharedMask)==0)
41854 && (ofst!=0 || (p->exclMask|p->sharedMask)<3)
41855 && (ofst<3 || (p->exclMask|p->sharedMask)<(1<<ofst))
41859 mask = (1<<(ofst+n)) - (1<<ofst);
41860 assert( n>1 || mask==(1<<ofst) );
41868 for(ii=ofst; ii<ofst+n; ii++){
41875 rc = unixShmSystemLock(pDbFd, F_UNLCK, ofst+UNIX_SHM_BASE, n);
41877 memset(&aLock[ofst], 0, sizeof(int)*n);
41879 }else if( ALWAYS(p->sharedMask & (1<<ofst)) ){
41880 assert( n==1 && aLock[ofst]>1 );
41881 aLock[ofst]--;
41892 assert( (p->exclMask & (1<<ofst))==0 );
41894 if( aLock[ofst]<0 ){
41896 }else if( aLock[ofst]==0 ){
41897 rc = unixShmSystemLock(pDbFd, F_RDLCK, ofst+UNIX_SHM_BASE, n);
41903 aLock[ofst]++;
41910 for(ii=ofst; ii<ofst+n; ii++){
41921 rc = unixShmSystemLock(pDbFd, F_WRLCK, ofst+UNIX_SHM_BASE, n);
41925 for(ii=ofst; ii<ofst+n; ii++){
48861 ** Apply advisory locks for all n bytes beginning at ofst.
48869 int ofst, /* Offset to first byte to be locked/unlocked */
48878 pFile->hFile.h, lockType, ofst, nByte));
48882 rc = winUnlockFile(&pFile->hFile.h, ofst, 0, nByte, 0);
48887 rc = winLockFile(&pFile->hFile.h, dwFlags, ofst, 0, nByte, 0);
49146 int ofst, /* First lock to acquire or release */
49161 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
49169 mask = (u16)((1U<<(ofst+n)) - (1U<<ofst));
49170 assert( n>1 || mask==(1<<ofst) );
49184 rc = winShmSystemLock(pShmNode, WINSHM_UNLCK, ofst+WIN_SHM_BASE, n);
49212 rc = winShmSystemLock(pShmNode, WINSHM_RDLCK, ofst+WIN_SHM_BASE, n);
49237 rc = winShmSystemLock(pShmNode, WINSHM_WRLCK, ofst+WIN_SHM_BASE, n);
57914 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
57927 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst);
57931 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst);
209397 unsigned int cnt, ofst;
209402 ofst = rbuDeltaGetInt(&zDelta, &lenDelta);
209413 if( (int)(ofst+cnt) > lenSrc ){
209417 memcpy(zOut, &zSrc[ofst], cnt);
213710 static int rbuVfsShmLock(sqlite3_file *pFile, int ofst, int n, int flags){
213728 if( ofst==WAL_LOCK_CKPT && n==1 ) rc = SQLITE_BUSY;
213735 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
213737 pRbu->mLock |= ((1<<n) - 1) << ofst;