Lines Matching refs:lock
30735 struct flock lock;
30736 lock.l_whence = SEEK_SET;
30737 lock.l_start = RESERVED_BYTE;
30738 lock.l_len = 1;
30739 lock.l_type = F_WRLCK;
30740 if( osFcntl(pFile->h, F_GETLK, &lock) ){
30743 } else if( lock.l_type!=F_UNLCK ){
30782 struct flock lock;
30784 lock.l_whence = SEEK_SET;
30785 lock.l_start = SHARED_FIRST;
30786 lock.l_len = SHARED_SIZE;
30787 lock.l_type = F_WRLCK;
30788 rc = osFcntl(pFile->h, F_SETLK, &lock);
30868 struct flock lock;
30931 lock.l_len = 1L;
30932 lock.l_whence = SEEK_SET;
30936 lock.l_type = (eFileLock==SHARED_LOCK?F_RDLCK:F_WRLCK);
30937 lock.l_start = PENDING_BYTE;
30938 if( unixFileLock(pFile, &lock) ){
30958 lock.l_start = SHARED_FIRST;
30959 lock.l_len = SHARED_SIZE;
30960 if( unixFileLock(pFile, &lock) ){
30966 lock.l_start = PENDING_BYTE;
30967 lock.l_len = 1L;
30968 lock.l_type = F_UNLCK;
30969 if( unixFileLock(pFile, &lock) && rc==SQLITE_OK ){
30995 lock.l_type = F_WRLCK;
30999 lock.l_start = RESERVED_BYTE;
31000 lock.l_len = 1L;
31002 lock.l_start = SHARED_FIRST;
31003 lock.l_len = SHARED_SIZE;
31006 if( unixFileLock(pFile, &lock) ){
31077 struct flock lock;
31126 lock.l_type = F_UNLCK;
31127 lock.l_whence = SEEK_SET;
31128 lock.l_start = SHARED_FIRST;
31129 lock.l_len = divSize;
31130 if( unixFileLock(pFile, &lock)==(-1) ){
31136 lock.l_type = F_RDLCK;
31137 lock.l_whence = SEEK_SET;
31138 lock.l_start = SHARED_FIRST;
31139 lock.l_len = divSize;
31140 if( unixFileLock(pFile, &lock)==(-1) ){
31148 lock.l_type = F_UNLCK;
31149 lock.l_whence = SEEK_SET;
31150 lock.l_start = SHARED_FIRST+divSize;
31151 lock.l_len = SHARED_SIZE-divSize;
31152 if( unixFileLock(pFile, &lock)==(-1) ){
31161 lock.l_type = F_RDLCK;
31162 lock.l_whence = SEEK_SET;
31163 lock.l_start = SHARED_FIRST;
31164 lock.l_len = SHARED_SIZE;
31165 if( unixFileLock(pFile, &lock) ){
31178 lock.l_type = F_UNLCK;
31179 lock.l_whence = SEEK_SET;
31180 lock.l_start = PENDING_BYTE;
31181 lock.l_len = 2L; assert( PENDING_BYTE+1==RESERVED_BYTE );
31182 if( unixFileLock(pFile, &lock)==0 ){
31197 lock.l_type = F_UNLCK;
31198 lock.l_whence = SEEK_SET;
31199 lock.l_start = lock.l_len = 0L;
31200 if( unixFileLock(pFile, &lock)==0 ){
57505 BtLock lock; /* Object used to lock page 1 */
58533 assert( pLock->iTable!=1 || pLock==&p->lock );
60327 p->lock.pBtree = p;
60328 p->lock.iTable = 1;
61358 assert( p->lock.pBtree==p && p->lock.iTable==1 );
61359 p->lock.eLock = READ_LOCK;
61360 p->lock.pNext = pBt->pLock;
61361 pBt->pLock = &p->lock;