Home
last modified time | relevance | path

Searched refs:ofst (Results 1 – 24 of 24) sorted by relevance

/sqlite-3.40.0/tool/
H A Doffsets.c172 int x = p->aPage[ofst]; in ofst2byte()
178 int x = p->aPage[ofst]; in ofst4byte()
179 x = (x<<8) + p->aPage[ofst+1]; in ofst4byte()
180 x = (x<<8) + p->aPage[ofst+2]; in ofst4byte()
181 x = (x<<8) + p->aPage[ofst+3]; in ofst4byte()
227 int ofst; in ofstWalkInteriorPage() local
232 ofst = ofst2byte(p, 12+i*2); in ofstWalkInteriorPage()
233 iChild = ofst4byte(p, ofst); in ofstWalkInteriorPage()
244 int ofst; in ofstWalkLeafPage() local
256 ofst = ofst2byte(p, 8+i*2); in ofstWalkLeafPage()
[all …]
H A Dshowshm.c39 static unsigned char *getContent(int ofst, int nByte){ in getContent() argument
43 lseek(fd, ofst, SEEK_SET); in getContent()
59 int ofst, int nByte, /* Start and size of decode */ in print_decode_line() argument
64 int val = aData[ofst]; in print_decode_line()
66 sprintf(zBuf, " %03x: %02x", ofst, aData[ofst]); in print_decode_line()
72 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
73 val = val*256 + aData[ofst+j]; in print_decode_line()
79 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
85 memcpy(&val, aData+ofst, 4); in print_decode_line()
91 memcpy(&sz, aData+ofst, 2); in print_decode_line()
H A Dshowdb.c209 aData = fileRead(ofst, nByte); in print_byte_range()
259 u32 val = aData[ofst]; in print_decode_line()
261 sprintf(zBuf, " %03x: %02x", ofst, aData[ofst]); in print_decode_line()
503 unsigned char *x = a + ofst; in decodeCell()
916 u32 ofst; in page_usage_btree() local
924 if( ofst<cellidx+2 || ofst+4>=g.pagesize ){ in page_usage_btree()
937 int ofst; in page_usage_btree() local
938 ofst = cellstart + i*2; in page_usage_btree()
939 ofst = a[ofst]*256 + a[ofst+1]; in page_usage_btree()
1192 int ofst, nByte, hdrSize; in main() local
[all …]
H A Dshowwal.c120 static unsigned char *getContent(i64 ofst, int nByte){ in getContent() argument
124 lseek(fd, ofst, SEEK_SET); in getContent()
177 int ofst, int nByte, /* Start and size of decode */ in print_decode_line() argument
182 int val = aData[ofst]; in print_decode_line()
184 sprintf(zBuf, " %03x: %02x", ofst, aData[ofst]); in print_decode_line()
190 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
191 val = val*256 + aData[ofst+j]; in print_decode_line()
567 i64 ofst; in main() local
572 ofst = hdrSize = 100; in main()
576 ofst = (i64)(iStart-1)*pagesize; in main()
[all …]
H A Dshowjournal.c49 int ofst, int nByte, /* Start and size of decode */ in print_decode_line() argument
53 unsigned val = aData[ofst]; in print_decode_line()
55 sprintf(zBuf, " %05x: %02x", ofst, aData[ofst]); in print_decode_line()
61 sprintf(&zBuf[i], " %02x", aData[ofst+j]); in print_decode_line()
62 val = val*256 + aData[ofst+j]; in print_decode_line()
H A Dextract.c16 int ofst; in main() local
29 ofst = atoi(argv[2]); in main()
36 fseek(f, ofst, SEEK_SET); in main()
H A Dlemon.c4682 int ofst; in ReportTable() local
4684 ofst = stp->iTknOfst; in ReportTable()
4685 if( ofst==NO_OFFSET ) ofst = lemp->nactiontab; in ReportTable()
4687 fprintf(out, " %4d,", ofst); in ReportTable()
4707 int ofst; in ReportTable() local
4709 ofst = stp->iNtOfst; in ReportTable()
4710 if( ofst==NO_OFFSET ) ofst = mnNtOfst - 1; in ReportTable()
4712 fprintf(out, " %4d,", ofst); in ReportTable()
H A Dsqldiff.c1068 int cnt, ofst, litsz; in rbuDeltaCreate() local
1092 ofst = iSrc-k; in rbuDeltaCreate()
1097 sz = digit_count(i-k)+digit_count(cnt)+digit_count(ofst)+3; in rbuDeltaCreate()
/sqlite-3.40.0/src/
H A Dtest_demovfs.c167 off_t ofst; /* Return value from lseek() */ in demoDirectWrite() local
170 ofst = lseek(p->fd, iOfst, SEEK_SET); in demoDirectWrite()
171 if( ofst!=iOfst ){ in demoDirectWrite()
219 off_t ofst; /* Return value from lseek() */ in demoRead() local
234 ofst = lseek(p->fd, iOfst, SEEK_SET); in demoRead()
235 if( ofst!=iOfst ){ in demoRead()
H A Dos_unix.c4393 f.l_start = ofst; in unixShmSystemLock()
4409 mask = ofst>31 ? 0xffff : (1<<(ofst+n)) - (1<<ofst); in unixShmSystemLock()
4927 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK ); in unixShmLock()
4955 && (ofst<3 || (p->exclMask|p->sharedMask)<(1<<ofst)) in unixShmLock()
4959 mask = (1<<(ofst+n)) - (1<<ofst); in unixShmLock()
4968 for(ii=ofst; ii<ofst+n; ii++){ in unixShmLock()
4981 aLock[ofst]--; in unixShmLock()
4994 if( aLock[ofst]<0 ){ in unixShmLock()
5003 aLock[ofst]++; in unixShmLock()
5010 for(ii=ofst; ii<ofst+n; ii++){ in unixShmLock()
[all …]
H A Dtest_md5.c354 int ofst; in md5file_cmd() local
367 ofst = atoi(argv[2]); in md5file_cmd()
370 ofst = 0; in md5file_cmd()
379 fseek(in, ofst, SEEK_SET); in md5file_cmd()
H A Dtest_devsym.c192 static int devsymShmLock(sqlite3_file *pFile, int ofst, int n, int flags){ in devsymShmLock() argument
194 return p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags); in devsymShmLock()
H A Dos_win.c3796 int ofst, /* Offset to first byte to be locked/unlocked */ argument
3805 pFile->hFile.h, lockType, ofst, nByte));
3809 rc = winUnlockFile(&pFile->hFile.h, ofst, 0, nByte, 0);
3814 rc = winLockFile(&pFile->hFile.h, dwFlags, ofst, 0, nByte, 0);
4073 int ofst, /* First lock to acquire or release */ argument
4088 assert( ofst>=0 && ofst+n<=SQLITE_SHM_NLOCK );
4096 mask = (u16)((1U<<(ofst+n)) - (1U<<ofst));
4097 assert( n>1 || mask==(1<<ofst) );
4111 rc = winShmSystemLock(pShmNode, WINSHM_UNLCK, ofst+WIN_SHM_BASE, n);
4139 rc = winShmSystemLock(pShmNode, WINSHM_RDLCK, ofst+WIN_SHM_BASE, n);
[all …]
H A Dtest_quota.c715 int ofst, /* First lock to acquire or release */ in quotaShmLock() argument
720 return pSubOpen->pMethods->xShmLock(pSubOpen, ofst, n, flags); in quotaShmLock()
1687 int ofst; in test_quota_fseek() local
1697 if( Tcl_GetIntFromObj(interp, objv[2], &ofst) ) return TCL_ERROR; in test_quota_fseek()
1710 rc = sqlite3_quota_fseek(p, ofst, whence); in test_quota_fseek()
H A Dtest_vfstrace.c543 static int vfstraceShmLock(sqlite3_file *pFile, int ofst, int n, int flags){ in vfstraceShmLock() argument
558 pInfo->zVfsName, p->zFName, ofst, n, &zLck[1]); in vfstraceShmLock()
559 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags); in vfstraceShmLock()
H A Dtest_vfs.c938 int ofst, in tvfsShmLock() argument
950 return pReal->pMethods->xShmLock(pReal, ofst, n, flags); in tvfsShmLock()
954 sqlite3_snprintf(sizeof(zLock), zLock, "%d %d", ofst, n); in tvfsShmLock()
981 u32 mask = (((1<<n)-1) << ofst); in tvfsShmLock()
H A Dtest_osinst.c157 static int vfslogShmLock(sqlite3_file *pFile, int ofst, int n, int flags);
432 static int vfslogShmLock(sqlite3_file *pFile, int ofst, int n, int flags){ in vfslogShmLock() argument
437 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags); in vfslogShmLock()
H A Dtest6.c552 static int cfShmLock(sqlite3_file *pFile, int ofst, int n, int flags){ in cfShmLock() argument
554 return pReal->pMethods->xShmLock(pReal, ofst, n, flags); in cfShmLock()
H A Dtest_multiplex.c1101 int ofst, /* First lock to acquire or release */ in multiplexShmLock() argument
1109 return pSubOpen->pMethods->xShmLock(pSubOpen, ofst, n, flags); in multiplexShmLock()
H A Dpager.c2372 i64 ofst = (pgno-1)*(i64)pPager->pageSize; in pager_playback_one_page() local
2382 rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst); in pager_playback_one_page()
H A Dshell.c.in5926 static const struct { const char *zName; int ofst; } aField[] = { member
5986 int ofst = aField[i].ofst; local
5987 unsigned int val = get4byteInt(aHdr + ofst);
5989 switch( ofst ){
/sqlite-3.40.0/ext/misc/
H A Dfossildelta.c399 int cnt, ofst, litsz; in delta_create() local
422 ofst = iSrc-k; in delta_create()
427 sz = digit_count(i-k)+digit_count(cnt)+digit_count(ofst)+3; in delta_create()
557 unsigned int cnt, ofst; in delta_apply() local
562 ofst = deltaGetInt(&zDelta, &lenDelta); in delta_apply()
573 if( ofst+cnt > lenSrc ){ in delta_apply()
577 memcpy(zOut, &zSrc[ofst], cnt); in delta_apply()
/sqlite-3.40.0/ext/rbu/
H A Dsqlite3rbu.c588 unsigned int cnt, ofst; in rbuDeltaApply() local
593 ofst = rbuDeltaGetInt(&zDelta, &lenDelta); in rbuDeltaApply()
604 if( (int)(ofst+cnt) > lenSrc ){ in rbuDeltaApply()
608 memcpy(zOut, &zSrc[ofst], cnt); in rbuDeltaApply()
4901 static int rbuVfsShmLock(sqlite3_file *pFile, int ofst, int n, int flags){ in rbuVfsShmLock() argument
4919 if( ofst==WAL_LOCK_CKPT && n==1 ) rc = SQLITE_BUSY; in rbuVfsShmLock()
4926 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags); in rbuVfsShmLock()
4928 pRbu->mLock |= ((1<<n) - 1) << ofst; in rbuVfsShmLock()
/sqlite-3.40.0/test/
H A Dpager1.test511 foreach {tn ofst value result} {
526 hexio_write test.db-journal $ofst [format %.8x $value]