Lines Matching refs:ofst
34076 ** Apply posix advisory locks for all bytes from ofst through ofst+n-1.
34084 int ofst, /* First byte of the locking range */
34106 f.l_start = ofst;
34117 mask = ofst>31 ? 0xffff : (1<<(ofst+n)) - (1<<ofst);
34120 OSTRACE(("unlock %d ok", ofst));
34124 OSTRACE(("read-lock %d ok", ofst));
34129 OSTRACE(("write-lock %d ok", ofst));
34135 OSTRACE(("unlock %d failed", ofst));
34140 OSTRACE(("write-lock %d failed", ofst));
34523 int ofst, /* First lock to acquire or release */
34536 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
34546 mask = (1<<(ofst+n)) - (1<<ofst);
34547 assert( n>1 || mask==(1<<ofst) );
34561 rc = unixShmSystemLock(pDbFd, F_UNLCK, ofst+UNIX_SHM_BASE, n);
34589 rc = unixShmSystemLock(pDbFd, F_RDLCK, ofst+UNIX_SHM_BASE, n);
34614 rc = unixShmSystemLock(pDbFd, F_WRLCK, ofst+UNIX_SHM_BASE, n);
41535 ** Apply advisory locks for all n bytes beginning at ofst.
41543 int ofst, /* Offset to first byte to be locked/unlocked */
41552 pFile->hFile.h, lockType, ofst, nByte));
41556 rc = winUnlockFile(&pFile->hFile.h, ofst, 0, nByte, 0);
41561 rc = winLockFile(&pFile->hFile.h, dwFlags, ofst, 0, nByte, 0);
41793 int ofst, /* First lock to acquire or release */
41804 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
41812 mask = (u16)((1U<<(ofst+n)) - (1U<<ofst));
41813 assert( n>1 || mask==(1<<ofst) );
41827 rc = winShmSystemLock(pShmNode, WINSHM_UNLCK, ofst+WIN_SHM_BASE, n);
41855 rc = winShmSystemLock(pShmNode, WINSHM_RDLCK, ofst+WIN_SHM_BASE, n);
41880 rc = winShmSystemLock(pShmNode, WINSHM_WRLCK, ofst+WIN_SHM_BASE, n);
49428 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
49441 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst);
49445 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst);
169926 unsigned int cnt, ofst;
169931 ofst = rbuDeltaGetInt(&zDelta, &lenDelta);
169942 if( (int)(ofst+cnt) > lenSrc ){
169946 memcpy(zOut, &zSrc[ofst], cnt);
173684 static int rbuVfsShmLock(sqlite3_file *pFile, int ofst, int n, int flags){
173699 if( ofst==WAL_LOCK_CKPT && n==1 ) rc = SQLITE_BUSY;
173704 && (ofst==WAL_LOCK_WRITE || ofst==WAL_LOCK_CKPT || ofst==WAL_LOCK_READ0)
173710 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
173712 pRbu->mLock |= (1 << ofst);